:root {
  --primary: #6b8f71;
  --primary-dark: #435c48;
  --accent: #d97757;
  --accent-dark: #b85f42;
  --cream: #faf6ef;
  --white: #ffffff;
  --text: #3a3833;
  --muted: #837d72;
  --border: #e6ddd0;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--cream);
}

h1, h2, h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.top-bar {
  background: var(--primary-dark);
  color: var(--white);
  font-size: 0.9rem;
}

.top-bar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  flex-wrap: wrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 246, 239, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(67, 92, 72, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 50%;
}

.site-nav {
  display: flex;
  gap: 1.4rem;
  font-weight: 500;
}

.site-nav a {
  position: relative;
  padding-bottom: 2px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--accent-dark);
}

.topbar-call {
  font-weight: 700;
}

.nav-call {
  padding: 0.7rem 1.3rem;
  font-size: 0.95rem;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

.hero {
  padding: 4.5rem 0 4rem;
  background:
    radial-gradient(circle at 85% 15%, rgba(217, 119, 87, 0.12), transparent 45%),
    radial-gradient(circle at 5% 90%, rgba(107, 143, 113, 0.14), transparent 50%),
    var(--cream);
  overflow: hidden;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--accent-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.hero h1,
.section h2 {
  margin: 0 0 1.1rem;
  line-height: 1.2;
  color: var(--primary-dark);
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
}

.hero__lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 650px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 12px 25px rgba(217, 119, 87, 0.28);
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-dark);
  border: 1px solid var(--border);
}

.btn-lg {
  padding: 1.15rem 2rem;
  font-size: 1.1rem;
}

.btn-pulse {
  animation: btn-pulse-ring 2.2s infinite;
}

@keyframes btn-pulse-ring {
  0% {
    box-shadow: 0 12px 25px rgba(217, 119, 87, 0.28), 0 0 0 0 rgba(217, 119, 87, 0.45);
  }
  70% {
    box-shadow: 0 12px 25px rgba(217, 119, 87, 0.28), 0 0 0 14px rgba(217, 119, 87, 0);
  }
  100% {
    box-shadow: 0 12px 25px rgba(217, 119, 87, 0.28), 0 0 0 0 rgba(217, 119, 87, 0);
  }
}

.hero__trust {
  margin-top: 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.floating-actions {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  box-shadow: 0 14px 30px rgba(67, 92, 72, 0.25);
}

.floating-call {
  background: var(--accent);
  box-shadow: 0 14px 30px rgba(217, 119, 87, 0.35);
  animation: btn-pulse-ring 2.2s infinite;
}

.floating-whatsapp {
  background: var(--whatsapp);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
}

.mobile-call-bar {
  display: none;
}

.stats-strip {
  background: var(--primary-dark);
  padding: 2.6rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.stat-num {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

.testimonial-grid {
  align-items: stretch;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  overflow: hidden;
  border-top: 3px solid var(--accent);
  padding-top: 1.9rem;
}

.testimonial-card .quote-mark {
  position: absolute;
  top: -0.6rem;
  right: 1rem;
  font-family: 'Fraunces', serif;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(107, 143, 113, 0.12);
  pointer-events: none;
}

.stars {
  color: var(--accent);
  letter-spacing: 0.15em;
  font-size: 0.95rem;
}

.testimonial-card p {
  position: relative;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.testimonial-author strong {
  display: block;
  font-size: 0.92rem;
}

.testimonial-author span {
  font-size: 0.82rem;
  color: var(--muted);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-note {
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.info-card,
.service-card,
.testimonial-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.info-card:hover,
.service-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(67, 92, 72, 0.14);
}

.gallery-item {
  appearance: none;
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  border-radius: 1.2rem;
  box-shadow: 0 18px 40px rgba(67, 92, 72, 0.1);
}

.gallery-item img {
  transition: transform 0.35s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.03);
}

.gallery-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.centers-grid li {
  transition: background 0.2s ease, color 0.2s ease;
}

.centers-grid li:hover {
  background: var(--primary);
  color: var(--white);
}

.hero__card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--white);
  border: 8px solid var(--white);
  border-radius: 1.25rem;
  box-shadow: 0 24px 50px rgba(67, 92, 72, 0.18);
}

.hero__card .blob-shape {
  display: none;
}

.hero__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.team-photo {
  max-width: none;
}

.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--white);
}

.section-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.2rem;
}

.info-card,
.contact-card,
.service-card,
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 1.7rem;
  box-shadow: 0 14px 32px rgba(67, 92, 72, 0.06);
}

.section-alt .info-card,
.section-alt .service-card,
.section-alt .testimonial-card {
  background: var(--cream);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.2rem;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(107, 143, 113, 0.15);
  font-size: 1.4rem;
  margin-bottom: 0.9rem;
}

.centers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.7rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.centers-grid li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  font-weight: 500;
  text-align: center;
  color: var(--primary-dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  margin-top: 1.2rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 1.5rem;
  background: rgba(25, 34, 27, 0.9);
}

.gallery-lightbox.is-open {
  display: grid;
}

.gallery-lightbox img {
  max-width: min(100%, 1050px);
  max-height: calc(100vh - 3rem);
  object-fit: contain;
  border-radius: 0.75rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--primary-dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li + li {
  margin-top: 0.6rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(107, 143, 113, 0.12), rgba(217, 119, 87, 0.1));
}

.site-footer {
  background: var(--primary-dark);
  color: var(--white);
  padding: 2.2rem 0;
}

.site-footer h3 {
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .site-header {
    box-shadow: 0 2px 14px rgba(67, 92, 72, 0.1);
  }

  .nav-call {
    display: none;
  }

  .hero__content,
  .section-grid,
  .contact-grid,
  .card-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 1rem;
    right: 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    padding: 0.45rem;
    display: none;
    flex-direction: column;
    min-width: 0;
    box-shadow: 0 18px 35px rgba(67, 92, 72, 0.16);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 0.85rem;
    border-radius: 0.7rem;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: rgba(107, 143, 113, 0.12);
  }

  .nav-toggle {
    display: inline-block;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 1.25rem, 1120px);
  }

  .site-header {
    background: var(--cream);
    box-shadow: 0 3px 18px rgba(67, 92, 72, 0.11);
  }

  .top-bar {
    background: linear-gradient(100deg, #385640, var(--primary-dark));
  }

  .top-bar__inner {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 42px;
    padding: 0.35rem 0;
    font-size: 0.92rem;
  }

  .top-bar__inner > a:not(.topbar-call) {
    display: none;
  }

  .topbar-call {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
  }

  .topbar-call::after {
    content: 'Free consultation';
    padding-left: 0.55rem;
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.85;
  }

  .nav-wrap {
    min-height: 72px;
    padding: 0.65rem 0;
    gap: 0.55rem;
  }

  .brand {
    gap: 0.55rem;
    min-width: 0;
    font-size: 0.98rem;
  }

  .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand img {
    width: 46px;
    height: 46px;
    padding: 2px;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(67, 92, 72, 0.12);
  }

  .site-nav {
    top: calc(100% + 0.25rem);
    left: 0.625rem;
    right: 0.625rem;
  }

  .nav-toggle {
    display: inline-block;
    min-width: 0;
    min-height: 0;
    padding: 0.3rem;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 2;
    min-width: 58px;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    border-radius: 0.75rem;
    box-shadow: none;
    font-size: 0;
  }

  .nav-call::after {
    content: 'Call';
    font-size: 0.78rem;
    letter-spacing: 0.02em;
  }

  .nav-toggle {
    order: 3;
  }

  .top-bar__inner {
    font-size: 0.85rem;
  }

  .hero {
    padding: 2.25rem 0 2.75rem;
  }

  .hero__content {
    gap: 2rem;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__card {
    border-width: 5px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-grid,
  .contact-grid {
    gap: 1.3rem;
  }

  .info-card,
  .contact-card,
  .service-card,
  .testimonial-card {
    padding: 1.25rem;
  }

  .stats-strip {
    padding: 2rem 0;
  }

  .stats-grid {
    gap: 1.2rem 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .gallery-grid img {
    height: 145px;
  }

  .footer-grid {
    gap: 0.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  main {
    padding-bottom: 4.5rem;
  }

  .floating-actions {
    display: none;
  }

  .mobile-call-bar {
    display: flex;
    gap: 0.6rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 0.7rem 1rem;
    background: var(--white);
    box-shadow: 0 -8px 24px rgba(67, 92, 72, 0.15);
  }

  .mobile-call-bar .btn {
    flex: 1;
    text-align: center;
    padding: 0.85rem 0.6rem;
    font-size: 0.9rem;
  }
}
