/* ============================================================
   PetSaúde Veterinária — Main Stylesheet
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --color-primary:        #2B7A4B;
  --color-primary-dark:   #1E5C37;
  --color-primary-light:  #3DA363;
  --color-primary-tint:   #E8F5EE;
  --color-accent:         #4FC3F7;
  --color-accent-dark:    #0288D1;
  --color-accent-light:   #B3E5FC;
  --color-accent-tint:    #E1F5FE;

  /* Neutrals */
  --color-bg:             #F8FFFE;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F0F7F4;
  --color-border:         #DDE9E4;
  --color-text:           #1A2E25;
  --color-text-muted:     #52756A;
  --color-text-light:     #8FA89C;

  /* Hero */
  --color-hero-1:         #0A1F14;
  --color-hero-2:         #0D2E1A;
  --color-hero-3:         #0A2540;

  /* Semantic */
  --color-success:        #22C55E;
  --color-error:          #EF4444;
  --color-warning:        #F59E0B;

  /* Typography */
  --font:                 'Poppins', sans-serif;
  --text-xs:              0.75rem;
  --text-sm:              0.875rem;
  --text-base:            1rem;
  --text-md:              1.125rem;
  --text-lg:              1.25rem;
  --text-xl:              1.5rem;
  --text-2xl:             2rem;
  --text-3xl:             2.75rem;
  --text-4xl:             3.5rem;
  --fw-light:             300;
  --fw-normal:            400;
  --fw-medium:            500;
  --fw-semi:              600;
  --fw-bold:              700;
  --fw-extra:             800;
  --lh-tight:             1.2;
  --lh-normal:            1.6;
  --lh-relaxed:           1.8;

  /* Spacing */
  --sp-1:   0.25rem;
  --sp-2:   0.5rem;
  --sp-3:   0.75rem;
  --sp-4:   1rem;
  --sp-5:   1.25rem;
  --sp-6:   1.5rem;
  --sp-8:   2rem;
  --sp-10:  2.5rem;
  --sp-12:  3rem;
  --sp-16:  4rem;
  --sp-20:  5rem;
  --sp-24:  6rem;

  /* Layout */
  --container-max:    1200px;
  --container-px:     1.5rem;
  --header-h:         72px;

  /* Borders */
  --r-sm:   0.375rem;
  --r-md:   0.75rem;
  --r-lg:   1.25rem;
  --r-xl:   2rem;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(43,122,75,0.08), 0 1px 2px rgba(43,122,75,0.05);
  --shadow-md:   0 4px 16px rgba(43,122,75,0.10), 0 2px 6px rgba(43,122,75,0.06);
  --shadow-lg:   0 10px 40px rgba(43,122,75,0.14), 0 4px 12px rgba(43,122,75,0.08);
  --shadow-card: 0 2px 8px rgba(43,122,75,0.08), 0 1px 3px rgba(43,122,75,0.05);
  --shadow-focus: 0 0 0 4px rgba(43,122,75,0.18);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   400ms ease;

  /* Z-index */
  --z-base:     1;
  --z-above:    10;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-lightbox: 400;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

address {
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
}


/* ============================================================
   3. UTILITIES
   ============================================================ */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--sp-20);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--sp-12);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-4);
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semi);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.section-badge--light {
  background: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.3);
}

.section-title {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  font-weight: var(--fw-extra);
  color: var(--color-text);
  margin-bottom: var(--sp-4);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.text-accent { color: var(--color-accent); }

.required { color: var(--color-error); }

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


/* ============================================================
   4. BUTTON SYSTEM
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--r-full);
  font-weight: var(--fw-semi);
  font-size: var(--text-base);
  line-height: 1;
  transition: all var(--t-base);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--t-fast);
}

.btn:hover::after { background: rgba(255,255,255,0.12); }
.btn:active::after { background: rgba(0,0,0,0.08); }
.btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(43,122,75,0.4);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43,122,75,0.45);
}

.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn--glass {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

.btn--glass:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

.btn--lg {
  padding: var(--sp-4) var(--sp-8);
  font-size: var(--text-md);
}

.btn--sm {
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--text-sm);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.25);
}

.btn--sm:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn--full { width: 100%; }

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
}


/* ============================================================
   5. PRELOADER
   ============================================================ */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-hero-2);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__paw {
  font-size: 3rem;
  animation: preloaderPulse 0.8s ease-in-out infinite alternate;
}

@keyframes preloaderPulse {
  from { transform: scale(0.8); opacity: 0.6; }
  to   { transform: scale(1.2); opacity: 1; }
}


/* ============================================================
   6. HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}

.header.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--sp-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: #fff;
  transition: color var(--t-base);
  flex-shrink: 0;
  white-space: nowrap;
}

.header.scrolled .nav__logo { color: var(--color-text); }

.logo-paw { font-size: 1.4rem; }

.logo-accent {
  color: var(--color-accent);
  transition: color var(--t-base);
}

.header.scrolled .logo-accent { color: var(--color-primary); }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  flex: 1;
  justify-content: center;
}

.nav__link {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.85);
  border-radius: var(--r-md);
  transition: color var(--t-base), background var(--t-base);
  position: relative;
  white-space: nowrap;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: var(--sp-3);
  right: var(--sp-3);
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
  border-radius: var(--r-full);
}

.nav__link:hover { color: #fff; }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }
.nav__link.active { color: #fff; }

.header.scrolled .nav__link { color: var(--color-text-muted); }
.header.scrolled .nav__link:hover { color: var(--color-primary); background: var(--color-primary-tint); }
.header.scrolled .nav__link.active { color: var(--color-primary); }
.header.scrolled .nav__link::after { background: var(--color-primary); }

.nav__cta { flex-shrink: 0; }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  flex-shrink: 0;
  z-index: 10;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: var(--r-full);
  transition: transform var(--t-base), opacity var(--t-base), background var(--t-base);
  transform-origin: center;
}

.header.scrolled .nav__hamburger span { background: var(--color-text); }

.nav__hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


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

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/hero.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 31, 20, 0.96) 0%,
    rgba(10, 31, 20, 0.90) 35%,
    rgba(10, 31, 20, 0.55) 60%,
    rgba(10, 31, 20, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: var(--z-base);
  padding-top: calc(var(--header-h) + var(--sp-8));
  padding-bottom: var(--sp-16);
  width: 100%;
}

.hero__text-wrap {
  max-width: 520px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-accent-light);
  backdrop-filter: blur(8px);
  margin-bottom: var(--sp-6);
  animation: fadeInDown 0.7s ease both;
}

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, var(--text-4xl));
  font-weight: var(--fw-extra);
  color: #fff;
  line-height: var(--lh-tight);
  margin-bottom: var(--sp-6);
  animation: fadeInDown 0.7s 0.1s ease both;
}

.hero__subtitle {
  font-size: var(--text-md);
  color: rgba(255,255,255,0.78);
  line-height: var(--lh-relaxed);
  max-width: 480px;
  margin-bottom: var(--sp-8);
  animation: fadeInDown 0.7s 0.2s ease both;
}

.hero__actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-bottom: var(--sp-12);
  animation: fadeInDown 0.7s 0.3s ease both;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  padding-top: var(--sp-8);
  border-top: 1px solid rgba(255,255,255,0.15);
  animation: fadeInDown 0.7s 0.4s ease both;
  flex-wrap: wrap;
}

.stat__number {
  display: block;
  font-size: var(--text-2xl);
  font-weight: var(--fw-extra);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.stat__label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.60);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: var(--fw-medium);
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.20);
  flex-shrink: 0;
}

/* Scroll indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: bounce 2s infinite;
}

.hero__scroll-indicator span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.40);
  border-radius: var(--r-full);
  position: relative;
}

.hero__scroll-indicator span::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.70);
  border-radius: var(--r-full);
  animation: scrollDot 1.5s ease infinite;
}

@keyframes scrollDot {
  0%   { top: 6px; opacity: 1; }
  100% { top: 20px; opacity: 0; }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-8px); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   8. SERVICES
   ============================================================ */
.services {
  background: var(--color-surface-2);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-6);
}

.service-card {
  background: var(--color-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-slow), box-shadow var(--t-slow), border-color var(--t-base);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-tint);
}

.service-card__icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-md);
  background: var(--color-primary-tint);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: var(--sp-5);
  transition: background var(--t-base), color var(--t-base);
}

.service-card:hover .service-card__icon {
  background: var(--color-primary);
  color: #fff;
}

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: var(--fw-semi);
  color: var(--color-text);
  margin-bottom: var(--sp-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}


/* ============================================================
   9. ABOUT
   ============================================================ */
.about {
  background: var(--color-surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-16);
  align-items: center;
}

.about__image-wrap {
  position: relative;
}

.about__blob {
  position: absolute;
  top: -40px;
  left: -40px;
  width: 420px;
  height: 420px;
  background: var(--color-primary-tint);
  border-radius: 60% 40% 70% 30% / 50% 60% 40% 50%;
  z-index: 0;
}

.about__image-frame {
  position: relative;
  z-index: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.about__image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
  display: block;
}

.about__image-frame:hover img {
  transform: scale(1.04);
}

/* Placeholder para quando a imagem ainda não foi salva */
.about__img-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--color-primary-dark) 0%, #0A2540 100%);
  z-index: 1;
}

.about__img-placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.about__img-placeholder .ph-user-circle {
  font-size: 7rem;
  color: rgba(255,255,255,0.15);
}

.placeholder-initials {
  font-size: 5rem;
  font-weight: var(--fw-extra);
  color: rgba(255,255,255,0.20);
  line-height: 1;
  letter-spacing: -4px;
  font-family: var(--font);
}

.about__badge-card {
  position: absolute;
  z-index: 2;
  bottom: var(--sp-6);
  right: calc(-1 * var(--sp-8));
  background: var(--color-surface);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border: 1px solid var(--color-border);
  min-width: 180px;
}

.about__badge-card--alt {
  bottom: auto;
  top: var(--sp-6);
  right: calc(-1 * var(--sp-6));
}

.about__badge-card i {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.about__badge-card--alt i {
  color: var(--color-warning);
}

.about__badge-card strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--color-text);
}

.about__badge-card span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.about__content { display: flex; flex-direction: column; gap: var(--sp-5); }

.about__name {
  font-size: clamp(var(--text-2xl), 3.5vw, var(--text-3xl));
  font-weight: var(--fw-extra);
  color: var(--color-text);
  line-height: 1.1;
  margin-top: calc(-1 * var(--sp-2));
}

.about__role {
  font-size: var(--text-md);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  margin-top: calc(-1 * var(--sp-3));
}

.about__bio {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
}

.about__credentials {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.about__credentials li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
}

.about__credentials i {
  color: var(--color-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}


/* ============================================================
   10. GALLERY
   ============================================================ */
.gallery {
  background: var(--color-surface-2);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: var(--sp-3);
}

.gallery__item--wide { grid-column: span 2; }
.gallery__item--tall { grid-row: span 2; }

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--color-border);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img {
  transform: scale(1.08);
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(43,122,75,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-base);
  color: #fff;
  font-size: 2rem;
}

.gallery__item:hover .gallery__overlay,
.gallery__item:focus .gallery__overlay {
  opacity: 1;
}

.gallery__item:focus {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--t-slow);
  pointer-events: none;
}

.lightbox:not([hidden]) {
  display: flex;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.92);
  cursor: pointer;
}

.lightbox__content {
  position: relative;
  z-index: 1;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 0 80px rgba(0,0,0,0.6);
  transition: opacity var(--t-base);
}

.lightbox__close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-base);
  border: 1px solid rgba(255,255,255,0.2);
}

.lightbox__close:hover { background: rgba(255,255,255,0.25); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-base);
  border: 1px solid rgba(255,255,255,0.2);
}

.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__prev { left: var(--sp-6); }
.lightbox__next { right: var(--sp-6); }

.lightbox__counter {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  background: rgba(0,0,0,0.4);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
}


/* ============================================================
   11. TESTIMONIALS
   ============================================================ */
.testimonials {
  background: var(--color-surface);
}

.testimonials__wrapper {
  overflow: hidden;
  margin-bottom: var(--sp-8);
}

.testimonials__track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 33.333%;
  padding: 0 var(--sp-3);
  box-sizing: border-box;
}

.testimonial-card__inner {
  background: var(--color-surface-2);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  border: 1px solid var(--color-border);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.testimonial-card__inner:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-card__stars {
  display: flex;
  gap: var(--sp-1);
  color: var(--color-warning);
  font-size: var(--text-md);
}

.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  flex: 1;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--color-border);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--text-sm);
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: var(--color-text);
}

.author-info span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.testimonials__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-6);
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  transition: background var(--t-base), transform var(--t-fast);
}

.carousel-btn:hover {
  background: var(--color-primary-dark);
  transform: scale(1.08);
}

.carousel-dots {
  display: flex;
  gap: var(--sp-2);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: var(--r-full);
  background: var(--color-border);
  cursor: pointer;
  transition: background var(--t-base), width var(--t-base);
  border: none;
}

.dot.active {
  background: var(--color-primary);
  width: 24px;
}


/* ============================================================
   12. SCHEDULE
   ============================================================ */
.schedule {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 60%, #0A2540 100%);
  position: relative;
  overflow: hidden;
}

.schedule__bg-shape {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.schedule__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--sp-16);
  align-items: start;
}

.schedule__info { color: #fff; }

.schedule__title {
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  font-weight: var(--fw-extra);
  color: #fff;
  margin-bottom: var(--sp-4);
  margin-top: var(--sp-2);
}

.schedule__subtitle {
  color: rgba(255,255,255,0.75);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-8);
}

.schedule__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.highlight-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}

.highlight-item__icon--accent {
  background: rgba(239,68,68,0.2);
  border-color: rgba(239,68,68,0.4);
  color: #FCA5A5;
}

.highlight-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--fw-semi);
  color: #fff;
}

.highlight-item span {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.65);
}

/* Form Card */
.schedule__form-wrap {
  background: var(--color-surface);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-lg);
}

.schedule-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form__group label {
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.form__group input,
.form__group select,
.form__group textarea {
  padding: var(--sp-3) var(--sp-4);
  border: 2px solid var(--color-border);
  border-radius: var(--r-md);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color var(--t-base), box-shadow var(--t-base);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%235A7A6A' viewBox='0 0 16 16'%3E%3Cpath d='M8 10.5L3 5.5h10L8 10.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: var(--sp-8);
  cursor: pointer;
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
}

.form__group input.error,
.form__group select.error,
.form__group textarea.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 4px rgba(239,68,68,0.12);
}

.form__group textarea {
  resize: vertical;
  min-height: 80px;
}

.form__error {
  font-size: var(--text-xs);
  color: var(--color-error);
  display: none;
  align-items: center;
  gap: var(--sp-1);
}

.form__error.visible { display: flex; }

.form__privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--sp-2);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Success State */
.form__success {
  text-align: center;
  padding: var(--sp-12) var(--sp-8);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-5);
  animation: fadeIn 0.5s ease;
}

.success-icon i {
  font-size: 4rem;
  color: var(--color-success);
}

.form__success h3 {
  font-size: var(--text-xl);
  color: var(--color-text);
}

.form__success p {
  color: var(--color-text-muted);
  max-width: 340px;
  line-height: var(--lh-relaxed);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   13. FOOTER
   ============================================================ */
.footer {
  background: var(--color-text);
}

.footer__top {
  padding-block: var(--sp-16) var(--sp-12);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.6fr;
  gap: var(--sp-8);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-lg);
  font-weight: var(--fw-bold);
  color: #fff;
  margin-bottom: var(--sp-4);
}

.footer__brand p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--sp-6);
  max-width: 260px;
}

.footer__socials {
  display: flex;
  gap: var(--sp-3);
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--t-base), color var(--t-base), transform var(--t-fast);
}

.social-link:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-3px);
}

.footer__col-title {
  font-size: var(--text-base);
  font-weight: var(--fw-semi);
  color: #fff;
  margin-bottom: var(--sp-5);
}

.footer__links li + li { margin-top: var(--sp-3); }

.footer__links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--t-base), padding-left var(--t-base);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer__links a:hover {
  color: var(--color-accent);
  padding-left: var(--sp-2);
}

.footer__contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.footer__contact-info a {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: color var(--t-base);
  line-height: var(--lh-normal);
}

.footer__contact-info a:hover { color: var(--color-accent); }

.footer__contact-info i {
  font-size: 1.1rem;
  color: var(--color-primary-light);
  flex-shrink: 0;
  margin-top: 1px;
}

.map-placeholder {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.map-placeholder i {
  font-size: 2rem;
  color: var(--color-primary-light);
}

.map-placeholder span {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: var(--lh-normal);
}

.footer__hours {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__hours p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.50);
}

.footer__hours strong { color: rgba(255,255,255,0.75); }

.footer__hours .emergency {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(252,165,165,0.85);
  margin-top: var(--sp-1);
}

.footer__hours .emergency i { color: #FCA5A5; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: var(--sp-5);
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

.footer__bottom p {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}


/* ============================================================
   14. FLOATING ELEMENTS
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-6);
  z-index: var(--z-dropdown);
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-base), transform var(--t-base), background var(--t-base);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover { background: var(--color-primary-dark); transform: translateY(-3px); }

.whatsapp-float {
  position: fixed;
  bottom: calc(var(--sp-8) + 56px + var(--sp-3));
  right: var(--sp-6);
  z-index: var(--z-dropdown);
  width: 56px;
  height: 56px;
  border-radius: var(--r-full);
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: transform var(--t-base), box-shadow var(--t-base);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

.whatsapp-float__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-text);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

.whatsapp-float__tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--color-text);
}

.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }


/* ============================================================
   15. SCROLL ANIMATIONS
   ============================================================ */
[data-animate] {
  opacity: 0;
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-right"] { transform: translateX(-50px); }
[data-animate="fade-left"]  { transform: translateX(50px); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}


/* ============================================================
   16. RESPONSIVE
   ============================================================ */

/* Tablet landscape */
@media (max-width: 1100px) {
  .about__grid {
    grid-template-columns: 1fr;
    max-width: 660px;
    margin-inline: auto;
  }

  .about__blob { display: none; }

  .about__badge-card {
    position: static;
    display: none;
  }

  .about__image-frame {
    aspect-ratio: 16/9;
    max-height: 380px;
  }

  .about__image-frame img { object-position: center 20%; }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-10) var(--sp-8);
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  :root {
    --container-px: 1.25rem;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--color-text);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: var(--sp-16) var(--sp-8);
    gap: var(--sp-2);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 9;
    box-shadow: -8px 0 40px rgba(0,0,0,0.3);
  }

  .nav__menu.is-open { transform: translateX(0); }

  .nav__link {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.75);
    padding: var(--sp-3) var(--sp-4);
    width: 100%;
  }

  .nav__link::after { bottom: 6px; left: var(--sp-4); right: var(--sp-4); }
  .nav__link:hover { color: #fff; background: rgba(255,255,255,0.08); }
  .header.scrolled .nav__link { color: rgba(255,255,255,0.75); background: none; }
  .header.scrolled .nav__link:hover { color: #fff; background: rgba(255,255,255,0.08); }
  .header.scrolled .nav__link::after { background: var(--color-accent); }

  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }

  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-row: span 1; }

  .testimonial-card { flex: 0 0 50%; }

  .schedule__grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

  .schedule__info { text-align: center; }
  .schedule__highlights { align-items: flex-start; max-width: 360px; margin-inline: auto; }
}

/* Mobile */
@media (max-width: 600px) {
  :root {
    --container-px: 1rem;
    --sp-20: 4rem;
  }

  .hero__content { max-width: 100%; }

  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(10, 31, 20, 0.92) 0%,
      rgba(10, 31, 20, 0.88) 60%,
      rgba(10, 31, 20, 0.96) 100%
    );
  }

  .hero__stats { flex-direction: column; align-items: flex-start; gap: var(--sp-4); }
  .stat__divider { display: none; }

  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .services__grid { grid-template-columns: 1fr; }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }

  .gallery__item--wide { grid-column: span 2; }

  .testimonial-card { flex: 0 0 100%; }

  .form__row { grid-template-columns: 1fr; }

  .schedule__form-wrap { padding: var(--sp-6); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); }

  .footer__bottom-inner { flex-direction: column; text-align: center; }

  .lightbox__nav { display: none; }

  .about__grid { gap: var(--sp-8); }
}

/* Very small */
@media (max-width: 380px) {
  .hero__title { font-size: 2rem; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}
