/* ============================================================
   DENTAL SPOT MANILA — Main Stylesheet
   Brand: Navy #27406F | Teal #5490AC | Montserrat
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors */
  --navy:         #27406F;
  --navy-dark:    #1B2E52;
  --navy-deeper:  #131F38;
  --navy-mid:     #334E85;
  --teal:         #5490AC;
  --teal-light:   #7AAFC7;
  --teal-pale:    #E3EEF5;

  /* Neutrals */
  --white:        #FFFFFF;
  --off-white:    #F5F8FC;
  --gray-100:     #EDF1F7;
  --gray-200:     #D8E0EC;
  --gray-400:     #8FA3BC;
  --gray-600:     #4E627A;
  --gray-800:     #1A2B45;

  /* Typography */
  --font:         'Montserrat', sans-serif;

  /* Spacing */
  --radius:       12px;
  --radius-lg:    20px;
  --radius-xl:    28px;

  /* Shadows */
  --shadow-sm:    0 2px 10px rgba(39,64,111,.07);
  --shadow-md:    0 8px 28px rgba(39,64,111,.12);
  --shadow-lg:    0 20px 56px rgba(39,64,111,.18);
  --shadow-navy:  0 8px 32px rgba(27,46,82,.35);

  /* Transitions */
  --t:            0.25s ease;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-navy);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 36px; font-size: 0.95rem; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  padding: 0;
  background: rgba(19,31,56,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background var(--t), border-color var(--t);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.logo-wordmark {
  font-family: var(--font);
  font-size: 1.2rem;
  line-height: 1;
  color: var(--white);
}
.logo-dental { font-weight: 800; letter-spacing: -0.01em; }
.logo-spot   { font-weight: 300; letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.83rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  transition: color var(--t);
}
.nav-links a:hover { color: var(--white); }

.nav-book {
  margin-left: 8px;
  padding: 10px 22px;
  font-size: 0.82rem !important;
  text-transform: none !important;
  letter-spacing: 0.02em !important;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--t);
}

/* ---------- Section Helpers ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy-deeper); }

.section-label {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.light-label { background: rgba(84,144,172,0.2); color: var(--teal-light); }

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.light-title { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 52px;
}
.light-desc { color: rgba(255,255,255,0.6); }

.section-header.center { text-align: center; }
.section-header.center .section-desc { margin-inline: auto; }
.center { text-align: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Full-bleed slideshow sits behind everything */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Cinematic overlay — no split, pure gradient */
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    /* soft top vignette */
    linear-gradient(to bottom, rgba(8,16,32,0.35) 0%, transparent 18%),
    /* soft bottom vignette */
    linear-gradient(to top,   rgba(8,16,32,0.45) 0%, transparent 22%),
    /* main left-to-right: nearly opaque on left for text, fades naturally right */
    linear-gradient(
      to right,
      rgba(10,22,48,0.97) 0%,
      rgba(11,24,52,0.94) 22%,
      rgba(12,26,56,0.78) 40%,
      rgba(13,28,58,0.45) 58%,
      rgba(13,28,58,0.14) 76%,
      transparent 92%
    );
}

/* Subtle diagonal stripe on the dark area for texture depth */
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.013) 40px,
    rgba(255,255,255,0.013) 41px
  );
  pointer-events: none;
}

/* Left content panel — floats over the overlay */
.hero-left {
  position: relative;
  z-index: 2;
  width: 54%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 120px 64px 80px 48px;
}

.hero-content {
  max-width: 520px;
  width: 100%;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-title-accent { color: var(--teal-light); display: block; }

.hero-sub {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.58);
  line-height: 1.78;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.79rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}
.trust-item i { color: var(--teal-light); font-size: 0.85rem; }
.trust-divider { width: 1px; height: 14px; background: rgba(255,255,255,0.15); }

/* Google rating in trust bar */
.trust-rating { text-decoration: none; transition: opacity var(--t); }
.trust-rating:hover { opacity: 0.8; }
.trust-g-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); color: #4285F4;
  font-size: 0.68rem; font-weight: 900; flex-shrink: 0;
}
.trust-stars { display: inline-flex; gap: 1px; color: #FBBC04; font-size: 0.65rem; }
.trust-stars i { color: #FBBC04; }
.trust-rating span:last-child { color: rgba(255,255,255,0.5); }
.trust-rating strong { color: var(--white); font-weight: 700; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-fade 25s ease-in-out infinite;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-kenburns 25s ease-in-out infinite;
  will-change: transform;
}

@keyframes hero-fade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  16%  { opacity: 1; }
  20%  { opacity: 0; }
  100% { opacity: 0; }
}
@keyframes hero-kenburns {
  0%   { transform: scale(1.0) translate(0%, 0%); }
  100% { transform: scale(1.09) translate(-1.5%, -1%); }
}

/* Google floating badge on photo */
.hero-google-badge {
  position: absolute;
  bottom: 40px;
  right: 36px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  z-index: 3;
  transition: transform var(--t), box-shadow var(--t);
}
.hero-google-badge:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(0,0,0,0.25); }

.hgb-g {
  width: 32px; height: 32px; border-radius: 50%;
  background: #4285F4; color: var(--white);
  font-size: 0.95rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hgb-stars { display: flex; gap: 2px; color: #FBBC04; font-size: 0.7rem; margin-bottom: 2px; }
.hgb-text { font-size: 0.73rem; color: var(--gray-600); font-weight: 500; white-space: nowrap; }
.hgb-text strong { color: var(--gray-800); font-weight: 800; }

/* Slide indicator dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  right: 36px;
  display: flex;
  gap: 7px;
  z-index: 3;
}
.hero-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all 0.4s ease;
}
/* dots animated via JS — .active added by main.js */
.hero-dot.active { background: var(--white); width: 20px; border-radius: 3px; }

.hero-scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.28);
  font-size: 0.78rem;
  animation: bounce 2.2s ease-in-out infinite;
  z-index: 3;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}
.photo-main {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
}
.photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-main:hover img { transform: scale(1.04); }

.photo-secondary {
  border-radius: var(--radius);
  overflow: hidden;
  height: 180px;
}
.photo-secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-secondary:hover img { transform: scale(1.04); }

.about-body {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: 400;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin: 36px 0;
  padding: 28px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.stat-block { display: flex; flex-direction: column; gap: 4px; }
.stat-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat-desc {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Services — Snap-Scroll Carousel ---------- */
.services-header {
  padding-top: 80px;
  padding-bottom: 48px;
}

/* Outer track: fade masks on edges, hidden overflow */
.svc-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 40px 40px;
  /* Subtle fade masks so cards dissolve in/out at the edges */
  -webkit-mask: linear-gradient(to right, transparent 0%, black 5%, black 92%, transparent 100%);
          mask: linear-gradient(to right, transparent 0%, black 5%, black 92%, transparent 100%);
}
.svc-grid::-webkit-scrollbar { display: none; }

/* Individual card */
.svc-card {
  position: relative;
  flex: 0 0 300px;
  height: 440px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  scroll-snap-align: start;
  cursor: default;
  background: linear-gradient(150deg, var(--accent, #1D4580) 0%, #080F1E 100%);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.svc-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 28px 56px rgba(0,0,0,0.45);
  z-index: 1;
}
/* Wide cards (General + Pediatric) are a bit wider to differentiate */
.svc-card--wide { flex: 0 0 380px; }

/* Photo background */
.svc-card-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.38;
  transition: opacity 0.5s ease, transform 0.6s ease;
}
.svc-card:hover .svc-card-img {
  opacity: 0.55;
  transform: scale(1.06);
}

/* Gradient overlay — two-part: top tint + heavy bottom for text legibility */
.svc-card-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,16,32,0.35) 0%, transparent 38%),
    linear-gradient(to top,    rgba(4,10,22,0.97) 0%, rgba(4,10,22,0.55) 45%, transparent 75%);
  z-index: 1;
  transition: background 0.4s ease;
}
.svc-card:hover .svc-card-overlay {
  background:
    linear-gradient(to bottom, rgba(8,16,32,0.45) 0%, transparent 35%),
    linear-gradient(to top,    rgba(4,10,22,0.99) 0%, rgba(4,10,22,0.65) 48%, transparent 78%);
}

/* Content */
.svc-card-body {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 26px 30px;
}

.svc-card-icon {
  font-size: 1.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
  transition: color 0.3s ease, transform 0.35s ease;
}
.svc-card:hover .svc-card-icon { color: var(--teal-light); transform: translateY(-5px); }

.svc-card-body h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 0;
  transition: margin-bottom 0.35s ease;
}
.svc-card:hover .svc-card-body h3 { margin-bottom: 14px; }

.svc-card-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: max-height 0.4s ease, opacity 0.32s ease 0.05s, transform 0.35s ease;
}
.svc-card:hover .svc-card-list {
  max-height: 220px;
  opacity: 1;
  transform: none;
}
.svc-card-list li {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.svc-card-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal-light);
}

/* Nav arrows for desktop */
.svc-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding-bottom: 16px;
}
.svc-nav-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
  backdrop-filter: blur(6px);
}
.svc-nav-btn:hover { background: rgba(255,255,255,0.14); color: var(--white); border-color: rgba(255,255,255,0.4); }

.services-footer { padding: 32px 0 64px; }

/* ---------- Testimonials ---------- */
.reviews-rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 12px 24px;
  margin-bottom: 52px;
}
.rrs-score {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy-dark);
  letter-spacing: -0.04em;
  line-height: 1;
}
.rrs-stars {
  display: flex;
  gap: 3px;
  color: #FBBC04;
  font-size: 0.9rem;
  margin-bottom: 3px;
}
.rrs-right p {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.03em;
  text-align: left;
}

/* Marquee layout */
.reviews-marquee-wrap {
  overflow: hidden;
  -webkit-mask: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.reviews-track {
  display: flex;
  width: max-content;
  gap: 16px;
}
.track-left  { animation: marquee-left  38s linear infinite; }
.track-right { animation: marquee-right 32s linear infinite; }

.reviews-track:hover { animation-play-state: paused; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}

.reviews-strip {
  display: flex;
  gap: 16px;
}

.review-card {
  width: 340px;
  flex-shrink: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow var(--t), border-color var(--t);
  cursor: default;
}
.review-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-100);
}

.review-quote-mark {
  font-size: 3.5rem;
  line-height: 0.6;
  color: var(--teal-pale);
  font-family: Georgia, serif;
  font-weight: 900;
  user-select: none;
}

.review-text {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.75;
  font-weight: 400;
  font-style: normal;
  flex: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
  margin-top: auto;
}

.reviewer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviewer-info { flex: 1; }
.reviewer-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 3px;
}
.review-stars {
  display: flex;
  gap: 2px;
  color: #FBBC04;
  font-size: 0.65rem;
}

.review-g {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #4285F4;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.reviews-cta { margin-top: 8px; }
.btn-g-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4285F4;
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
}

/* ---------- Hours ---------- */
.hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: stretch;
}

.hours-table {
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--off-white);
  border: 1px solid var(--gray-200);
}
.hours-row.open { background: var(--off-white); }
.hours-row.appt { background: #FFF8EC; border-color: #FFE0A0; }

.hours-day {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-dark);
}
.hours-time {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}
.appt-tag {
  color: #B07A00;
  display: flex;
  align-items: center;
  gap: 6px;
}

.location-block {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loc-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--gray-600);
  font-weight: 500;
}
.loc-row i { color: var(--teal); margin-top: 3px; width: 16px; flex-shrink: 0; }
.loc-row a { color: var(--navy); font-weight: 700; }
.loc-row a:hover { text-decoration: underline; }

.hours-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hours-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-md);
}
.hours-map iframe { height: 100%; min-height: 400px; }

/* ---------- Contact ---------- */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin-inline: auto;
}

.contact-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--t);
}
.contact-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-4px);
}
.cta-card {
  background: rgba(84,144,172,0.15);
  border-color: rgba(84,144,172,0.3);
}

.cc-icon {
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin: 0 auto 18px;
}
.accent-icon { background: rgba(84,144,172,0.25); color: var(--teal-light); }

.contact-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-card a {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  transition: color var(--t);
}
.contact-card a:hover { color: var(--white); }

.social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}
.social-link-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--t);
}
.social-link-btn:hover {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  transform: translateY(-3px);
  border-color: rgba(255,255,255,0.35);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-deeper);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 52px 0 36px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
}
.footer-wordmark {
  font-family: var(--font);
  font-size: 1.15rem;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  font-style: italic;
  font-weight: 400;
}
.footer-links {
  display: flex;
  gap: 28px;
  margin: 8px 0;
}
.footer-links a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  transition: color var(--t);
}
.footer-links a:hover { color: var(--white); }
.footer-address {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
  margin-top: 8px;
}

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Before & After Gallery ---------- */
.gallery { background: var(--off-white); }
.gallery .section-desc { margin-bottom: 48px; }

/* Dedicated gallery page */
.gallery-page-main {
  padding: 60px 0 80px;
  background: var(--off-white);
  min-height: 60vh;
}
.gallery-cta {
  text-align: center;
  padding: 56px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.gallery-cta p {
  font-size: 1.05rem;
  color: var(--gray-600);
  font-weight: 500;
}
.nav-active { color: var(--white) !important; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-200);
  border: none;
  padding: 0;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
}
.gallery-hover {
  position: absolute;
  inset: 0;
  background: rgba(27,46,82,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: var(--white);
  font-size: 1.6rem;
  pointer-events: none;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover .gallery-hover { opacity: 1; }
.gallery-item:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,16,32,0.94);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lb-img {
  max-width: min(90vw, 760px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  display: block;
  transition: opacity 0.15s ease;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1;
}
.lb-close:hover { background: rgba(255,255,255,0.22); }

.lb-prev, .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1;
}
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.22); }

/* Facebook Messenger floating button */
.messenger-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #006AFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,106,255,0.45);
  color: var(--white);
  font-size: 1.5rem;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.messenger-float:hover {
  transform: translateY(-4px) scale(1.07);
  box-shadow: 0 14px 36px rgba(0,106,255,0.55);
  background: #0052CC;
}

/* ---------- Responsive ---------- */
/* Hero centers on tablets and smaller — 1080px catches portrait iPad Pro */
@media (max-width: 1080px) {
  .hero-left {
    width: 100%;
    justify-content: center;
    padding: 130px 40px 80px;
    text-align: center;
  }
  .hero-actions { justify-content: center; }
  .hero-trust  { justify-content: center; }
  .hero-scroll-hint { left: 50%; }
  .hero-overlay {
    background:
      linear-gradient(to bottom, rgba(8,16,32,0.45) 0%, transparent 18%),
      linear-gradient(to top,   rgba(8,16,32,0.55) 0%, transparent 22%),
      rgba(10,22,48,0.72);
  }
}

@media (max-width: 960px) {
  .svc-card { flex: 0 0 260px; height: 380px; }
  .svc-card--wide { flex: 0 0 320px; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hours-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-cards { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 720px) {
  .reviews-rating-summary { flex-direction: column; gap: 8px; text-align: center; border-radius: var(--radius-lg); }
  .rrs-right p { text-align: center; }
  .review-card { width: 280px; }

  .svc-grid { padding: 0 20px 32px; }
  .svc-card { flex: 0 0 80vw; height: 380px; }
  .svc-card--wide { flex: 0 0 88vw; }
  /* Always show list on mobile (no hover on touch) */
  .svc-card-list { max-height: 220px; opacity: 1; transform: none; }
  .svc-card-body h3 { margin-bottom: 12px; }
  .svc-nav { display: none; }

  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Use absolute (not fixed) so it escapes the backdrop-filter stacking context */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;        /* flush below the navbar bar */
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    background: rgba(13,21,42,0.98);
    justify-content: center;
    align-items: center;
    gap: 36px;
    z-index: 999;
  }
  .nav-links.open a {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
  }
  .nav-links.open .nav-book {
    margin-top: 12px;
    font-size: 0.95rem !important;
    text-transform: none !important;
    letter-spacing: 0.02em !important;
    padding: 14px 36px;
  }

  .section { padding: 68px 0; }
  .hero-photo { height: 280px; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
  .hours-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-main, .photo-secondary { height: 220px; }
  .photo-secondary:last-child { display: none; }
  .contact-cards { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

/* Touch devices (tablets, phones) — always show service list, no hover needed */
@media (hover: none) {
  .svc-card-list { max-height: 220px; opacity: 1; transform: none; }
  .svc-card-body h3 { margin-bottom: 12px; }
  .svc-card-icon { color: var(--teal-light); }
}
