/* =========================================================================
   Iphnlogic.online — Global Stylesheet
   A single shared stylesheet for the whole site (kept DRY without PHP includes).
   Organised as: Tokens → Base → Layout → Components → Sections → Utilities → Responsive
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Design Tokens (CSS Custom Properties)
   ------------------------------------------------------------------------- */
:root {
  /* Raw brand palette */
  --crimson-violet: #5f0f40ff;
  --deep-crimson: #9a031eff;
  --princeton-orange: #fb8b24ff;
  --autumn-leaf: #e36414ff;
  --dark-teal: #0f4c5cff;

  /* Brand palette (semantic → mapped onto the raw palette above) */
  --color-primary: var(--dark-teal);        /* Dark teal — headings, footer, nav text */
  --color-secondary: var(--deep-crimson);   /* Deep crimson — primary actions, links */
  --color-secondary-dark: var(--crimson-violet); /* Hover / pressed state */
  --color-accent: var(--princeton-orange);  /* Princeton orange — highlights, gradients */
  --color-bg: #FFFFFF;           /* Page background */
  --color-bg-light: #F6F8F8;     /* Alternating sections, cards */
  --color-bg-tint: #eef4f4;      /* Faint teal-tinted surface */
  --color-text: #1b2730;         /* Body text — warm near-ink */
  --color-muted: #5a6b74;        /* Secondary text */
  --color-border: #e4ebec;       /* Hairline borders */

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6.5rem;

  /* Radius & shadows */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 39, 48, 0.05), 0 1px 1px rgba(15, 39, 48, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(15, 39, 48, 0.18);
  --shadow-lg: 0 30px 60px -22px rgba(15, 39, 48, 0.28);
  --shadow-accent: 0 18px 40px -16px rgba(154, 3, 30, 0.45);

  /* Layout */
  --container: 1180px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.22s var(--ease);
}

/* -------------------------------------------------------------------------
   2. Base / Reset
   ------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip; /* safety net against accidental horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  color: var(--color-primary);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5.6vw, 4.1rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 var(--space-sm); }

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-secondary-dark); }

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

ul, ol { margin: 0 0 var(--space-sm); padding-left: 1.25rem; }

::selection { background: var(--color-accent); color: #fff; }

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

/* -------------------------------------------------------------------------
   3. Layout helpers
   ------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section { padding: var(--space-2xl) 0; }
.section--tight { padding: var(--space-xl) 0; }
.section--light { background: var(--color-bg-light); }

.section-head {
  max-width: 720px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}
.section-head p { color: var(--color-muted); font-size: 1.1rem; margin-bottom: 0; }

/* Eyebrow — a structural micro-label with a leading accent bar (not floating caps) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.section-head .eyebrow { justify-content: center; }

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* -------------------------------------------------------------------------
   4. Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.82rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
              color var(--transition), border-color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-secondary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-secondary-dark); color: #fff; box-shadow: var(--shadow-accent); }

.btn--accent {
  background: var(--color-accent);
  color: #2a1402;
}
.btn--accent:hover { color: #2a1402; box-shadow: 0 18px 40px -16px rgba(251, 139, 36, 0.6); }

.btn--ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn--ghost:hover { border-color: var(--color-secondary); color: var(--color-secondary); background: #fff; }

.btn--light {
  background: #fff;
  color: var(--color-primary);
}
.btn--light:hover { color: var(--color-secondary); box-shadow: var(--shadow-md); }

.btn--lg { padding: 1rem 2.1rem; font-size: 1.05rem; }

.btn-row { display: flex; gap: var(--space-sm); flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   5. Header / Navigation
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--color-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: var(--space-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}
.brand:hover { color: var(--color-primary); }
.brand__mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  filter: drop-shadow(0 4px 10px rgba(15, 76, 92, 0.3));
}
.brand span b { color: var(--color-secondary); font-weight: 700; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.4rem 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--color-secondary);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--color-secondary); }
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }

.nav__cta { display: flex; align-items: center; gap: var(--space-sm); }

.nav__toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--color-primary);
}
.nav__toggle svg { width: 28px; height: 28px; }

/* -------------------------------------------------------------------------
   6. Hero
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding: calc(var(--space-2xl) - 0.5rem) 0 var(--space-2xl);
  background:
    radial-gradient(900px 480px at 88% -12%, rgba(251, 139, 36, 0.12), transparent 60%),
    radial-gradient(760px 420px at -5% 8%, rgba(154, 3, 30, 0.08), transparent 55%),
    var(--color-bg);
  overflow: hidden;
}
/* Faint dotted-grid texture — the hero's single quiet flourish */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 76, 92, 0.11) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(760px 520px at 70% 25%, #000 0%, transparent 72%);
  mask-image: radial-gradient(760px 520px at 70% 25%, #000 0%, transparent 72%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: var(--space-xl);
}
/* Let grid cells shrink below their content's intrinsic width (the inline
   SVGs report a wide min-content and would otherwise blow out the layout). */
.hero__grid > *,
.split > * { min-width: 0; }
.hero h1 { margin-bottom: var(--space-md); }
.hero__lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__stats {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero__stat span { font-size: 0.9rem; color: var(--color-muted); }
.hero__art { position: relative; }
.hero__art svg {
  filter: drop-shadow(0 40px 60px rgba(15, 39, 48, 0.2));
  border-radius: var(--radius-lg);
}

/* Page banner (interior pages) */
.page-hero {
  position: relative;
  padding: calc(var(--space-xl) + 0.5rem) 0;
  background:
    radial-gradient(680px 300px at 88% 0%, rgba(251, 139, 36, 0.22), transparent 60%),
    linear-gradient(135deg, var(--color-primary), var(--crimson-violet));
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1.4px);
  background-size: 26px 26px;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 640px; margin: 0 auto; font-size: 1.12rem; }
.breadcrumb {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0;
  margin: var(--space-md) 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumb a { color: var(--color-accent); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: rgba(255, 255, 255, 0.5); }

/* -------------------------------------------------------------------------
   7. Cards
   ------------------------------------------------------------------------- */
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  overflow: hidden;
}
/* A thin accent rail that grows in on hover — structural, not decorative */
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(var(--color-secondary), var(--color-accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--transition);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card:hover::before { transform: scaleY(1); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin-bottom: 0; }

/* Card links (used on the Services grid to reach each service page) */
.card__title-link { color: inherit; }
.card__title-link:hover { color: var(--color-secondary); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--space-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-secondary);
}
.card__link svg { width: 18px; height: 18px; transition: transform var(--transition); }
.card:hover .card__link svg,
.card__link:hover svg { transform: translateX(4px); }

/* Fully clickable card (stretched-link pattern): one real anchor whose
   invisible ::after overlay covers the whole card. Keeps a single accessible,
   crawlable link while making the entire card a click/tap target. */
.card--clickable { cursor: pointer; }
.card--clickable .card__link--stretched::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}
/* Mirror the :hover lift when the card's link receives keyboard focus */
.card--clickable:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.card--clickable:focus-within::before { transform: scaleY(1); }
.card--clickable:focus-within .card__link { color: var(--color-secondary-dark); }
.card--clickable .card__link--stretched:focus-visible { outline: none; }

.card__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(154, 3, 30, 0.12), rgba(251, 139, 36, 0.14));
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
  transition: transform var(--transition);
}
.card:hover .card__icon { transform: scale(1.06) rotate(-3deg); }
.card__icon svg { width: 28px; height: 28px; }

/* Feature list (Why choose us) */
.feature {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  transition: transform var(--transition);
}
.feature:hover { transform: translateX(4px); }
.feature__icon {
  flex: 0 0 42px;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(251, 139, 36, 0.14);
  color: var(--color-accent);
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h4 { margin-bottom: 0.15rem; }
.feature p { color: var(--color-muted); font-size: 0.94rem; margin-bottom: 0; }

/* Process steps — a connected sequence */
.step { position: relative; padding-top: var(--space-xs); }
.step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--color-border);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
}
/* Connector line between steps (hidden on the last one and on mobile) */
.grid-4 .step::after {
  content: "";
  position: absolute;
  top: 27px;
  left: 54px;
  right: calc(-1 * var(--space-md));
  height: 1.5px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 14px);
  z-index: 0;
}
.grid-4 .step:last-child::after { display: none; }
.step h3 { font-size: 1.15rem; }
.step p { color: var(--color-muted); margin-bottom: 0; }

/* App showcase cards */
.app-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.app-card__shot {
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(420px 220px at 80% 0%, rgba(251, 139, 36, 0.4), transparent 60%),
    linear-gradient(135deg, var(--dark-teal), var(--crimson-violet));
  color: #fff;
  position: relative;
}
.app-card__shot svg { width: 92px; height: 92px; opacity: 0.95; }
.app-card__body { padding: var(--space-md) var(--space-lg) var(--space-lg); flex: 1; display: flex; flex-direction: column; }
.app-card__body h3 { margin-bottom: 0.25rem; }
.app-card__body p { color: var(--color-muted); }
.app-card ul { margin-top: auto; padding-left: 1.1rem; }
.app-card ul li { font-size: 0.92rem; color: var(--color-text); margin-bottom: 0.2rem; }

.badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-secondary);
  background: rgba(154, 3, 30, 0.1);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.6rem;
}

/* Tech badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 0.6rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.tech-badge:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.tech-badge span { width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }

/* Split content (image + text) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.split__art {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* Value / mission cards */
.value-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.value-card::before {
  content: "";
  position: absolute;
  left: var(--space-lg); top: 0;
  width: 32px; height: 3px;
  background: var(--color-accent);
  border-radius: 0 0 3px 3px;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-card h3 { font-size: 1.15rem; }
.value-card p { color: var(--color-muted); margin-bottom: 0; }

/* -------------------------------------------------------------------------
   8. CTA band
   ------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(600px 320px at 12% 18%, rgba(251, 139, 36, 0.28), transparent 60%),
    radial-gradient(500px 280px at 92% 90%, rgba(154, 3, 30, 0.4), transparent 60%),
    linear-gradient(135deg, var(--color-primary), var(--crimson-violet));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px);
  background-size: 24px 24px;
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.cta-band p { color: rgba(255, 255, 255, 0.88); max-width: 620px; margin: 0 auto var(--space-lg); font-size: 1.12rem; }
.cta-band .btn-row { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }

/* -------------------------------------------------------------------------
   9. Forms (Contact)
   ------------------------------------------------------------------------- */
.form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-md);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.field { margin-bottom: var(--space-sm); }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-light);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(154, 3, 30, 0.15);
  background: #fff;
}
.field textarea { resize: vertical; min-height: 140px; }
.field small { color: var(--color-muted); font-size: 0.82rem; }

.form-note {
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: var(--space-sm);
}
.form-note--ok { background: rgba(15, 76, 92, 0.12); color: #0f4c5c; border: 1px solid rgba(15, 76, 92, 0.3); }
.form-note--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.contact-info { list-style: none; padding: 0; margin: 0; }
.contact-info li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info li:last-child { border-bottom: 0; }
.contact-info .contact-info__icon {
  flex: 0 0 42px; width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(154, 3, 30, 0.1);
  color: var(--color-secondary);
}
.contact-info strong { display: block; color: var(--color-primary); }
.contact-info span { color: var(--color-muted); }

/* -------------------------------------------------------------------------
   10. Legal / prose pages
   ------------------------------------------------------------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: var(--space-lg); font-size: 1.5rem; }
.prose h3 { margin-top: var(--space-md); }
.prose p, .prose li { color: var(--color-text); }
.prose ul { padding-left: 1.3rem; }
.prose .updated { color: var(--color-muted); font-size: 0.92rem; }

/* -------------------------------------------------------------------------
   11. Footer
   ------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.75);
  padding: var(--space-2xl) 0 var(--space-lg);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--space-lg);
}
.footer__brand .brand { color: #fff; margin-bottom: var(--space-sm); }
.footer__brand p { color: rgba(255, 255, 255, 0.65); font-size: 0.95rem; max-width: 300px; }
.footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 0.6rem; }
.footer ul a { color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; }
.footer ul a:hover { color: var(--color-accent); }
.footer__contact li { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.6rem; font-size: 0.95rem; }
.footer__contact svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; color: var(--color-accent); }

/* Business / registered entity information block (page body) */
.org-info {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 760px;
  display: grid;
  gap: var(--space-sm);
}
.org-info li {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border, rgba(15, 23, 42, 0.1));
}
.org-info li:last-child { border-bottom: 0; }
.org-info strong {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.95rem;
}
.org-info span { color: var(--color-text, #334155); line-height: 1.6; }
@media (max-width: 640px) {
  .org-info li { grid-template-columns: 1fr; gap: 0.25rem; }
}

.footer__org {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  max-width: 680px;
}
.footer__org p { margin: 0.2rem 0; }
.footer__org-name { color: #fff; font-weight: 700; letter-spacing: 0.02em; }
.footer__org b { color: rgba(255, 255, 255, 0.85); font-weight: 600; }

.footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer__bottom nav { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.footer__bottom a { color: rgba(255, 255, 255, 0.6); }
.footer__bottom a:hover { color: var(--color-accent); }

/* -------------------------------------------------------------------------
   12. Cookie banner
   ------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  align-items: center;
  z-index: 200;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; font-size: 0.92rem; color: var(--color-muted); }
.cookie-banner .btn { flex-shrink: 0; }

/* -------------------------------------------------------------------------
   13. Utilities
   ------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.14rem; color: var(--color-muted); }
.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;
}

/* -------------------------------------------------------------------------
   14. Responsive
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
  :root { --space-2xl: 5rem; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; }
  .split { grid-template-columns: 1fr; }
  .split__art { order: -1; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links,
  .nav__cta .btn { display: none; }
  .nav__toggle { display: inline-flex; }

  /* Mobile drop menu */
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-md);
    gap: var(--space-sm);
    box-shadow: var(--shadow-md);
  }
  .nav__links.is-open a { padding: 0.5rem 0; width: 100%; }
  .nav__links.is-open a::after { display: none; }

  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: var(--space-xl) var(--space-md); }
  .hero__stats { gap: var(--space-md); }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
