/* GCG brand v2 — canonical copy; edit in retail-site, copy verbatim to web-app. */
/* Component classes rebuilt from the inline-style design mockups. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
/* The hidden attribute must always win, even over display rules like flex. */
[hidden] { display: none !important; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, .display-xl, .display-lg, .h-section { text-wrap: balance; }
p { text-wrap: pretty; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { text-decoration: none; color: inherit; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

/* Layout wrappers */
.wrap { max-width: 1140px; margin: 0 auto; padding-left: 26px; padding-right: 26px; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding-left: 26px; padding-right: 26px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding-left: 26px; padding-right: 26px; }
/* Phones: slimmer gutters — 26px each side ate a quarter of a small
   screen; 13px felt cramped. 18px is the agreed middle (client feedback
   2026-09-01). */
@media (max-width: 640px) {
  .wrap, .wrap-wide, .wrap-narrow { padding-left: 18px; padding-right: 18px; }
}

/* Type */
.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.04;
  color: var(--brand-deep);
  letter-spacing: -.5px;
  margin: 18px 0 0;
}
.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  color: var(--brand-deep);
  letter-spacing: -.5px;
  margin: 18px 0 0;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 44px);
  line-height: 1.08;
  color: var(--brand-deep);
  margin: 16px 0 0;
}
.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 20px 0 0;
}
.muted { color: var(--ink-soft); }
.on-dark .h-section, .on-dark .display-lg { color: #fff; }

/* Badges (small uppercase pills above headings) */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 8px 15px;
  border-radius: var(--r-pill);
}
.badge-soil { background: var(--soil-soft); color: var(--soil); }
.badge-light { background: rgba(255, 255, 255, .14); color: #fff; }

/* Buttons — pills, Fredoka */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 15px 26px;
  border-radius: var(--r-pill);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(-1px) scale(0.96); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-btn); }
.btn-white { background: #fff; color: var(--brand); box-shadow: 0 8px 18px rgba(0, 0, 0, .12); }
.btn-white-deep { background: #fff; color: var(--brand-deep); box-shadow: 0 10px 22px rgba(0, 0, 0, .18); }
.btn-outline { background: #fff; color: var(--brand-deep); border: 1.6px solid var(--line); font-weight: 500; }
.btn-outline-brand { background: #fff; color: var(--brand); border: 1.6px solid var(--brand); }
.btn-ghost-dark { background: rgba(255, 255, 255, .14); color: #fff; border: 1.5px solid rgba(255, 255, 255, .4); font-weight: 500; }
.btn-soil { background: var(--soil); color: #fff; }
.btn-lg { font-size: 18px; padding: 16px 30px; }
.btn-sm { font-size: 14px; padding: 10px 18px; }
.btn-block { display: flex; width: 100%; border-radius: 14px; padding: 14px; font-size: 16px; }

/* Chips (town pills, service chips) */
.chip {
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--brand-deep);
  font-weight: 700;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}
.card-cream { background: var(--cream); }
.card-pad-lg { border-radius: var(--r-card-lg); padding: 30px; }

/* Checkmark lists */
.check-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background-color: var(--brand);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12 5 5 9-11"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12 5 5 9-11"/></svg>') no-repeat center / contain;
}
.check-list-lg li { font-size: 15.5px; gap: 11px; }
.check-list-lg li::before { width: 21px; height: 21px; }
.on-dark .check-list li,
.check-list.on-dark li { color: rgba(255, 255, 255, .92); }
.on-dark .check-list li::before,
.check-list.on-dark li::before { background-color: var(--leaf); }

/* Toggle pill group — THE segmented control/tab component. <button> children
   for in-page toggles (Monthly/Yearly), <a> children for navigation tabs
   (mark the current one .active + aria-current="page"). Don't invent new
   one-off tab styles. */
.toggle-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  background: var(--brand-soft);
  border-radius: var(--r-pill);
  padding: 5px;
}
.toggle-group button, .toggle-group a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink-soft);
  background: transparent;
  white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease, color .15s ease;
}
/* Items render ~35px tall; stretch the hit area to 40px+ without growing
   the pill. Vertical only — siblings sit 5px apart horizontally. */
.toggle-group button::after, .toggle-group a::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: 0; right: 0; }
.toggle-group button:active, .toggle-group a:active { transform: scale(0.96); }
.toggle-group button.active, .toggle-group a.active { color: #fff; background: var(--brand); }

/* Form controls */
.input-pill {
  padding: 15px 18px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 15.5px;
  font-weight: 600;
  outline: none;
  transition: border-color .15s ease;
}
.input-pill:focus { border-color: var(--brand); }

/* FAQ accordion (native details/summary) */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion details {
  /* Cream cards on white sections — the pattern the step and plan cards
     set (client feedback 2026-09-01; sections hosting the accordion are
     bg-white). */
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
  color: var(--brand-deep);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  /* Two drawn bars, not a "+" glyph: a font's plus sits off-centre in the
     circle and wobbles as it turns (client feedback 2026-10-02). */
  content: "";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--brand-soft);
  background-image:
    linear-gradient(var(--brand), var(--brand)),
    linear-gradient(var(--brand), var(--brand));
  background-size: 12px 2.5px, 2.5px 12px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .2s ease, background-color .15s ease;
}
/* The + rotates into an × — animatable, unlike a content swap. */
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:hover::after { background-color: #DFEACB; }
.accordion .accordion-body {
  padding: 0 22px 22px;
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Sticky site nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--brand);
  box-shadow: var(--shadow-nav);
}
.site-nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 13px;
  padding-bottom: 13px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo .logo-box {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 3px 9px rgba(47, 74, 36, .2);
}
.nav-logo .logo-box img { width: 30px; height: 30px; object-fit: contain; display: block; }
.nav-logo .logo-word { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  color: rgba(255, 255, 255, .9);
  font-weight: 700;
  font-size: 15px;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
/* Links render ~33px tall; stretch hit areas to 40px+ vertically only —
   adjacent links are 4px apart and must not overlap. */
.nav-links a::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: 0; right: 0; }
.nav-links a.active { color: #fff; font-weight: 800; background: rgba(255, 255, 255, .18); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-actions .nav-signin { position: relative; color: #fff; font-weight: 800; font-size: 15px; padding: 9px 8px; }
.nav-actions .nav-signin::after { content: ""; position: absolute; top: -4px; bottom: -4px; left: 0; right: 0; }
.nav-actions .nav-cta {
  background: #fff;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  transition: transform .12s ease;
}
.nav-actions .nav-cta:hover { transform: translateY(-1px); }
.nav-actions .nav-cta:active { transform: translateY(-1px) scale(0.96); }
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  align-items: center;
  justify-content: center;
}
.nav-mobile { display: none; background: var(--brand-deep); padding: 10px 22px 18px; flex-direction: column; gap: 4px; }
.nav-mobile a { color: #fff; font-weight: 700; font-size: 16px; padding: 12px 8px; text-align: left; }
.nav-mobile .nav-cta-mobile {
  margin-top: 8px;
  background: #fff;
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 14px;
  border-radius: 14px;
  text-align: center;
}
.nav-mobile.open { display: flex; }

/* Footer */
.site-footer { background: var(--brand-deep); color: rgba(255, 255, 255, .82); }
.site-footer .footer-grid { display: grid; gap: 36px; padding-top: 60px; padding-bottom: 30px; }
.site-footer .footer-blurb {
  font-weight: 500;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .7);
  margin: 0 0 16px;
  max-width: 280px;
}
.site-footer .footer-head {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: #fff;
  margin-bottom: 14px;
}
.site-footer .footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; font-weight: 600; font-size: 14.5px; }
.site-footer .footer-col a { color: rgba(255, 255, 255, .78); transition: color .15s ease; }
.site-footer .footer-col a:hover { color: #fff; }
.site-footer .footer-social { display: flex; gap: 10px; }
.site-footer .footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease;
}
.site-footer .footer-social a:active { transform: scale(0.96); }
.site-footer .footer-legal {
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.site-footer .footer-legal > div {
  padding-top: 20px;
  padding-bottom: 20px;
  font-weight: 600;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(42, 42, 34, .55);
  z-index: 200;
}
.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 201;
  width: min(520px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-card-lg);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .35);
  padding: 34px;
  /* fadeUp would end at transform:none and cancel the centering translate */
  animation: modalIn .25s ease both;
}
.modal .modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .12s ease, background-color .15s ease;
}
.modal .modal-close:hover { background: var(--cream-2); }
.modal .modal-close:active { transform: scale(0.96); }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes modalIn {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 20px)); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .modal { animation: none; }
}

/* Kill the translucent tap flash on touch — it read as a glitch on every
   button press (client feedback 2026-09-01). Keyboard focus rings below are
   a separate system and unaffected. */
html { -webkit-tap-highlight-color: transparent; }

/* Keyboard focus. Must stay below the input rules: .input-pill sets
   outline:none at equal specificity, so source order decides. */
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; }
.site-nav :focus-visible, .nav-mobile :focus-visible, .on-dark :focus-visible,
.site-footer :focus-visible { outline-color: #fff; }

/* Responsive nav */
@media (max-width: 859px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }
}
