/*
Theme Name: C&C Construcciones Cuenca
Theme URI: https://cycconstruccionescuenca.com
Author: C&C Construcciones
Author URI: https://cycconstruccionescuenca.com
Description: Tema profesional para C&C Construcciones - Empresa líder en construcción y remodelación en Cuenca, Ecuador.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cyc-construcciones
Tags: one-page, construction, custom-background
*/

/* ============================================
   RESET & BASE
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --background: 210 20% 98%;
  --foreground: 213 95% 13%;
  --primary: 213 95% 13%;
  --primary-foreground: 0 0% 100%;
  --secondary: 43 87% 43%;
  --secondary-foreground: 0 0% 100%;
  --muted: 210 20% 94%;
  --muted-foreground: 213 30% 40%;
  --accent: 43 87% 43%;
  --border: 213 30% 88%;
  --gold: 43 87% 43%;
  --gold-light: 43 80% 60%;
  --gold-glow: 43 90% 50%;
  --navy: 213 95% 13%;
  --navy-light: 213 60% 25%;
  --navy-dark: 213 95% 8%;
  --radius: 0.75rem;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gradient-gold {
  background: linear-gradient(135deg, hsl(43, 87%, 43%), hsl(43, 90%, 55%));
}

.gradient-navy {
  background: linear-gradient(180deg, hsl(213, 95%, 13%), hsl(213, 95%, 8%));
}

.text-gradient-gold {
  background: linear-gradient(135deg, hsl(43, 87%, 43%), hsl(43, 80%, 60%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.2);
}

.glass-dark {
  background: hsla(213, 95%, 13%, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid hsla(213, 60%, 25%, 0.5);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.5s;
  padding: 1.25rem 0;
}

.navbar.scrolled {
  background: hsla(213, 95%, 13%, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid hsla(213, 60%, 25%, 0.5);
  padding: 0.75rem 0;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-brand img {
  height: 2.5rem;
  width: auto;
}

.navbar-brand span {
  font-size: 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.8);
  transition: color 0.3s;
}

.navbar-links a:hover {
  color: hsl(var(--gold));
}

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  transition: opacity 0.3s;
}

.navbar-cta:hover {
  opacity: 0.9;
}

/* Mobile menu */
.mobile-toggle {
  display: block;
  background: none;
  border: none;
  color: hsl(var(--primary-foreground));
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}

.mobile-menu.active {
  display: flex;
  background: hsla(213, 95%, 13%, 0.95);
  backdrop-filter: blur(24px);
}

.mobile-menu a {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 1.125rem;
  padding: 0.5rem 0;
  transition: color 0.3s;
}

.mobile-menu a:hover {
  color: hsl(var(--gold));
}

@media (min-width: 1024px) {
  .navbar-links { display: flex; }
  .mobile-toggle { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, hsla(213,95%,8%,0.8), hsla(213,95%,13%,0.7), hsla(213,95%,8%,0.9));
}

.hero-orb-1 {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: hsla(43, 87%, 43%, 0.1);
  filter: blur(120px);
}

.hero-orb-2 {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: hsla(213, 60%, 25%, 0.3);
  filter: blur(100px);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 8rem 1rem;
}

.hero-badge {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  margin-bottom: 2rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: hsla(0, 0%, 100%, 0.7);
  max-width: 42rem;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

.hero-btn-primary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--primary-foreground));
  transition: opacity 0.3s;
  box-shadow: 0 10px 25px -5px hsla(43, 87%, 43%, 0.2);
}

.hero-btn-primary:hover {
  opacity: 0.9;
}

.hero-btn-secondary {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: hsl(var(--primary-foreground));
  border: 1px solid hsla(0, 0%, 100%, 0.3);
  transition: background 0.3s;
}

.hero-btn-secondary:hover {
  background: hsla(0, 0%, 100%, 0.1);
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

/* ============================================
   STATS
   ============================================ */
.stats {
  padding: 5rem 0;
  overflow: hidden;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-icon {
  width: 2rem;
  height: 2rem;
  margin: 0 auto 0.75rem;
  color: hsl(var(--gold));
}

.stat-value {
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.stat-label {
  color: hsla(0, 0%, 100%, 0.6);
  margin-top: 0.5rem;
  font-size: 0.875rem;
}

@media (min-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

/* ============================================
   ABOUT / TEAM
   ============================================ */
.about {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--secondary));
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-label-light {
  color: hsl(var(--gold));
}

.section-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  margin-top: 0.75rem;
  color: hsl(var(--foreground));
}

.section-title-light {
  color: hsl(var(--primary-foreground));
}

.section-desc {
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.125rem;
}

.team-grid {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-card {
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  text-align: center;
  transition: box-shadow 0.5s;
}

.team-card:hover {
  box-shadow: 0 25px 50px -12px hsla(43, 87%, 43%, 0.05);
}

.team-avatar {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid hsla(43, 87%, 43%, 0.3);
  transition: border-color 0.3s;
}

.team-card:hover .team-avatar {
  border-color: hsl(var(--secondary));
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 700;
}

.team-role {
  color: hsl(var(--secondary));
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.team-desc {
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  transition: border-color 0.5s;
}

.service-card:hover {
  border-color: hsla(43, 87%, 43%, 0.3);
}

.service-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: transform 0.3s;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: hsl(var(--primary-foreground));
}

.service-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.5rem;
}

.service-desc {
  color: hsla(0, 0%, 100%, 0.6);
  font-size: 0.875rem;
  line-height: 1.7;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
  padding: 6rem 0;
  position: relative;
}

.projects-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .projects-grid { grid-template-columns: repeat(4, 1fr); }
}

.project-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
}

.project-card .aspect {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, hsla(213,95%,8%,0.9), hsla(213,95%,13%,0.2), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

.project-category {
  color: hsl(var(--gold));
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-title {
  color: hsl(var(--primary-foreground));
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

.project-price {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.testimonials-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
  color: hsla(43, 87%, 43%, 0.3);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--gold));
  fill: hsl(var(--gold));
}

.testimonial-text {
  color: hsla(0, 0%, 100%, 0.8);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-name {
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  font-size: 0.875rem;
}

.testimonial-project {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.75rem;
  margin-top: 0.125rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 6rem 0;
  position: relative;
}

.contact-grid {
  display: grid;
  gap: 3rem;
  max-width: 64rem;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(var(--primary-foreground));
}

.contact-item-label {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.contact-item-value {
  color: hsl(var(--foreground));
  font-weight: 500;
}

/* Form */
.contact-form {
  border-radius: 1rem;
  padding: 1.5rem 2rem;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: repeat(2, 1fr); }
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
  border-color: hsl(var(--secondary));
  box-shadow: 0 0 0 3px hsla(43, 87%, 43%, 0.2);
}

textarea.form-control {
  resize: none;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: inherit;
  color: hsl(var(--primary-foreground));
  cursor: pointer;
  transition: opacity 0.3s;
  box-shadow: 0 10px 25px -5px hsla(43, 87%, 43%, 0.2);
}

.form-submit:hover {
  opacity: 0.9;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 4rem 0;
  border-top: 1px solid hsla(213, 60%, 25%, 0.3);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

.footer-brand img {
  height: 3rem;
  width: auto;
  margin-bottom: 0.5rem;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: hsl(var(--primary-foreground));
}

.footer-brand p {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.875rem;
  margin-top: 0.75rem;
  line-height: 1.7;
}

.footer h4 {
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
}

.footer-link {
  display: block;
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.875rem;
  padding: 0.25rem 0;
  transition: color 0.3s;
}

.footer-link:hover {
  color: hsl(var(--gold));
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.footer-contact-item svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--gold));
}

.footer-bottom {
  border-top: 1px solid hsla(213, 60%, 25%, 0.2);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: hsla(0, 0%, 100%, 0.4);
  font-size: 0.875rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.animate-delay-1 { animation-delay: 0.15s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.45s; opacity: 0; }
