:root {
  --ink: #0b1f3a;
  --ink-deep: #071426;
  --navy: #17365f;
  --burgundy: #7b0d16;
  --blush: #e7c9cc;
  --paper: #f6f3ee;
  --paper-deep: #ebe6de;
  --card: #fffdfb;
  --line: #ddd6cc;
  --muted: #5c6775;
  --fg: #1a2330;
  --whatsapp: #176b47;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --script: "Allura", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: inherit; }
button, .nav-btn, .btn { cursor: pointer; }
::selection { background: var(--burgundy); color: var(--paper); }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 1rem;
  z-index: 50;
}
.skip:focus { top: 0.5rem; }

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

.wrap {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--card);
  border-bottom: 4px solid var(--burgundy);
}
.utility { background: var(--ink); color: var(--paper); }
.utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
  padding: 0.45rem 0;
  font-size: 0.95rem;
}
.utility a { text-decoration: none; }
.utility a:hover { color: var(--blush); }
.utility span { color: var(--blush); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand { text-decoration: none; min-width: 0; }
.brand-name {
  display: block;
  font-family: var(--script);
  font-size: 3.4rem;
  line-height: 0.85;
  color: var(--ink);
}
.brand-tag {
  display: inline-block;
  margin-top: 0.35rem;
  background: var(--burgundy);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
}
.nav { display: flex; gap: 1.4rem; }
.nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 180ms ease;
}
.nav a:hover { color: var(--burgundy); }
.nav-toggle, .nav-btn { display: none; }

.hero { border-bottom: 1px solid var(--line); }
.hero-grid, .split, .contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}
.hero-grid {
  align-items: center;
  padding: 4.5rem 0;
}
.kicker {
  margin: 0;
  color: var(--burgundy);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  margin: 0.8rem 0 0;
  max-width: 16ch;
  color: var(--ink);
  font-size: 3.6rem;
  line-height: 0.95;
  font-weight: 600;
}
h1 span { display: block; margin-top: 0.35rem; color: var(--burgundy); }
.lead {
  max-width: 38rem;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.7rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn-red { background: var(--burgundy); color: var(--paper); }
.btn-red:hover { background: var(--ink); }
.btn-ink { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: var(--paper); }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #105438; }
.btn:hover { transform: translateY(-2px); }

.practice {
  background: var(--ink);
  color: var(--paper);
  border-left: 8px solid var(--burgundy);
  padding: 2.2rem 1.8rem;
}
.practice .label, .label {
  margin: 0;
  color: var(--blush);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.practice .years, .years-block .years {
  margin: 0.7rem 0 0;
  font-size: 3.6rem;
  line-height: 0.9;
  font-weight: 700;
}
.practice .years-label { margin: 0.4rem 0 0; font-size: 1.15rem; font-weight: 600; }
.facts { margin: 1.5rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--navy); }
.facts div + div { margin-top: 0.9rem; }
.facts dd { margin: 0.15rem 0 0; }

.section { padding: 4.5rem 0; }
.section-deep { background: var(--paper-deep); }
.section-ink { background: var(--ink); color: var(--paper); }
.heading { margin-bottom: 2.8rem; text-align: center; }
.heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-ink .heading h2 { color: var(--paper); }
.rule { width: 4rem; height: 4px; margin: 0.9rem auto 0; background: var(--burgundy); }

.about-grid { align-items: start; }
.years-block {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  padding: 2.4rem 1.4rem;
}
.years-block p { margin: 0.8rem 0 0; color: var(--blush); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.years-block .rule { margin-top: 1.2rem; }
h3 { margin: 0; color: var(--ink); font-size: 1.55rem; }
.copy p { margin: 0 0 1rem; font-size: 1.08rem; }
.copy p:last-child { margin-bottom: 0; }
.team-feature {
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  align-items: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.team-copy h3 { margin-top: 0.35rem; }
.team-copy > p:last-child { max-width: 30rem; margin: 0.85rem 0 0; color: var(--muted); font-size: 1.05rem; }
.team-photo { margin: 0; }
.team-gallery {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
}
.team-image-frame { min-width: 0; }
.team-image-frame img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
}
.gallery-btn {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.gallery-btn:hover, .gallery-btn:focus-visible { background: var(--ink); color: var(--paper); }
.gallery-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 0.45rem; }
.gallery-dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 1px solid var(--burgundy);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.gallery-dot.is-active { background: var(--burgundy); }
.team-photo figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.85rem; }

.cards {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--burgundy);
  padding: 1.4rem 1.3rem 1.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 0.65rem 1.4rem rgb(11 31 58 / 12%); }
.card .num {
  margin: 0;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}
.card h3 { margin-top: 0.7rem; font-size: 1.25rem; }
.card p { margin: 0.7rem 0 0; color: var(--muted); }
.service-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
  margin-top: 2.5rem;
}
.service-group {
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--paper-deep);
  border-left: 4px solid var(--burgundy);
}
.service-group h3 { font-size: 1.25rem; }
.service-group ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.service-group li { position: relative; padding: 0.55rem 0 0.55rem 1.25rem; border-top: 1px solid var(--line); }
.service-group li::before { position: absolute; left: 0; color: var(--burgundy); content: "•"; font-weight: 700; }
.why {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.why .num { margin: 0; color: var(--blush); font-size: 3rem; font-weight: 700; line-height: 1; }
.why h3 { margin-top: 0.7rem; color: var(--paper); font-size: 1.15rem; }
.why p { margin: 0.45rem 0 0; color: var(--blush); font-size: 0.95rem; }

.contact-list { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.contact-list li { margin-top: 1.15rem; }
.contact-list a { color: var(--ink); font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.contact-list a:hover { color: var(--burgundy); }
.appointment-checklist {
  display: grid;
  grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.2fr);
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.appointment-checklist h3 { font-size: 1.4rem; }
.checklist-note { margin: 0.5rem 0 0; color: var(--muted); }
.appointment-checklist ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8rem 1.2rem; list-style: none; margin: 0; padding: 0; }
.appointment-checklist li { position: relative; padding-left: 1.4rem; }
.appointment-checklist li::before { position: absolute; left: 0; color: var(--burgundy); content: "✓"; font-weight: 700; }
.contact-actions { margin: 1.5rem 0 0; }
.contact-map { margin-top: 2.5rem; }
.contact-map h3 { margin-bottom: 0.8rem; }
.map-frame {
  display: block;
  width: 100%;
  min-height: 18rem;
  aspect-ratio: 16 / 7;
  border: 1px solid var(--line);
}
.intro { max-width: 34rem; color: var(--muted); }

form, .notice, .panel {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.5rem;
}
input, textarea {
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--burgundy); border-color: var(--burgundy); }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.notice { border-top: 4px solid var(--burgundy); }
.notice.error { border-top-color: var(--burgundy); }
.notice p { margin: 0.4rem 0 0; color: var(--muted); }

.site-footer {
  background: var(--ink-deep);
  color: var(--paper);
  text-align: center;
  padding: 2.6rem 1rem 2.2rem;
}
.footer-name {
  margin: 0;
  font-family: var(--script);
  font-size: 3.2rem;
  line-height: 0.9;
}
.footer-tag {
  margin: 0.7rem 0 0;
  color: var(--blush);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.fine { max-width: 34rem; margin: 0.45rem auto 0; color: var(--blush); font-size: 0.82rem; }
.credit a { color: var(--paper); font-weight: 700; text-decoration-color: var(--burgundy); text-underline-offset: 0.2em; }
.credit a:hover { color: var(--blush); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(1rem); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-grid > *, .heading, .card, .why article, .contact-grid > *, .contact-map {
  animation: rise-in 650ms backwards;
}
.hero-grid > *:nth-child(2), .card:nth-child(3n + 2), .why article:nth-child(even) {
  animation-delay: 120ms;
}
.card:nth-child(3n) { animation-delay: 220ms; }

.warn {
  background: #fff4f4;
  border: 1px solid var(--burgundy);
  color: var(--ink);
  padding: 0.8rem 1rem;
  margin: 1rem 0;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.3fr 0.7fr; }
  .about-grid { grid-template-columns: 16rem 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 959px) {
  .cards, .why { grid-template-columns: 1fr 1fr; }
  .appointment-checklist { grid-template-columns: 1fr; }
  .brand-name { font-size: 2.7rem; }
  h1 { font-size: 2.8rem; }
  .nav-btn {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--line);
    padding: 0 0.65rem;
  }
  .nav-btn span {
    display: block;
    height: 2px;
    background: var(--ink);
  }
  .nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 0.4rem 1rem 0.8rem;
  }
  .nav a { display: block; padding: 0.8rem 0; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .header-row { position: relative; }
}

@media (max-width: 640px) {
  .cards, .service-groups, .why { grid-template-columns: 1fr; }
  .team-feature { grid-template-columns: 1fr; gap: 1.4rem; }
  .appointment-checklist ul { grid-template-columns: 1fr; }
  .hero-grid { padding: 3rem 0; }
  .section { padding: 3.2rem 0; }
  .brand-name { font-size: 2.35rem; }
  h1 { font-size: 2.45rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
