/* THub Solutions — site styles */

:root {
  --ink: #16224a;
  --ink-soft: #2a3a70;
  --paper: #eef3f1;
  --surface: #ffffff;
  --amber: #ffb627;
  --amber-deep: #e89a00;
  --teal: #0f7c76;
  --line: #c7d3cf;
  --muted: #4b5873;

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1180px;
  --radius: 10px;
  --space-section: clamp(4rem, 9vw, 7rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, .h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  margin: 0 0 0.6em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; }
h3, .h3 { font-size: 1.3rem; font-weight: 700; }

p { margin: 0 0 1em; }

a { color: var(--teal); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }

.visually-hidden {
  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: 1rem; top: -4rem; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); color: var(--ink); }
.btn-primary:focus-visible { outline-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-light:hover { background: var(--ink); color: var(--amber); }
.btn-small { min-height: 2.5rem; padding: 0.45rem 1rem; font-size: 0.95rem; }

.text-link { font-weight: 600; color: var(--ink); white-space: nowrap; }
.text-link:hover { color: var(--teal); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(238, 243, 241, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 2rem; height: 2rem; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.brand-name span { font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0.4rem 0; }
.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--amber-deep); }
.header-phone { color: var(--ink); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  width: 2.75rem; height: 2.75rem;
  background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  cursor: pointer; position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute; left: 50%; width: 1.2rem; height: 2px; background: var(--ink);
  transform: translateX(-50%); transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy h1 { max-width: 14ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

/* Hub diagram */
.hub { width: 100%; height: auto; overflow: visible; }
.hub-dot { fill: #c2cfca; }
.hub-trace {
  fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 0.9s cubic-bezier(.6,0,.2,1) 0.35s forwards;
}
.hub-core-ring { fill: var(--amber); }
.hub-core-fill { fill: var(--ink); }
.hub-core-text { fill: #fff; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; }
.hub-node rect { fill: var(--surface); stroke: var(--ink); stroke-width: 2; transition: fill 0.15s; }
.hub-node text { fill: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 17px; transition: fill 0.15s; }
.hub-led { fill: var(--line); animation: led 0.3s ease-out forwards; animation-delay: calc(1.05s + var(--i) * 0.12s); }
.hub-node:hover rect, .hub-node:focus-visible rect { fill: var(--ink); }
.hub-node:hover text, .hub-node:focus-visible text { fill: #fff; }
.hub-node:focus-visible { outline: none; }
.hub-node:focus-visible rect { stroke: var(--teal); stroke-width: 4; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes led { to { fill: var(--amber); } }

/* Sections */
.section { padding: var(--space-section) 0; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section + .section:not(.section-ink) { border-top: 1px solid var(--line); }
.section-ink { background: var(--ink); color: #e6ecf5; border-top: 0; }
.section-ink + .section { border-top: 0; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink a { color: var(--amber); }
.section-ink .text-link { color: #fff; }
.section-ink .text-link:hover { color: var(--amber); }
.section-ink .service-row { border-color: rgba(255,255,255,0.18); }
.section-ink .service-rows { border-color: rgba(255,255,255,0.18); }
.section-ink .service-row p { color: #c4cee0; }
.section-ink .section-head p { color: #c4cee0; }

.section-head { max-width: 640px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); }

/* Service rows */
.service-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.service-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto;
  gap: 1.25rem 3rem; align-items: baseline;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
}
.service-row h3 { margin: 0; font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
.service-row h3 a { color: inherit; text-decoration: none; }
.service-row h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber-deep); text-decoration-thickness: 3px; }
.service-row p { margin: 0; color: var(--muted); max-width: 58ch; }
.service-rows-compact .service-row { padding: 1.25rem 0; }
.service-rows-compact .service-row h3 { font-size: 1.2rem; }

/* Steps (a real sequence, so numbered) */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.steps li { counter-increment: step; border-top: 3px solid var(--amber); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block; font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1;
  color: var(--amber); margin-bottom: 0.75rem;
}
.steps p { color: #c4cee0; margin: 0; }

/* Why list */
.why-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.why-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2.25rem 2.5rem; }
.why-list dt, .outcome-list dt { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin-bottom: 0.35rem; }
.why-list dd, .outcome-list dd { margin: 0; color: var(--muted); }

/* Page hero */
.page-hero { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 20ch; }
.page-hero-tall { padding-block: clamp(5rem, 12vw, 9rem); }
.breadcrumb { font-size: 0.95rem; color: var(--muted); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--muted); }

/* Services overview */
.service-overview {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem;
  padding: 3rem 0; border-top: 1px solid var(--line);
}
.service-overview:first-child { border-top: 0; padding-top: 0; }
.service-overview h2 a { color: inherit; text-decoration: none; }
.service-overview h2 a:hover { text-decoration: underline; text-decoration-color: var(--amber-deep); }
.service-overview p { color: var(--muted); max-width: 62ch; }
.service-overview .btn { margin-top: 0.5rem; }

/* Lists */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { position: relative; padding: 0.7rem 0 0.7rem 2rem; border-bottom: 1px solid var(--line); }
.check-list li:first-child { border-top: 1px solid var(--line); }
.check-list li::before {
  content: ""; position: absolute; left: 0.25rem; top: 1.15rem;
  width: 0.65rem; height: 0.65rem; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 3px var(--ink);
}

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); }
.two-col p { max-width: 62ch; }
.outcome-list { margin: 0; display: grid; gap: 1.5rem; }

.tag-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-list li { border: 1px solid rgba(255,255,255,0.35); border-radius: 999px; padding: 0.4rem 1rem; font-weight: 500; color: #fff; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 500; color: var(--teal); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; max-width: 64ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.4fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact-details .h3 { margin-top: 2rem; margin-bottom: 0.4rem; font-size: 1.1rem; }
.contact-details .h3:first-child { margin-top: 0; }
.contact-details p { color: var(--muted); }
.contact-phone {
  display: inline-block; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
  margin-bottom: 0.25rem;
}
.contact-phone:hover { color: var(--teal); }
.mini-steps { margin: 0; padding-left: 1.25rem; color: var(--muted); }
.mini-steps li { margin-bottom: 0.5rem; }

.contact-form-wrap { background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.75rem); }
.contact-form { display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; }
.optional { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid #9fb0aa; border-radius: 8px;
  padding: 0.7rem 0.85rem; min-height: 3rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--teal); outline-offset: 1px; border-color: var(--teal); background: #fff; }
.field [aria-invalid="true"] { border-color: #b42318; background: #fff6f5; }
.field-error { color: #b42318; font-size: 0.95rem; margin: 0.35rem 0 0; }
.form-note { font-size: 0.92rem; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; border-left: 5px solid; }
.notice p:last-child { margin: 0; }
.notice-success { background: #e5f4ef; border-color: var(--teal); }
.notice-error { background: #fdecea; border-color: #b42318; }

/* Prose pages */
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }

/* Call band */
.call-band { background: var(--amber); padding: clamp(3rem, 6vw, 4.5rem) 0; }
.call-band-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: center; }
.call-band h2 { margin-bottom: 0.4rem; }
.call-band p { margin: 0; max-width: 52ch; }
.call-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.call-number {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.03em; line-height: 1;
  color: var(--ink); text-decoration: none;
}
.call-number:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 4px; }
.call-band :focus-visible { outline-color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #c4cee0; padding: 4rem 0 0; font-size: 0.98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 0.8fr 1.1fr; gap: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: #e6ecf5; text-decoration: none; }
.site-footer a:hover { color: var(--amber); text-decoration: underline; }
.brand-footer { color: #fff; margin-bottom: 1rem; }
.brand-footer:hover { color: #fff; }
.footer-about p { max-width: 34ch; }
.footer-base { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 3rem; padding: 1.5rem 0; }
.footer-base p { margin: 0; font-size: 0.9rem; }
.site-footer :focus-visible { outline-color: var(--amber); }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .header-phone { padding: 1rem 0; }
  .site-nav .btn { width: 100%; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-hub { max-width: 560px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .call-band-inner { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .service-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .service-overview, .two-col, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .why-list { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hub-trace { animation: none; stroke-dashoffset: 0; }
  .hub-led { animation: none; fill: var(--amber); }
  * { transition: none !important; }
}
