/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

/* ===== THEME TOKENS ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f5f0;
  --bg-card: #ffffff;
  --text: #1a1a2e;
  --text-muted: #555555;
  --text-faint: #777777;
  --border: #e5e5e5;
  --border-strong: #dddddd;
  --nav-bg: #ffffff;
  --nav-text: #1a1a2e;
  --gold: #b8860b;
  --gold-dark: #9a7209;
  --gold-bright: #d4a017;
}
[data-theme="dark"] {
  --bg: #10101c;
  --bg-alt: #16162a;
  --bg-card: #1b1b31;
  --text: #e8e6f3;
  --text-muted: #a3a1bb;
  --text-faint: #83819c;
  --border: #2b2b45;
  --border-strong: #33334f;
  --nav-bg: #10101c;
  --nav-text: #e8e6f3;
}
/* Smooth color transitions when switching themes (class added after first paint).
   :where() keeps this rule's specificity low so element-specific transitions
   (e.g. scroll reveal opacity/transform) are NOT overridden. */
html:where(.theme-ready) * {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; font-weight: 700; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #b8860b;
  margin-bottom: 0.75rem;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; }
.section-header.center { text-align: center; }
.section-header.center p { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: #b8860b;
  color: #fff;
}
.btn-primary:hover {
  background: #9a7209;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(184,134,11,0.4);
}
.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-secondary:hover {
  background: #fff;
  color: #1a1a2e;
}
.btn-full { width: 100%; text-align: center; }

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  background: transparent;
}
.navbar.scrolled {
  background: var(--nav-bg);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 0.7rem 0;
}
.nav-container { display: flex; align-items: center; gap: 1rem; }
.lang-switcher { display: flex; gap: 0.25rem; margin-left: auto; }
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.lang-btn.active {
  background: #b8860b;
  border-color: #b8860b;
  color: #fff;
}

.navbar.scrolled .lang-btn {
  border-color: var(--border-strong);
  color: var(--nav-text);
}
.navbar.scrolled .lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.navbar.scrolled .lang-btn:hover {
  border-color: var(--nav-text);
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}
.navbar.scrolled .nav-logo { color: var(--nav-text); }
.nav-logo span { color: #b8860b; }
.nav-menu {
  display: flex; align-items: center; gap: 2rem;
  list-style: none;
}
.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}
.navbar.scrolled .nav-menu a { color: var(--nav-text); }
.nav-menu a:hover { color: #b8860b; }

/* Active section link (scroll-spy) — gold + underline, matching the hover style */
.nav-menu a.is-active {
  color: #b8860b !important;
  box-shadow: inset 0 -2px 0 #b8860b;
}
.btn-nav {
  background: #b8860b;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
}
.btn-nav:hover { background: #9a7209; }

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 5px;
}
.nav-toggle span {
  display: block; width: 25px; height: 2px;
  background: #fff; transition: 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar.scrolled .nav-toggle span { background: var(--nav-text); }
/* Menu open: the X must always contrast with the drawer bg (light theme → dark X, dark theme → light X) */
.nav-toggle[aria-expanded="true"] span { background: var(--nav-text); }

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}
.theme-toggle svg { width: 15px; height: 15px; }
.navbar.scrolled .theme-toggle {
  border-color: var(--border-strong);
  color: var(--nav-text);
}
.navbar.scrolled .theme-toggle:hover {
  background: var(--bg-alt);
  border-color: var(--gold);
}
/* Show the icon of the theme you'll switch TO */
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 2; /* stay above the open drawer so it works as a close (X) button */
    margin-left: auto; /* keep the hamburger at the far right on mobile */
  }
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: min(72vw, 250px); height: 100vh;
    flex-direction: column; background: var(--bg-card); padding: 5rem 2rem 2rem;
    transition: right 0.3s ease; box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    z-index: 1;
  }
  .lang-switcher { margin-right: 0.5rem; }
  .nav-menu.active { right: 0; }
  .nav-menu a { color: var(--text) !important; font-size: 1.1rem; }
  .nav-menu a.is-active { box-shadow: none; }

  /* Emoji icons for mobile drawer links only */
  .nav-menu a::before { margin-right: 0.75rem; }
  .nav-menu a[href="#home"]::before { content: "🏠"; }
  .nav-menu a[href="#about"]::before { content: "🧑‍🔧"; }
  .nav-menu a[href="#services"]::before { content: "🧱"; }
  .nav-menu a[href="#gallery"]::before { content: "📷"; }
  .nav-menu a[href="#contact"]::before { content: "💬"; }

  /* Ensure lang switcher is above nav toggle on small screens */
  .lang-switcher { position: absolute; top: 0.8rem; right: 5rem; }
  .theme-toggle { position: absolute; top: 0.8rem; right: 12.5rem; }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -100px;
  background: url('../images/web/bathroom_hero.webp') center/cover no-repeat;
  filter: blur(2px);
  animation: heroZoom 20s ease-in-out infinite;
  will-change: transform;
}
@keyframes heroZoom {
  0%   { transform: translateX(80px) scale(1); }
  50%  { transform: translateX(80px) scale(1.12); }
  100% { transform: translateX(80px) scale(1); }
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E") repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,20,0.55) 0%, rgba(10,10,20,0.35) 50%, rgba(10,10,20,0.6) 100%);
}
.hero-content {
  position: relative; z-index: 2; color: #fff; padding-top: 5rem;
  will-change: filter;
}
.hero-badge {
  display: inline-block;
  background: rgba(184,134,11,0.12); border: 1px solid rgba(184,134,11,0.4);
  padding: 0.5rem 1.5rem; border-radius: 30px; font-size: 0.85rem;
  margin-bottom: 1.5rem; letter-spacing: 2px; text-transform: uppercase;
}
.hero h1 { font-size: 4rem; margin-bottom: 1.5rem; }
.hero h1 span { color: #b8860b; }
.hero-text {
  font-size: 1.15rem; max-width: 550px; margin: 0 auto 2.5rem;
  color: rgba(255,255,255,0.85); line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Hero scroll */
.hero-scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.8rem;
  letter-spacing: 2px; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  z-index: 2;
  transition: color 0.3s ease;
}
.hero-scroll:hover { color: #b8860b; }
.scroll-icon {
  width: 24px; height: 32px;
}
.scroll-icon svg { width: 100%; height: 100%; display: block; }
.chevron {
  transform-box: fill-box;
  transform-origin: center;
  animation: chevronMove 1.6s ease-in-out infinite;
}
.chevron-2 { animation-delay: 0.2s; }
@keyframes chevronMove {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-text { font-size: 1rem; }
  .hero-content { padding-bottom: 5rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { padding: 0.7rem 1.5rem; font-size: 0.9rem; white-space: normal; }
}

/* ===== SECTIONS ===== */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }

/* Desktop: give each section the same full-viewport, vertically-centered
   treatment as the hero. The photo gallery is excluded since it is taller
   than one viewport by design. */
@media (min-width: 769px) {
  /* Section alignment is handled by a custom JS auto-align (slow magnet pull)
     so the page keeps gently drifting to the nearest section even if the
     user stops between two sections. */
  .section:not(.photo-gallery):not(.gallery-header) {
    min-height: 100vh; min-height: 100dvh;
    display: flex; align-items: center; justify-content: center;
  }
  .section:not(.photo-gallery):not(.gallery-header) > .container { width: 100%; }
}

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-content h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.about-content p { color: var(--text-muted); margin-bottom: 1rem; font-size: 1.05rem; }

.highlight {
  background: linear-gradient(180deg, transparent 60%, rgba(184,134,11,0.2) 60%);
  font-weight: 600; color: var(--text);
}

.about-stats {
  display: flex; gap: 2rem; margin-top: 2rem; padding-top: 2rem;
  border-top: 1px solid var(--border-strong);
}
.stat-item { text-align: center; }
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 800; color: #b8860b; line-height: 1;
}
.stat-label { font-size: 0.85rem; color: var(--text-faint); margin-top: 0.3rem; }

.about-visual { position: relative; }
.about-image-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 8px;
}
.about-image-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid #b8860b;
  box-shadow: 0 20px 50px rgba(26,26,46,0.25);
}
.about-badge {
  position: absolute;
  bottom: -1rem;
  left: -1rem;
  z-index: 2;
  background: rgba(135,206,235,0.28);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
  color: #1a1a2e;
  padding: 1rem 1.4rem;
  border-radius: 6px;
  border-left: 4px solid #b8860b;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-badge-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(184,134,11,0.15);
  border: 1px solid rgba(184,134,11,0.4);
  color: #b8860b;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.4rem;
}
.about-badge-text {
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #1a1a2e;
  font-weight: 700;
  margin-top: 0.3rem;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { flex-direction: column; gap: 1.5rem; }
}

/* ===== SERVICES ===== */
/* "Night workshop" navy backdrop so the frosted glass cards pop */
.services.section-navy {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  position: relative;
  overflow: hidden;
}
/* Decorative glows + tile texture behind the cards, so the glass blur has something to frost */
.services.section-navy::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 78% 12%, rgba(184,134,11,0.16), transparent 70%),
    radial-gradient(ellipse 55% 45% at 12% 88%, rgba(135,206,235,0.10), transparent 70%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23ffffff' stroke-width='0.5' opacity='0.04'/%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.services.section-navy .container { position: relative; z-index: 1; }
.services.section-navy .section-header h2 { color: #fff; }
.services.section-navy .section-header p { color: rgba(255,255,255,0.7); }
.services.section-navy .section-label {
  color: #b8860b;
  background: rgba(184,134,11,0.15);
  border: 1px solid rgba(184,134,11,0.4);
  padding: 0.4rem 1.2rem;
  border-radius: 30px;
}

.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin-top: 3rem; }
.service-card {
  background: rgba(135,206,235,0.14);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  padding: 2.5rem 2rem; border-radius: 8px;
  text-align: center; transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.25);
}
.service-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  border-color: #b8860b;
}
.service-icon svg { transition: transform 0.35s ease; }
.service-card:hover .service-icon svg { transform: scale(1.15); }
.service-icon { color: #111; margin-bottom: 1rem; }
.service-icon svg { stroke-width: 2.5; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 0.75rem; color: #d4a017; }
.service-card p { font-size: 0.95rem; color: rgba(255,255,255,0.85); line-height: 1.7; }

@media (max-width: 968px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }

/* ===== PARALLAX SCENE (gallery placeholder) ===== */
.scene-section { min-height: 101vh; position: relative; padding: 0; }
.scene-viewport {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.trowel {
  position: absolute; z-index: 1;
  top: 32%; left: 50%;
  transform: translateX(-50%) translateY(-150%);
  will-change: transform;
}
.trowel-body { animation: trowelBob 3s ease-in-out infinite; }
.trowel svg { width: 7vh; height: auto; display: block; }
.bucket {
  position: absolute; z-index: 2;
  left: 50%; top: 27%;
  transform: translateX(-50%);
}
.bucket svg { width: 15vh; height: auto; display: block; }

.scene-floor {
  position: absolute; left: 0; right: 0; top: 22%;
  height: 25%; z-index: 0;
  background-color: #b8956a;
  border-radius: 4px 4px 0 0;
}
/* Laid tiles on the left portion */
.scene-floor::before {
  content: ''; position: absolute;
  top: 0; left: 0; bottom: 0;
  width: calc(50% + 6.5vh);
  background-color: #ddd0b8;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 36px, #8a7a5a 36px, #8a7a5a 38px),
    repeating-linear-gradient(-45deg, transparent 2px, transparent 38px, #8a7a5a 38px, #8a7a5a 40px);
  border-radius: 4px 0 0 0;
  pointer-events: none;
}
/* Top shadow across entire floor */
.scene-floor::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 30px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent);
  pointer-events: none;
}

/* Spread thinset — wavy trowel ridges ready for tile */
.thinset-floor {
  position: absolute;
  left: calc(50% + 6.5vh); width: 25%;
  top: 22%; height: 25%;
  z-index: 0;
  background-color: #a59580;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='100'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0%25' stop-color='%239a8a75'/%3E%3Cstop offset='50%25' stop-color='%23b0a08a'/%3E%3Cstop offset='100%25' stop-color='%239a8a75'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='60' height='100' fill='url(%23g)'/%3E%3Cg fill='none' stroke='%2380705a' stroke-width='2' opacity='0.5'%3E%3Cpath d='M8,0 Q14,25 8,50 Q2,75 8,100'/%3E%3Cpath d='M28,0 Q34,25 28,50 Q22,75 28,100'/%3E%3Cpath d='M48,0 Q54,25 48,50 Q42,75 48,100'/%3E%3C/g%3E%3Cg fill='none' stroke='%23d0c8b8' stroke-width='1' opacity='0.35'%3E%3Cpath d='M10,0 Q16,25 10,50 Q4,75 10,100'/%3E%3Cpath d='M30,0 Q36,25 30,50 Q24,75 30,100'/%3E%3Cpath d='M50,0 Q56,25 50,50 Q44,75 50,100'/%3E%3C/g%3E%3C/svg%3E");
  clip-path: polygon(
    0% 0%, 100% 0%, 100% 10%, 96% 15%, 100% 28%, 95% 35%,
    100% 45%, 97% 52%, 100% 62%, 94% 68%, 100% 78%,
    96% 85%, 100% 92%, 93% 97%, 100% 100%, 0% 100%
  );
  pointer-events: none;
}
.thinset-floor::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 30px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.08), transparent);
  pointer-events: none;
}

/* Sponge */
.sponge {
  position: absolute; z-index: 1;
  left: 18%; top: 26%;
  width: 8vh; height: auto;
  transform: rotate(-12deg);
}
.sponge svg { display: block; width: 100%; height: auto; }

/* Water splashes */
.splash {
  position: absolute; z-index: 1;
  pointer-events: none;
}
.splash svg { display: block; width: 100%; height: auto; }
.splash-1 { left: 14%; top: 24%; width: 2.5vh; }
.splash-2 { left: 27%; top: 23%; width: 1.8vh; }
.splash-3 { left: 12%; top: 29%; width: 1.2vh; }
.splash-4 { left: 21%; top: 22%; width: 2vh; }

/* Notched trowel */
.notched-trowel {
  position: absolute; z-index: 1;
  left: 80%; top: 32%;
  width: 14vh; height: auto;
  transform: rotate(-5deg);
}
.notched-trowel svg { display: block; width: 100%; height: auto; }

@keyframes trowelBob {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(2deg) translateY(-3px); }
}

@media (max-width: 768px) {
  .trowel svg { width: 5.5vh; }
  .bucket svg { width: 10.5vh; }
  .scene-floor::before { width: calc(50% + 4.5vh); }
  .thinset-floor { left: calc(50% + 4.5vh); }
  .sponge { width: 6vh; left: 12%; top: 28%; }
  .splash-1 { left: 8%; top: 26%; width: 2vh; }
  .splash-2 { left: 20%; top: 25%; width: 1.5vh; }
  .splash-3 { left: 7%; top: 31%; width: 1vh; }
  .splash-4 { left: 15%; top: 23%; width: 1.5vh; }
  .notched-trowel { left: 76%; top: 34%; width: 10vh; transform: rotate(-5deg); }
}

/* ===== PHOTO GALLERY ===== */
.photo-gallery { background: var(--bg); }
.gallery-section + .gallery-section { margin-top: 4rem; }
.gallery-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.gallery-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.gallery-section-title::before {
  content: '';
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: #b8860b;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.photo-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.photo-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  border-color: #b8860b;
}
.photo-card:hover img { transform: scale(1.08); }
.photo-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 2.5rem 0.75rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.3s ease;
  pointer-events: none;
}
.photo-card:hover figcaption { opacity: 1; transform: translateY(0); }

/* ===== LIGHTBOX ===== */
/* NOTE: keep <dialog> at default display:block so the browser's
   UA centering (margin:auto + inset:0) keeps working. Flex layout
   lives on the inner .lightbox-body wrapper instead. */
.lightbox {
  border: none;
  padding: 0;
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  overflow: hidden;
  position: fixed;
  inset: 0;
  margin: auto;
  background: transparent;
}
.lightbox::backdrop { background: rgba(0,0,0,0.85); }
.lightbox-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,20,0.96);
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  width: fit-content;
  height: fit-content;
}
.lightbox-image {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}
.lightbox-caption {
  color: #fff;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  text-align: center;
}
.lightbox-close {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.lightbox-close:hover {
  background: #b8860b;
  border-color: #b8860b;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.4);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
}
.lightbox-prev { left: 0.75rem; }
.lightbox-next { right: 0.75rem; }
.lightbox-nav:hover {
  background: #b8860b;
  border-color: #b8860b;
}
@media (max-width: 480px) {
  .lightbox-nav { width: 38px; height: 38px; }
  .lightbox-prev { left: 0.35rem; }
  .lightbox-next { right: 0.35rem; }
}

@media (max-width: 968px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .photo-grid { grid-template-columns: 1fr; } }

/* 2x2 layout variant — photos in pairs, two per row */
.photo-grid-pairs { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 480px) { .photo-grid-pairs { grid-template-columns: 1fr; } }
.photo-row-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (max-width: 480px) { .photo-row-duo { grid-template-columns: 1fr; } }

/* ===== WHY CHOOSE US ===== */
.why-content h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.why-content p { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin-bottom: 2rem; }
.why-list { list-style: none; }
.why-list li {
  padding: 0.75rem 0; border-bottom: 1px solid var(--border);
  font-size: 1.05rem; display: flex; align-items: center; gap: 0.75rem;
}
.why-list li::before {
  content: '✓'; color: #b8860b; font-weight: 700; font-size: 1.2rem; flex-shrink: 0;
}

@media (max-width: 768px) { .why-content h2 { font-size: 2rem; } }

/* ===== CONTACT ===== */
.contact { background: var(--bg-alt); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: stretch;
  margin-top: 3rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-map {
  position: relative;
  align-self: start; /* keep the map at its natural 4:3 size so the pin lands exactly */
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid var(--gold);
  box-shadow: 0 20px 50px rgba(26,26,46,0.15);
  background: #20242d;
}
.contact-map img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(20%) contrast(1.03);
}

/* ---- Pin overlay on Tampa ---- */
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%); /* pin tip sits exactly on the anchor point */
  z-index: 2;
  pointer-events: none;
}
.pin-marker {
  display: block;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
  animation: pinBob 2.4s ease-in-out infinite;
}
@keyframes pinBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.pin-pulse {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 20px; height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(184, 134, 11, 0.75);
  animation: pinPulse 2.2s ease-out infinite;
}
@keyframes pinPulse {
  0%   { transform: scale(0.35); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}
.pin-label {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%) translateY(-5px);
  background: #1a1a2e;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  font-family: 'Inter', sans-serif;
}
.pin-label::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -4px;
  border: 4px solid transparent;
  border-top-color: #1a1a2e;
}
.pin-label small {
  display: block;
  color: #b8860b;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-top: 1px;
}
.contact-item {
  display: flex; align-items: center; gap: 1.5rem;
  text-decoration: none; color: var(--text);
  background: var(--bg-card); padding: 1.5rem 2rem;
  border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}
.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  border-color: #b8860b;
}
.contact-item[href*="tel"] {
  border-left: 4px solid #b8860b;
}
.contact-item[href*="mailto"] {
  border-left: 4px solid #b8860b;
}
.contact-icon {
  width: 60px; height: 60px; background: var(--bg-alt); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); flex-shrink: 0; font-size: 1.5rem;
}
.contact-item strong {
  display: block; font-size: 1.1rem; color: var(--text); margin-bottom: 0.2rem;
}
.contact-item span { color: var(--text); font-size: 1.25rem; font-weight: 600; }
.contact-item[href*="tel"] span { font-size: 1.5rem; letter-spacing: 0.5px; }

/* ===== FOOTER ===== */
.footer { background: #1a1a2e; color: rgba(255,255,255,0.7); padding: 4rem 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { color: #fff; font-size: 1.8rem; }
.footer-brand p { margin-top: 1rem; font-size: 0.95rem; line-height: 1.7; max-width: 300px; }
.footer-links strong, .footer-contact strong { display: block; color: #fff; margin-bottom: 1rem; font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.3s; font-size: 0.95rem; }
.footer-links a:hover { color: #b8860b; }
.footer-contact a { color: rgba(255,255,255,0.6); text-decoration: none; }

.footer-bottom { padding: 1.5rem 0; text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.4); }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-details { gap: 0.75rem; }
  .contact-item {
    background: var(--bg-card); padding: 0.75rem 1rem; border-radius: 8px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  }
  .contact-icon { width: 50px; height: 50px; }
  .contact-item strong { font-size: 1rem; }
  .contact-item span { font-size: 1.1rem; }
  .contact-item[href*="tel"] span { font-size: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===== SMOOTH SECTION REVEAL ANIMATION ===== */
.hero-content, .about-content, .about-visual, .service-card,
.why-content, .contact :where(.section-header), .contact-details, .contact-map {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.scene-viewport { opacity: 1; transform: none; }
.reveal-active {
  opacity: 1; transform: translateY(0);
}

/* ===== SCREEN-READER ONLY ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border-width: 0;
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
