/* ============================================================
   M&P ProClean — Shared Stylesheet
   Edit this file to update styles across all pages at once.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

/* ── Design Tokens ── */
:root {
  --navy:          hsl(215, 48%, 20%);
  --navy-dark:     hsl(215, 55%, 13%);
  --navy-light:    hsl(215, 48%, 28%);
  --sky:           hsl(199, 89%, 38%);
  --sky-light:     hsl(199, 89%, 52%);
  --off-white:     hsl(215, 20%, 97%);
  --muted-fg:      hsl(215, 20%, 32%);
  --border:        hsl(215, 20%, 88%);
  --fg:            hsl(215, 45%, 8%);

  --gradient-hero:     linear-gradient(135deg, hsl(215,55%,13%) 0%, hsl(215,48%,20%) 55%, hsl(215,50%,26%) 100%);
  --gradient-cta:      linear-gradient(135deg, hsl(199,89%,38%) 0%, hsl(199,89%,32%) 100%);
  --gradient-navy-tint:linear-gradient(135deg, hsl(215,48%,20%/.04) 0%, hsl(215,48%,20%/.09) 100%);
  --gradient-section:  linear-gradient(180deg, hsl(215,20%,97%) 0%, #fff 100%);

  --shadow-card:   0 1px 3px hsl(215 48% 20%/.05), 0 8px 24px hsl(215 48% 20%/.08);
  --shadow-navy:   0 8px 32px -8px hsl(215 48% 20%/.22);
  --shadow-sky:    0 8px 32px -8px hsl(199 89% 38%/.30);
  --shadow-lifted: 0 16px 48px -12px hsl(215 48% 20%/.18);

  --radius: 0.75rem;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; }
body   { font-family: 'Inter', system-ui, sans-serif; color: var(--fg); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ── iOS / Mobile — prevent horizontal scroll, accidental zoom & bounce ── */
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;   /* prevent iOS font size inflation on rotation */
  text-size-adjust: 100%;
  touch-action: pan-y;              /* allow vertical scroll, block accidental horizontal */
}
/* Prevent tap highlight flash on iOS */
* { -webkit-tap-highlight-color: transparent; }
/* Inputs/selects: prevent iOS from zooming in (font-size must be >= 16px) */
input, select, textarea { font-size: 16px; }
h1,h2,h3,h4,h5,h6 { font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Layout helpers ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section   { padding: 5rem 0; }
.section--alt { background: var(--off-white); }
.section--gradient { background: var(--gradient-section); }

/* ── Dots pattern ── */
.dots-pattern {
  background-image: radial-gradient(circle, hsl(215 48% 20%/.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; border-radius: var(--radius);
  transition: all .18s; white-space: nowrap; cursor: pointer; border: none;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-lg  { padding: .875rem 1.75rem; font-size: 1rem; }
.btn-lg svg, .btn-sm svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-sm  { padding: .5rem 1.1rem;   font-size: .875rem; }
.btn-primary { background: var(--gradient-cta); color: #fff; box-shadow: var(--shadow-sky); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.45); }
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.65); }
.btn-ghost-navy { background: transparent; color: var(--sky); border: 1.5px solid var(--sky); border-radius: var(--radius); }
.btn-ghost-navy:hover { background: var(--sky); color: #fff; }

/* ── Section badge ── */
.badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: hsl(199 89% 38%/.10); border: 1px solid hsl(199 89% 38%/.22);
  color: var(--sky); font-size: .72rem; font-weight: 700;
  padding: .3rem .85rem; border-radius: 999px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem;
}

/* ── Section heading group ── */
.section-head        { margin-bottom: 3.5rem; }
.section-head--center{ text-align: center; }
.section-title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; color: var(--navy); margin-bottom: .75rem; }
.section-sub   { font-size: 1.0625rem; color: var(--muted-fg); line-height: 1.65; max-width: 36rem; }
.section-head--center .section-sub { margin: 0 auto; }

/* ── Stars ── */
.stars { display: flex; gap: 2px; color: #f59e0b; }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-card);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-navy); transform: translateY(-4px); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.anim-1 { animation: fadeUp .65s ease-out .0s both; }
.anim-2 { animation: fadeUp .65s ease-out .12s both; }
.anim-3 { animation: fadeUp .65s ease-out .24s both; }
.anim-4 { animation: fadeUp .65s ease-out .36s both; }

/* ========================================================== */
/*  HEADER                                                    */
/* ========================================================== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: linear-gradient(to bottom, rgba(0,0,0,.32), transparent);
  transition: background .3s, box-shadow .3s;
}
#site-header.scrolled {
  background: var(--navy-dark);
  box-shadow: var(--shadow-navy);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: .75rem; color: #fff; }
.logo-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--sky); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.logo-icon svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.logo-name { font-size: 1rem; font-weight: 700; display: block; }
.logo-sub  { font-size: .68rem; font-weight: 400; color: rgba(255,255,255,.55); letter-spacing: .05em; text-transform: uppercase; display: block; }

.nav-links { display: flex; gap: .25rem; align-items: center; }
.nav-links > a,
.nav-links > .nav-item.has-dropdown {
  display: flex;
  align-items: center;
}
.nav-links > a {
  color: rgba(255,255,255,.78); font-size: .875rem; font-weight: 500;
  padding: .45rem .9rem; border-radius: .5rem; transition: background .15s, color .15s;
}
.nav-links > a:hover, .nav-links > a.active { color: #fff; background: rgba(255,255,255,.1); }

.header-ctas { display: flex; align-items: center; gap: .75rem; }
.header-phone { display: flex; align-items: center; gap: .4rem; color: rgba(255,255,255,.75); font-size: .875rem; font-weight: 500; transition: color .15s; }
.header-phone:hover { color: #fff; }
.header-phone svg { width: 15px; height: 15px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  padding: .4rem;
  cursor: pointer;
  line-height: 0;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hamburger svg {
  width: 24px !important;
  height: 24px !important;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  display: block;
}

/* Mobile menu */
#mobile-menu {
  display: none; flex-direction: column; gap: .25rem;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: var(--navy-dark); border-top: 1px solid rgba(255,255,255,.08);
  padding: 1rem;
}
#mobile-menu.open { display: flex; }
#mobile-menu > a,
#mobile-menu .mobile-item > a { color: rgba(255,255,255,.78); font-size: .95rem; font-weight: 500; padding: .75rem 1rem; border-radius: .5rem; transition: background .15s; display: block; }
#mobile-menu > a:hover,
#mobile-menu .mobile-item > a:hover { background: rgba(255,255,255,.1); color: #fff; }
#mobile-menu .btn-primary { text-align: center; justify-content: center; margin-top: .5rem; }

/* ========================================================== */
/*  HERO  (shared across all pages)                          */
/* ========================================================== */
.page-hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  background: var(--gradient-hero);
}
.page-hero .hero-bg-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.page-hero .hero-overlay-solid {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.48); pointer-events: none;
}
.page-hero .hero-overlay-lr {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.65), rgba(0,0,0,.30), transparent);
  pointer-events: none;
}
.page-hero .hero-overlay-top {
  position: absolute; inset-x: 0; top: 0; height: 10rem;
  background: linear-gradient(to bottom, rgba(0,0,0,.65), rgba(0,0,0,.25), transparent);
  pointer-events: none; z-index: 5;
}
.page-hero .hero-overlay-bottom-inner {
  position: absolute; inset-x: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,.15), transparent);
  pointer-events: none;
}
.page-hero .dots-overlay { position: absolute; inset: 0; opacity: .4; pointer-events: none; }
.page-hero .glow { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(64px); }
.page-hero .glow-r { top: 30%; right: -8rem; width: 500px; height: 500px; background: radial-gradient(circle, hsl(199 89% 38%/.13) 0%, transparent 70%); }
.page-hero .glow-l { top: -6rem; left: -8rem;  width: 400px; height: 400px; background: radial-gradient(circle, hsl(215 48% 28%/.15) 0%, transparent 70%); }
.page-hero .hero-bottom-fade { position: absolute; inset-x: 0; bottom: 0; height: 7rem; background: linear-gradient(to top, rgba(0,0,0,.25), transparent); pointer-events: none; }

.hero-content { position: relative; z-index: 2; width: 100%; padding-top: 7rem; padding-bottom: 4rem; }

/* Home hero — full height */
.hero-home { min-height: 100svh; }

/* Inner page hero — shorter */
.hero-inner { padding: 6rem 0 4rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 500;
  padding: .35rem .9rem; border-radius: 999px; letter-spacing: .04em;
  backdrop-filter: blur(4px); margin-bottom: 1.5rem;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-light); }

.hero-title { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.1; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.hero-title .sky { color: var(--sky-light); }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.85); line-height: 1.65; max-width: 34rem; margin-bottom: 2.25rem; }

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.25rem; }

.trust-pills { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-bottom: 3rem; }
.trust-pill { display: flex; align-items: center; gap: .45rem; color: rgba(255,255,255,.7); font-size: .875rem; font-weight: 500; }
.trust-pill svg { width: 14px; height: 14px; stroke: var(--sky-light); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(10px); max-width: 640px; }
.stat-cell { background: rgba(255,255,255,.05); padding: 1.1rem 1rem; text-align: center; }
.stat-val  { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: .3rem; }
.stat-lbl  { font-size: .72rem; color: rgba(255,255,255,.6); font-weight: 500; }

/* Contact cards in hero (Contact page) */
.hero-contact-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hero-contact-card {
  display: flex; align-items: flex-start; gap: .875rem;
  background: rgba(0,0,0,.65); border: 1px solid rgba(255,255,255,.45);
  border-radius: var(--radius); padding: 1rem 1.25rem; backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0,0,0,.5);
}
.hero-contact-card-icon {
  width: 36px; height: 36px; border-radius: 8px; flex-shrink: 0;
  background: hsl(199 89% 38%/.8); display: flex; align-items: center; justify-content: center;
}
.hero-contact-card-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-contact-card-label { font-size: .7rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; margin-bottom: .2rem; }
.hero-contact-card-value { font-size: .875rem; color: #fff; font-weight: 700; }
.hero-contact-card-value a { color: #fff; transition: color .15s; }
.hero-contact-card-value a:hover { color: var(--sky-light); }
.hero-contact-card-sub { font-size: .75rem; color: rgba(255,255,255,.65); margin-top: .15rem; }

/* ========================================================== */
/*  TRUST BAR                                                 */
/* ========================================================== */
.trust-bar { background: var(--off-white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 1.5rem 0; }
.trust-bar-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.5rem; }
.trust-item { display: flex; align-items: center; gap: .5rem; font-size: .875rem; font-weight: 500; color: var(--navy); }
.trust-item svg { width: 16px; height: 16px; stroke: var(--sky); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ========================================================== */
/*  SERVICE CARDS                                             */
/* ========================================================== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.services-grid .service-card { display: flex; flex-direction: column; }
.services-grid .service-card .service-desc { flex: 1; }
/* 7th card starts a new row alone — constrain to col 1 only */
.services-grid .service-card:nth-child(7) {
  grid-column: 1 / 2;
}
.service-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow .25s, transform .25s; }
.service-card:hover { box-shadow: var(--shadow-navy); transform: translateY(-4px); border-color: hsl(215 48% 20%/.15); }
.service-icon { width: 50px; height: 50px; border-radius: 12px; background: var(--gradient-navy-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; transition: transform .25s; }
.service-card:hover .service-icon { transform: scale(1.06); }
.service-icon svg { width: 22px; height: 22px; stroke: var(--sky); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-name { font-size: 1.0625rem; font-weight: 600; color: var(--navy); margin-bottom: .5rem; }
.service-desc { font-size: .875rem; color: var(--muted-fg); line-height: 1.65; }

/* Services detail (Services page) */
.service-detail-card { background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); overflow: hidden; transition: transform .25s, box-shadow .25s; margin-bottom: 1.25rem; }
.service-detail-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-navy); }
.service-detail-inner { display: grid; grid-template-columns: 140px 1fr; }
.service-detail-inner.reversed { direction: rtl; }
.service-detail-inner.reversed > * { direction: ltr; }
.service-detail-icon-col { display: flex; align-items: center; justify-content: center; padding: 2rem; background: var(--gradient-navy-tint); }
.service-detail-icon { width: 72px; height: 72px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); display: flex; align-items: center; justify-content: center; transition: transform .25s; }
.service-detail-card:hover .service-detail-icon { transform: scale(1.06); }
.service-detail-icon svg { width: 32px; height: 32px; stroke: var(--sky); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-detail-body { padding: 2rem 2.25rem; display: flex; flex-direction: column; gap: 1rem; }
.service-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.service-detail-name { font-size: 1.375rem; font-weight: 700; color: var(--navy); }
.service-detail-tagline { font-size: .875rem; color: var(--sky); font-weight: 500; }
.service-detail-desc { font-size: .9375rem; color: var(--muted-fg); line-height: 1.65; }
.service-includes { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.service-includes li { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: var(--fg); list-style: none; }
.service-includes li svg { width: 14px; height: 14px; stroke: var(--sky); fill: none; stroke-width: 2.5; flex-shrink: 0; margin-top: 2px; }
.service-detail-footer { display: flex; align-items: center; gap: 1.5rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.service-detail-link { font-size: .875rem; font-weight: 600; color: var(--sky); transition: color .15s; }
.service-detail-link:hover { color: var(--navy); }
.service-detail-or { font-size: .875rem; color: var(--muted-fg); }

/* ========================================================== */
/*  HOW IT WORKS (steps)                                      */
/* ========================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.steps-grid::before { display: none; }
.step-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; text-align: center; box-shadow: var(--shadow-card); }
.step-num { width: 52px; height: 52px; border-radius: 50%; background: var(--sky); color: #fff; font-size: 1.125rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; box-shadow: var(--shadow-sky); }
.step-icon { width: 44px; height: 44px; border-radius: 12px; background: hsl(199 89% 38%/.1); display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.step-icon svg { width: 22px; height: 22px; stroke: var(--sky); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-title { font-size: 1.0625rem; font-weight: 600; color: var(--navy); margin-bottom: .6rem; }
.step-desc  { font-size: .9rem; color: var(--muted-fg); line-height: 1.6; }

/* ========================================================== */
/*  TESTIMONIALS                                              */
/* ========================================================== */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 1rem; }
.testimonial-text { font-size: .9rem; color: var(--muted-fg); line-height: 1.7; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--sky); color: #fff; font-weight: 700; font-size: .875rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.author-name { font-size: .9rem; font-weight: 600; color: var(--navy); }
.author-tag  { font-size: .75rem; color: var(--muted-fg); }

/* ========================================================== */
/*  FAQ                                                       */
/* ========================================================== */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-btn { width: 100%; text-align: left; background: none; border: none; padding: 1.25rem 1.5rem; font-size: .9375rem; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background .15s; font-family: inherit; }
.faq-btn:hover { background: var(--off-white); }
.faq-btn .chevron { width: 18px; height: 18px; stroke: var(--sky); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-btn .chevron { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-body { padding: 0 1.5rem 1.25rem; font-size: .9rem; color: var(--muted-fg); line-height: 1.7; }

/* ========================================================== */
/*  CONTACT & FORM                                            */
/* ========================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.contact-detail { display: flex; align-items: flex-start; gap: .875rem; padding: .875rem 0; border-bottom: 1px solid var(--border); }
.contact-detail:first-of-type { border-top: 1px solid var(--border); }
.contact-icon { width: 40px; height: 40px; border-radius: 10px; background: hsl(199 89% 38%/.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-icon svg { width: 17px; height: 17px; stroke: var(--sky); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-label { font-size: .72rem; color: var(--muted-fg); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-value { font-size: .9375rem; color: var(--navy); font-weight: 600; }
.contact-value a { color: var(--navy); transition: color .15s; }
.contact-value a:hover { color: var(--sky); }

.form-card { background: #fff; border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 2.5rem; box-shadow: var(--shadow-lifted); }
.form-title    { font-size: 1.375rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.form-subtitle { font-size: .875rem; color: var(--muted-fg); margin-bottom: 1.75rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: .8rem; font-weight: 600; color: var(--fg); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--border); border-radius: calc(var(--radius) - 2px);
  padding: .625rem .875rem; font-size: .9rem; color: var(--fg); background: #fff;
  transition: border-color .15s, box-shadow .15s; outline: none;
  -webkit-appearance: none; appearance: none; width: 100%;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--sky); box-shadow: 0 0 0 3px hsl(199 89% 38%/.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { margin-top: 1.25rem; width: 100%; justify-content: center; padding: .875rem; font-size: 1rem; }
.form-submit svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }
.form-note   { margin-top: .75rem; text-align: center; font-size: .75rem; color: var(--muted-fg); }
.form-success { display: none; background: hsl(142 72% 95%); border: 1px solid hsl(142 72% 75%); border-radius: var(--radius); padding: 1rem 1.25rem; margin-top: 1rem; color: hsl(142 60% 25%); font-size: .9rem; font-weight: 500; }

/* Honeypot — never shown */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

/* Why choose us box (sidebar on contact/home) */
.why-box { border-radius: var(--radius); padding: 1.5rem; margin-top: 1.75rem; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); }
.why-box-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 1rem; }
.why-item { display: flex; align-items: center; gap: .6rem; font-size: .875rem; color: rgba(255,255,255,.8); margin-bottom: .625rem; }
.why-item span { width: 6px; height: 6px; border-radius: 50%; background: var(--sky-light); flex-shrink: 0; }
.why-call { display: flex; align-items: center; gap: .6rem; margin-top: 1.25rem; padding: .75rem 1rem; border-radius: .625rem; background: rgba(255,255,255,.1); color: #fff; font-size: .875rem; font-weight: 600; transition: background .15s; }
.why-call:hover { background: rgba(255,255,255,.18); }
.why-call svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ========================================================== */
/*  ABOUT PAGE                                                */
/* ========================================================== */
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; }
.check-item { display: flex; align-items: flex-start; gap: .6rem; font-size: .875rem; color: var(--fg); font-weight: 500; }
.check-item svg { width: 15px; height: 15px; stroke: var(--sky); fill: none; stroke-width: 2.5; flex-shrink: 0; margin-top: 1px; }

/* Timeline */
.timeline { position: relative; padding-left: 3.5rem; }
.timeline::before { content: ''; position: absolute; left: 1.5rem; top: 0; bottom: 0; width: 2px; background: hsl(199 89% 38%/.2); }
.timeline-item { position: relative; margin-bottom: 1.5rem; }
.timeline-dot { position: absolute; left: -3.5rem; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--sky); color: var(--sky); font-size: .75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.timeline-card { background: var(--off-white); border: 1px solid hsl(215 48% 20%/.08); border-radius: var(--radius); padding: 1.25rem 1.5rem; transition: transform .25s; }
.timeline-card:hover { transform: translateY(-2px); }
.timeline-year { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--sky); margin-bottom: .35rem; }
.timeline-title { font-size: 1rem; font-weight: 600; color: var(--navy); margin-bottom: .4rem; }
.timeline-desc { font-size: .875rem; color: var(--muted-fg); line-height: 1.6; }

/* Values grid */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; transition: box-shadow .25s, transform .25s; }
.value-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.value-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--gradient-navy-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.value-icon svg { width: 22px; height: 22px; stroke: var(--sky); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .5rem; }
.value-desc  { font-size: .875rem; color: var(--muted-fg); line-height: 1.65; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team-card { text-align: center; }
.team-photo { width: 112px; height: 112px; border-radius: 16px; object-fit: cover; margin: 0 auto 1rem; box-shadow: var(--shadow-card); }
.team-name { font-size: .9rem; font-weight: 600; color: var(--navy); }
.team-role { font-size: .78rem; color: var(--muted-fg); margin-top: .2rem; line-height: 1.4; }

/* About stats bar */
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 480px; margin: 2.5rem auto 0; }
.about-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center; backdrop-filter: blur(4px); }
.about-stat-val { display: block; font-size: 1.5rem; font-weight: 700; color: #fff; }
.about-stat-lbl { font-size: .75rem; color: rgba(255,255,255,.65); font-weight: 500; }

/* ========================================================== */
/*  FOOTER                                                    */
/* ========================================================== */
footer { background: var(--navy-dark); color: rgba(255,255,255,.6); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-logo { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: 1rem; }
.footer-desc { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.5); margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .5rem; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); transition: all .15s; }
.social-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.social-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.footer-col-title { font-size: .78rem; font-weight: 700; color: #fff; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-links a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-links a:hover { color: #fff; }
.footer-contact-item { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .75rem; }
.footer-contact-item svg { width: 14px; height: 14px; stroke: var(--sky-light); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-top: 2px; flex-shrink: 0; }
.footer-contact-item span,
.footer-contact-item a { font-size: .875rem; color: rgba(255,255,255,.5); transition: color .15s; }
.footer-contact-item a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; font-size: .8rem; color: rgba(255,255,255,.3); }
.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { color: rgba(255,255,255,.3); transition: color .15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

/* ========================================================== */
/*  SERVICES CTA BLOCK                                        */
/* ========================================================== */
.cta-block {
  background: var(--gradient-navy-tint); border: 1px solid hsl(215 48% 20%/.1);
  border-radius: calc(var(--radius) + 4px); padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 3rem;
}
.cta-block strong { display: block; font-size: 1.0625rem; color: var(--navy); margin-bottom: .25rem; }
.cta-block p { font-size: .9rem; color: var(--muted-fg); }

/* ========================================================== */
/*  RESPONSIVE                                               */
/* ========================================================== */
@media (max-width: 1024px) {
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .values-grid       { grid-template-columns: repeat(2, 1fr); }
  .team-grid         { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 1.25rem; }
  .section   { padding: 3.5rem 0; }
  .nav-links, .header-ctas { display: none !important; }
  .hamburger { display: flex !important; }
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
  .services-grid     { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .faq-grid          { grid-template-columns: 1fr; }
  .contact-layout    { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-layout      { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .values-grid       { grid-template-columns: 1fr; }
  .team-grid         { grid-template-columns: repeat(2, 1fr); }
  .service-detail-inner { grid-template-columns: 1fr; }
  .service-detail-inner.reversed { direction: ltr; }
  .service-includes  { grid-template-columns: 1fr; }
  .stats-bar         { grid-template-columns: repeat(2, 1fr); margin-bottom: 2rem; }
  .hero-contact-cards{ grid-template-columns: 1fr; gap: .75rem; overflow: visible; }
  .about-stats       { grid-template-columns: repeat(2, 1fr); }
  .form-grid         { grid-template-columns: 1fr; }
  .checklist         { grid-template-columns: 1fr; }
  /* Fix hero content pushed below nav on mobile */
  .hero-content { padding-top: 6rem; }
  .hero-home .hero-content { padding-top: 6.5rem; }
  /* Square team photos on mobile */
  .team-grid img, .team-card img { height: auto !important; aspect-ratio: 1 / 1; object-fit: cover; width: 100%; }
  /* Contact hero cards not cut off */
  .page-hero { overflow: visible; }
  .hero-contact-cards .hero-contact-card { width: 100%; box-sizing: border-box; }
  /* Stack contact hero grid vertically on mobile */
  .contact-hero-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
}
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; padding: .75rem 1.25rem; font-size: .9375rem; }
  .hero-ctas .btn svg { width: 16px !important; height: 16px !important; flex-shrink: 0; }
  .btn-lg { padding: .75rem 1.25rem; font-size: .9375rem; }
  .cta-block { flex-direction: column; text-align: center; }
  .trust-pills { gap: .5rem 1rem; }
  .trust-pill { font-size: .8125rem; }
  .stat-val { font-size: 1.5rem; }
  .stat-lbl { font-size: .7rem; }
}

/* ========================================================== */
/*  WORDPRESS SPECIFIC OVERRIDES                              */
/* ========================================================== */

body.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar #site-header { top: 46px; }
}

.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

/* WP Caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .875rem; color: var(--muted-fg); margin-top: .5rem; text-align: center; }

/* Contact Form 7 overrides */
.wpcf7-form .form-grid input,
.wpcf7-form .form-grid select,
.wpcf7-form .form-grid textarea { width: 100%; }
.wpcf7-submit {
  background: var(--gradient-cta) !important;
  color: #fff !important; font-weight: 600 !important;
  padding: .875rem 1.75rem !important; border-radius: var(--radius) !important;
  border: none !important; cursor: pointer !important;
  width: 100% !important; font-size: 1rem !important; margin-top: .5rem !important;
}
.wpcf7-response-output {
  margin: 1rem 0 0 !important; padding: .75rem 1rem !important;
  border-radius: var(--radius) !important; font-size: .9rem !important;
}

/* ========================================================== */
/*  SEO INTRO SECTION (homepage, below hero)                  */
/* ========================================================== */
.seo-intro-section {
  padding: 3rem 0;
}
@media (max-width: 768px) {
  .seo-intro-section { padding: 2.25rem 0; }
}

/* ========================================================== */
/*  SERVICE AREAS GRID                                        */
/* ========================================================== */
/* SERVICE AREAS GRID                                         */
/* ========================================================== */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.area-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow .25s, transform .25s;
}
.area-card:hover { box-shadow: var(--shadow-navy); transform: translateY(-2px); }
.area-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: hsl(199 89% 38%/.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--sky);
  margin-top: .1rem;
}
.area-icon svg { width: 16px !important; height: 16px !important; }
.area-body { flex: 1; }
.area-city { font-size: .9375rem; font-weight: 700; color: var(--navy); margin-bottom: .25rem; }
.area-desc { font-size: .8125rem; color: var(--muted-fg); line-height: 1.55; }

/* ========================================================== */
/*  SERVICE CARD INTERNAL LINK                                */
/* ========================================================== */
.service-card-link {
  display: inline-block;
  margin-top: .75rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--sky);
  text-decoration: none;
}
.service-card-link:hover { text-decoration: underline; }

/* ========================================================== */
/*  BTN GHOST NAVY (used on landing pages)                    */
/* ========================================================== */
.btn-ghost-navy {
  background: transparent;
  color: var(--sky);
  border: 1.5px solid var(--sky);
  border-radius: var(--radius);
}
.btn-ghost-navy:hover { background: var(--sky); color: #fff; }

/* ========================================================== */
/*  RESPONSIVE — AREAS GRID                                   */
/* ========================================================== */
@media (max-width: 1024px) {
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .areas-grid { grid-template-columns: 1fr; }
}

/* ========================================================== */
/*  DESKTOP DROPDOWN NAV                                      */
/* ========================================================== */

/* Wrapper — sits as a flex child alongside plain <a> links */
.nav-item.has-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

/* The top-level parent link — matches plain nav-links a exactly */
.nav-parent {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: rgba(255,255,255,.78);
  font-size: .875rem;
  font-weight: 500;
  padding: .45rem .9rem;
  border-radius: .5rem;
  transition: background .15s, color .15s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  line-height: inherit;
  align-self: center;
}
.nav-parent:hover,
.nav-item.has-dropdown.open .nav-parent {
  color: #fff;
  background: rgba(255,255,255,.1);
}

/* Chevron — hard-sized, never inherits .btn svg or other rules */
.nav-chevron {
  width: 12px !important;
  height: 12px !important;
  flex-shrink: 0;
  display: block;
  transition: transform .2s ease;
  stroke: currentColor;
  fill: none;
}
.nav-item.has-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lifted);
  overflow: hidden;
  z-index: 200;
  padding: .375rem 0;
}

/* Show when .open */
.nav-item.has-dropdown.open .nav-dropdown {
  display: block;
  animation: dropdownFadeIn .15s ease-out both;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Dropdown links */
.nav-dropdown-item {
  display: block;
  padding: .625rem 1.25rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--navy);
  transition: background .12s, color .12s;
  white-space: nowrap;
}
.nav-dropdown-item:hover,
.nav-dropdown-item.active {
  background: var(--off-white);
  color: var(--sky);
}

/* First item = "All Services" label */
.nav-dropdown-item:first-child {
  border-bottom: 1px solid var(--border);
  margin-bottom: .25rem;
  padding-bottom: .625rem;
  color: var(--muted-fg);
  font-size: .775rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.nav-dropdown-item:first-child:hover { color: var(--sky); }

/* ========================================================== */
/*  MOBILE ACCORDION SUBMENU                                  */
/* ========================================================== */

/* Parent button (replaces <a> for items with children) */
.mobile-parent-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  font-weight: 500;
  padding: .75rem 1rem;
  border-radius: .5rem;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background .15s;
}
.mobile-parent-btn:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}

/* Chevron inside mobile button — hard-sized to prevent inheritance */
.mobile-chevron {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0;
  display: block;
  stroke: currentColor;
  fill: none;
  transition: transform .22s ease;
}
.mobile-item.has-sub.open .mobile-chevron {
  transform: rotate(180deg);
}

/* Hidden submenu — strong specificity to override #mobile-menu a rules */
#mobile-menu .mobile-submenu {
  display: none !important;
  flex-direction: column;
  background: rgba(255,255,255,.05);
  border-radius: .5rem;
  margin: .125rem 0 .125rem 1rem;
  padding: .25rem 0;
  border-left: 2px solid rgba(255,255,255,.15);
}

/* Show when parent .open */
#mobile-menu .mobile-item.has-sub.open .mobile-submenu {
  display: flex !important;
}

/* Sub-item links */
.mobile-sub-item {
  display: block;
  color: rgba(255,255,255,.7);
  font-size: .875rem;
  font-weight: 500;
  padding: .6rem 1rem .6rem 1.25rem;
  border-radius: .375rem;
  transition: color .15s, background .15s;
}
.mobile-sub-item:hover,
.mobile-sub-item.active {
  color: #fff;
  background: rgba(255,255,255,.08);
}

/* ========================================================== */
/*  BACK TO TOP BUTTON                                        */
/* ========================================================== */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px hsl(199 89% 38%/.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, background .15s;
  pointer-events: none;
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#back-to-top:hover {
  background: var(--navy);
  box-shadow: var(--shadow-navy);
}
#back-to-top svg {
  width: 18px !important;
  height: 18px !important;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: block;
}
@media (max-width: 480px) {
  #back-to-top { bottom: 1.25rem; right: 1.25rem; width: 40px; height: 40px; }
}

/* ========================================================== */
/*  GALLERY PAGE                                              */
/* ========================================================== */

/* ── Filter Tabs ── */
.gallery-tabs-wrap {
  position: sticky;
  top: 72px;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px hsl(215 48% 20%/.06);
}
.gallery-tabs {
  display: flex;
  gap: .25rem;
  overflow-x: auto;
  padding: .75rem 0;
  scrollbar-width: none;
}
.gallery-tabs::-webkit-scrollbar { display: none; }
.gallery-tab {
  flex-shrink: 0;
  padding: .45rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--muted-fg);
  font-size: .8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .18s;
  font-family: inherit;
  white-space: nowrap;
}
.gallery-tab:hover {
  border-color: var(--sky);
  color: var(--sky);
  background: hsl(199 89% 38%/.06);
}
.gallery-tab.active {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
  box-shadow: var(--shadow-sky);
}

/* ── Section hide/show for filter ── */
.gallery-section { transition: opacity .2s; }
.gallery-section.hidden { display: none; }

/* ── Standard Photo Grid ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* ── Thumbnail ── */
.gallery-thumb {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: var(--off-white);
  aspect-ratio: 4 / 3;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery-thumb:hover img,
.gallery-thumb:focus img {
  transform: scale(1.05);
}
.gallery-thumb:focus {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}
.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .25s;
}
.gallery-thumb-overlay svg {
  width: 36px;
  height: 36px;
  stroke: #fff;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4));
}
.gallery-thumb:hover .gallery-thumb-overlay,
.gallery-thumb:focus .gallery-thumb-overlay {
  opacity: 1;
}

/* ── Before / After Grid ── */
.ba-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem 3rem;
}
.ba-pair {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.ba-pair-label {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -.01em;
}
.ba-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: .875rem;
}
.ba-col { position: relative; }
.ba-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  z-index: 2;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .65rem;
  border-radius: 999px;
}
.ba-badge--before {
  background: hsl(0 72% 51%/.9);
  color: #fff;
}
.ba-badge--after {
  background: hsl(142 72% 29%/.9);
  color: #fff;
}
.ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ba-arrow svg {
  width: 28px;
  height: 28px;
  stroke: var(--sky);
  opacity: .8;
}

/* ── Lightbox ── */
#gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
#gallery-lightbox.open {
  display: flex;
}
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.92);
  cursor: pointer;
}
.lb-inner {
  position: relative;
  z-index: 1;
  max-width: min(1080px, 92vw);
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}
.lb-img-wrap {
  position: relative;
  width: 100%;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
  background: hsl(215 55% 8%);
}
#lb-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: var(--radius);
  transition: opacity .2s;
}
#lb-img.loading { opacity: 0; }
.lb-spinner {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}
.lb-spinner.show { display: flex; }
.lb-spinner svg {
  width: 40px;
  height: 40px;
  stroke: rgba(255,255,255,.4);
  animation: lb-spin .8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }

.lb-caption {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  text-align: center;
  max-width: 680px;
  line-height: 1.5;
  padding: 0 3rem;
}
.lb-counter {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  font-weight: 600;
  letter-spacing: .06em;
}
.lb-close {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
  z-index: 2;
}
.lb-close:hover { background: rgba(255,255,255,.2); }
.lb-close svg { width: 20px; height: 20px; }
.lb-prev,
.lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
  z-index: 2;
}
.lb-prev { left: 1.25rem; }
.lb-next { right: 1.25rem; }
.lb-prev:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) translateX(-2px); }
.lb-next:hover { background: rgba(255,255,255,.2); transform: translateY(-50%) translateX(2px); }
.lb-prev svg,
.lb-next svg { width: 22px; height: 22px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .ba-grid { grid-template-columns: 1fr; gap: 2rem; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .625rem; }
  .gallery-tabs-wrap { top: 72px; }
  .lb-prev { left: .5rem; }
  .lb-next { right: .5rem; }
  .lb-prev, .lb-next { width: 40px; height: 40px; }
  .ba-cols { gap: .5rem; }
  .ba-arrow svg { width: 20px; height: 20px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: .5rem; }
  .lb-caption { padding: 0 1rem; font-size: .8rem; }
}
