/* ==========================================================================
   Grocery Select — premium theme
   Deep emerald + champagne gold. Fonts are loaded from includes/header.php.
   ========================================================================== */

:root {
  --emerald-900: #08170F;
  --forest: #0F2C1E;          /* primary deep emerald */
  --forest-light: #1D4D35;
  --gold: #C9A96A;            /* champagne */
  --gold-bright: #E3CB94;
  --cream: #F2F4EF;           /* pearl (name kept for existing inline styles) */
  --ivory-2: #E6EBE2;         /* alternate section tint */
  --ink: #17221C;
  --ink-soft: #3B473F;
  --stone: #6F7C72;
  --line: rgba(15, 44, 30, 0.14);
  --line-gold: rgba(201, 169, 106, 0.45);
  --on-dark: #F2F4EF;
  --on-dark-soft: rgba(242, 244, 239, 0.72);
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  color: var(--forest);
  margin: 0;
  letter-spacing: -0.005em;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 244, 239, 0.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-gold);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px 28px; max-width: 1180px; margin: 0 auto;
}
.brand img { width: 158px; height: auto; }
.navlinks { display: none; gap: 38px; font-size: 14.5px; letter-spacing: 0.04em; }
.navlinks a { position: relative; padding: 6px 0; color: var(--ink-soft); transition: color .2s; }
.navlinks a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--gold); transition: right .25s ease;
}
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--forest); }
.navlinks a:hover::after, .navlinks a[aria-current="page"]::after { right: 0; }
.nav .nav-cta { display: none; padding: 11px 26px; line-height: 1.3; }
@media (min-width: 880px) { .navlinks { display: flex; } .nav .nav-cta { display: inline-block; } .mnav { display: none; } }

/* Mobile menu (no JavaScript) */
.mnav { position: relative; }
.mnav summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary span { display: block; width: 24px; height: 1.5px; background: var(--forest); transition: transform .2s, opacity .2s; }
.mnav[open] summary span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.mnav[open] summary span:nth-child(2) { opacity: 0; }
.mnav[open] summary span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.mnav-panel {
  position: absolute; right: -28px; top: calc(100% + 15px); width: min(320px, 100vw);
  background: var(--forest); padding: 14px 28px 26px;
  border-top: 1px solid var(--gold); box-shadow: 0 24px 40px rgba(8, 23, 15, 0.35);
}
.mnav-panel a {
  display: block; padding: 15px 0; color: var(--on-dark);
  font-family: var(--display); font-size: 24px; border-bottom: 1px solid rgba(242,244,239,0.1);
}
.mnav-panel a:hover { color: var(--gold-bright); }
.mnav-panel .btn { margin-top: 22px; width: 100%; text-align: center; font-family: var(--body); font-size: 14.5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--forest); color: var(--on-dark);
  padding: 14px 32px; border-radius: 0; font-family: var(--body); font-size: 14.5px; font-weight: 500;
  letter-spacing: 0.06em; border: 1px solid var(--forest); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: var(--forest); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--emerald-900); }
.btn-gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); color: var(--emerald-900); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--on-dark); }

/* Buttons on dark surfaces */
.hero .btn, .enquiry .btn { background: var(--gold); border-color: var(--gold); color: var(--emerald-900); }
.hero .btn:hover, .enquiry .btn:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.hero .btn-outline, .enquiry .btn-outline { background: transparent; border-color: rgba(242,244,239,0.55); color: var(--on-dark); }
.hero .btn-outline:hover, .enquiry .btn-outline:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--forest); }

/* ---------- Hero (dark emerald; shared by every page) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 110px 0 96px;
  background:
    radial-gradient(ellipse 70% 90% at 88% 8%, rgba(29, 77, 53, 0.9) 0%, transparent 62%),
    linear-gradient(180deg, var(--forest) 0%, var(--emerald-900) 100%);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-gold);
}
/* Slanted champagne stripes — echoes the diagonal in the Grocery Select logo */
.hero::after {
  content: ''; position: absolute; right: -40px; bottom: -30px; width: 460px; height: 170px; z-index: -1;
  background: repeating-linear-gradient(115deg, rgba(201,169,106,0.5) 0 1px, transparent 1px 15px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
          mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.eyebrow-line { width: 48px; height: 2px; background: var(--gold); margin-bottom: 26px; transform: skewX(-30deg); }
.hero h1 {
  color: var(--on-dark); font-size: clamp(40px, 6.2vw, 76px); line-height: 1.04; font-weight: 500;
  max-width: 780px; letter-spacing: -0.015em;
}
.hero p.lede { margin-top: 26px; font-size: 17px; font-weight: 300; color: rgba(242,244,239,0.84); max-width: 500px; }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }

/* The one memorable element: a slanted, gold-edged panel */
.stat-panel {
  --cut: 34px;
  position: relative; isolation: isolate; color: var(--on-dark);
  padding: 34px calc(var(--cut) + 22px);
  margin-top: 26px;
}
.stat-panel::before, .stat-panel::after {
  content: ''; position: absolute; z-index: -1;
  clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
}
.stat-panel::before { inset: 0; background: var(--gold); }
.stat-panel::after  { inset: 1px; background: linear-gradient(160deg, #143826 0%, #0B2014 100%); }
@media (max-width: 620px) { .hero h1 br { display: none; } .stat-panel { --cut: 16px; padding: 26px calc(var(--cut) + 14px); } }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(201,169,106,0.25); }
.stat-row:last-child { border-bottom: none; }
.stat-num { white-space: nowrap; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--gold-bright); font-weight: 500; }
.stat-label { font-size: 13.5px; color: var(--on-dark-soft); text-align: right; }

/* ---------- Sections ---------- */
section { padding: 104px 0; }
@media (max-width: 760px) { section { padding: 68px 0; } .hero { padding: 76px 0 64px; } }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; }
.section-head p { margin-top: 16px; color: var(--ink-soft); font-size: 16px; font-weight: 300; }
.section-head p a, section a[style*="text-decoration:underline"] { text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* Why cards */
.why-grid { display: grid; gap: 36px 34px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-card { border-top: 1px solid var(--gold); padding-top: 22px; }
.why-card h3 { font-size: 26px; margin-bottom: 10px; line-height: 1.15; }
.why-card p { font-size: 15px; color: var(--ink-soft); margin: 0; font-weight: 300; }

/* Tiers */
.tiers { background: var(--ivory-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tier-grid { display: grid; gap: 26px; }
@media (min-width: 860px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
.tier-card { background: rgba(255,255,255,0.55); border: 1px solid var(--line); padding: 38px 30px; position: relative; }
.tier-card.featured { border-color: var(--gold); background: #fff; box-shadow: 0 26px 50px -30px rgba(15, 44, 30, 0.45); }
.tier-tag { position: absolute; top: -13px; left: 30px; background: var(--forest); color: var(--gold-bright); font-size: 12.5px; padding: 4px 14px; font-weight: 500; letter-spacing: 0.05em; }
.tier-card h3 { font-size: 26px; margin-bottom: 6px; }
.tier-sqft { font-size: 13.5px; color: var(--stone); margin-bottom: 20px; }
.tier-price { font-family: var(--display); font-size: 36px; margin-bottom: 22px; color: var(--forest); line-height: 1.1; }
.tier-price small { font-family: var(--body); font-size: 13.5px; color: var(--stone); display: block; margin-top: 6px; font-weight: 400; }
.tier-list { list-style: none; padding: 0; margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.tier-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.tier-note { font-size: 13px; color: var(--stone); margin-top: 20px; max-width: 640px; }

/* Fees */
.support-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .support-grid { grid-template-columns: repeat(3, 1fr); } }
.support-item { padding: 20px 0 20px 22px; border-left: 1px solid var(--gold); }
.support-item h3 { font-size: 21px; margin-bottom: 8px; }
.support-item p { font-size: 14.5px; color: var(--ink-soft); margin: 0; font-weight: 300; }

/* Gallery */
.gallery-grid { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { border: 1px solid var(--line-gold); overflow: hidden; border-radius: 0; }
.gallery-cap { padding: 12px 16px; font-size: 13px; color: var(--stone); background: var(--cream); }

/* Testimonials */
.testi-grid { display: grid; gap: 26px; }
@media (min-width: 860px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card { background: var(--forest); color: var(--on-dark); padding: 40px 32px 34px; border-top: 2px solid var(--gold); }
.testi-quote { font-family: var(--display); font-size: 23px; line-height: 1.4; margin-bottom: 26px; font-style: italic; font-weight: 500; }
.testi-name { font-size: 14.5px; color: var(--gold-bright); font-weight: 500; }
.testi-city { font-size: 13px; color: var(--on-dark-soft); }

/* Cities */
.city-chip-row { display: flex; flex-wrap: wrap; gap: 14px; }
.city-chip { border: 1px solid var(--line-gold); padding: 11px 24px; font-size: 14.5px; background: rgba(255,255,255,0.5); letter-spacing: 0.03em; }

.marquee {
  overflow: hidden;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 14px;
  padding: 2px 0 2px 14px;
  animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-chip { flex: 0 0 auto; white-space: nowrap; }
.brand-logo {
  display: inline-flex; align-items: center; justify-content: center;
  height: 64px; padding: 10px 26px; border: 1px solid var(--line-gold);
  background: rgba(255,255,255,0.5);
}
.brand-logo img { height: 40px; width: auto; max-width: 140px; object-fit: contain; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* Path to Launch — mind map */
.pathmap-desktop { display: none; margin-top: 36px; }
.pathmap-desktop svg { width: 100%; height: auto; display: block; }
.pm-line { stroke: var(--gold); stroke-width: 1.5; fill: none; }
.pm-hub-circle { fill: var(--forest); stroke: var(--gold); stroke-width: 2; }
.pm-hub-text-title { font-family: var(--display); font-size: 26px; font-weight: 500; fill: var(--gold-bright); }
.pm-hub-text-sub { font-family: var(--body); font-size: 13px; font-weight: 300; fill: var(--on-dark-soft); }
.pm-node-rect { fill: #fff; stroke: var(--line-gold); stroke-width: 1.5; }
.pm-node-num { font-family: var(--display); font-size: 22px; font-weight: 500; fill: var(--gold); }
.pm-node-title { font-family: var(--body); font-size: 14.5px; font-weight: 500; fill: var(--forest); }
.pm-node-sub { font-family: var(--body); font-size: 12px; font-weight: 300; fill: var(--stone); }

.pathmap-mobile { margin-top: 30px; }
.pm-step { display: flex; align-items: flex-start; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pm-step:last-child { border-bottom: none; }
.pm-step-num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-size: 18px; font-weight: 500; color: var(--forest);
}
.pm-step-title { font-size: 15px; font-weight: 500; color: var(--forest); }
.pm-step-sub { font-size: 13px; color: var(--stone); margin-top: 2px; }

@media (min-width: 760px) {
  .pathmap-desktop { display: block; }
  .pathmap-mobile { display: none; }
}

/* ---------- Enquiry (dark) ---------- */
.enquiry { background: linear-gradient(180deg, var(--forest) 0%, var(--emerald-900) 100%); color: var(--on-dark); }
.enquiry h2 { color: var(--on-dark); font-size: clamp(32px, 4.2vw, 50px); line-height: 1.1; }
.enquiry .section-head p { color: var(--on-dark-soft); }
form.efrm { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; max-width: 760px; }
@media (max-width: 620px) { form.efrm { grid-template-columns: 1fr; } }
form.efrm .full { grid-column: 1 / -1; }
label { font-size: 13px; opacity: 0.8; display: block; margin-bottom: 7px; letter-spacing: 0.03em; }
input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea {
  width: 100%; background: #fff; border: 1px solid var(--line); color: var(--ink);
  padding: 11px 12px; font-family: var(--body); font-size: 15.5px; outline: none;
  border-radius: 0; transition: border-color .2s;
}
input::placeholder, textarea::placeholder { color: var(--stone); opacity: .8; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
/* Dark enquiry band: underline-style fields */
.enquiry input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=hidden]), .enquiry select, .enquiry textarea {
  background: transparent; border: none; border-bottom: 1px solid rgba(242,244,239,0.35);
  color: var(--on-dark); padding: 11px 2px;
}
.enquiry input::placeholder, .enquiry textarea::placeholder { color: rgba(242,244,239,0.38); opacity: 1; }
select option { color: #111; }
.efrm .submit-row { grid-column: 1/-1; margin-top: 8px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-msg { font-size: 14px; padding: 11px 15px; }
.form-msg.success { background: rgba(201,169,106,0.16); color: var(--gold-bright); }
.form-msg.error { background: rgba(255,80,80,0.15); color: #ff9a9a; }

/* ---------- Social ---------- */
.social-icons { display: flex; flex-wrap: wrap; gap: 12px; }
.social-icon {
  width: 42px; height: 42px; border: 1px solid var(--line-gold); border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: var(--gold);
  transition: background .2s, color .2s, border-color .2s;
}
.social-icon svg { width: 18px; height: 18px; }
.social-icon:hover { background: var(--brand, var(--gold)); border-color: var(--brand, var(--gold)); color: #fff; }
.social-icons.on-light .social-icon { color: var(--forest); border-color: var(--forest); }
.social-icons.on-light .social-icon:hover { background: var(--brand, var(--forest)); color: #fff; border-color: var(--brand, var(--forest)); }

.social-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .social-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
.social-card {
  display: flex; align-items: center; gap: 20px; min-width: 0;
  padding: 22px 26px; background: rgba(255,255,255,0.6); border: 1px solid var(--line);
  transition: border-color .25s, background .25s;
}
.social-card:hover { border-color: var(--gold); background: #fff; }
.social-avatar {
  width: 72px; height: 72px; flex-shrink: 0; border-radius: 50%; padding: 3px;
  border: 1px solid var(--gold); background: var(--cream); display: flex; align-items: center; justify-content: center;
  color: var(--forest);
}
.social-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.social-avatar svg { width: 30px; height: 30px; }
.sc-text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.social-card .sc-name { font-family: var(--display); font-size: 27px; color: var(--forest); line-height: 1.1; }
.social-card .sc-handle { font-size: 14px; color: var(--stone); overflow-wrap: anywhere; }
.social-card .sc-follow { margin-top: 10px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.05em; color: var(--forest); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }

/* ---------- Footer ---------- */
footer { background: var(--emerald-900); color: var(--on-dark-soft); padding: 84px 0 40px; border-top: 1px solid var(--gold); }
.foot-grid { display: grid; gap: 44px; grid-template-columns: 1fr; margin-bottom: 56px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1.3fr 1.2fr; } }
.foot-logo { display: inline-block; border: 1px solid var(--gold); margin-bottom: 22px; line-height: 0; }
.foot-logo img { width: 160px; }
.foot-blurb { max-width: 320px; font-size: 14.5px; font-weight: 300; margin: 0; }
.foot-col h4 { font-family: var(--display); color: var(--gold-bright); font-size: 22px; margin: 0 0 16px; font-weight: 500; }
.foot-col a, .foot-col p { display: block; font-size: 14.5px; padding: 5px 0; margin: 0; color: var(--on-dark-soft); font-weight: 300; }
.foot-col a:hover { color: var(--gold-bright); }
.foot-col .social-icons { margin-top: 4px; }
.foot-col .social-icons a.social-icon { display: inline-flex; padding: 0; width: 42px; height: 42px; color: var(--gold); }
.foot-col .social-icons a.social-icon:hover { color: var(--emerald-900); }
.foot-listings { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-bottom: 30px; font-size: 13.5px; }
.foot-listings > span { color: var(--gold-bright); font-family: var(--display); font-size: 19px; margin-right: 4px; }
.foot-listings a { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark-soft); border-bottom: 1px solid rgba(201,169,106,0.35); padding-bottom: 1px; }
.foot-listings a:hover { color: var(--gold-bright); border-color: var(--gold); }
.foot-trust { max-width: 280px; margin-bottom: 30px; }
.listing-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.02em; line-height: 1; flex-shrink: 0;
}
.foot-bottom { border-top: 1px solid rgba(201,169,106,0.22); padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

.wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 58px; height: 58px; border-radius: 50%;
  background: var(--forest); border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center; z-index: 60;
  box-shadow: 0 12px 28px rgba(8, 23, 15, 0.35); transition: background .2s;
}
.wa-float:hover { background: var(--forest-light); }
.wa-float svg { width: 27px; height: 27px; }

/* ---------- Shared bits used by inner pages ---------- */
.field-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; gap: 16px; }
.field-row .k { color: var(--stone); flex-shrink: 0; }
.field-row .v { font-weight: 500; text-align: right; }

@media (max-width: 760px) { #calcGrid { grid-template-columns: 1fr !important; } }

.two-col { display: grid; gap: 48px; grid-template-columns: 1fr 1fr; align-items: start; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.tier-grid-4col { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 860px) { .tier-grid-4col { grid-template-columns: repeat(4, 1fr); } }

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

/* ---------- Legal / policy pages ---------- */
.legal-wrap { display: grid; gap: 48px; grid-template-columns: 220px 1fr; align-items: start; }
@media (max-width: 860px) { .legal-wrap { grid-template-columns: 1fr; } }
.legal-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 860px) {
  .legal-side { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
}
.legal-side h4 { font-family: var(--display); font-size: 15px; color: var(--forest); margin: 0 0 8px; font-weight: 600; letter-spacing: 0.02em; width: 100%; }
@media (max-width: 860px) { .legal-side h4 { display: none; } }
.legal-side a { font-size: 13.5px; color: var(--ink-soft); padding: 7px 0; border-left: 2px solid transparent; padding-left: 12px; }
.legal-side a:hover { color: var(--forest); }
.legal-side a[aria-current="page"] { color: var(--forest); border-left-color: var(--gold); font-weight: 600; }
@media (max-width: 860px) { .legal-side a { padding: 6px 10px; border: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--ivory-2); } .legal-side a[aria-current="page"] { background: var(--forest); color: var(--on-dark); border-color: var(--forest); } }

.legal-body { max-width: 760px; color: var(--ink-soft); font-size: 15px; line-height: 1.8; }
.legal-body .legal-updated { font-size: 12.5px; color: var(--stone); margin-bottom: 30px; letter-spacing: 0.02em; text-transform: uppercase; }
.legal-body h2 { font-size: 22px; color: var(--forest); margin: 44px 0 14px; font-family: var(--display); font-weight: 600; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 { font-size: 16.5px; color: var(--forest); margin: 26px 0 10px; font-weight: 600; }
.legal-body p { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--line-gold); text-underline-offset: 3px; }
.legal-body a:hover { text-decoration-color: var(--forest); }
.legal-body strong { color: var(--forest); font-weight: 600; }
.legal-body table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.legal-body th, .legal-body td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal-body th { color: var(--stone); font-weight: 500; background: var(--ivory-2); }
.legal-callout { background: var(--ivory-2); border-left: 3px solid var(--gold); padding: 16px 20px; font-size: 14px; margin: 0 0 20px; }
.legal-callout p:last-child { margin-bottom: 0; }
.legal-contact-box { border: 1px solid var(--line); padding: 22px 24px; margin-top: 10px; }
.legal-contact-box .field-row .v { text-align: left; }

/* ---------- Footer legal links row ---------- */
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; margin-bottom: 22px; }
.foot-legal a { color: var(--on-dark-soft); }
.foot-legal a:hover { color: var(--gold-bright); }
.foot-legal span.sep { color: rgba(242,244,239,0.3); }

/* ---------- Enquiry popup modal (light design) ---------- */
.enq-modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 44, 30, 0.38);
  display: none; justify-content: center; z-index: 1000;
  padding: 16px; overflow-y: auto;
}
.enq-modal-overlay.open { display: flex; }
.enq-modal-box {
  background: #fff; width: 100%; max-width: 440px; margin: auto; position: relative;
  padding: 28px 26px 22px; border-radius: 14px;
  box-shadow: 0 18px 50px -18px rgba(15, 44, 30, 0.35);
  animation: enqPop .22s ease;
}
@media (max-width: 480px) { .enq-modal-box { padding: 24px 18px 18px; border-radius: 12px; } }
@keyframes enqPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.enq-modal-close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border: none; border-radius: 50%;
  background: transparent; color: var(--stone); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.enq-modal-close:hover { background: var(--ivory-2); color: var(--forest); }
.enq-modal-box h3 { font-family: var(--display); font-size: 23px; font-weight: 600; color: var(--forest); margin: 0 30px 4px 0; line-height: 1.2; }
.enq-modal-box .enq-sub { font-size: 13px; color: var(--stone); margin: 0 0 16px; }
.enq-modal-box .sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; opacity: 1;
}
.enq-modal-box form { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.enq-modal-box form .full { grid-column: 1/-1; }
@media (max-width: 340px) { .enq-modal-box form { grid-template-columns: 1fr; } }
.enq-modal-box input:not([type=hidden]), .enq-modal-box select, .enq-modal-box textarea {
  border: 1px solid rgba(15, 44, 30, 0.16); border-radius: 8px; background: #fbfcfa;
  padding: 11px 12px; font-size: 15px;
}
.enq-modal-box input:focus, .enq-modal-box select:focus, .enq-modal-box textarea:focus { background: #fff; border-color: var(--gold); }
.enq-modal-box .enq-more { grid-column: 1/-1; }
.enq-modal-box .enq-more summary {
  cursor: pointer; font-size: 13px; color: var(--forest); list-style: none; padding: 2px 0; user-select: none;
}
.enq-modal-box .enq-more summary::-webkit-details-marker { display: none; }
.enq-modal-box .enq-more summary::before { content: '+'; display: inline-block; width: 16px; font-weight: 600; }
.enq-modal-box .enq-more[open] summary::before { content: '\2212'; }
.enq-modal-box .enq-more-body { display: grid; gap: 10px; margin-top: 8px; }
.enq-modal-box .submit-row { grid-column: 1/-1; margin-top: 4px; }
.enq-modal-box .submit-row .btn { width: 100%; padding: 12px 20px; border-radius: 8px; font-size: 14.5px; letter-spacing: 0.03em; }
.enq-modal-box .form-msg { margin-top: 10px; border-radius: 8px; font-size: 13.5px; padding: 9px 12px; }
.enq-modal-box .form-msg:empty { display: none; }
.enq-modal-box .form-msg.success { background: rgba(15,44,30,0.08); color: var(--forest); }
.enq-modal-box .form-msg.error { background: rgba(255,60,60,0.1); color: #c23a3a; }


/* ---------- Technology page ---------- */
.tech-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tech-grid { grid-template-columns: repeat(3, 1fr); } }
.tech-card { padding: 30px 28px 32px; border: 1px solid var(--line); border-top: 1px solid var(--gold); background: rgba(255,255,255,0.6); transition: background .25s, border-color .25s; }
.tech-card:hover { background: #fff; border-color: var(--gold); }
.tech-num { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.tech-card h3 { font-size: 27px; line-height: 1.15; margin-bottom: 8px; }
.tech-card p { margin: 0; font-size: 15px; color: var(--ink-soft); font-weight: 300; }
.tech-note { border-left: 2px solid var(--gold); padding-left: 16px; }
.ai-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 48px; grid-template-columns: 1fr; max-width: 900px; }
@media (min-width: 760px) { .ai-list { grid-template-columns: repeat(2, 1fr); } }
.ai-list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-family: var(--display); font-size: 24px; line-height: 1.25; color: var(--forest); }

/* ---------- Careers ---------- */
.job-list { display: grid; gap: 18px; }
.job-card { padding: 28px 30px; border: 1px solid var(--line); background: rgba(255,255,255,0.6); transition: border-color .25s, background .25s; }
.job-card:hover, .job-card:target { border-color: var(--gold); background: #fff; }
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.job-head h3 { font-size: 29px; line-height: 1.15; margin-bottom: 6px; }
.job-meta { margin: 0; font-size: 14px; color: var(--stone); }
.job-summary { margin: 14px 0 0; color: var(--ink-soft); max-width: 720px; }
.btn-small-site { padding: 11px 24px; font-size: 13.5px; }
.job-more { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.job-more summary { cursor: pointer; font-size: 14px; font-weight: 500; letter-spacing: 0.04em; color: var(--forest); list-style: none; }
.job-more summary::-webkit-details-marker { display: none; }
.job-more summary::after { content: '  +'; color: var(--gold); }
.job-more[open] summary::after { content: '  \2212'; }
.job-detail { margin-top: 14px; max-width: 760px; color: var(--ink-soft); font-size: 15.5px; }
.job-detail h4 { font-family: var(--display); font-size: 22px; font-weight: 500; color: var(--forest); margin: 18px 0 8px; }
.job-detail p { margin: 0 0 12px; }
.job-detail ul { margin: 0 0 12px; padding-left: 22px; }
.job-detail li { margin-bottom: 6px; }
.job-closing { font-size: 13.5px; color: var(--stone); }
.job-empty { max-width: 700px; padding: 26px 30px; border: 1px solid var(--line-gold); background: rgba(255,255,255,0.55); }
.job-empty p { margin: 0; color: var(--ink-soft); }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.55; opacity: 1; margin: 0; cursor: pointer; }
.check input { width: auto; flex-shrink: 0; margin-top: 4px; accent-color: var(--gold); }
.check a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

.file-field { position: relative; }
.file-field input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 2; }
.file-pick { display: flex; align-items: center; gap: 16px; margin: 0; padding: 10px 0; border-bottom: 1px solid rgba(242,244,239,0.35); opacity: 1; cursor: pointer; }
.file-pick-btn { flex-shrink: 0; padding: 8px 18px; border: 1px solid var(--gold); color: var(--gold-bright); font-size: 13.5px; letter-spacing: 0.04em; transition: background .2s, color .2s; }
.file-pick-name { font-size: 14px; color: rgba(242,244,239,0.6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.file-pick.has-file .file-pick-name { color: var(--on-dark); }
.file-field:hover .file-pick-btn { background: var(--gold); color: var(--emerald-900); }
.file-field:focus-within .file-pick { border-bottom-color: var(--gold); }
.career-fine { margin: 26px 0 0; font-size: 13.5px; color: var(--on-dark-soft); max-width: 760px; }
.career-fine a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }

/* ---------- Application status ---------- */
.status-form { display: grid; gap: 20px; grid-template-columns: 1fr 1fr auto; align-items: end; }
@media (max-width: 760px) { .status-form { grid-template-columns: 1fr; } }
.status-form label { margin-bottom: 7px; }
.status-form .btn { width: 100%; }
.status-error { margin-bottom: 22px; padding: 14px 18px; border-left: 3px solid #b3261e; background: rgba(179,38,30,0.07); color: #7a1c16; font-size: 15px; }
.status-help { margin: 26px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.status-help a { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.status-card { padding: 34px 36px; border: 1px solid var(--gold); background: #fff; }
@media (max-width: 620px) { .status-card { padding: 26px 22px; } }
.status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.status-ref { margin: 0 0 6px; font-size: 13.5px; letter-spacing: 0.04em; color: var(--stone); }
.status-top h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.1; }
.status-pill { padding: 8px 18px; font-size: 13.5px; font-weight: 500; letter-spacing: 0.04em; border: 1px solid var(--forest); color: var(--forest); background: var(--ivory-2); }
.status-pill.status-Shortlisted, .status-pill.status-Interview, .status-pill.status-Offered { background: var(--forest); color: var(--gold-bright); }
.status-pill.status-Hired { background: var(--gold); border-color: var(--gold); color: var(--emerald-900); }
.status-pill.status-Rejected { background: #f5ecea; border-color: #c9a29d; color: #7a1c16; }
.status-pill.status-OnHold { background: #f1ecf7; border-color: #b9a6d6; color: #4b2f7a; }
.status-msg { margin: 22px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 620px; }
.status-steps { list-style: none; margin: 34px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.status-steps li { position: relative; text-align: center; font-size: 12.5px; color: var(--stone); padding-top: 26px; }
.status-steps li::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: var(--line); }
.status-steps li::after { content: ''; position: absolute; top: 0; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.status-steps li.done { color: var(--forest); }
.status-steps li.done::before, .status-steps li.current::before { background: var(--gold); }
.status-steps li.done::after { background: var(--gold); border-color: var(--gold); }
.status-steps li.current { color: var(--forest); font-weight: 600; }
.status-steps li.current::after { background: var(--forest); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,169,106,0.3); }
@media (max-width: 620px) {
  .status-steps { grid-template-columns: 1fr; gap: 0; margin-top: 26px; }
  .status-steps li { text-align: left; padding: 8px 0 8px 32px; }
  .status-steps li::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; }
  .status-steps li::after { top: 10px; left: 0; margin-left: 0; }
}
.status-dates { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--stone); }

/* ---------- Top bar (brochure download) ---------- */
.topbar { position: relative; z-index: 60; background: var(--emerald-900); color: var(--on-dark-soft); font-size: 13px; border-bottom: 1px solid rgba(201,169,106,0.25); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 28px; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar a, .topbar summary { color: var(--on-dark-soft); transition: color .2s; }
.topbar a:hover, .topbar summary:hover { color: var(--gold-bright); }
.topbar-right { display: flex; gap: 26px; align-items: center; letter-spacing: 0.02em; }
@media (max-width: 700px) { .topbar-mail { display: none; } .topbar-in { padding: 0 18px; } }
.topbar-dl { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-bright) !important; font-weight: 500; letter-spacing: 0.04em; cursor: pointer; list-style: none; padding: 9px 0; }
.topbar-dl svg { width: 16px; height: 16px; }
.dl-menu { position: relative; }
.dl-menu summary::-webkit-details-marker { display: none; }
.dl-menu summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 4px; transition: transform .2s; }
.dl-menu[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.dl-panel { position: absolute; left: 0; top: 100%; min-width: 250px; background: var(--forest); border: 1px solid var(--gold); box-shadow: 0 18px 34px rgba(8,23,15,0.4); }
.dl-panel a { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; color: var(--on-dark); font-size: 14px; border-bottom: 1px solid rgba(242,244,239,0.08); }
.dl-panel a:last-child { border-bottom: none; }
.dl-panel a span { color: var(--gold-bright); font-size: 12px; letter-spacing: 0.06em; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90; width: min(760px, calc(100vw - 24px)); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 18px 22px; background: var(--forest); color: var(--on-dark); border: 1px solid var(--gold); box-shadow: 0 20px 44px rgba(8,23,15,0.45); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 14px; line-height: 1.55; color: var(--on-dark-soft); }
.cookie-banner a { color: var(--gold-bright); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: 13.5px; }
.cookie-actions .btn-outline { background: transparent; border-color: rgba(242,244,239,0.5); color: var(--on-dark); }
.cookie-actions .btn-outline:hover { background: var(--on-dark); color: var(--forest); }

/* Footer logo sits on a light plate so the green lettering stays readable on dark */
.foot-logo { background: var(--cream); padding: 10px 14px; }
.foot-logo img { width: 150px; height: auto; }

/* ---------- Franchise quotation page (quotation.php) ---------- */
.quote-sheet { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 36px 40px 40px; }
.quote-head { display: flex; align-items: center; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.quote-logo { width: 96px; height: auto; flex-shrink: 0; }
.quote-head-text h1 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0; }
.quote-head-text p { margin: 4px 0 0; color: var(--stone); font-size: 14px; }
.quote-meta { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); background: var(--ivory-2); padding: 14px 18px; margin-bottom: 8px; }
.quote-meta .k, .quote-grid .k { display: block; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); }
.quote-meta .v, .quote-grid .v { display: block; font-weight: 500; font-size: 15px; word-break: break-word; }
.quote-section-title { font-size: 22px; margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.quote-grid { display: grid; gap: 16px 28px; grid-template-columns: 1fr 1fr; }
.quote-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.quote-table td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.quote-table .quote-amt { text-align: right; font-weight: 500; white-space: nowrap; padding-left: 16px; }
.quote-note { display: block; font-size: 12px; color: var(--stone); font-weight: 400; }
.quote-table .quote-total-row td { border-top: 2px solid var(--forest); border-bottom: none; padding-top: 16px; font-weight: 600; color: var(--forest); font-size: 17px; }
.quote-plain { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.quote-disclaimer { margin-top: 30px; font-size: 12px; color: var(--stone); line-height: 1.6; }
@media (max-width: 620px) {
  .quote-sheet { padding: 24px 18px 28px; }
  .quote-meta, .quote-grid { grid-template-columns: 1fr; }
  .quote-head { flex-direction: column; align-items: flex-start; gap: 12px; }
}
@media print {
  .topbar, header, footer, .quote-noprint, .enq-modal-overlay { display: none !important; }
  body { background: #fff; }
  section { padding: 0 !important; }
  .quote-sheet { border: none; padding: 0; }
  .quote-meta { background: none; border: 1px solid #ccc; }
}
