/* ==========================================================================
   Hexolutions Inc — base stylesheet
   No frameworks, no build step. Rebrand from the tokens in :root.
   Charcoal #313131 and silver #BDBEC0 sampled from the supplied logo artwork.
   ========================================================================== */

:root {
  /* Brand — neutral scale taken from the logo artwork (#313131 ground, silver facets) */
  --brand:       #313131;
  --brand-600:   #454749;
  --brand-800:   #262829;
  --brand-950:   #17191a;
  --brand-50:    #f3f5f6;
  --brand-100:   #e4e7e9;

  /* Accent — orange #FB9A0B, sampled from the company banner.
     Contrast rules: 6.0:1 on charcoal and 8.2:1 on the footer, so it is safe as
     TEXT on dark surfaces only. On white it is 2.2:1 — never use it for text
     there; use it as bars, borders, or a fill behind dark text (7.4:1). */
  --accent:      #fb9a0b;
  --accent-600:  #e08907;
  --accent-tint: #fff3df;
  --accent-ink:  #8a5606;

  /* Silver, taken from the hexagon facets */
  --silver:      #bdbec0;
  --silver-soft: #d1d2d4;

  /* Neutrals */
  --ink:         #1f2224;
  --ink-soft:    #5b6266;
  --line:        #dee2e4;
  --surface:     #ffffff;
  --surface-alt: #f5f7f8;
  --page:        #ffffff;

  /* Shape & motion */
  --radius:      14px;
  --radius-sm:   8px;
  --shadow:      0 1px 2px rgba(31,34,36,.06), 0 8px 24px rgba(31,34,36,.08);
  --shadow-lg:   0 2px 4px rgba(31,34,36,.06), 0 18px 48px rgba(31,34,36,.16);
  --wrap:        1140px;
  --header-h:    78px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-800); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .6em; letter-spacing: -.015em; color: var(--brand-950); }
h1 { font-size: clamp(2rem, 5vw, 3.05rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.16rem; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
p  { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.15rem; }
li { margin-bottom: .35rem; }
address { font-style: normal; }
strong { font-weight: 650; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand-950); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* Fields still needing real data — remove this rule once everything is filled in.
   Search the HTML for class="ph" to find them all. */
.ph { border-bottom: 1px dashed #c2a35a; background: #fffbf0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 650; font-size: .97rem; line-height: 1;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, box-shadow .18s ease, background-color .18s ease,
              color .18s ease, border-color .18s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(31,34,36,.32); }
.btn-primary:hover { background: var(--brand-800); color: #fff; transform: translateY(-1px); }

/* On dark backgrounds the CTA inverts to white */
.btn-invert { background: #fff; color: var(--brand-800); box-shadow: 0 6px 20px rgba(0,0,0,.26); }
.btn-invert:hover { background: var(--brand-50); color: var(--brand-950); transform: translateY(-1px); }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.btn-ghost { background: transparent; color: var(--brand-800); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-50); border-color: var(--brand); }

/* Accent CTA — dark text on orange, never white (white would be 2.2:1) */
.btn-accent { background: var(--accent); color: var(--ink); box-shadow: 0 6px 20px rgba(251,154,11,.34); }
.btn-accent:hover { background: var(--accent-600); color: var(--ink); transform: translateY(-1px); }

.btn-lg { padding: 1rem 1.9rem; font-size: 1.02rem; }
.btn-xl { padding: 1.15rem 2.3rem; font-size: 1.1rem; width: 100%; }

/* ---------- Header (charcoal, so the white logo reads) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--brand);
  border-bottom: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 1px 12px rgba(0,0,0,.18);
}
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { display: block; flex-shrink: 0; }
.brand img { width: auto; height: 46px; }

.primary-nav { display: flex; align-items: center; gap: 1.35rem; }
.primary-nav a { color: #e2e5e6; text-decoration: none; font-weight: 550; font-size: .94rem; }
.primary-nav a:hover { color: var(--accent); }
.primary-nav .nav-cta { color: var(--ink); padding: .7rem 1.3rem; font-size: .92rem; }
.primary-nav .nav-cta:hover { color: var(--ink); }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px;
  background: transparent; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (brand charcoal) ---------- */
.hero {
  background:
    radial-gradient(1100px 520px at 78% -20%, rgba(255,255,255,.10), transparent 62%),
    linear-gradient(168deg, #3a3c3e 0%, var(--brand) 50%, #202223 100%);
  color: #e6e8e9;
  position: relative; overflow: hidden;
}
/* faint hexagon watermark echoing the mark */
.hero::after {
  content: ""; position: absolute; right: -90px; top: -60px; width: 460px; height: 460px;
  background: url("../assets/logo-mark.png") no-repeat center / contain;
  opacity: .09; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(3.2rem, 8vw, 6rem) 22px clamp(3rem, 6vw, 5rem); max-width: 860px; }
.hero h1 { color: #fff; }
/* Echoes the banner, where the headline is set in orange */
.hero h1 .hl { color: var(--accent); }
.eyebrow {
  display: inline-block; margin-bottom: 1.1rem;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  /* Dark fill, not an orange tint: orange-on-orange-tint measured 3.9:1, which
     fails AA for text this small. Over the dark fill it is ~6:1. */
  color: var(--accent); background: rgba(0,0,0,.24); border: 1px solid rgba(251,154,11,.55);
  padding: .42rem .95rem; border-radius: 999px;
}
.lede { font-size: 1.14rem; max-width: 62ch; }
.hero .lede { color: #d2d5d7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-trust {
  list-style: none; padding: 0; margin: 2.6rem 0 0;
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  font-size: .92rem; color: #c6cacc;
}
.hero-trust li { position: relative; padding-left: 1.4rem; margin: 0; }
.hero-trust li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 9px; height: 9px; background: var(--accent); border-radius: 2px; transform: rotate(45deg);
}

/* ---------- Sections ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 68ch; margin-bottom: 2.6rem; }
.section-head h2::after {
  content: ""; display: block; width: 54px; height: 4px; border-radius: 2px;
  background: var(--accent); margin: .85rem 0 1.1rem;
}
.section-head p { color: var(--ink-soft); font-size: 1.04rem; margin: 0; }
.note { margin-top: 2rem; color: var(--ink-soft); font-size: .95rem; max-width: 74ch; }
.muted { color: var(--ink-soft); font-size: .9rem; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card-desc { color: var(--ink-soft); font-size: .96rem; }

.service-card { border-top: 3px solid var(--accent); }

/* Definition-list spec blocks */
.spec { margin: 1rem 0 0; display: grid; grid-template-columns: minmax(104px, 38%) 1fr; gap: .45rem .9rem; font-size: .92rem; }
.spec dt { font-weight: 650; color: var(--brand-800); }
.spec dd { margin: 0; color: var(--ink-soft); }

/* ---------- Fees table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.price-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.price-table th, .price-table td { padding: 1rem 1.3rem; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--brand-950); color: #fff; font-size: .8rem; letter-spacing: .07em; text-transform: uppercase; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--brand-50); }
.price-table tbody th { font-weight: 650; color: var(--ink); }
.price-table td { color: var(--ink-soft); }
.price-table .amount { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand-800); white-space: nowrap; }

/* ---------- Payment panel ---------- */
.payment-panel {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 2.5rem; align-items: center;
  background: linear-gradient(140deg, #141516 0%, var(--brand-800) 58%, #3c3e40 100%);
  color: #d4d7d9; border-radius: 20px; padding: clamp(1.8rem, 4vw, 3.2rem);
  box-shadow: var(--shadow-lg);
}
.payment-panel h2 { color: #fff; }
.payment-panel a { color: #ffffff; }
.payment-panel a:hover { color: #fff; }
.checklist { list-style: none; padding: 0; margin: 1.3rem 0 0; font-size: .95rem; }
.checklist li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }
.payment-action {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius); padding: 1.7rem; text-align: center;
}
.payment-link { box-shadow: 0 10px 26px rgba(0,0,0,.3); }
.payment-note { margin: 1rem 0 0; font-size: .85rem; color: rgba(255,255,255,.74); }
.payment-alt { margin: 1.2rem 0 0; font-size: .9rem; }

/* ---------- Policy summary cards (home page) ---------- */
.policy-grid .card { padding: 1.9rem; display: flex; flex-direction: column; }
.policy p, .policy li { font-size: .92rem; color: var(--ink-soft); }
.policy p strong { color: var(--ink); }
.policy h3 { padding-bottom: .7rem; margin-bottom: 1rem; border-bottom: 2px solid var(--accent); }
.policy .btn { margin-top: auto; align-self: flex-start; }
.policy-points { list-style: none; padding: 0; margin: 0 0 1.4rem; font-size: .92rem; }
.policy-points li { position: relative; padding-left: 1.4rem; margin-bottom: .5rem; color: var(--ink-soft); }
.policy-points li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; background: var(--accent); border-radius: 2px; transform: rotate(45deg);
}

/* ---------- Policy document pages ---------- */
.page-head {
  background: linear-gradient(150deg, #3a3c3e 0%, var(--brand-800) 100%);
  color: #e2f0f8; padding: clamp(2.4rem, 6vw, 3.6rem) 0;
}
.page-head h1 { color: #fff; margin-bottom: .35rem; font-size: clamp(1.7rem, 4.2vw, 2.5rem); }
.page-head .kicker {
  font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .8rem;
}
.crumb { font-size: .88rem; color: #c8cccd; margin: 0 0 1.2rem; }
.crumb a { color: #fff; }

.doc { max-width: 78ch; margin-inline: auto; }
.doc-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem 1.6rem;
  background: var(--surface-alt); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin-bottom: 2.6rem; font-size: .9rem;
}
.doc-meta dt { font-weight: 650; color: var(--brand-800); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; }
.doc-meta dd { margin: .2rem 0 0; color: var(--ink-soft); }

.clause { margin-bottom: 2rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.clause h2 {
  font-size: 1.12rem; margin-bottom: .5rem; display: flex; gap: .65rem; align-items: baseline;
  color: var(--brand-950);
}
.clause h2 .num {
  flex: none; min-width: 1.9rem; height: 1.9rem; border-radius: 6px;
  background: var(--accent); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}
.clause p, .clause li { color: var(--ink-soft); }
.clause ul { margin-top: .6rem; }

.doc-toc {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem; margin-bottom: 2.6rem; box-shadow: var(--shadow);
}
.doc-toc h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); margin-bottom: .8rem; }
.doc-toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; font-size: .92rem; }
.doc-toc li { margin-bottom: .3rem; break-inside: avoid; }

.doc-footer {
  margin-top: 3rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
}
.doc-footer h2 { font-size: 1rem; margin-bottom: .9rem; }
.doc-links { display: flex; flex-wrap: wrap; gap: .7rem; }

@media (max-width: 560px) {
  .doc-toc ol { columns: 1; }
}

/* Sections hidden via the `hidden` attribute must stay hidden even though
   .section sets its own box properties. */
[hidden] { display: none !important; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.5rem; align-items: start; }
/* Used when the registration card is hidden, so the copy is not stuck in a narrow column */
.about-grid--single { grid-template-columns: 1fr; max-width: 68ch; }
.reg-card {
  background: var(--surface-alt); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 1.7rem;
}
.reg-card h3 { margin-bottom: .3rem; }
.about-mark { width: 132px; margin-bottom: 1.4rem; filter: drop-shadow(0 6px 14px rgba(16,42,58,.18)); }

/* ---------- Contact ---------- */
.contact-card address { color: var(--ink-soft); font-size: .96rem; margin-bottom: .8rem; }

/* Contact page: address + map in the main column, details and hours alongside */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.contact-side { display: grid; gap: 1.6rem; align-content: start; }

.address-card { padding: 1.9rem; }
.address-card .address-lines {
  font-size: 1.12rem; line-height: 1.6; color: var(--ink); margin-bottom: 1.3rem;
}
.address-card .address-lines .locality { font-weight: 650; }

.map-frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 260px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; background: var(--surface-alt);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.map-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.2rem; }
.map-caption { margin: .9rem 0 0; font-size: .85rem; color: var(--ink-soft); }

.hours-table { width: 100%; border-collapse: collapse; font-size: .93rem; margin-top: .4rem; }
.hours-table th, .hours-table td { padding: .55rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { font-weight: 550; color: var(--ink); }
.hours-table td { color: var(--ink-soft); text-align: right; white-space: nowrap; }
.hours-table .closed { color: #9aa1a4; }

.contact-list { display: grid; gap: 1.05rem; margin-top: .4rem; }
.contact-item { display: flex; gap: .85rem; align-items: flex-start; }
.contact-item .ico {
  flex: none; width: 34px; height: 34px; border-radius: 8px;
  background: var(--accent-tint); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .95rem; line-height: 1;
}
.contact-item .label {
  display: block; font-size: .72rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 650; margin-bottom: .1rem;
}
.contact-item .value { font-size: .98rem; color: var(--ink); word-break: break-word; }

.primary-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }

@media (max-width: 940px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-950); color: #b0b5b7; padding: 3.2rem 0 1.6rem; font-size: .93rem; }
.site-footer a { color: #e3e6e7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { color: var(--accent); margin-bottom: .9rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-grid nav { display: flex; flex-direction: column; gap: .55rem; align-items: flex-start; }
.footer-logo { width: 210px; margin-bottom: 1.2rem; }
.footer-grid address { margin-bottom: .8rem; line-height: 1.7; }
.footer-bottom {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-size: .85rem; color: #8b9194;
}
.footer-bottom p { margin: 0; }
.site-footer .ph { background: transparent; border-bottom-color: rgba(255,255,255,.38); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .payment-panel, .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--brand-800);
    border-bottom: 1px solid rgba(255,255,255,.18);
    box-shadow: var(--shadow-lg);
    padding: .5rem 22px 1.2rem;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: .95rem 0; border-bottom: 1px solid rgba(255,255,255,.14); color: #fff; }
  .primary-nav .nav-cta { margin-top: 1rem; border-bottom: 0; text-align: center; padding: .95rem 1.3rem; color: var(--brand-800); }
  .brand img { height: 40px; }
  .hero::after { width: 300px; right: -110px; opacity: .07; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .spec { grid-template-columns: 1fr; gap: .1rem .9rem; }
  .spec dd { margin-bottom: .55rem; }
  .hero-trust { gap: .6rem 1.4rem; }
  .btn-lg { width: 100%; }
  .brand img { height: 36px; }
}

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

/* ---------- Print ---------- */
@media print {
  .site-header, .hero-actions, .payment-action, .nav-toggle, .hero::after { display: none !important; }
  body { font-size: 12px; }
  .hero { background: none; color: #000; }
  .hero h1, .hero .lede { color: #000; }
  .card, .table-scroll { box-shadow: none; break-inside: avoid; }
}
