/* Leotax Accountants. Static site styles.
   Typeface: DM Sans (SIL Open Font License), self-hosted in /assets/fonts. No third-party requests. */

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dmsans-var.woff") format("woff");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

:root {
  /* colour */
  --ink: #0a1620;
  --navy: #0f2233;
  --navy-line: rgba(255, 255, 255, 0.16);
  --mist: #eef1f4;
  --paper: #ffffff;
  --text: #0f2233;
  --muted: #4a5a67;
  --soft: #a3b4c2;
  --line: #d5dde4;
  --line-strong: #bcc8d2;
  --amber: #f2b33d;
  --amber-hover: #e5a22a;
  --focus: #1f5fd6;

  /* type scale */
  --t-xs: 0.875rem;
  --t-sm: 0.9375rem;
  --t-body: 1.0625rem;
  --t-lead: clamp(1.125rem, 1.4vw, 1.3125rem);
  --t-h3: 1.375rem;
  --t-h2: clamp(2rem, 4.2vw, 3.25rem);
  --t-h1: clamp(2.75rem, 6vw, 4.75rem);

  /* spacing, 8px steps */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --wrap: 1180px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  font-optical-sizing: auto;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.sticky-cta :focus-visible {
  outline-color: var(--amber);
}

.skip {
  position: absolute;
  left: var(--s2);
  top: -4rem;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: var(--s2);
}

.wrap {
  width: min(100% - 2 * var(--pad), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */

.h1 {
  font-size: var(--t-h1);
  line-height: 1.04;
  letter-spacing: -0.022em;
  font-weight: 650;
}

.h2 {
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.016em;
  font-weight: 650;
  max-width: 22ch;
}

.h3 {
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 600;
}

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  max-width: 50ch;
}

.sub {
  margin-top: var(--s2);
  max-width: 52ch;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--muted);
}

.on-dark .sub,
.on-dark .lead,
.hero .lead {
  color: var(--soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--amber);
  color: var(--ink);
}
.btn-primary:hover {
  background: var(--amber-hover);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-outline {
  border-color: var(--text);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: #fff;
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.5rem 1.1rem;
  font-size: var(--t-sm);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--navy-line);
  color: #fff;
}

.header-row {
  display: flex;
  align-items: center;
  gap: var(--s2);
  min-height: 4.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-size: 1.1875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.brand svg {
  width: 28px;
  height: 28px;
}
.brand small {
  font-size: inherit;
  font-weight: 400;
  color: var(--soft);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-sm);
  border: 1px solid var(--navy-line);
  background: transparent;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-size: var(--t-sm);
  font-weight: 500;
  color: #d3dee7;
  transition: background-color 0.2s, color 0.2s;
}
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.header-cta {
  white-space: nowrap;
}

@media (max-width: 1020px) {
  .header-cta {
    display: none;
  }
}

@media (max-width: 860px) {
  .js .nav-toggle {
    display: inline-flex;
  }
  .js .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink);
    border-bottom: 1px solid var(--navy-line);
    padding: 0.5rem var(--pad) var(--s3);
    display: none;
  }
  .js .site-nav[data-open="true"] {
    display: block;
  }
  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .js .site-nav a {
    font-size: 1.1875rem;
    padding: 1rem 0;
    border-radius: 0;
    border-bottom: 1px solid var(--navy-line);
  }
  .js .site-nav a:hover {
    background: transparent;
  }
  .site-nav .nav-cta-mobile {
    display: flex;
  }
}

.site-nav .nav-cta-mobile {
  display: none;
  margin-top: var(--s3);
  padding: 0.7rem 1.5rem;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
}
.site-nav .nav-cta-mobile:hover {
  background: var(--amber-hover);
  color: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  background-color: var(--ink);
  /* ledger ruling: a quiet nod to the accounting book */
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 63px,
    rgba(255, 255, 255, 0.04) 63px,
    rgba(255, 255, 255, 0.04) 64px
  );
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  gap: var(--s5);
  padding-block: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: var(--s6);
  }
}

.h1 .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.h1 .line > span {
  display: inline-block;
  animation: rise 0.95s var(--ease) both;
}
.h1 .line:nth-child(2) > span {
  animation-delay: 0.09s;
}
.h1 .line:nth-child(3) > span {
  animation-delay: 0.18s;
}

@keyframes rise {
  from {
    transform: translateY(108%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes settle {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy .lead {
  margin-top: var(--s4);
  animation: settle 0.9s 0.45s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--s4);
  animation: settle 0.9s 0.55s var(--ease) both;
}

.hero-loc {
  margin-top: var(--s3);
  color: var(--soft);
  font-size: var(--t-sm);
  animation: settle 0.9s 0.62s var(--ease) both;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s3);
  margin-top: var(--s4);
  font-size: var(--t-sm);
  font-weight: 500;
  animation: settle 0.9s 0.7s var(--ease) both;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.trust-row svg {
  width: 18px;
  height: 18px;
  stroke: var(--amber);
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* the one memorable object: a live deadline instrument */

.deadline-card {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 32px 64px -32px rgba(0, 0, 0, 0.7);
  animation: card-in 1s 0.4s var(--ease) backwards;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.deadline-card .label {
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--muted);
}

.deadline-card .date {
  margin-top: 0.25rem;
  font-size: var(--t-h3);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.days-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: var(--s3);
}
.display-num {
  font-size: clamp(4.5rem, 11vw, 6.5rem);
  line-height: 0.9;
  font-weight: 650;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}
.days-row .unit {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--muted);
}

.track {
  margin-top: var(--s3);
  height: 8px;
  border-radius: 4px;
  background: var(--mist);
  overflow: hidden;
}
.track > i {
  display: block;
  height: 100%;
  background: var(--amber);
  transform-origin: left center;
  transform: scaleX(var(--fill, 0));
  transition: transform 1.4s 0.5s var(--ease);
}
.track-ends {
  display: flex;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: 0.75rem;
  font-size: var(--t-xs);
  color: var(--muted);
}

.deadline-card .note {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-size: var(--t-sm);
  color: var(--muted);
}
.deadline-card .note a {
  color: var(--text);
  font-weight: 600;
  text-underline-offset: 3px;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}
.section.alt {
  background: var(--mist);
}
.section.on-dark {
  background: var(--navy);
  color: #fff;
}

.section-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* services: a ruled ledger, not a stack of cards */

.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
@media (min-width: 720px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.svc {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: var(--s4) var(--s3);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background-color 0.25s, color 0.25s;
}
.svc .icon {
  margin-bottom: var(--s3);
}
@media (min-width: 720px) {
  .svc {
    min-height: 16rem;
  }
}
.svc .icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.25s;
}
.svc p {
  color: var(--muted);
  max-width: 34ch;
  transition: color 0.25s;
}
.svc:hover {
  background: var(--navy);
  color: #fff;
}
.svc:hover p {
  color: #c3d1dc;
}
.svc:hover .icon svg {
  stroke: var(--amber);
}

/* who we help */

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.1rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--r-sm);
  color: #fff;
  text-decoration: none;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.tag:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.tag-hint {
  margin-top: var(--s3);
  color: var(--soft);
  font-size: var(--t-sm);
}

/* why */

.split {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
  }
  .sticky {
    position: sticky;
    top: 7rem;
    align-self: start;
  }
}

.why-list li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: var(--s2);
  align-items: baseline;
  padding-block: var(--s3);
  border-top: 1px solid var(--line-strong);
  font-size: clamp(1.1875rem, 2vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.005em;
  font-weight: 500;
}
.why-list li:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.why-list svg {
  width: 22px;
  height: 22px;
  align-self: center;
  stroke: var(--text);
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.why-cta {
  margin-top: var(--s4);
}
.est {
  margin-top: var(--s3);
  max-width: 44ch;
  font-size: var(--t-sm);
  color: var(--muted);
}

/* how it works: a genuine sequence, so numbered */

.steps {
  display: grid;
  gap: var(--s4) var(--s5);
}
@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  padding-top: var(--s3);
  border-top: 2px solid var(--ink);
}
.step-num {
  display: block;
  margin-bottom: var(--s3);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.step p {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 34ch;
}

/* deadline planner */

.planner {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 940px) {
  .planner {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--s6);
    align-items: start;
  }
}
.planner-intro {
  align-self: start;
}
@media (min-width: 940px) {
  .planner-intro {
    position: sticky;
    top: 7rem;
  }
}
.privacy-note {
  margin-top: var(--s3);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: var(--t-sm);
  max-width: 44ch;
}
.privacy-note svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--paper);
}
.tool fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 var(--s3);
  min-width: 0;
}
.tool legend {
  font-size: var(--t-sm);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0;
}
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.seg label {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong);
  cursor: pointer;
  font-size: var(--t-sm);
  font-weight: 500;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.seg label:hover {
  border-color: var(--text);
}
.seg input:checked + label {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.seg input:focus-visible + label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.js .panel:not(.active) {
  display: none;
}
.panel + .panel {
  margin-top: var(--s3);
}
.js .panel + .panel {
  margin-top: 0;
}
.panel > p {
  max-width: 56ch;
}

.field {
  display: grid;
  gap: 0.5rem;
}
.field label {
  font-size: var(--t-sm);
  font-weight: 600;
}
.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input:hover,
.select:hover,
.textarea:hover {
  border-color: #8fa0ae;
}
.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(31, 95, 214, 0.22);
}
.textarea {
  min-height: 8rem;
  resize: vertical;
}
.input[aria-invalid="true"] {
  border-color: #b42318;
}

.results {
  margin-top: var(--s3);
  display: grid;
  gap: 0.75rem;
}
.result {
  display: grid;
  gap: 0.125rem;
  padding: var(--s2) 1.25rem;
  background: var(--mist);
  border-left: 3px solid var(--navy);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  animation: settle 0.5s var(--ease) both;
}
.result .what {
  color: var(--muted);
  font-size: var(--t-sm);
}
.result .when {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.005em;
}
.result .rel {
  font-size: var(--t-sm);
}
.result .rel.soon {
  font-weight: 600;
}
.empty {
  padding: var(--s2) 1.25rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: var(--t-sm);
}
.tool-foot {
  margin-top: var(--s3);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--t-xs);
  line-height: 1.6;
}
.tool-foot a {
  text-underline-offset: 3px;
}
.mtd {
  margin-top: var(--s2);
  padding: var(--s2) 1.25rem;
  border-left: 3px solid var(--amber);
  background: #fff8e8;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-size: var(--t-sm);
}
.mtd strong {
  font-weight: 650;
}
.mtd p {
  margin-top: 0.25rem;
}
.mtd ul {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.25rem;
}
.mtd a {
  text-underline-offset: 3px;
}
.mtd-link {
  margin-top: 0.75rem;
}

/* FAQ */

.faq {
  max-width: 820px;
}
.faq details {
  border-top: 1px solid var(--line-strong);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line-strong);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  font-size: clamp(1.125rem, 2vw, 1.3125rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq .plus {
  flex: none;
  position: relative;
  width: 20px;
  height: 20px;
}
.faq .plus::before,
.faq .plus::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 20px;
  height: 2px;
  margin-top: -1px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}
.faq .plus::after {
  transform: rotate(90deg);
}
.faq details[open] .plus::after {
  transform: rotate(0deg);
}
.faq .answer {
  padding: 0 var(--s5) var(--s3) 0;
  max-width: 62ch;
  color: var(--muted);
}
.faq details[open] .answer {
  animation: settle 0.4s var(--ease) both;
}
.faq .answer a {
  color: var(--text);
  text-underline-offset: 3px;
}

/* contact and final call to action */

.contact-grid {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 940px) {
  .contact-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 5rem;
    align-items: start;
  }
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: var(--s4);
}
.contact-actions .btn {
  padding-inline: 1.25rem;
}
.contact-list {
  margin-top: var(--s5);
  display: grid;
  gap: var(--s3);
}
.contact-list dt {
  color: var(--soft);
  font-size: var(--t-sm);
}
.contact-list dd {
  font-size: 1.1875rem;
  font-weight: 500;
}
.contact-list a {
  text-decoration: none;
  border-bottom: 1.5px solid var(--navy-line);
  transition: border-color 0.2s;
}
.contact-list a:hover {
  border-color: var(--amber);
}
.contact-list address {
  font-style: normal;
}

.form-card {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--r-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.form-card .intro {
  margin: 0.5rem 0 var(--s3);
  color: var(--muted);
  font-size: var(--t-sm);
}
.form-grid {
  display: grid;
  gap: var(--s2);
}
.form-grid .two {
  display: grid;
  gap: var(--s2);
}
@media (min-width: 600px) {
  .form-grid .two {
    grid-template-columns: 1fr 1fr;
  }
}
.consent {
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--t-sm);
  color: var(--muted);
}
.consent input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.1rem 0 0;
  accent-color: var(--navy);
}
.consent a {
  color: var(--text);
  text-underline-offset: 3px;
}
.form-card .btn {
  width: 100%;
}
.form-status {
  margin-top: var(--s2);
  padding: var(--s2) 1.25rem;
  background: var(--mist);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
}
.form-status:empty {
  display: none;
}
.form-status p + p {
  margin-top: 0.5rem;
}
.form-status button {
  margin-top: 0.75rem;
  width: auto;
}

/* footer */

.site-footer {
  background: var(--ink);
  color: #fff;
  padding-block: var(--s6) var(--s4);
}
.footer-grid {
  display: grid;
  gap: var(--s5);
}
@media (min-width: 860px) {
  .footer-grid {
    grid-template-columns: 1.3fr 0.7fr 1fr;
    gap: var(--s6);
  }
}
.site-footer p {
  color: var(--soft);
  max-width: 34ch;
  margin-top: var(--s2);
}
.site-footer h2 {
  font-size: var(--t-body);
  font-weight: 600;
  margin-bottom: var(--s2);
}
.site-footer li + li {
  margin-top: 0.5rem;
}
.site-footer a {
  color: #d3dee7;
  text-underline-offset: 3px;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer .brand {
  color: #fff;
  text-decoration: none;
}
.site-footer address {
  font-style: normal;
  color: #d3dee7;
  display: grid;
  gap: 0.5rem;
}
.footer-base {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--navy-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--s4);
  justify-content: space-between;
  color: var(--soft);
  font-size: var(--t-xs);
}
.footer-base a {
  color: var(--soft);
}

/* sticky mobile call to action */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem var(--pad) calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--ink);
  border-top: 1px solid var(--navy-line);
  transition: transform 0.35s var(--ease);
}
.sticky-cta[data-hidden="true"] {
  transform: translateY(110%);
}
.sticky-cta .btn {
  flex: 1;
  padding-inline: 1rem;
}
.sticky-cta .btn-call {
  flex: 0 0 auto;
}
@media (min-width: 861px) {
  .sticky-cta {
    display: none;
  }
}
@media (max-width: 860px) {
  body {
    padding-bottom: 4.75rem;
  }
}

/* WhatsApp stays hidden until a number is set in main.js */
[data-whatsapp][hidden] {
  display: none !important;
}

/* legal pages */

.doc {
  max-width: 760px;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.doc h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.016em;
  font-weight: 650;
}
.doc h2 {
  font-size: var(--t-h3);
  line-height: 1.25;
  letter-spacing: -0.005em;
  font-weight: 600;
  margin-top: var(--s5);
  margin-bottom: 0.75rem;
}
.doc p,
.doc li {
  color: #23384a;
}
.doc p + p {
  margin-top: var(--s2);
}
.doc ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.5rem;
}
.doc a {
  text-underline-offset: 3px;
}
.doc .meta {
  margin-top: 0.75rem;
  color: var(--muted);
}
.doc .callout {
  margin-top: var(--s4);
  padding: var(--s2) 1.25rem;
  background: var(--mist);
  border-radius: var(--r-sm);
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

@media print {
  .site-header,
  .sticky-cta,
  .hero-actions {
    display: none !important;
  }
}

/* social links: shown only once a profile address is set in main.js */
.social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--s3);
}
.social[hidden],
.social a[hidden] {
  display: none !important;
}
.social a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-sm);
  color: #fff;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.social a:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
}
.social svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-list .dir {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--soft);
  border-bottom-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.contact-list .dir:hover {
  color: #fff;
}
.site-footer address a {
  width: fit-content;
}

.site-footer .social li + li {
  margin-top: 0;
}
.site-footer .social a {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.35);
}
.site-footer .social a:hover {
  border-bottom-color: var(--amber);
}

.brand img {
  display: block;
  width: auto;
  height: 3rem;
}
.site-footer .brand img {
  height: 3.25rem;
}


/* ================= Motion and conversion layer ================= */

/* progress bar and header */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--amber), #ffd98a);
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  pointer-events: none;
}
.site-header {
  transition: background-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled {
  background: rgba(10, 22, 32, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.7);
}

/* hero: slow drifting light behind the headline */
.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -30% -20%;
  background:
    radial-gradient(40% 45% at 22% 38%, rgba(242, 179, 61, 0.17), transparent 70%),
    radial-gradient(38% 42% at 80% 30%, rgba(46, 108, 230, 0.24), transparent 70%),
    radial-gradient(34% 40% at 62% 85%, rgba(242, 179, 61, 0.09), transparent 70%);
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes drift {
  from {
    transform: translate3d(-3%, -2%, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 3%, 0) scale(1.12);
  }
}

/* deadline card tilt (values set by script) */
.hero-grid {
  perspective: 1200px;
}
.deadline-card {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s ease-out;
  will-change: transform;
}

/* buttons: warmer, more tactile */
.btn {
  position: relative;
  overflow: hidden;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.25s;
}
.btn-primary {
  background: linear-gradient(180deg, #f8c45a, var(--amber));
  box-shadow: 0 10px 26px -10px rgba(242, 179, 61, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #fbd06f, #eeb03a);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(242, 179, 61, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-120%);
  pointer-events: none;
}
.btn-primary:hover::after {
  transform: translateX(120%);
  transition: transform 0.7s ease;
}
.hero-actions .btn-primary {
  animation: ring 2.6s 2.4s ease-out 3;
}
@keyframes ring {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 179, 61, 0.55), 0 10px 26px -10px rgba(242, 179, 61, 0.75);
  }
  70%,
  100% {
    box-shadow: 0 0 0 18px rgba(242, 179, 61, 0), 0 10px 26px -10px rgba(242, 179, 61, 0.75);
  }
}
.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(10, 22, 32, 0.8);
}
.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

/* audience ticker */
.ticker {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  border-bottom: 1px solid var(--navy-line);
  overflow: hidden;
  color: #d3dee7;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.ticker ul {
  display: flex;
  flex: none;
}
.ticker li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0 1rem 1.5rem;
  font-size: var(--t-sm);
  font-weight: 500;
  white-space: nowrap;
}
.ticker li::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* service cards: pointer spotlight */
.svc {
  position: relative;
  overflow: hidden;
}
.svc > * {
  position: relative;
}
.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgba(242, 179, 61, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.svc:hover::before {
  opacity: 1;
}
.svc .icon svg {
  transition: stroke 0.25s, transform 0.35s var(--ease);
}
.svc:hover .icon svg {
  transform: translateY(-3px) scale(1.08);
}

/* amber call-back band */
.cta-band {
  background: linear-gradient(115deg, #f2b33d 0%, #f8c95e 55%, #f2b33d 100%);
  color: var(--ink);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
.band-row {
  display: grid;
  gap: var(--s3);
  align-items: center;
}
@media (min-width: 860px) {
  .band-row {
    grid-template-columns: 1fr auto;
    gap: var(--s6);
  }
}
.cta-band .h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  margin-bottom: 0.5rem;
}
.cta-band p {
  max-width: 52ch;
  color: #2a2410;
}
.band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s2) var(--s3);
}
.band-phone {
  font-weight: 600;
  color: var(--ink);
  text-underline-offset: 4px;
}

/* quick enquiry dialog */
.quick {
  width: min(32rem, calc(100% - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  overflow: auto;
}
.quick::backdrop {
  background: rgba(6, 14, 21, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.quick[open] {
  animation: pop 0.35s var(--ease);
}
.quick[open]::backdrop {
  animation: fade 0.35s ease;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.quick-card {
  position: relative;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-top: 4px solid var(--amber);
}
.quick-card .h3 {
  padding-right: 3rem;
  margin-bottom: 0.5rem;
}
.quick-lead {
  color: var(--muted);
  margin-bottom: var(--s3);
}
.quick-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.quick-x:hover {
  background: var(--mist);
}
.quick-x svg {
  width: 22px;
  height: 22px;
}
.quick .form-status {
  margin-top: var(--s2);
}
html.dialog-open {
  overflow: hidden;
}

/* scroll reveals (only set when script runs and motion is allowed) */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
[data-reveal].in {
  opacity: 1;
  transform: none;
}
.svc[data-reveal].in {
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), background-color 0.25s, color 0.25s;
  transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s;
}

@media (prefers-reduced-motion: reduce) {
  .ticker-track,
  .hero::before {
    animation: none !important;
  }
  .ticker {
    overflow-x: auto;
  }
  .deadline-card {
    transform: none !important;
  }
}
@media print {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .ticker,
  .cta-band,
  .scroll-progress,
  .quick {
    display: none !important;
  }
}
