/* ==========================================================================
   Frank's Body Shop — shared stylesheet (tokens + chrome)
   Owned by the orchestrator. Page subagents may ONLY append page-scoped rules
   below, each under a banner comment reading: page: <slug>
   Do not edit the shared sections above the page banners.
   ========================================================================== */

:root {
  /* palette */
  --plum: #4a2546;          /* dark bands, footer, top bar, primary buttons */
  --plum-deep: #3c1d39;
  --plum-head: #6a2c5f;     /* section + card headings */
  --accent: #1c6e97;        /* blue service icons, links */
  --accent-dark: #155574;
  --text: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e4e0e2;
  --bg: #ffffff;
  --bg-alt: #f4f1f3;        /* light section background */
  --white: #ffffff;
  --star: #f5a623;

  /* type */
  --font-head: 'Poppins', 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;

  /* rhythm */
  --maxw: 1200px;
  --gap: 24px;
  --radius: 10px;
  --radius-pill: 999px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 14px 40px rgba(0, 0, 0, 0.12);
}

/* ---------- reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); margin: 0 0 .5em; color: var(--plum-head); line-height: 1.2; }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--plum);
  color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 13px 26px; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: all .25s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--plum); color: #fff; border-color: var(--plum); }
.btn-solid:hover { background: var(--plum-deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline-light:hover { background: #fff; color: var(--plum); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: #fff; color: var(--plum); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .btn-chev { width: 11px; height: 11px; transform: rotate(90deg); }

/* ---------- top utility bar ---------- */
.topbar {
  background: var(--plum); color: #fff; font-size: 13px;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #fff; }
.topbar-left { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; }
.topbar-item svg { width: 15px; height: 15px; flex: none; }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(58, 40, 55, 0.92);
  backdrop-filter: blur(4px);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.brand img { height: 62px; width: auto; }
.nav-wrap { display: flex; align-items: center; gap: 30px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.main-nav a {
  color: #fff; font-family: var(--font-head); font-weight: 500; font-size: 14px;
  letter-spacing: 1px; text-transform: uppercase; padding: 6px 2px; position: relative;
}
.main-nav a:hover { text-decoration: none; color: #f0d8ea; }
.main-nav a.active { color: #f0d8ea; }
.main-nav a.active::after,
.main-nav a:hover::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #fff;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(30,20,28,.42); z-index: 1; }
.hero .container { position: relative; z-index: 2; }
.hero h1 { color: #fff; font-weight: 700; letter-spacing: 1px; }

/* home hero */
.hero-home { min-height: 560px; }
.hero-home h1 { font-size: clamp(34px, 5vw, 60px); text-transform: uppercase; margin-bottom: 18px; }
.hero-home p { font-size: 18px; max-width: 540px; margin-bottom: 26px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* inner page hero band */
.hero-inner { min-height: 420px; justify-content: center; text-align: center; }
.hero-inner h1 { font-size: clamp(32px, 5vw, 56px); text-transform: uppercase; }

/* ---------- section headings ---------- */
.eyebrow { font-family: var(--font-head); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--plum-head); font-size: 14px; }
.section-title { text-align: center; font-size: clamp(26px, 3.4vw, 38px); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 40px; }

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: var(--gap); }
.svc-icon { color: #006193; }

/* ---------- footer ---------- */
.site-footer { background: var(--plum); color: #d9cdd5; padding: 60px 0 0; font-size: 14px; }
.site-footer h4 { color: #fff; font-size: 18px; margin-bottom: 18px; letter-spacing: .5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer a { color: #d9cdd5; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-brand img { height: 74px; width: auto; margin-bottom: 16px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list.dotted li { list-style: disc; margin-left: 18px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.footer-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: #006193; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { display: inline-flex; }
.footer-social img { width: 22px; height: 22px; }
.footer-bottom { background: #fff; color: #595959; text-align: center; padding: 10px 0; margin-top: 46px; font-size: 14px; }

/* ---------- forms ---------- */
.lead-form label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.lead-form input, .lead-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-body); font-size: 15px; margin-bottom: 18px; background: #fff; color: var(--text);
}
.lead-form input:focus, .lead-form textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lead-form textarea { min-height: 120px; resize: vertical; }
.lead-form .btn-send {
  width: 100%; background: var(--plum); color: #fff; border: 0; padding: 14px; border-radius: 6px;
  font-family: var(--font-head); font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: background .25s;
}
.lead-form .btn-send:hover { background: var(--plum-deep); }
.hp-field { position: absolute; left: -9999px; overflow: hidden; width: 1px; height: 1px; }

/* ---------- before/after reveal slider (vanilla) ---------- */
.ba-slider { position: relative; width: 100%; max-width: 520px; margin: 0 auto; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); user-select: none; }
.ba-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { z-index: 1; }
.ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; z-index: 3; transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 6px rgba(0,0,0,.4); }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 36px; height: 36px; background: #fff; color: var(--plum); border-radius: 50%; display: grid; place-items: center; font-size: 18px; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ba-label { position: absolute; bottom: 10px; z-index: 3; background: rgba(0,0,0,.55); color: #fff; padding: 3px 10px; font-size: 12px; letter-spacing: 1px; border-radius: 4px; }
.ba-label-before { left: 10px; }
.ba-label-after { right: 10px; }

/* ---------- motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

/* On-load reveal: element is ALWAYS visible; the animation only plays in.
   Never a static hidden state — see clone spec §2. */
.reveal { animation: fadeUp .7s ease both; }
.reveal-2 { animation: fadeUp .7s ease .12s both; }
.reveal-3 { animation: fadeUp .7s ease .24s both; }
.reveal-4 { animation: fadeUp .7s ease .36s both; }
.fade-in { animation: fadeIn .8s ease both; }

/* card hover lift */
.hover-lift { transition: transform .28s ease, box-shadow .28s ease; }
.hover-lift:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-wrap { position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw); background: var(--plum); flex-direction: column; align-items: stretch; padding: 90px 24px 24px; transform: translateX(100%); transition: transform .3s ease; z-index: 940; }
  .nav-wrap.open { transform: none; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .main-nav a.active::after, .main-nav a:hover::after { display: none; }
  .nav-toggle { z-index: 950; position: relative; }
}
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .lead-form .row2 { grid-template-columns: 1fr; }
  .topbar { font-size: 12px; }
}

/* ==========================================================================
   PAGE-SCOPED RULES BELOW — appended by page subagents under page: banners.
   ========================================================================== */

/* page: home */
.whatwedo { display: grid; grid-template-columns: 411px 1fr; gap: 56px; align-items: center; }
.whatwedo-media { position: relative; }
.whatwedo-media img { width: 411px; max-width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.badge { position: absolute; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--plum-head); font-family: var(--font-head); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.badge svg { width: 20px; height: 22px; color: #006193; }
.badge-top { top: -14px; right: 18px; }
.badge-bottom { bottom: 18px; left: -14px; }
.whatwedo-text .eyebrow { display: block; margin-bottom: 14px; }
.whatwedo-text .lead { font-family: var(--font-head); font-weight: 400; font-size: clamp(18px, 2.1vw, 24px); line-height: 1.5; color: var(--plum-head); }

.svc-grid { grid-template-columns: repeat(4, 1fr); }
.svc-card { background: #fff; border-radius: var(--radius); padding: 30px 24px 54px; box-shadow: var(--shadow); position: relative; text-align: left; }
.svc-card .svc-icon svg { width: 84px; height: 49px; margin-bottom: 16px; }
.svc-card h3 { font-size: 18px; margin-bottom: 10px; }
.svc-card p { font-size: 14px; color: var(--muted); margin: 0; }
.svc-arrow { position: absolute; left: 20px; bottom: 16px; width: 29px; height: 29px; color: #006193; display: grid; place-items: center; text-decoration: none; transition: color .25s; }
.svc-arrow svg { width: 22px; height: 22px; transform: rotate(246deg); }
.svc-arrow:hover { color: var(--plum); text-decoration: none; }

.why-band { background: var(--plum); color: #efe4ec; }
.why-title { color: #fff; }
.why-lead { max-width: 900px; margin: 0 auto 42px; text-align: center; color: #e6d7e2; }
.why-grid { grid-template-columns: repeat(4, 1fr); max-width: 900px; margin: 0 auto; }
.why-item { border: 1px solid rgba(255,255,255,.28); border-radius: var(--radius); padding: 26px 16px; text-align: center; }
.why-icon svg { width: 54px; height: 61px; color: #fff; margin-bottom: 12px; }
.why-item h4 { color: #fff; font-size: 15px; margin: 0; letter-spacing: .5px; }

.ba-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; justify-items: center; }

.gallery-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gal-item { display: block; border-radius: 15px; overflow: hidden; border: 1px solid rgba(89,89,89,.5); }
.gal-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
/* home: two rows of 313px tiles in a horizontally scrolling strip, as on the source */
.gallery-grid.gal-home { position: relative; left: 50%; transform: translateX(-50%); width: min(1450px, calc(100vw - 48px)); grid-template-columns: none; grid-auto-flow: column; grid-template-rows: repeat(2, 313px); grid-auto-columns: 313px; gap: 10px; overflow-x: auto; padding: 8px 0 10px; scroll-snap-type: x proximity; }
.gal-home .gal-item { scroll-snap-align: start; }
.gal-home .gal-item img { height: 100%; }

.testi-band { background: linear-gradient(rgba(30,15,25,.82), rgba(30,15,25,.9)), url('orig/20.jpg') center/cover; }
.testi-title { color: #fff; }
.testi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1000px; margin: 0 auto; }
.testi-card { background: #fff; border-radius: var(--radius); padding: 34px 28px 26px; position: relative; box-shadow: var(--shadow-lg); }
.testi-card .quote-mark { display: block; width: 52px; height: 48px; margin: -8px auto 0; color: #006193; opacity: .35; }
.testi-card .quote-mark svg { width: 100%; height: 100%; display: block; }
.testi-card blockquote { margin: 26px 0 18px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.testi-card figcaption { text-align: center; }
.testi-card figcaption a { display: block; font-family: var(--font-head); font-weight: 600; color: var(--plum-head); margin-bottom: 4px; }
.testi-card figcaption a:hover { text-decoration: none; }
.testi-card .rating { font-size: 14px; color: var(--muted); }
.testi-card .stars { color: #F0AE3B; display: inline-block; vertical-align: -1px; margin-left: 4px; }
.testi-card .stars svg { width: 90px; height: 14px; display: block; }

.git-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.git-list { list-style: none; margin: 20px 0 0; padding: 0; }
.git-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; color: var(--text); }
.git-list svg { width: 24px; height: 24px; color: #006193; flex: none; margin-top: 2px; }
.git-list a { color: var(--text); }
.git-social { margin-top: 20px; display: flex; gap: 12px; align-items: center; }
.git-thumb svg { width: 24px; height: 25px; color: #006193; display: block; }
.git-social img { width: 26px; height: 26px; }
.git-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }

@media (max-width: 900px) {
  .whatwedo { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .badge-bottom { left: 8px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .ba-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid.gal-home { grid-template-rows: repeat(2, 220px); grid-auto-columns: 220px; }
  .testi-grid { grid-template-columns: 1fr; }
  .git-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid.gal-home { grid-template-rows: repeat(2, 160px); grid-auto-columns: 160px; }
}

/* page: services */
.svc-list { display: grid; gap: 26px; max-width: 900px; margin: 0 auto; }
.svc-row { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 40px; display: grid; grid-template-columns: 150px 1fr; gap: 30px; align-items: center; }
.svc-row .svc-icon svg { width: 130px; height: 130px; }
.svc-row .svc-body h3 { font-size: 26px; margin-bottom: 12px; }
.svc-row .svc-body p { margin: 0; color: var(--text); }
@media (max-width: 700px) {
  .svc-row { grid-template-columns: 1fr; text-align: center; padding: 28px 22px; gap: 16px; }
  .svc-row .svc-icon svg { width: 90px; height: 90px; margin: 0 auto; }
}

/* page: about-us */
.about-why-band { background: #f7f5f5; }
.about-why-band .why-title { color: #4e264c; font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 20px; }
.about-why-band .why-lead { max-width: 900px; margin: 0 auto 42px; text-align: center; color: #000; }
/* source flows the cards column-first: Expert | 40 Years on top, Guaranteed | Trusted below */
.about-why { display: grid; grid-template-columns: repeat(2, minmax(0, 476px)); grid-template-rows: auto auto; grid-auto-flow: column; justify-content: center; gap: 33px; margin: 0 auto; }
.about-why-item { background: transparent; border: 1px solid rgba(89,89,89,.5); border-radius: 15px; padding: 30px 32px; text-align: center; }
.about-why-icon svg { width: 84px; height: 84px; color: #006193; margin: 0 auto 14px; display: block; }
.about-why-item h4 { color: #4e264c; font-size: 22px; margin-bottom: 12px; }
.about-why-item p { color: #000; font-size: 16px; margin: 0; }
@media (max-width: 800px) { .about-why { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; } }

/* page: gallery */
.gallery-grid.gallery-page { position: relative; left: 50%; transform: translateX(-50%); width: min(1793px, calc(100vw - 48px)); grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 900px) { .gallery-grid.gallery-page { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* page: contact-us */
.contact-band { background: var(--plum); color: #fff; }
.contact-band .container { display: grid; grid-template-columns: repeat(3, 1fr); }
.cb-item { padding: 40px 30px; text-align: center; }
.cb-item + .cb-item { border-left: 1px solid rgba(255,255,255,.2); }
.cb-item h3 { color: #fff; display: inline-flex; align-items: center; gap: 10px; font-size: 18px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.cb-item h3 svg { width: 20px; height: 20px; }
.cb-item p { margin: 0; color: #e6d7e2; }
.cb-item a { color: #e6d7e2; }
.cb-item a:hover { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-map { position: relative; }
#map { height: 420px; width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; }
.map-directions { display: inline-block; margin-top: 14px; font-family: var(--font-head); font-weight: 600; color: var(--accent); }
@media (max-width: 850px) {
  .contact-band .container { grid-template-columns: 1fr; }
  .cb-item + .cb-item { border-left: 0; border-top: 1px solid rgba(255,255,255,.2); }
  .contact-grid { grid-template-columns: 1fr; }
}
