@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-soft: #f0ece4;
  --text: #1a1f2e;
  --muted: #6b7280;
  --line: #e3ddd5;
  --dark: #14202a;
  --accent: #4a7c59;
  --accent-soft: #e8f0ea;
  --accent-hover: #3a6347;
  --shadow: 0 8px 32px rgba(15, 23, 42, 0.07);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}
.narrow { max-width: 850px; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background-color: rgba(247, 245, 241, 0.9);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
}

.nav-logo {
  height: 110px;
  width: auto;
  display: block;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.85; }

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: #334155;
}
nav a {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.25s ease;
}
nav a:hover { color: var(--text); }
nav a:hover::after { width: 100%; }

/* ── Lang Toggle ── */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.lang-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  transition: 0.2s ease;
}
.lang-toggle button.active {
  background: var(--dark);
  color: #fff;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.94rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--dark); color: white; }
.btn-primary:hover { background: #0f1820; box-shadow: 0 8px 24px rgba(20,32,42,0.25); }

.btn-secondary { background: white; border-color: var(--line); color: var(--text); }
.btn-secondary:hover { background: #fafafa; border-color: #ccc; }

.btn-accent { background: var(--accent); color: white; }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 8px 24px rgba(74,124,89,0.3); }

.btn-light { background: white; color: var(--dark); }
.btn-light:hover { background: #f0ece4; }

.desktop-call { white-space: nowrap; }

/* ── Mobile Menu ── */
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  background: white;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.mobile-menu-btn:hover {
  background: var(--surface-soft);
  border-color: #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 20px;
  height: 20px;
  position: relative;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
  transform-origin: center;
}

/* Animate to X when open */
.mobile-menu-btn[aria-expanded="true"] .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn[aria-expanded="true"] .hamburger span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.mobile-menu-btn[aria-expanded="true"] .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(140deg, #f0ece4 0%, #fafaf8 45%, #ecf3ee 100%);
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 50%, rgba(74,124,89,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding: 3rem 0 3.5rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #2f5238;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h2 {
  margin: 1.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 4.2rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero p {
  margin: 1.4rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* ── Quick Facts ── */
.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fact-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.fact-card strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.fact-card span { color: var(--muted); font-size: 0.88rem; }

/* ── Hero Visual ── */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.project-feature { display: flex; flex-direction: column; gap: 1rem; }

.project-panel.video-panel {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #e8e3d8;
  box-shadow: var(--shadow-lg);
}

.video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.project-note {
  background: rgba(250, 248, 244, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}
.project-note small {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}
.project-note h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0.4rem 0 0.4rem;
}
.project-note p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.hero-bottom-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.feature-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-box h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.feature-box p { color: var(--muted); font-size: 0.9rem; }

.contact-card {
  background: var(--dark);
  color: white;
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
  box-shadow: var(--shadow-lg);
}
.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: white;
}
.contact-card p { color: #94a3b8; font-size: 0.9rem; }

/* ── Section Labels ── */
.section-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.light-label { color: #94a3b8; }

/* ── Sections ── */
.section { padding: 3.5rem 0; }
.alt-section { background: #fff; }

.section-heading {
  max-width: 46rem;
  margin-bottom: 1.75rem;
}
.section-heading h2,
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
}

.section-cta { margin-top: 2.25rem; }

/* ── Services Grid (home) ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0.9rem 0 0;
}
.card p { color: var(--muted); margin: 0.65rem 0 0; font-size: 0.94rem; }

/* ── Services Detail (services page) ── */
.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.service-detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 0;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.service-card-image {
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.service-detail-card:hover .service-card-image img { transform: scale(1.04); }

.service-detail-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 1.25rem 1.5rem 0;
}
.service-detail-card p {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0.6rem 1.5rem 1.5rem;
}

/* ── About / Why Layout ── */
.about-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: start;
}

.about-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
}
.about-box h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-top: 0.4rem;
}
.about-box p { color: var(--muted); margin-top: 1rem; font-size: 0.97rem; }

.why-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 1.8rem;
  height: 100%;
}

.why-list, .faq-list { display: grid; gap: 0.75rem; margin-top: 1.25rem; }

.why-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.2s;
}
.why-item:hover { background: var(--accent-soft); }

.check {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-item p { margin: 0; font-size: 0.95rem; }

/* ── Reviews ── */
.reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.testimonial:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stars { color: #d4a017; font-size: 1rem; margin-bottom: 0.75rem; }
.testimonial p {
  color: var(--text);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.testimonial strong { color: var(--muted); font-size: 0.9rem; }

/* ── Mini Gallery (home) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.3rem;
  align-items: stretch;
}

.gallery-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}
.gallery-copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
}
.gallery-copy p { color: var(--muted); font-size: 0.95rem; }

.mini-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-card {
  min-height: 220px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-card:hover img { transform: scale(1.05); }

/* ── Contact Band ── */
.contact-band {
  background: var(--dark);
  color: #fff;
  text-align: center;
  border-radius: 36px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}
.contact-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, rgba(74,124,89,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.contact-band h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  position: relative;
}
.contact-band p {
  max-width: 40rem;
  margin: 1rem auto 0;
  color: #94a3b8;
  position: relative;
}

.contact-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  position: relative;
}

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding: 3rem 0 1.75rem;
}
.page-hero h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
}
.page-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 1rem;
}

/* ── Split Grid (services page) ── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.8rem;
}
.info-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
}
.info-card p { color: var(--muted); font-size: 0.95rem; }

.faq-item {
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: background 0.2s;
}
.faq-item:hover { background: #fafaf8; }
.faq-item strong { display: block; font-size: 0.96rem; margin-bottom: 0.35rem; }
.faq-item p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ── Floating CTA ── */
.floating-call {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999;
  background: var(--dark);
  color: white;
  border-radius: 999px;
  padding: 1rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  display: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.floating-call:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15,23,42,0.3); }

/* ── Language Nudge Bar ── */
.lang-nudge {
  background: var(--accent-soft);
  border-bottom: 1px solid #c8deca;
  text-align: center;
  padding: 0.4rem 1rem;
  font-size: 0.83rem;
  color: #2f5238;
  font-weight: 500;
  line-height: 1.4;
}
.lang-nudge strong {
  font-weight: 800;
  background: var(--accent);
  color: white;
  padding: 0.1rem 0.45rem;
  border-radius: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

/* ── Language System ── */
[data-lang] { display: none; }
html[lang="en"] [data-lang="en"] { display: block; }
html[lang="es"] [data-lang="es"] { display: block; }
html[lang="en"] .lang-inline[data-lang="en"],
html[lang="es"] .lang-inline[data-lang="es"] { display: inline; }
.lang-inline { display: none; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: #94a3b8;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.88rem;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: white; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-grid,
  .split-grid,
  .gallery-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }
  .services-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-facts { grid-template-columns: repeat(3, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-bottom-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    gap: 0.25rem;
  }
  nav a { padding: 0.65rem 0.75rem; border-radius: 10px; }
  nav a:hover { background: var(--bg); }
  nav.open { display: flex; }

  .mobile-menu-btn { display: inline-flex; }
  .desktop-call { display: none; }
  .header-inner { align-items: flex-start; }
  .nav-wrap { flex-direction: column; align-items: flex-end; }

  .hero-grid { padding: 3rem 0 4rem; }
  .hero-visual,
  .quick-facts,
  .services-grid,
  .services-detail-grid,
  .testimonial-grid,
  .mini-gallery,
  .hero-bottom-cards,
  .split-grid { grid-template-columns: 1fr; }

  .reviews-head { flex-direction: column; align-items: flex-start; }
  .project-panel.video-panel { min-height: 280px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .floating-call { display: inline-flex; }
  .nav-logo { height: 80px; }

  .contact-band { padding: 3rem 1.25rem; border-radius: 24px; }
}

@media (max-width: 480px) {
  .quick-facts { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
}