/* =============================================================================
   INTNT LLC — company website stylesheet
   -----------------------------------------------------------------------------
   One stylesheet for every page of `company-site/`. The site has no scripts and
   loads nothing from other origins: the CSP on this Hosting target
   (firebase.json → target "company") allows only 'self' for styles, fonts and
   images. Consequences for anyone editing this site:
     · no inline `style="…"` attributes (style-src 'self' blocks them) — all
       styling lives here;
     · no `url(data:…)` backgrounds (img-src 'self' blocks data: URIs) — use
       CSS gradients, or SVG files under assets/img/;
     · icons are inline <svg> elements in the HTML (presentation attributes
       such as stroke/fill are allowed; they are not CSS).
   ============================================================================= */

/* ── Fonts ─────────────────────────────────────────────────────────────────────
   Self-hosted Inter, copied from website/assets/fonts. Brand typography uses
   Regular / Medium / SemiBold only (no 700+). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
}

/* ── Design tokens ─────────────────────────────────────────────────────────────
   App background + brand colour (#A3124F). Text colours clear WCAG AA on both
   --bg and --surface; white on --brand is ~7.6:1. */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #FAF7F9;
  --surface: #FFFFFF;
  --tint: #F6E9EF;
  --rule: #ECE3E8;

  /* Text */
  --text: #1C1A1B;
  --text-soft: #3A3538;
  --muted: #5F5A5D;

  /* Brand */
  --brand: #A3124F;
  --brand-dark: #7E0D3C;
  --brand-soft: rgba(163, 18, 79, 0.08);

  /* Shape + depth */
  --radius-lg: 1.75rem;
  --radius: 1.25rem;
  --radius-sm: 0.875rem;
  --shadow: 0 1px 2px rgba(28, 26, 27, 0.04), 0 10px 30px rgba(163, 18, 79, 0.06);

  /* Widths */
  --page: 68rem;
  --measure: 44rem;
}

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

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

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

/* Column layout keeps the footer at the bottom on short pages. */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

main {
  flex: 1;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

h1,
h2,
h3 {
  font-weight: 600;
  color: var(--text);
}

p {
  margin: 0 0 1rem;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Small uppercase label above a heading. */
.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--brand);
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.button-primary {
  background: var(--brand);
  color: #FFFFFF;
}

.button-primary:hover {
  background: var(--brand-dark);
}

.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--rule);
}

.button-secondary:hover {
  border-color: rgba(163, 18, 79, 0.35);
}

/* ── Header: wordmark + page links ─────────────────────────────────────────── */
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.wordmark {
  display: block;
  line-height: 0;
}

.wordmark img {
  height: 1.25rem;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.9375rem;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

/* "Contact" rendered as a small outlined pill. */
.site-nav .nav-cta {
  padding: 0.4375rem 0.875rem;
  border: 1px solid rgba(163, 18, 79, 0.3);
  border-radius: 999px;
  color: var(--brand);
}

.site-nav .nav-cta:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

/* Smallest phones (≤ ~416px): the wordmark + three links overflow at the default
   sizes (the Contact pill was clipped at 320px), so tighten the header. */
@media (max-width: 26rem) {
  .wordmark img {
    height: 1.0625rem;
  }

  .site-nav {
    gap: 0.75rem;
    font-size: 0.875rem;
  }

  .site-nav .nav-cta {
    padding: 0.375rem 0.625rem;
  }
}

/* Keeps a short phrase on one line — used for "in-house", which otherwise
   breaks at its hyphen ("in- / house"). */
.nowrap {
  white-space: nowrap;
}

/* ── Hero (home) ───────────────────────────────────────────────────────────────
   A rounded panel with layered brand-tinted gradients; copy on the left, the
   INTNT mark in a soft circle on the right (hidden on narrow screens). */
.hero {
  padding-top: 0.5rem;
}

.hero-panel,
.page-hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(55% 75% at 100% 0%, rgba(163, 18, 79, 0.14), transparent 65%),
    radial-gradient(45% 60% at 0% 100%, rgba(163, 18, 79, 0.07), transparent 65%),
    linear-gradient(180deg, #FFFFFF 0%, #F8EEF3 100%);
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  padding: clamp(2rem, 6vw, 4.5rem);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 0.8125rem;
  font-weight: 500;
}

.pill-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--brand);
}

.hero h1 {
  margin: 1.25rem 0;
  font-size: clamp(2.25rem, 4.6vw, 3.125rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* Each headline sentence starts on its own line, so it never breaks mid-phrase
   ("Thoughtfully / designed. Carefully / built."). */
.hero h1 .h1-line {
  display: block;
}

.hero .lead {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: var(--text-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-mark {
  justify-self: center;
  display: grid;
  place-items: center;
  width: clamp(9rem, 18vw, 13rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FFFFFF 0%, #F3DCE6 100%);
  box-shadow: inset 0 0 0 1px rgba(163, 18, 79, 0.12), 0 24px 60px rgba(163, 18, 79, 0.14);
}

.hero-mark img {
  width: 52%;
  height: auto;
}

@media (max-width: 48rem) {
  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    display: none;
  }
}

/* ── Sections ──────────────────────────────────────────────────────────────── */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

/* Soft brand wash that fades out downward; alternates with plain sections. */
.section-tint {
  background: linear-gradient(180deg, rgba(163, 18, 79, 0.05) 0%, rgba(163, 18, 79, 0) 100%);
}

.section-head {
  max-width: var(--measure);
  margin-bottom: 2.25rem;
}

.section-head h2,
.facts-card h2,
.contact-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ── Purpose quote ─────────────────────────────────────────────────────────── */
.purpose {
  position: relative;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* Oversized brand quotation mark, decorative only. */
.purpose::before {
  content: "\201C";
  position: absolute;
  top: -0.25rem;
  right: clamp(1rem, 4vw, 2.5rem);
  font-size: 8rem;
  line-height: 1;
  font-weight: 600;
  color: var(--brand);
  opacity: 0.12;
}

.purpose h2 {
  margin: 0 0 1rem;
}

.purpose-quote {
  margin: 0 0 1rem;
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.purpose-note {
  margin: 0;
  color: var(--muted);
}

/* ── Cards (What we do / How we build) ─────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 1.125rem 0 0.375rem;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.card p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Rounded tinted square holding a stroke icon. */
.icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--brand);
}

.icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

/* ── Company facts + contact (side by side, stacked on narrow screens) ─────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

@media (max-width: 52rem) {
  .split {
    grid-template-columns: 1fr;
  }
}

.facts-card {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
}

/* Label/value rows; stacks on narrow phones. */
.facts {
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--rule);
}

.facts div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* One quiet line under the facts list. */
.facts-note {
  margin: 1.25rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 30rem) {
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 70%),
    linear-gradient(160deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #FFFFFF;
  box-shadow: 0 20px 50px rgba(163, 18, 79, 0.22);
}

.contact-card .eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.contact-card h2 {
  color: #FFFFFF;
}

.contact-card p {
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.88);
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.15s ease;
}

.contact-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

.contact-link:focus-visible {
  outline-color: #FFFFFF;
}

.contact-link svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

/* ── Inner pages (Privacy / Legal / 404) ───────────────────────────────────── */
.page-hero {
  padding-top: 0.5rem;
}

.page-hero-panel {
  padding: clamp(2rem, 5vw, 3.5rem);
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-hero .meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.page-body {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(3.5rem, 8vw, 5rem);
}

/* White reading card for long-form text. */
.prose {
  max-width: 48rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.prose h2 {
  margin: 2.25rem 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.4;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose p:last-child {
  margin-bottom: 0;
}

/* 404: centred panel with the mark. */
.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.not-found .hero-mark {
  display: grid;
  width: 7rem;
  margin-bottom: 1.5rem;
}

.not-found p {
  color: var(--muted);
}

/* ── Footer ────────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.footer-brand img {
  height: 1rem;
  width: auto;
}

.footer-brand p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.site-footer nav a {
  color: var(--muted);
}

.site-footer nav a:hover {
  color: var(--text);
}
