/* Highstone Accounting and Advisory: one deliberate look in every viewer theme. */
/* Colours from the Highstone brand identity sheet. Change them here and the whole site follows. */
:root {
  color-scheme: light;
  --granite: #1E1F22;        /* primary: headings, logo, dark bands, footer */
  --graphite: #5C6068;       /* secondary text */
  --teal: #0F7C80;           /* Deep Teal: accent, links, buttons on light */
  --teal-text: #0B6B6F;      /* slightly deeper Deep Teal for small text on stone surfaces (keeps 4.5:1 contrast) */
  --teal-bright: #3FC1C0;    /* Bright Teal: accent on Granite only */
  --stone: #E6E3DE;          /* Light Stone: surfaces */
  --stone-soft: #EDEBE7;     /* half-step between Light Stone and Paper */
  --paper: #F4F3F0;          /* page background */
  --white: #FFFFFF;

  --line: #DEDAD3;
  --line-soft: #EAE7E2;
  --input-line: #CFCAC2;
  --header-bg: rgba(244,243,240,.94);
  --shadow: 0 18px 40px -24px rgba(30,31,34,.28);

  --dark-text: #C4C6CB;
  --dark-line: #3A3C41;
  --dark-ghost: #5C6068;
  --foot-text: #A9ACB2;
  --foot-muted: #8A8D93;
  --error: #9B2C1F;

  --display: "Space Grotesk", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --r-btn: 8px;
  --r-card: 12px;
  --r-input: 6px;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; color: var(--granite); margin: 0; text-wrap: balance; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font-size: clamp(36px, 5.4vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.6vw, 44px); }
h3 { font-size: 23px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal-text);
}
.lede { font-size: 19px; line-height: 1.6; max-width: 58ch; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

/* Logo lockup: the H mark (inline SVG) + "highstone" wordmark + descriptor */
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo svg { width: 44px; height: 44px; flex: none; }
.logo-text { display: grid; line-height: 1; }
.logo-word { font-family: var(--display); font-weight: 500; font-size: 30px; letter-spacing: -0.035em; color: var(--granite); }
.logo-sub { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .01em; color: var(--teal); margin-top: 5px; }
.logo.on-dark .logo-word { color: var(--white); }
.logo.on-dark .logo-sub { color: var(--teal-bright); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 15px 26px; border: 1px solid var(--granite); border-radius: var(--r-btn); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn-solid:hover { background: var(--granite); border-color: var(--granite); }
.btn-ghost { background: transparent; color: var(--granite); }
.btn-ghost:hover { background: var(--granite); color: var(--white); }
.dark .btn-solid { background: var(--teal-bright); border-color: var(--teal-bright); color: var(--granite); }
.dark .btn-solid:hover { background: var(--stone); border-color: var(--stone); }
.dark .btn-ghost { color: var(--white); border-color: var(--dark-ghost); }
.dark .btn-ghost:hover { background: var(--white); color: var(--granite); border-color: var(--white); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--header-bg); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 78px; }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--graphite); padding-block: 6px;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--granite); }
.nav a[aria-current="page"] { color: var(--granite); border-bottom-color: var(--teal); }
.nav .nav-cta { background: var(--teal); border: 1px solid var(--teal); border-radius: var(--r-btn); padding: 10px 18px; color: var(--white); }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--granite); color: var(--white); border-color: var(--granite); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); border-radius: var(--r-btn); padding: 10px 12px; cursor: pointer; font: 600 12px var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--granite); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--teal-text); }
  .nav .nav-cta { margin-top: 14px; text-align: center; padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

section.band { padding-block: clamp(64px, 9vw, 112px); }
.dark { background: var(--granite); color: var(--dark-text); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: var(--teal-bright); }
.tint { background: var(--stone-soft); }
.white { background: var(--white); }

.section-head { display: grid; gap: 16px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }

/* Home hero */
.hero { padding-block: clamp(56px, 8vw, 104px); position: relative; overflow: hidden; background: var(--stone-soft); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero .lede { margin-top: 26px; color: var(--graphite); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-rule { width: 64px; height: 3px; border-radius: 2px; background: var(--teal); margin-bottom: 26px; }

/* Compliance calendar */
.calendar { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--teal); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.calendar-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.calendar-head h3 { font-size: 21px; }
.calendar-head span { white-space: nowrap; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-text); }
.calendar ol { list-style: none; margin: 0; padding: 0; }
.calendar li { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 15px 24px; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.calendar li:last-child { border-bottom: 0; }
.cal-when { font-family: var(--display); font-size: 17px; font-weight: 500; color: var(--teal-text); font-variant-numeric: tabular-nums lining-nums; }
.cal-what { font-size: 15.5px; line-height: 1.45; color: var(--graphite); }
.cal-what b { display: block; font-weight: 600; color: var(--granite); letter-spacing: .01em; }
.calendar .fine { padding: 14px 24px 18px; font-size: 13.5px; color: var(--graphite); background: var(--paper); border-top: 1px solid var(--line); line-height: 1.5; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--granite); }
.pillar { padding: 34px 32px 8px 0; display: grid; gap: 12px; align-content: start; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar h3 { font-size: 30px; }
.pillar h3::after { content: "."; color: var(--teal); }

/* Service index (home) */
.svc-index { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.svc-index a { display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; padding: 28px 28px 28px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s; }
.svc-index a:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
.svc-index a:hover h3 { color: var(--teal); }
.svc-index h3 { font-size: 24px; transition: color .2s; }
.svc-index p { grid-column: 1; font-size: 16px; color: var(--graphite); }
.svc-index .arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--teal); font-size: 20px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 2px solid var(--teal); }
.steps li::before { content: "Step " counter(step); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-text); }
.steps h3 { font-size: 22px; }
.steps p { font-size: 16px; }

/* CTA band */
.cta-band { background: var(--stone); }
.cta-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }
.cta-inner h2 { max-width: 20ch; }

/* Page heads */
.page-head { padding-block: clamp(56px, 8vw, 96px) clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--line); background: var(--white); }
.page-head .wrap { display: grid; gap: 20px; }
.page-head h1 { font-size: clamp(36px, 5.2vw, 60px); max-width: 18ch; }

/* About */
.two-col { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.prose { display: grid; gap: 20px; max-width: 64ch; }
.prose p { font-size: 17px; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--dark-line); }
.creds li { padding: 28px 28px 28px 0; display: grid; gap: 8px; align-content: start; }
.creds li + li { padding-left: 28px; border-left: 1px solid var(--dark-line); }
.creds .k { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-bright); }
.creds .v { font-family: var(--display); font-size: 21px; color: var(--white); line-height: 1.3; letter-spacing: -0.01em; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.value { padding-block: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.value h3 { font-size: 21px; }

/* Services */
.svc-group { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 72px); padding-block: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.svc-group:first-child { border-top: 0; }
.svc-group-head { display: grid; gap: 14px; align-content: start; position: sticky; top: 110px; }
.svc-group-head p { font-size: 15.5px; }
.svc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.svc-list li { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.svc-list h3 { font-family: var(--sans); font-size: 17.5px; font-weight: 600; color: var(--granite); letter-spacing: 0; line-height: 1.35; }
.svc-list p { font-size: 15.5px; line-height: 1.55; }
.form-code { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-text); font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(36px, 6vw, 88px); align-items: start; }
.details { display: grid; gap: 0; border-top: 1px solid var(--granite); }
.detail { padding-block: 20px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.detail .k { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-text); font-weight: 600; }
.detail .v { font-size: 18px; color: var(--granite); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: 16px; font-variant-numeric: tabular-nums; }

form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 4vw, 44px); display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
label { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--graphite); font-weight: 600; }
input, select, textarea {
  font: 400 16px var(--sans); color: var(--granite); background: var(--paper);
  border: 1px solid var(--input-line); border-radius: var(--r-input); padding: 13px 14px; width: 100%;
  transition: border-color .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal); background: var(--white); }
textarea { min-height: 140px; resize: vertical; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.consent label { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; }
.form-status { font-size: 15px; padding: 14px 16px; background: var(--stone-soft); border-left: 3px solid var(--teal); border-radius: var(--r-input); color: var(--granite); }
.form-status.is-error { border-left-color: var(--error); }
.error { font-size: 13.5px; color: var(--error); }
.hp { position: absolute !important; left: -9999px !important; }

/* Links inside text */
.detail .v a, .foot-grid a, .prose a, .consent a, .legal a { text-decoration: none; }
.detail .v a { border-bottom: 1px solid var(--teal); }
.detail .v a:hover { color: var(--teal-text); }
.consent a, .legal a { border-bottom: 1px solid var(--teal); color: var(--granite); }

/* Privacy notice */
.legal { display: grid; gap: 28px; max-width: 70ch; }
.legal h2 { font-size: 28px; margin-top: 12px; }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal p, .legal li { font-size: 17px; }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--granite); color: var(--white); padding: 10px 16px; z-index: 50; }
.skip:focus { left: 16px; top: 16px; }

/* Footer */
footer { background: var(--granite); color: var(--foot-text); padding-block: 64px 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid .logo svg { width: 52px; height: 52px; }
.foot-grid .logo-word { font-size: 34px; }
.foot-tag { margin-top: 20px; font-family: var(--display); font-size: 17px; letter-spacing: -0.01em; color: var(--white); }
.foot-grid h4 { margin: 0 0 14px; font: 600 12px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--white); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a:hover { color: var(--white); }
.foot-legal { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--foot-muted); }

/* WhatsApp chat button (bottom right of every page) */
.wa-btn {
  position: fixed; z-index: 30;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #FFFFFF; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(30,31,34,.45);
  transition: transform .2s, box-shadow .2s;
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(30,31,34,.5); }
.wa-btn:focus-visible { outline: 3px solid var(--granite); outline-offset: 3px; }
.wa-btn svg { width: 32px; height: 32px; }
@media (prefers-reduced-motion: reduce) { .wa-btn, .wa-btn:hover { transition: none; transform: none; } }

@media (max-width: 960px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .svc-group { grid-template-columns: 1fr; }
  .svc-group-head { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .pillars, .svc-index, .creds, .svc-list, .field-row { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 26px 0 22px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .svc-index a, .svc-index a:nth-child(even) { padding: 24px 0; border-left: 0; }
  .creds li, .creds li + li { padding: 22px 0; border-left: 0; }
  .creds li + li { border-top: 1px solid var(--dark-line); }
  .steps { grid-template-columns: 1fr; }
  .value { grid-template-columns: 1fr; gap: 8px; }
  .calendar li { grid-template-columns: 78px 1fr; padding-inline: 18px; }
  .calendar-head, .calendar .fine { padding-inline: 18px; }
  .site-header .logo svg { width: 38px; height: 38px; }
  .site-header .logo-word { font-size: 26px; }
  .site-header .logo-sub { font-size: 11px; }
  footer { padding-bottom: 96px; } /* keeps the footer text clear of the WhatsApp button */
}
