/* ============================================
   Delaney Detailing — styles.css
   Premium metallic + marine theme (CSS-only)
============================================ */

/* -------------------------
   CSS Variables (Palette)
------------------------- */
:root {
  --bg: #0b0f14;           /* near-black */
  --panel: #0f1621;        /* elevated dark */
  --panel-2: #0c131d;      /* alt dark */
  --blue-1: #0b4f8a;       /* deep marine blue */
  --blue-2: #1e90ff;       /* electric blue */
  --silver: #c0c7d1;       /* metallic silver */
  --white: #f5f7fa;
  --muted: #8b94a5;
  --stroke: rgba(192, 199, 209, 0.18);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.35);

  --radius: 18px;
  --radius-sm: 14px;

  --container: 1120px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 22px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 72px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* -------------------------
   Base
------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--white);
  background: radial-gradient(1200px 700px at 15% 10%, rgba(30, 144, 255, 0.18), transparent 60%),
              radial-gradient(900px 600px at 85% 25%, rgba(11, 79, 138, 0.22), transparent 55%),
              linear-gradient(180deg, #070a0f 0%, var(--bg) 35%, #070a0f 100%);
  line-height: 1.55;
}

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

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

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: var(--space-7) 0; }

.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: var(--space-5);
  max-width: 760px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 40px);
  letter-spacing: -0.02em;
}

.section-head p { margin: 0; color: var(--muted); font-size: 16px; }

.muted { color: var(--muted); }
.micro { font-size: 12px; }
.fineprint { font-size: 12px; color: rgba(245,247,250,0.78); margin: 10px 0 0; }

.center { display: grid; place-items: center; margin-top: 18px; }

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

/* -------------------------
   Header / Nav
------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
  background: rgba(11, 15, 20, 0.62);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-wrap {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.nav-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.20);
  padding: 4px;
}

.hero-logo {
  width: min(320px, 100%);
  height: auto;
  margin-bottom: 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.14);
  padding: 10px;
}

.nav {
  display: none;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: rgba(245,247,250,0.82);
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background 180ms ease, color 180ms ease;
}

.nav a:hover {
  background: rgba(30,144,255,0.10);
  color: var(--white);
}

.nav-cta { display: none; }

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);
  color: var(--white);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(245,247,250,0.85);
  border-radius: 999px;
  margin: 2px 0;
}

.mobile-nav {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(11, 15, 20, 0.92);
  display: block;
}

.mobile-nav-inner {
  display: grid;
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-nav a {
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
}

.mobile-nav a:hover { background: rgba(30,144,255,0.10); }

@media (min-width: 940px) {
  .nav { display: flex; }
  .nav-cta { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* -------------------------
   Buttons
------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  cursor: pointer;
  user-select: none;
}

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

.btn-sm { padding: 10px 14px; border-radius: 14px; font-size: 14px; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, rgba(30,144,255,0.95), rgba(11,79,138,0.95));
  border-color: rgba(30,144,255,0.22);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}

.btn-primary:hover { box-shadow: 0 18px 46px rgba(0,0,0,0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.10);
}

.btn-metal {
  background:
    radial-gradient(120px 40px at 30% 20%, rgba(255,255,255,0.75), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(255,255,255,0.18), rgba(255,255,255,0.06)),
    linear-gradient(135deg, rgba(30,144,255,0.35), rgba(11,79,138,0.75));
  border-color: rgba(192,199,209,0.28);
  box-shadow: var(--shadow-soft);
}

.btn-metal:hover { border-color: rgba(192,199,209,0.40); box-shadow: var(--shadow); }

/* -------------------------
   Hero
------------------------- */
.hero {
  position: relative;
  padding: calc(var(--space-7) - 10px) 0 var(--space-7);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 26px;
  align-items: start;
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(245,247,250,0.74);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lead {
  margin: 0 0 18px;
  font-size: 16px;
  color: rgba(245,247,250,0.82);
  max-width: 52ch;
}

.hero-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

.hero-badges {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-width: 560px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}

.badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(30,144,255,0.14);
  border: 1px solid rgba(30,144,255,0.24);
  color: rgba(245,247,250,0.9);
  font-weight: 900;
}

.hero-card {
  position: relative;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(30,144,255,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: var(--shadow);
}

.hero-card-top {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.hero-card-title h2 { margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em; }
.hero-card-title p { margin: 0; color: var(--muted); font-size: 14px; }

.shield {
  width: 64px;
  height: 74px;
  border-radius: 18px;
  background:
    radial-gradient(18px 18px at 30% 22%, rgba(255,255,255,0.6), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(192,199,209,0.20), rgba(192,199,209,0.06)),
    linear-gradient(135deg, rgba(30,144,255,0.45), rgba(11,79,138,0.85));
  border: 1px solid rgba(192,199,209,0.30);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55);
  position: relative;
  overflow: hidden;
}

.shield::after {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 120%;
  transform: rotate(12deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.22), rgba(255,255,255,0));
  opacity: 0.75;
}

.shield-inner {
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.12);
}

.hero-stats { display: grid; gap: 10px; margin-top: 12px; }

.stat {
  display: grid;
  gap: 2px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(0,0,0,0.16);
  border: 1px solid rgba(255,255,255,0.06);
}

.stat-label {
  font-size: 12px;
  color: rgba(245,247,250,0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-value { font-weight: 800; color: rgba(245,247,250,0.92); font-size: 14px; }

.hero-card-cta { margin-top: 14px; display: grid; gap: 10px; }

/* Hero background decor */
.hero-bg { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.glow { position: absolute; filter: blur(40px); opacity: 0.55; }

.glow-1 {
  width: 520px; height: 520px;
  left: -120px; top: -120px;
  background: radial-gradient(circle at 30% 30%, rgba(30,144,255,0.45), rgba(30,144,255,0) 55%);
}

.glow-2 {
  width: 520px; height: 520px;
  right: -160px; top: 40px;
  background: radial-gradient(circle at 40% 40%, rgba(11,79,138,0.55), rgba(11,79,138,0) 58%);
}

.wave {
  position: absolute;
  left: 0; right: 0;
  bottom: -220px;
  height: 520px;
  background:
    radial-gradient(600px 220px at 20% 40%, rgba(30,144,255,0.20), transparent 62%),
    radial-gradient(520px 200px at 70% 55%, rgba(192,199,209,0.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  transform: skewY(-6deg);
  border-top: 1px solid rgba(255,255,255,0.04);
}

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.2fr 0.9fr; align-items: center; }
  .hero-actions { grid-template-columns: repeat(3, auto); width: fit-content; }
}

/* -------------------------
   Trust Bar
------------------------- */
.trust {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(0,0,0,0.12);
}

.trust-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: rgba(245,247,250,0.88);
}

.trust-icon {
  width: 30px;
  height: 30px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(30,144,255,0.10);
  border: 1px solid rgba(30,144,255,0.22);
}

@media (min-width: 860px) {
  .trust-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* -------------------------
   Cards
------------------------- */
.cards-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.card {
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(600px 200px at 20% 0%, rgba(30,144,255,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 10px 26px rgba(0,0,0,0.30);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(30,144,255,0.22);
  box-shadow: var(--shadow);
}

.card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(30,144,255,0.10);
  border: 1px solid rgba(30,144,255,0.22);
  font-size: 18px;
}

.card h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; color: rgba(245,247,250,0.78); }

.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }

.pill {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(192,199,209,0.18);
  background: rgba(0,0,0,0.14);
  color: rgba(245,247,250,0.88);
  font-size: 12px;
  font-weight: 700;
}

.card-link {
  color: rgba(30,144,255,0.92);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.card-link:hover { text-decoration: underline; }

@media (min-width: 760px) {
  .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Services: 4 columns on large */
#services .cards-grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { #services .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { #services .cards-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Reviews: 3 columns on large */
#reviews .cards-grid { grid-template-columns: 1fr; }
@media (min-width: 760px) { #reviews .cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* -------------------------
   Pricing
------------------------- */
.pricing-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.price-card {
  position: relative;
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(700px 240px at 25% 0%, rgba(11,79,138,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 12px 30px rgba(0,0,0,0.34);
}

.price-card.featured {
  border-color: rgba(30,144,255,0.35);
  box-shadow: 0 18px 44px rgba(0,0,0,0.48);
  transform: translateY(-2px);
}

.ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(30,144,255,0.18);
  border: 1px solid rgba(30,144,255,0.30);
  color: rgba(245,247,250,0.92);
}

.price-top h3 { margin: 0 0 6px; font-size: 18px; }
.price { margin: 0; color: rgba(245,247,250,0.80); }

.list {
  margin: 14px 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  padding-left: 22px;
  position: relative;
  color: rgba(245,247,250,0.82);
  font-size: 14px;
}

.list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(30,144,255,0.95);
  font-weight: 900;
}

.disclaimer { margin: 16px 0 0; color: rgba(245,247,250,0.78); font-size: 14px; }

@media (min-width: 920px) {
  .pricing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* =========================
   GALLERY (thumbnails)
   ========================= */

/* Grid */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 18px;
}

@media (min-width: 760px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Each clickable thumbnail */
.gallery-item {
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  box-shadow: 0 12px 28px rgba(0,0,0,0.30);
  overflow: hidden;

  /* IMPORTANT: ensures the tile has height so images show */
  aspect-ratio: 4 / 3;

  transform: translateZ(0);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  border-color: rgba(30,144,255,0.22);
  box-shadow: var(--shadow);
}

/* The thumbnail image itself */
.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;           /* IMPORTANT */
  object-fit: cover;        /* crop nicely */
}

/* Optional: subtle shine overlay (won't hide image) */
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(240px 120px at 30% 20%, rgba(255,255,255,0.12), transparent 60%);
  opacity: 0.6;
}

/* Make sure ::after works */
.gallery-item { position: relative; }


/* =========================
   POPUP (CSS-only using :target)
   ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none; /* default hidden */
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

/* When the hash matches (#img-1, #img-2, etc) */
.lightbox:target {
  display: grid;
  place-items: center;
}

/* Popup frame */
.lightbox-content {
  position: relative;
  width: min(1100px, 96vw);
  max-height: 90vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15, 22, 33, 0.88);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  overflow: hidden;
}

/* Big image */
.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  display: block;
  object-fit: contain;
  background: rgba(0,0,0,0.25);
}

/* Close button */
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: var(--white);
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.14);
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(30,144,255,0.18);
  border-color: rgba(30,144,255,0.28);
}


/* -------------------------
   Reviews
------------------------- */
.review .stars {
  font-size: 14px;
  letter-spacing: 0.10em;
  margin-bottom: 10px;
  color: rgba(192,199,209,0.95);
}

.reviewer { margin-top: 12px; font-weight: 800; color: rgba(245,247,250,0.78); }

/* -------------------------
   Service Area
------------------------- */
.area { display: grid; place-items: center; }

.area-card {
  width: 100%;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(700px 240px at 20% 0%, rgba(30,144,255,0.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: var(--shadow-soft);
}

.area-card h2 { margin: 0 0 8px; letter-spacing: -0.02em; }
.area-card p { margin: 0; color: rgba(245,247,250,0.78); }

.area-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }

/* -------------------------
   Contact Section
------------------------- */
.contact-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: start;
}

.contact-card {
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(700px 240px at 25% 0%, rgba(11,79,138,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: 0 12px 30px rgba(0,0,0,0.32);
}

.contact-card h3 { margin: 0 0 10px; }

.contact-line { margin: 0 0 10px; display: grid; gap: 4px; }

.contact-label {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(245,247,250,0.65);
}

.contact-card a { color: rgba(30,144,255,0.95); font-weight: 900; }
.contact-card a:hover { text-decoration: underline; }

.contact-mini {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
  padding: 12px;
}

.mini-title {
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(245,247,250,0.62);
  margin-bottom: 4px;
  font-weight: 800;
}

.mini-text { font-weight: 900; color: rgba(245,247,250,0.88); }

.form.card { padding: 18px; }

label {
  display: grid;
  gap: 8px;
  color: rgba(245,247,250,0.90);
  font-weight: 700;
  font-size: 13px;
}

input, select, textarea {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.18);
  color: var(--white);
  font: inherit;
}

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

input::placeholder, textarea::placeholder { color: rgba(245,247,250,0.45); }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.span-2 { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
}

/* -------------------------
   Footer
------------------------- */
.footer {
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(0,0,0,0.18);
}

.footer-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  align-items: center;
}

.footer-brand { display: flex; align-items: center; gap: 12px; }

.brand-mark.sm {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background:
    radial-gradient(18px 18px at 30% 25%, rgba(255,255,255,0.55), rgba(255,255,255,0) 60%),
    linear-gradient(135deg, rgba(30,144,255,0.35), rgba(11,79,138,0.65)),
    linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.02));
  border: 1px solid rgba(192,199,209,0.22);
  box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.footer-title { font-weight: 900; letter-spacing: 0.02em; }

.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }

.footer-links a {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.02);
  color: rgba(245,247,250,0.82);
}

.footer-links a:hover {
  background: rgba(30,144,255,0.10);
  color: rgba(245,247,250,0.95);
}

.footer-contact { display: grid; gap: 10px; }

.footer-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(192,199,209,0.18);
  background: rgba(255,255,255,0.02);
  color: rgba(245,247,250,0.88);
  font-weight: 800;
  width: fit-content;
}

.footer-pill:hover {
  border-color: rgba(30,144,255,0.28);
  background: rgba(30,144,255,0.08);
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  color: rgba(245,247,250,0.78);
  font-size: 12px;
}

@media (min-width: 920px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}

strong { color: rgba(245,247,250,0.92); }


/* ============================================
   GALLERY (THUMBNAILS) + LIGHTBOX MODAL
   Paste near the bottom of styles.css
============================================ */

/* Thumbnails grid */
.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  align-items: stretch;
}

@media (min-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Each thumbnail is a button */
.photo-tile {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.02);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
  display: block;
  width: 100%;
  box-shadow: 0 12px 28px rgba(0,0,0,0.30);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.photo-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(30,144,255,0.25);
  box-shadow: 0 16px 34px rgba(0,0,0,0.40);
}

.photo-tile img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) - 8px);
}

/* Optional: if you want all thumbnails same height/crop */
@supports (aspect-ratio: 1 / 1) {
  .photo-tile img {
    aspect-ratio: 4 / 3;          /* change to 1/1 if you want squares */
    object-fit: cover;
  }
}

/* Lock background scrolling when modal open */
body.modal-lock {
  overflow: hidden;
}

/* Modal wrapper (hidden by default) */
.modal {
  position: fixed;              /* THIS is the key */
  inset: 0;
  z-index: 999;
  display: none;                /* hidden until .open */
  place-items: center;
  padding: 18px;
}

/* Show modal when open */
.modal.open {
  display: grid;
}

/* Backdrop */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.70);
  backdrop-filter: blur(6px);
}

/* Modal content box */
.modal-content {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(10,14,20,0.92);
  box-shadow: 0 24px 70px rgba(0,0,0,0.65);
  padding: 14px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* The large image */
.modal-content img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 120px);
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;

