/* ============================================================
   Colonial Gardens Residences — Design Tokens & Styles
   Elegant & Upscale Assisted Living / Memory Care
   ============================================================ */

/* --- Fonts --- */
/* Instrument Serif (display) + Switzer (body) — luxury/refined */

/* --- Type Scale --- */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing (4px system) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;
}

/* --- Colonial Gardens Palette: Deep Green + Gold on Ivory --- */
:root, [data-theme="light"] {
  /* Surfaces */
  --color-bg:             #faf9f5;
  --color-surface:        #ffffff;
  --color-surface-2:      #f5f3ee;
  --color-surface-offset: #efece5;
  --color-divider:        #ddd9d0;
  --color-border:         #d0ccc3;

  /* Text */
  --color-text:           #1a2e1a;
  --color-text-muted:     #5a6b5a;
  --color-text-faint:     #9aa59a;
  --color-text-inverse:   #faf9f5;

  /* Primary — Forest Green */
  --color-primary:        #2c5530;
  --color-primary-hover:  #1e3e21;
  --color-primary-active: #152c17;
  --color-primary-light:  #e8f0e8;

  /* Accent — Warm Gold */
  --color-accent:         #b8860b;
  --color-accent-hover:   #996f09;
  --color-accent-light:   #f5ecd4;

  /* Semantic */
  --color-error:          #a12c3d;
  --color-success:        #2c5530;

  /* Shadows (warm-tinted) */
  --shadow-sm: 0 1px 2px oklch(0.2 0.02 80 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.02 80 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.02 80 / 0.12);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --color-bg:             #141a14;
  --color-surface:        #1a221a;
  --color-surface-2:      #1f281f;
  --color-surface-offset: #1c241c;
  --color-divider:        #2a352a;
  --color-border:         #354035;

  --color-text:           #d4dbd4;
  --color-text-muted:     #8a968a;
  --color-text-faint:     #5a655a;
  --color-text-inverse:   #1a2e1a;

  --color-primary:        #6aad6e;
  --color-primary-hover:  #4e9452;
  --color-primary-active: #3a7b3e;
  --color-primary-light:  #1f2e1f;

  --color-accent:         #d4a634;
  --color-accent-hover:   #e0b84a;
  --color-accent-light:   #2a2418;

  --color-error:          #d46070;
  --color-success:        #6aad6e;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #141a14;
    --color-surface:        #1a221a;
    --color-surface-2:      #1f281f;
    --color-surface-offset: #1c241c;
    --color-divider:        #2a352a;
    --color-border:         #354035;
    --color-text:           #d4dbd4;
    --color-text-muted:     #8a968a;
    --color-text-faint:     #5a655a;
    --color-text-inverse:   #1a2e1a;
    --color-primary:        #6aad6e;
    --color-primary-hover:  #4e9452;
    --color-primary-active: #3a7b3e;
    --color-primary-light:  #1f2e1f;
    --color-accent:         #d4a634;
    --color-accent-hover:   #e0b84a;
    --color-accent-light:   #2a2418;
    --color-error:          #d46070;
    --color-success:        #6aad6e;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ============================================================
   LAYOUT & COMPONENTS
   ============================================================ */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--content-default);
}

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.logo-text span {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: var(--color-text-inverse) !important;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--color-primary-hover);
  color: var(--color-text-inverse) !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}

.theme-toggle {
  padding: var(--space-2);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
}

.theme-toggle:hover { color: var(--color-text); }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 9990;
    overflow-y: auto;
    padding: var(--space-16) var(--space-6);
    box-sizing: border-box;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links li {
    text-align: center;
    width: 100%;
  }

  .nav-links a {
    font-size: var(--text-xl);
    font-family: var(--font-display);
    display: block;
    padding: var(--space-2) 0;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-close-li {
    display: block !important;
    position: absolute;
    top: 0;
    right: 0;
    width: auto !important;
  }

  .nav-close {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    font-size: 2rem;
    color: var(--color-text);
    padding: var(--space-2) var(--space-3);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 9991;
    line-height: 1;
  }

  /* Translate and theme toggle in mobile nav */
  .translate-li,
  .nav-links li:has(.theme-toggle) {
    width: auto !important;
    display: flex !important;
    justify-content: center;
  }

  .translate-li .translate-btn,
  .nav-links .theme-toggle {
    margin: 0 auto;
  }

  /* Group translate + theme toggle on one row */
  .nav-links li:has(.translate-wrap),
  .nav-links li:has(.theme-toggle) {
    display: inline-flex !important;
    width: auto !important;
    justify-content: center;
  }

  /* Nav CTA button in mobile */
  .nav-cta {
    font-size: var(--text-base) !important;
    font-family: var(--font-body) !important;
    margin-top: var(--space-2);
  }

  /* Hide WhatsApp when mobile nav is open */
  .nav-links.open ~ .whatsapp-float {
    display: none;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image img,
.hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  transition: opacity 0.6s ease;
}

.hero-video-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide fallback img when video is playing */
.hero-video + .hero-video-fallback {
  opacity: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(0.1 0.02 140 / 0.85) 0%,
    oklch(0.1 0.02 140 / 0.4) 40%,
    oklch(0.1 0.02 140 / 0.1) 70%,
    transparent 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: var(--space-16) var(--space-4) var(--space-12);
  max-width: var(--content-wide);
  margin-inline: auto;
  width: 100%;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #f5e6b8;
  margin-bottom: var(--space-4);
  font-weight: 600;
  text-shadow: 0 1px 6px oklch(0 0 0 / 0.5);
  display: inline-block;
  padding: var(--space-2) var(--space-4);
  background: oklch(0 0 0 / 0.3);
  border: 1px solid oklch(1 0 0 / 0.12);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: #faf9f5;
  max-width: 16ch;
  margin-bottom: var(--space-6);
  font-weight: 400;
}

.hero-description {
  font-size: var(--text-base);
  color: oklch(0.9 0 0 / 0.8);
  max-width: 48ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  min-height: 48px;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

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

.btn-outline {
  background: transparent;
  color: #faf9f5;
  border: 1.5px solid oklch(1 0 0 / 0.3);
}

.btn-outline:hover {
  background: oklch(1 0 0 / 0.1);
  border-color: oklch(1 0 0 / 0.5);
}

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

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

/* --- Sections --- */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
  font-weight: 500;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  margin-bottom: var(--space-4);
  font-weight: 400;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.7;
}

/* --- About / Intro --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-top: var(--space-10);
}

.about-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

/* --- Stats / Highlights --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-10) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  margin-top: var(--space-12);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-1);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

/* --- Amenities / Features --- */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-10);
}

.amenity-card {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.amenity-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.amenity-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2);
}

.amenity-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .amenities-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Testimonials --- */
.testimonial-section {
  background: var(--color-surface-2);
}

.testimonial-card {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-8) 0;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-author {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.testimonial-author strong {
  color: var(--color-text);
  font-weight: 600;
}

/* --- Full-Bleed Image --- */
.full-bleed {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
}

.full-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Services Page --- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  padding-block: clamp(var(--space-10), 6vw, var(--space-20));
}

.service-block:not(:last-child) {
  border-bottom: 1px solid var(--color-divider);
}

.service-block--reverse {
  direction: rtl;
}

.service-block--reverse > * {
  direction: ltr;
}

.service-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-tag {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.service-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-4);
}

.service-desc {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.service-features {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.service-features li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 2px;
}

@media (max-width: 768px) {
  .service-block,
  .service-block--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: var(--space-6);
  }
}

/* --- Included Amenities List --- */
.included-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.included-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.included-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .included-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  margin-top: var(--space-10);
}

.contact-info-card {
  padding: var(--space-8);
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  color: var(--color-text-inverse);
}

.contact-info-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}

.contact-detail {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.contact-detail svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  opacity: 0.7;
}

.contact-detail-text {
  font-size: var(--text-sm);
}

.contact-detail-text strong {
  display: block;
  font-size: var(--text-base);
  margin-bottom: 2px;
  opacity: 1;
}

.contact-detail-text span,
.contact-detail-text a {
  opacity: 0.8;
  color: inherit;
  text-decoration: none;
}

.contact-detail-text a:hover {
  opacity: 1;
  text-decoration: underline;
}

.contact-hours {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.15);
}

.contact-hours h4 {
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  opacity: 0.7;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  opacity: 0.8;
  padding-block: var(--space-2);
}

/* Contact Form */
.contact-form-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.contact-form-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-2);
}

.contact-form-card > p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
  min-height: 48px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: var(--space-4);
}

.form-submit .btn {
  width: 100%;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* --- Photo Gallery --- */
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

@media (max-width: 768px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item--wide {
    grid-column: span 2;
  }
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--color-primary);
  color: var(--color-text-inverse);
  text-align: center;
  padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-4);
}

.cta-banner h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
  font-weight: 400;
}

.cta-banner p {
  opacity: 0.85;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.cta-banner .btn {
  background: var(--color-accent);
  color: #fff;
}

.cta-banner .btn:hover {
  background: var(--color-accent-hover);
}

/* --- Footer --- */
.site-footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-top: var(--space-4);
  max-width: 32ch;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-4);
  letter-spacing: 0.03em;
}

.footer-col ul {
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.footer-col a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom p,
.footer-bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--color-text-muted);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Scroll Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > .fade-up:nth-child(2) { transition-delay: 0.1s; }
.stagger > .fade-up:nth-child(3) { transition-delay: 0.2s; }
.stagger > .fade-up:nth-child(4) { transition-delay: 0.3s; }

/* --- Page Hero (interior pages) --- */
.page-hero {
  padding: clamp(var(--space-16), 10vw, var(--space-24)) var(--space-4);
  padding-bottom: clamp(var(--space-8), 5vw, var(--space-12));
  background: var(--color-surface-2);
  text-align: center;
}

.page-hero .section-label {
  margin-bottom: var(--space-3);
}

.page-hero .section-title {
  margin-bottom: var(--space-4);
}

.page-hero .section-subtitle {
  margin-inline: auto;
}

/* ============================================================
   WhatsApp Floating Button
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.whatsapp-float:hover {
  transform: translateY(-3px);
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.whatsapp-tooltip {
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow:
    0 2px 8px oklch(0 0 0 / 0.08),
    0 4px 16px oklch(0 0 0 / 0.06);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}
.whatsapp-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: #25D366;
  box-shadow:
    0 4px 12px oklch(0.4 0.15 155 / 0.35),
    0 2px 4px oklch(0 0 0 / 0.1);
  flex-shrink: 0;
  transition: box-shadow 0.25s ease;
}
.whatsapp-float:hover .whatsapp-icon-btn {
  box-shadow:
    0 6px 20px oklch(0.4 0.15 155 / 0.45),
    0 2px 6px oklch(0 0 0 / 0.12);
}
.whatsapp-icon-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: var(--space-4);
    right: var(--space-4);
  }
  .whatsapp-icon-btn {
    width: 54px;
    height: 54px;
  }
  .whatsapp-icon-btn svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

/* ============================================================
   Translate Dropdown
   ============================================================ */
.translate-li {
  display: flex;
  align-items: center;
}
.translate-wrap {
  position: relative;
}
.translate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}
.translate-btn:hover {
  color: var(--color-primary);
  background: var(--color-primary-light);
}
.translate-dropdown {
  position: absolute;
  top: calc(100% + var(--space-2));
  right: 0;
  min-width: 170px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 16px oklch(0 0 0 / 0.1),
    0 1px 4px oklch(0 0 0 / 0.06);
  border: 1px solid oklch(from var(--color-text) l c h / 0.07);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1000;
}
.translate-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.translate-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: var(--space-2) var(--space-5);
  border: none;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.translate-option:hover {
  background: var(--color-primary-light);
}
.translate-option.active {
  color: var(--color-primary);
  font-weight: 600;
}

/* Hide Google Translate banner and branding */
.goog-te-banner-frame,
#goog-gt-tt, .goog-te-balloon-frame {
  display: none !important;
}
/* Hide GT toolbar but keep combo select functional for programmatic use */
body > .skiptranslate:not(#google_translate_element) {
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
}
#google_translate_element {
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
}
body { top: 0 !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
/* Prevent Google Translate <font> wrappers from intercepting clicks on buttons/links */
font[style] { pointer-events: none; }
button font, a font, .nav-toggle font, .translate-btn font, .translate-option font,
.nav-links font, .theme-toggle font { pointer-events: none !important; }
/* Ensure buttons and links remain clickable after GT translation */
button, a, .nav-toggle, .translate-btn, .translate-option, .theme-toggle,
.nav-cta, .nav-close { position: relative; z-index: 1; }
