/* ==========================================================================
   Tenspro — Launching Soon
   One stylesheet, no inline styles (required by the strict CSP in .htaccess).
   Grid: 4 columns (mobile) → 8 (tablet) → 12 (desktop). Spacing on a 4px scale.
   ========================================================================== */

:root {
  /* Brand — sampled from the logo */
  --maroon: #8E2433;
  --maroon-deep: #6F1A27;
  --amber: #EDA116;

  /* Neutrals (warm, to sit with the brand colours) */
  --ink: #1C1819;
  --ink-soft: #574F51;
  --paper: #FAF8F5;
  --white: #FFFFFF;
  --line: #E7E1D9;

  /* On dark */
  --on-dark: #F6F1EA;
  --on-dark-soft: #BDB3AB;
  --dark-line: rgba(255, 255, 255, 0.14);

  --font: "Avenir Next", "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Roboto, "Noto Sans", system-ui, -apple-system, sans-serif;

  --gutter: 20px;
  --gap: 16px;
  --max: 1280px;
  --r-sm: 12px;
  --r-md: 20px;
  --section: 72px;
  --bar-h: 68px; /* mobile action bar */
  --header-h: 64px;
  --bar-space: var(--bar-h); /* space taken by the fixed mobile bar */
  --pad-y: clamp(24px, 5vh, 72px); /* vertical padding of full-screen sections */
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --gap: 24px; --section: 96px; --header-h: 80px; --bar-space: 0px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 48px; --section: 128px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
  scroll-padding-bottom: var(--bar-space);
  color-scheme: light;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
address { font-style: normal; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }

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

.icon {
  width: 20px; height: 20px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--white);
  padding: 12px 16px; border-radius: var(--r-sm); font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Grid ---------- */
.container {
  width: 100%; max-width: var(--max);
  margin-inline: auto; padding-inline: var(--gutter);
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--gap);
}
@media (min-width: 768px)  { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--maroon);
}
.eyebrow::before {
  content: ""; width: 24px; height: 3px; border-radius: 2px;
  background: var(--amber);
}
h2 { font-size: clamp(1.875rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.08; }

/* ---------- Buttons (one style family, used everywhere) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1.5px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--maroon); color: var(--white); }
.btn--primary:hover { background: var(--maroon-deep); }
.btn--ghost { border-color: rgba(28, 24, 25, 0.22); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 40;
  border-bottom: 1px solid var(--line); background: var(--paper);
}
.header__row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; min-height: 44px; }
.logo img { height: 34px; width: auto; }
.nav { display: none; }
@media (min-width: 768px) {
  .header__row { height: 80px; }
  .logo img { height: 40px; }
  .nav { display: flex; align-items: center; gap: 32px; }
  .nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.9375rem; color: var(--ink-soft); }
  .nav a:not(.btn):hover { color: var(--maroon); }
  .header__jump { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding-block: 48px var(--section); }
@media (min-width: 768px) { .hero { padding-top: 88px; } }
@media (min-width: 1200px) { .hero { padding-top: 112px; } }

.hero__copy { grid-column: 1 / -1; }
@media (min-width: 1024px) { .hero__copy { grid-column: 1 / span 7; } }

.status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em;
}
.status__dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber);
}
@media (prefers-reduced-motion: no-preference) {
  .status__dot::after {
    content: ""; position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid var(--amber); opacity: 0;
    animation: ping 2.4s ease-out infinite;
  }
  @keyframes ping {
    0%   { transform: scale(.6); opacity: .9; }
    80%, 100% { transform: scale(1.5); opacity: 0; }
  }
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.375rem, 1.5rem + 4.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.hero h1 .accent {
  background: linear-gradient(var(--amber), var(--amber)) 0 92% / 100% 0.12em no-repeat;
  padding-bottom: 0.04em;
}
.hero__lede {
  margin-top: 24px; max-width: 34em;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55; color: var(--ink-soft);
}
.hero__cta { margin-top: 32px; display: grid; gap: 12px; }
@media (min-width: 560px) {
  .hero__cta { grid-template-columns: repeat(2, max-content); }
}

/* Direct-lines card: desktop only (mobile uses the bottom action bar) */
.direct { display: none; }
@media (min-width: 1024px) {
  .direct {
    display: block; grid-column: 9 / span 4; align-self: end;
    background: var(--white); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 28px;
  }
}
.direct__title {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.direct__list { margin-top: 12px; }
.direct__item {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.direct__item:first-child { border-top: 0; }
.direct__label { display: block; font-size: 0.8125rem; color: var(--ink-soft); }
.direct__num {
  display: block; margin-top: 2px;
  font-size: 1.375rem; font-weight: 800; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.direct__item .icon { color: var(--maroon); width: 22px; height: 22px; }
.direct__item:hover .direct__num { color: var(--maroon); }

/* ---------- Hairline panels (stats, capabilities, brands share this) ---------- */
.panel {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.panel > * { background: var(--white); }

/* Stats */
.stats { padding-bottom: clamp(24px, 6vh, 64px); }
.stats .panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 24px 16px; }
.stat:last-child { grid-column: 1 / -1; }
.stat__num {
  display: block; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--maroon);
}
.stat__unit { font-size: 0.5em; letter-spacing: 0; margin-left: 4px; color: var(--ink); }
.stat__label { display: block; margin-top: 6px; font-size: 0.875rem; line-height: 1.4; color: var(--ink-soft); }
@media (min-width: 768px) {
  .stat { padding: 28px; }
}
@media (min-width: 1024px) {
  .stats .panel { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .stat { padding: 28px 20px; }
  .stat__num { font-size: 2.25rem; }
  .stat:last-child { grid-column: auto; }
}
@media (min-width: 1200px) {
  .stat { padding: 28px 24px; }
  .stat__num { font-size: 2.75rem; }
}

/* ---------- Sections ---------- */
/* Each quick-link section fills the visible screen (below the sticky header) and centres its content,
   so tapping a nav link shows the whole section at once. */
.section {
  display: flex; flex-direction: column; justify-content: center;
  padding-block: var(--pad-y);
  min-height: calc(100vh - var(--header-h) - var(--bar-space));
  min-height: calc(100svh - var(--header-h) - var(--bar-space));
}
.section__head { margin-bottom: 28px; }
.section__head > * { grid-column: 1 / -1; }
.section__head h2 { margin-top: 16px; }
.section__head p { margin-top: 16px; color: var(--ink-soft); max-width: 34em; }
@media (min-width: 1024px) {
  .section__head { margin-bottom: clamp(24px, 4.5vh, 48px); }
  .section__head > * { grid-column: 1 / span 7; }
  .section__head > p:not(.eyebrow) { grid-column: 9 / span 4; grid-row: 2; align-self: end; margin-top: 0; }
}

/* Capabilities */
.caps { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px)  { .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .caps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cap { padding: 20px 22px 22px; }
@media (min-width: 1024px) { .cap { padding: clamp(20px, 3vh, 32px) 24px clamp(20px, 3.4vh, 34px); } }
.cap__num {
  display: block; font-size: 0.8125rem; font-weight: 800;
  letter-spacing: 0.1em; color: var(--maroon);
}
.cap__num::after {
  content: ""; display: block; width: 24px; height: 3px; margin-top: 10px;
  border-radius: 2px; background: var(--amber);
}
.cap h3 { margin-top: 14px; font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; }
.cap p { margin-top: 8px; font-size: 0.9375rem; line-height: 1.55; color: var(--ink-soft); }

.panel > .cap--cta { background: var(--maroon); color: var(--white); display: flex; flex-direction: column; }
.cap--cta h3 { margin-top: 0; font-size: 1.5rem; line-height: 1.2; }
.cap--cta p { color: rgba(255, 255, 255, 0.82); }
.cap--cta .btn { position: relative; margin-top: auto; align-self: flex-start; background: var(--amber); color: var(--ink); }
.cap--cta .btn::after { content: ""; position: absolute; inset: -6px 0; } /* invisible, lifts the tap area to 44px+ */
.cap--cta .btn:hover { background: #F6B63A; }
.cap--cta .cap__cta-body { margin-bottom: 24px; }

/* Brands */
.brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .brands { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.brand {
  display: flex; align-items: center; min-height: 64px; padding: 16px;
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
@media (min-width: 400px) { .brand { padding-inline: 20px; font-size: 0.8125rem; } }
@media (min-width: 768px) { .brand { min-height: 88px; padding-inline: 20px; font-size: 0.8125rem; letter-spacing: 0.06em; } }
@media (min-width: 1024px) { .brand { padding-inline: 28px; font-size: 1rem; letter-spacing: 0.08em; } }
.fineprint { margin-top: 16px; font-size: 0.8125rem; color: var(--ink-soft); }

/* ---------- Contact (dark band) ---------- */
.contact {
  background: var(--ink); color: var(--on-dark);
  display: flex; flex-direction: column;
  padding-block: var(--pad-y) 0;
  min-height: calc(100vh - var(--header-h) - var(--bar-space));
  min-height: calc(100svh - var(--header-h) - var(--bar-space));
}
.contact > .container { margin-block: auto; }
.contact .eyebrow { color: var(--amber); }
.contact h2 { margin-top: 16px; color: var(--white); }
.contact .section__head p.contact__intro { margin-top: 16px; color: var(--on-dark-soft); max-width: 32em; }
.contact__cols { margin-top: 0; row-gap: 28px; }
.contact__col { grid-column: 1 / -1; }
@media (min-width: 768px)  { .contact__col { grid-column: span 4; } .contact__col--wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .contact__col, .contact__col--wide { grid-column: span 4; } }

.contact__label {
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--on-dark-soft);
  margin-bottom: 16px;
}
.tiles { display: grid; gap: 12px; }
.tile {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 68px; padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--dark-line); border-radius: var(--r-sm);
  transition: background-color .18s ease, border-color .18s ease;
}
a.tile:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.28); }
.tile__text { min-width: 0; }
.tile__label { display: block; font-size: 0.8125rem; color: var(--on-dark-soft); }
.tile__value {
  display: block; margin-top: 2px; font-size: 1.125rem; font-weight: 700;
  color: var(--white); overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.tile .icon { color: var(--amber); }
.tile--static { align-items: flex-start; }
.tile--static .tile__value { font-weight: 600; font-size: 1rem; line-height: 1.55; }

.branches { margin-top: 16px; display: grid; gap: 6px; font-size: 0.9375rem; line-height: 1.5; color: var(--on-dark-soft); }
.branches strong { color: var(--on-dark); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(24px, 4vh, 48px); border-top: 1px solid var(--dark-line); }
.footer__row {
  display: grid; gap: 4px; padding-block: 20px;
  font-size: 0.875rem; color: var(--on-dark-soft);
}
.footer__row strong { color: var(--on-dark); font-weight: 700; }
@media (min-width: 768px) {
  .footer__row { grid-template-columns: 1fr auto; align-items: center; padding-block: 32px; }
}

/* ---------- Mobile action bar (native tab-bar feel) ---------- */
.bar {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--white); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -8px 24px rgba(28, 24, 25, 0.06);
}
.bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  height: var(--bar-h); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em;
}
.bar a + a { border-left: 1px solid var(--line); }
.bar .icon { color: var(--maroon); width: 22px; height: 22px; }
.bar a:active { background: var(--paper); }
@media (min-width: 768px) { .bar { display: none; } }

/* ---------- 404 ---------- */
.notfound { padding-block: 72px var(--section); }
.notfound h1 { margin-top: 16px; font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem); line-height: 1.05; }
.notfound p { margin-top: 16px; color: var(--ink-soft); max-width: 30em; }
.notfound .btn { margin-top: 32px; }

/* ---------- Fit-to-screen tuning ---------- */
/* Short laptop screens (e.g. 1366x768): slightly smaller body copy so each section still fits */
@media (min-width: 768px) and (max-height: 820px) {
  .cap p { font-size: 0.875rem; line-height: 1.5; }
  .cap h3 { font-size: 1.125rem; margin-top: 10px; }
  .tile { min-height: 60px; padding-block: 10px; }
  .section__head h2 { font-size: clamp(1.75rem, 1.1rem + 2vw, 2.5rem); }
}

/* Phones: compact two-column capability cards (titles only) and a tighter contact block */
@media (max-width: 639px) {
  .section__head > p:not(.eyebrow):not(.contact__intro) { display: none; }
  .section__head h2 { font-size: clamp(1.625rem, 1.2rem + 2vw, 2rem); margin-top: 10px; }
  .section__head { margin-bottom: 18px; }

  .caps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cap { padding: 14px 14px 16px; }
  .cap p { display: none; }
  .cap h3 { margin-top: 10px; font-size: 1rem; line-height: 1.25; }
  .panel > .cap--cta { padding: 14px; }
  .cap--cta h3 { font-size: 1rem; }
  .cap--cta .cap__cta-body { margin-bottom: 12px; }
  .cap--cta .cap__cta-body p { display: none; }
  .cap--cta .btn { min-height: 40px; padding: 0 14px; font-size: 0.875rem; }

  .contact .section__head p.contact__intro { display: none; }
  .contact__cols { row-gap: 14px; column-gap: 12px; }
  .contact__col { grid-column: 1 / -1; }
  .contact__label { margin-bottom: 8px; }
  .tiles { gap: 8px; }
  .tile { min-height: 52px; padding: 8px 14px; }
  .tile__value { font-size: 1rem; }
  .tile--static .tile__value { font-size: 0.875rem; line-height: 1.45; }
  .branches { margin-top: 10px; font-size: 0.8125rem; gap: 2px; }
  .footer__row { padding-block: 14px; font-size: 0.8125rem; }
}

/* Phones: phone numbers share a row; tiles are tighter */
@media (max-width: 639px) {
  :root { --pad-y: clamp(16px, 3vh, 28px); }
  .contact__col:first-child .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__col:first-child .tile .icon { display: none; }
  .contact__col:first-child .tile__value { font-size: 0.9375rem; }
  .tile { min-height: 48px; padding: 6px 14px; }
  .tile__label { font-size: 0.75rem; }
  .tile__value { margin-top: 0; }
  .cap__num { font-size: 0.75rem; }
  .cap__num::after { display: none; }
  .cap { padding: 12px 14px 14px; }
  .cap h3 { margin-top: 4px; }
}

/* Tablet portrait: three columns (7 capabilities + a wide CTA = 3 tidy rows) */
@media (min-width: 640px) and (max-width: 1023px) {
  .caps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panel > .cap--cta { grid-column: span 2; }
  .cap p { font-size: 0.875rem; }
}

/* Very short windows (small laptops with browser bars) */
@media (min-width: 768px) and (max-height: 800px) {
  :root { --pad-y: 20px; }
}

/* Tablet portrait: tighter heading and cells so What we do fits on one screen */
@media (min-width: 640px) and (max-width: 1023px) {
  .section__head h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.375rem); margin-top: 10px; }
  .section__head p { max-width: 46em; margin-top: 10px; }
  .section__head { margin-bottom: 20px; }
  .cap { padding: 16px 18px 18px; }
  .cap__num::after { margin-top: 6px; }
  .cap h3 { margin-top: 8px; font-size: 1.0625rem; }
  .cap p { margin-top: 6px; }
  .cap--cta h3 { font-size: 1.25rem; }
}

/* Phones: keep phone numbers on one line; slimmer email tiles and footer */
@media (max-width: 639px) {
  .contact__col:first-child .tile { padding-inline: 12px; }
  .contact__col:first-child .tile__value { font-size: clamp(0.8125rem, 3.6vw, 0.9375rem); white-space: nowrap; overflow-wrap: normal; }
  .contact__col:not(:first-child) .tile { min-height: 44px; padding-block: 4px; }
  .contact__cols { row-gap: 10px; }
  .contact__label { margin-bottom: 6px; }
  .footer__row p:last-child { display: none; }
}

/* Phones: last few pixels so Contact fits on 390x844-class screens */
@media (max-width: 639px) {
  .contact { padding-top: 12px; }
  .footer__row { padding-block: 10px; }
  .footer { margin-top: 12px; }
}
/* Small / short phones (e.g. 360x640, 375x667): squeeze capabilities as far as is sensible */
@media (max-width: 639px) and (max-height: 700px) {
  .section__head h2 { font-size: 1.375rem; margin-top: 6px; }
  .section__head { margin-bottom: 12px; }
  .cap { padding: 9px 12px 10px; }
  .cap h3 { font-size: 0.9375rem; }
  .panel > .cap--cta { padding: 9px 12px; }
  .cap--cta .cap__cta-body { margin-bottom: 6px; }
  .cap--cta .btn { min-height: 36px; }
}

/* 320px phones: trim tile padding so both phone numbers fit on one line */
@media (max-width: 359px) {
  .contact__col:first-child .tile { padding-inline: 8px; }
}

/* Phones up to ~740px tall (e.g. 360x740): tighter line spacing so Contact gets as close to one screen as it can */
@media (max-width: 639px) and (max-height: 760px) {
  .tile__label, .tile__value, .tile--static .tile__value { line-height: 1.3; }
  .contact__col:not(:first-child) .tile { min-height: 42px; padding-block: 3px; }
  .contact__col:first-child .tile { min-height: 44px; padding-block: 3px; }
  .contact__label { line-height: 1.3; margin-bottom: 4px; }
  .contact__cols { row-gap: 8px; }
  .branches { line-height: 1.35; margin-top: 8px; }
  .footer__row { line-height: 1.35; padding-block: 8px; }
}

/* Small phones (<=700px tall): the "Call" / "Email" group headings repeat what each tile already says,
   so they stay for screen readers only. This lets Contact fit one screen on 375x667-class phones. */
@media (max-width: 639px) and (max-height: 700px) {
  .contact__col:not(.contact__col--wide) .contact__label {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
}
@media (max-width: 639px) and (max-height: 700px) {
  .contact { padding-top: 6px; }
  .contact__cols { row-gap: 6px; }
  .branches { margin-top: 6px; }
  .footer { margin-top: 4px; }
}
