/* ============ TOKENS ============ */
:root {
  --linen: #f7f2ea;
  --sand: #eee3d1;
  --sand-line: #ddccb0;
  --ink: #2a241f;
  --ink-soft: #6b6053;
  --plum: #423a54;
  --plum-deep: #262032;
  --clay: #b97245;
  --clay-light: #d99d70;
  --cream: #fbf6ee;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1240px;
  --section-pad: clamp(72px, 10vw, 140px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* keep fixed-header from covering anchor targets when nav links jump the page */
main#inicio,
.marquee,
section[id] {
  scroll-margin-top: 96px;
}
@media (max-width: 860px) {
  main#inicio,
  .marquee,
  section[id] {
    scroll-margin-top: 78px;
  }
}

body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

p { margin: 0; }

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

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

/* subtle film-grain overlay for a non-flat, non-"AI-gradient" texture */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.section-index {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 18px;
}

.link-underline {
  display: inline-block;
  font-weight: 600;
  border-bottom: 1px solid var(--clay);
  padding-bottom: 3px;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}
.link-underline:hover { opacity: 0.7; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.btn-solid { background: var(--plum); color: var(--cream); }
.btn-solid:hover { background: var(--plum-deep); transform: translateY(-1px); }
.btn-solid-light { background: var(--cream); color: var(--plum-deep); }
.btn-solid-light:hover { background: #fff; transform: translateY(-1px); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--linen); border-color: var(--ink); }
.btn-ghost { color: var(--ink); border-bottom: 1px solid var(--ink); border-radius: 0; padding: 15px 4px; }
.btn-ghost:hover { color: var(--clay); border-color: var(--clay); }
.btn.full { width: 100%; margin-top: 6px; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 26px 0;
}
.site-header.scrolled {
  background: rgba(247, 242, 234, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(42,36,31,0.08);
  padding: 14px 0;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; flex-direction: column; line-height: 1; color: var(--ink); }
.logo-mark { font-family: var(--serif); font-size: 26px; letter-spacing: 0.01em; }
.logo-sub { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--clay); margin-top: 3px; }

.main-nav { display: flex; gap: 34px; }
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--clay);
  transition: width 0.3s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 22px; }
.header-phone { font-size: 14px; font-weight: 600; white-space: nowrap; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }
.nav-toggle[aria-expanded="true"] { position: relative; z-index: 600; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
}
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,32,50,0.32) 0%, rgba(30,25,40,0.28) 45%, rgba(20,16,26,0.88) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  padding: 0 32px 110px;
}
.eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay-light);
  font-weight: 700;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 5.8vw, 72px);
  color: #fff;
  max-width: 820px;
  font-weight: 400;
}
.hero h1 em { font-style: italic; color: var(--clay-light); font-weight: 400; }
.hero-lede {
  max-width: 460px;
  margin-top: 26px;
  font-size: 17px;
  color: rgba(255,255,255,0.8);
}
.hero-actions { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.6); }
.hero .btn-ghost:hover { color: var(--clay-light); border-color: var(--clay-light); }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 46px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.78);
  flex-wrap: wrap;
}
.hero-trust .badge { display: flex; align-items: center; gap: 8px; }
.hero-trust .badge svg { flex-shrink: 0; color: var(--clay-light); }

.scroll-cue {
  position: absolute;
  right: 40px;
  bottom: 40px;
  z-index: 1;
  width: 30px; height: 50px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 4px; height: 8px;
  background: var(--clay-light);
  border-radius: 2px;
  animation: cueMove 1.8s ease-in-out infinite;
}
@keyframes cueMove {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(14px); opacity: 0; }
  71% { transform: translateY(0); opacity: 0; }
  100% { opacity: 1; }
}

/* ============ MARQUEE ============ */
.marquee {
  background: var(--plum-deep);
  color: var(--clay-light);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  gap: 28px;
  align-items: center;
  animation: marqueeScroll 34s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
}
.marquee-track span { display: inline-block; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ STATS ============ */
.stats {
  max-width: var(--container);
  margin: 0 auto;
  padding: 70px 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  border-bottom: 1px solid var(--sand-line);
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-num { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); color: var(--plum); }
.stat-label { font-size: 13.5px; color: var(--ink-soft); }

/* ============ PHILOSOPHY ============ */
.philosophy {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
}
.philosophy-images { position: relative; }
.img-main { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 4px; }
.img-accent {
  position: absolute;
  bottom: -50px;
  left: -60px;
  width: 46%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 4px;
  border: 8px solid var(--linen);
  box-shadow: 0 20px 50px rgba(42,36,31,0.18);
}
.philosophy-frame {
  position: absolute;
  top: -22px; right: -22px;
  width: 60%; height: 60%;
  border: 1px solid var(--clay);
  border-radius: 4px;
  z-index: -1;
}
.philosophy-text { padding-left: 20px; }
.philosophy-text h2 { font-size: clamp(30px, 3.4vw, 42px); margin-bottom: 26px; }
.philosophy-text p { color: var(--ink-soft); font-size: 16px; margin-bottom: 18px; }
.philosophy-text .link-underline { margin-top: 12px; }

/* ============ STEPS (Primera Cita) ============ */
.steps { padding: var(--section-pad) 32px; background: var(--sand); }
.steps-head {
  max-width: var(--container);
  margin: 0 auto 60px;
  text-align: center;
}
.steps-head h2 { font-size: clamp(30px, 3.4vw, 44px); max-width: 680px; margin: 0 auto; }
.steps-head .section-index { justify-content: center; display: block; text-align: center; }
.steps-head p.steps-sub { color: var(--ink-soft); font-size: 16px; max-width: 560px; margin: 18px auto 0; }
.steps-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: var(--sand-line);
  border-radius: 6px;
  overflow: hidden;
}
.step-card {
  background: var(--linen);
  padding: 42px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--clay);
}
.step-card h3 { font-size: 19px; font-weight: 500; }
.step-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ============ SERVICES ============ */
.services { padding: var(--section-pad) 32px; }
.services-head, .gallery-head, .faq-head {
  max-width: var(--container);
  margin: 0 auto 60px;
}
.services-head h2, .gallery-head h2, .faq-head h2 { font-size: clamp(30px, 3.4vw, 44px); max-width: 640px; }

.services-list {
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--sand-line);
}
.service-row {
  display: grid;
  grid-template-columns: 60px 140px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 30px 0;
  border-bottom: 1px solid var(--sand-line);
  transition: padding-left 0.35s ease;
}
.service-row:hover { padding-left: 12px; }
.service-num { font-family: var(--serif); font-size: 15px; color: var(--clay); }
.service-img { width: 140px; height: 96px; border-radius: 4px; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-row:hover .service-img img { transform: scale(1.08); }
.service-info h3 { font-size: 22px; margin-bottom: 8px; font-weight: 500; }
.service-info p { color: var(--ink-soft); font-size: 15px; max-width: 480px; }
.service-link {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.service-row:hover .service-link { border-color: var(--clay); color: var(--clay); }

/* ============ GALLERY (Nuestro Espacio) ============ */
.gallery { padding: var(--section-pad) 32px; background: var(--sand); }
.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 130px;
  gap: 18px;
}
.g-item { margin: 0; overflow: hidden; border-radius: 4px; grid-column: span 2; grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.g-item:hover img { transform: scale(1.06); }
.g-tall { grid-row: span 3; }
.g-quote {
  background: var(--plum);
  color: var(--cream);
  display: flex;
  align-items: center;
  padding: 26px;
}
.g-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.4;
  margin: 0;
}

/* ============ TEAM ============ */
.team {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 32px;
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 90px;
  align-items: center;
}
.team-media img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 4px; }
.team-text h2 { font-size: clamp(30px, 3.4vw, 44px); }
.team-role { color: var(--clay); font-size: 14px; font-weight: 700; margin: 12px 0 22px; letter-spacing: 0.02em; }
.team-text > p:not(.team-role) { color: var(--ink-soft); font-size: 16px; margin-bottom: 24px; }
.credentials { margin-bottom: 26px; display: flex; flex-direction: column; gap: 10px; }
.credentials li {
  font-size: 14.5px;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}
.credentials li::before {
  content: "—";
  position: absolute; left: 0; color: var(--clay);
}

/* ============ TESTIMONIALS ============ */
.testimonials { padding: var(--section-pad) 32px; text-align: center; }
.testimonials .section-index { text-align: center; }
.testi-slider { max-width: 760px; margin: 0 auto; }
.testi-viewport { overflow: hidden; }
.testi-track { display: flex; }
.testi-slide {
  flex: 0 0 100%;
  width: 100%;
  margin: 0;
}
.testi-slide p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.48;
  color: var(--ink);
}
.testi-slide footer {
  margin-top: 26px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 700;
}
.testi-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 44px; }
.testi-controls button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  transition: all 0.25s ease;
}
.testi-controls button:hover { background: var(--ink); color: var(--linen); }
.testi-dots { display: flex; gap: 8px; }
.testi-dots button {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--sand-line);
  padding: 0;
  cursor: pointer;
}
.testi-dots button.active { background: var(--clay); }

/* ============ CTA BAND ============ */
.cta-band {
  position: relative;
  padding: 130px 32px;
  text-align: center;
  overflow: hidden;
}
.cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(38,32,50,0.87), rgba(20,16,26,0.9));
  z-index: 1;
}
.cta-content { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.cta-content h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin-bottom: 20px; }
.cta-content p { color: rgba(255,255,255,0.78); font-size: 16.5px; margin-bottom: 36px; }

/* ============ FAQ ============ */
.faq { padding: var(--section-pad) 32px; background: var(--sand); }
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--sand-line); }
.faq-item { border-bottom: 1px solid var(--sand-line); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 26px 4px;
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
}
.faq-q span { color: var(--clay); font-size: 22px; transition: transform 0.3s ease; font-family: var(--sans); flex-shrink: 0; }
.faq-q[aria-expanded="true"] span { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a p { padding: 0 4px 26px; color: var(--ink-soft); font-size: 15.5px; max-width: 620px; }
.faq-note {
  max-width: 820px;
  margin: 34px auto 0;
  padding: 22px 26px;
  background: var(--linen);
  border: 1px solid var(--sand-line);
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.faq-note strong { color: var(--ink); }
.faq-note svg { flex-shrink: 0; margin-top: 2px; color: var(--clay); }

/* ============ CONTACT ============ */
.contact {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-pad) 32px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 90px;
}
.contact-info h2 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 18px; }
.contact-info > p:not(.section-index) { color: var(--ink-soft); font-size: 16px; max-width: 400px; margin-bottom: 44px; }
.contact-details { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-details dt {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clay); font-weight: 700; margin-bottom: 8px;
}
.contact-details dd { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.5; }

.contact-form { background: var(--sand); padding: 44px; border-radius: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { position: relative; margin-bottom: 22px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--sand-line);
  padding: 12px 2px 10px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s ease;
  appearance: none;
  resize: vertical;
}
.form-field select {
  cursor: pointer;
  padding-right: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236b6053' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 13px;
}
.form-field textarea { resize: vertical; min-height: 60px; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: var(--clay); }
.form-field label {
  position: absolute;
  left: 2px; top: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  pointer-events: none;
  transition: all 0.2s ease;
}
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: -10px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clay);
}
.form-field select:valid ~ label,
.form-field select:focus ~ label {
  top: -10px;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clay);
}
.form-note { font-size: 13.5px; margin-top: 14px; color: var(--plum); min-height: 18px; }
.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-soft);
}
.form-privacy svg { flex-shrink: 0; margin-top: 1px; color: var(--clay); }

/* ============ WHATSAPP FAB ============ */
.whatsapp-fab {
  position: fixed;
  right: 26px; bottom: 26px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--plum-deep);
  color: var(--cream);
  padding: 13px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  font-size: 13.5px;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease;
}
.whatsapp-fab:hover { background: var(--plum); transform: translateY(-2px); }

/* ============ FOOTER ============ */
.site-footer { background: var(--plum-deep); color: rgba(251,246,238,0.82); padding: 90px 32px 34px; }
.footer-top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(251,246,238,0.14);
}
.footer-brand .logo-mark,
.footer-brand .logo-sub { display: block; }
.footer-brand .logo-mark { color: #fff; }
.footer-brand .logo-sub { margin-top: 4px; }
.footer-brand p { margin-top: 18px; font-size: 14px; max-width: 280px; color: rgba(251,246,238,0.62); }
.footer-col h4 {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--clay-light); font-weight: 700; margin-bottom: 20px;
}
.footer-col a { display: block; font-size: 14.5px; margin-bottom: 12px; color: rgba(251,246,238,0.82); transition: color 0.2s; }
.footer-col a:hover { color: var(--clay-light); }
.footer-social { display: flex; flex-direction: column; }
.footer-crisis {
  max-width: var(--container);
  margin: 30px auto 0;
  font-size: 12.5px;
  color: rgba(251,246,238,0.6);
  line-height: 1.6;
}
.footer-crisis strong { color: rgba(251,246,238,0.85); }
.footer-copy {
  max-width: var(--container);
  margin: 18px auto 0;
  font-size: 12.5px;
  color: rgba(251,246,238,0.45);
}

/* ============ SCROLL REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(.2,.6,.2,1), transform 0.5s cubic-bezier(.2,.6,.2,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* skip the fade/slide entirely for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .main-nav { gap: 22px; }
}

@media (max-width: 1080px) {
  .header-phone { display: none; }
}

@media (max-width: 980px) {
  .philosophy, .team, .contact { grid-template-columns: 1fr; gap: 50px; }
  .philosophy-text { padding-left: 0; }
  .img-main { aspect-ratio: 4/3; }
  .img-accent { left: -20px; bottom: -30px; width: 46%; }
  .team { grid-template-columns: 1fr; }
  .team-media { max-width: 380px; margin: 0 auto; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .service-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .service-row .service-img { order: -1; width: 100%; height: 200px; }
  .service-num { font-size: 13px; }
  .service-link { display: inline-block; }
  .service-row:hover { padding-left: 0; }
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .contact-details { grid-template-columns: 1fr; }
  .cta-band { padding: 100px 32px; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    height: 100svh;
    width: min(78vw, 320px);
    background: var(--linen);
    flex-direction: column;
    padding: 110px 40px;
    gap: 26px;
    box-shadow: -20px 0 50px rgba(0,0,0,0.15);
    font-size: 17px;
    overflow-y: auto;
  }
  .hero-content { padding-top: 100px; }
  .header-actions { gap: 14px; }
  .header-actions .btn { padding: 11px 18px; font-size: 13.5px; }
  .logo-mark { font-size: 22px; }
}

@media (max-width: 360px) {
  .header-actions .btn-outline { display: none; }
}

/* short viewports (small-height phones, landscape) — hero content can be
   taller than the screen; let the section grow instead of clipping under
   the fixed header */
@media (max-height: 720px) {
  .hero-content { padding-top: 100px; padding-bottom: 28px; }
  .hero-actions { margin-top: 22px; }
  .hero-trust { margin-top: 20px; }
}

@media (max-width: 640px) {
  .hero-content { padding: 108px 24px 32px; }
  .eyebrow { margin-bottom: 14px; }
  .hero h1 { font-size: clamp(30px, 8.6vw, 38px); }
  .hero-lede { margin-top: 16px; font-size: 15.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 24px; gap: 12px; }
  .hero-actions .btn { text-align: center; padding: 13px 24px; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .philosophy-frame { display: none; }
  .img-main { aspect-ratio: 1/1; }
  .img-accent { width: 42%; left: -12px; bottom: -26px; border-width: 6px; }
  .steps-grid { grid-template-columns: 1fr; }
  .service-img { height: 170px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .g-tall { grid-row: span 2; }
  .g-quote { grid-column: span 2; }
  .g-quote blockquote { font-size: 17px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .scroll-cue { display: none; }
  .cta-band { padding: 80px 24px; }
  .contact-form { padding: 30px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
  .footer-brand p { max-width: none; }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: 13px; }
}

@media (max-width: 420px) {
  .testi-controls { gap: 14px; }
  .service-img { height: 150px; }
}
