/* ============================================================
   Rizapia Digital — shared stylesheet (premium design, v3)
   Static site for Cloudflare Pages. Mobile-first, no frameworks.
   Identity: deep navy + rich amber + pale mint secondary accent.
   Typography: Sora (headings) + Inter (body) via Google Fonts,
   with system fallbacks so the site still looks right if the
   fonts fail to load. Design patterns inspired by AMZ One Step
   (numbered lists, mint step cards, tabbed work viewer, pill
   CTAs) — patterns only, no copied text, images or branding.
   ============================================================ */

:root {
  /* Colour — deeper navy, richer amber */
  --navy: #0B2237;
  --navy-dark: #071627;
  --navy-deep: #04101D;
  --navy-light: #16324F;
  --navy-mid: #1E4266;
  --amber: #F59E0B;
  --amber-bright: #FBBF24;
  --amber-dark: #D97706;
  --amber-soft: #FEF3C7;
  /* Mint/teal — disciplined secondary accent: step cards, one
     underline variant, footer trust strip. Amber stays primary. */
  --mint: #0F766E;
  --mint-dark: #0B5C4C;
  --mint-soft: #D9F2E8;
  --mint-border: #B7E6D5;
  --text: #1C2B3A;
  --muted: #55677A;
  --bg: #FFFFFF;
  --bg-light: #F3F6F9;
  --bg-warm: #FFFBEB;
  --border: #E3E9F0;
  --border-soft: #EDF1F5;
  --ink-on-navy: #D6E2EE;

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

  /* Shape & depth — large rounded corners, pill buttons */
  --radius: 24px;
  --radius-lg: 28px;
  --radius-btn: 999px;
  --shadow: 0 1px 2px rgba(7, 22, 39, 0.05), 0 4px 16px rgba(7, 22, 39, 0.06);
  --shadow-md: 0 2px 4px rgba(7, 22, 39, 0.05), 0 12px 32px rgba(7, 22, 39, 0.10);
  --shadow-lg: 0 4px 8px rgba(7, 22, 39, 0.06), 0 20px 48px rgba(7, 22, 39, 0.14);
  --max-width: 1120px;

  /* Typography */
  --font-heading: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber); color: var(--navy-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  overflow-wrap: break-word;
}
h1 { font-size: 2.1rem; line-height: 1.12; font-weight: 800; }
h2 { font-size: 2rem; font-weight: 700; margin-top: 0; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
li::marker { color: var(--amber-dark); }

a { color: var(--navy-mid); text-underline-offset: 2px; }
a:hover { color: var(--amber-dark); }

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

/* Accessible focus state */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.75em 1em;
  z-index: 100;
}
.skip-link:focus { left: 0.5em; top: 0.5em; color: #fff; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4.5rem 0; }
.section-light {
  background: var(--bg-light);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.lead { font-size: 1.15rem; line-height: 1.65; color: var(--muted); max-width: 42rem; }

.section-intro { max-width: 46rem; margin-bottom: 3rem; }
.section-intro p:last-child { margin-bottom: 0; }
/* Amber accent bar under section headings — the site's signature detail */
.section-intro h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  margin-top: 0.9rem;
}
.section-intro.text-centre h2::after { margin-left: auto; margin-right: auto; }
/* Mint variant of the accent bar, for the process side of the band */
.section-intro--mint h2::after {
  background: linear-gradient(90deg, var(--mint), #2DD4A7);
}

.text-centre { text-align: center; }
.text-centre .lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 50px;
  padding: 0.85em 1.7em;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  color: var(--navy-dark);
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--amber), var(--amber-dark));
  color: #fff;
  box-shadow: 0 10px 22px rgba(217, 119, 6, 0.4);
}

.btn-secondary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 34, 55, 0.25);
}
.btn-secondary:hover { background: var(--navy-light); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; box-shadow: var(--shadow-md); }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}
.btn-outline-light:hover { background: #fff; color: var(--navy); }

.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.btn-row .btn { flex: 1 1 auto; }
.btn-row.btn-centre { justify-content: center; }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(7, 22, 39, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 68px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span { color: var(--amber-dark); }

/* Hidden until JavaScript confirms the toggle works (main.js adds the
   .js class to <html>). Without JS the nav stays visible — see below. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}
.js .nav-toggle { display: inline-flex; }
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* No-JS fallback: the nav is visible as a full-width stacked list under
   the logo row, so the site stays navigable with JavaScript disabled.
   With JS (.js on <html>) it hides behind the hamburger toggle. */
.primary-nav {
  display: block;
  flex: 1 1 100%;
  order: 3;
  border-top: 1px solid var(--border);
}
.js .primary-nav {
  display: none;
  flex: none;
  order: 0;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: none;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.js .site-header.nav-open .primary-nav { display: block; }

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
  display: flex;
  flex-direction: column;
}
/* The JS dropdown spans the full viewport width, so it needs its own
   side padding; the no-JS stacked nav already sits inside .container. */
.js .primary-nav ul { padding: 0.5rem 1.25rem 1rem; }
.primary-nav li { margin: 0; }
.primary-nav a {
  display: block;
  padding: 0.8em 0.25em;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-bottom: 1px solid var(--border-soft);
}
.primary-nav li:last-child a { border-bottom: none; }
.primary-nav a:hover { color: var(--amber-dark); }
.primary-nav a[aria-current="page"] { color: var(--amber-dark); }
.primary-nav .nav-cta { margin-top: 0.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #12304F 100%);
  color: #fff;
  padding: 4rem 0 3.5rem;
}
/* Soft amber glow + faint dot texture for depth */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 320px at 88% -10%, rgba(245, 158, 11, 0.30), transparent 62%),
    radial-gradient(520px 280px at 8% 115%, rgba(30, 66, 102, 0.65), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: 2.35rem; max-width: 16em; }
.hero .lead { color: var(--ink-on-navy); font-size: 1.2rem; }
.hero .btn-row { margin-top: 2rem; }

.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #FDE68A;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.45em 1em;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

/* Two-column hero: copy left, visual right (stacked on mobile) */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

/* Pure-CSS browser-window mockup of our own Apex Plumbing demo.
   No photo, no stock imagery — the content is our own demo's. */
.hero-visual { position: relative; }
.browser-mockup {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(4, 16, 29, 0.5);
  overflow: hidden;
  color: var(--text);
}
.mockup-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: #EEF2F6;
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 1rem;
}
.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #CBD5E1;
  flex: 0 0 auto;
}
.mockup-dot:first-child { background: var(--amber); }
.mockup-url {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.3em 0.9em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mockup-body { padding: 1rem; }
.mockup-hero {
  background: linear-gradient(135deg, #0F766E, #14B8A6);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1.1rem;
  color: #fff;
}
.mockup-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #CCFBF1;
  margin: 0 0 0.4em;
}
.mockup-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 0.35em;
}
.mockup-sub {
  font-size: 0.78rem;
  line-height: 1.5;
  color: #E0F2F1;
  margin: 0 0 0.85em;
}
.mockup-cta {
  display: inline-block;
  background: #fff;
  color: #0F766E;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.55em 1.1em;
  border-radius: 999px;
}
.mockup-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.mockup-tile {
  background: var(--bg-light);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 0.6rem;
}
.mockup-tile-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 0.5em;
}
.mockup-bar-line {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: #E3E9F0;
  margin-bottom: 0.35em;
}
.mockup-bar-line--short { width: 65%; margin-bottom: 0; }
.mockup-badge {
  position: absolute;
  top: -0.65rem;
  right: 0.75rem;
  background: var(--amber);
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4em 0.9em;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45);
}
.mockup-caption {
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-on-navy);
  margin: 1.1rem 0 0;
}
.mockup-caption a { color: #FDE68A; font-weight: 600; }

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, #12304F 100%);
  color: #fff;
  padding: 3.25rem 0 2.75rem;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 260px at 88% -20%, rgba(245, 158, 11, 0.25), transparent 62%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; }
.page-hero .lead { color: var(--ink-on-navy); margin-bottom: 0; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--bg-warm);
  border-bottom: 1px solid #FDE68A;
  padding: 1.1rem 0;
}
.trust-strip ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.trust-strip li {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  padding-left: 2em;
  position: relative;
}
.trust-strip li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: var(--amber);
  color: #fff;
  font-size: 0.8em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Cards & grids ---------- */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #D8E1EB;
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card .btn { margin-top: auto; }

/* Spaced card variant (contact page sidebar). Replaces inline
   margin-top styles, so the Content Security Policy needs no
   'unsafe-inline' for styles. */
.card--spaced { margin-top: 1.25rem; }

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--amber-soft), #FFF7E0);
  border: 1px solid #FDE68A;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  font-size: 1.45rem;
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}
.badge-amber { background: var(--amber); color: var(--navy-dark); }

.demo-card img { border-radius: 16px; margin-bottom: 1rem; }
.demo-card .demo-meta {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

/* ---------- Checklist ---------- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}
.check-list li {
  padding-left: 1.85em;
  position: relative;
  margin-bottom: 0.65em;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid #FDE68A;
  color: var(--amber-dark);
  font-size: 0.75em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Steps (process) ---------- */
.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.75rem 1.75rem 5rem;
  position: relative;
  margin: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.steps li:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.4rem;
  top: 1.5rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--amber-bright), var(--amber));
  color: var(--navy-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
}
.steps h3 { margin-bottom: 0.3em; }
.steps p:last-child { margin-bottom: 0; }

/* Mint step cards (homepage band) — pale mint background, dark navy
   number circles, "Step N" eyebrow label. Process page keeps the
   default white/amber steps. */
.steps--mint li {
  background: var(--mint-soft);
  border-color: var(--mint-border);
  /* Tighter on mobile: the base 5rem left padding leaves too little
     room for text on a 360px screen. Restored at 640px and up. */
  padding: 1.4rem 1.35rem 1.4rem 4rem;
}
.steps--mint li::before {
  background: var(--navy);
  color: #fff;
  box-shadow: none;
  left: 1.1rem;
  top: 1.3rem;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
}
.step-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mint-dark);
  margin: 0 0 0.35em;
}
/* Small amber dot ties the mint step cards back to the brand accent. */
.step-label::before {
  content: "";
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
}

/* ---------- Numbered list (services, homepage band) ----------
   Numbered circles joined by a vertical line, AMZ-style. */
.numbered-list {
  counter-reset: service;
  list-style: none;
  padding: 0;
  margin: 0;
}
.numbered-list li {
  counter-increment: service;
  position: relative;
  padding: 0 0 1.9rem 3.75rem;
  margin: 0;
}
.numbered-list li:last-child { padding-bottom: 0; }
/* Vertical connector line between the circles */
.numbered-list li::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 2.8rem;
  bottom: 0.3rem;
  width: 2px;
  background: var(--border);
}
.numbered-list li:last-child::before { display: none; }
.numbered-list li::after {
  content: counter(service);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--amber);
  color: var(--amber-dark);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, 0.12);
}
.numbered-list h4 { margin-bottom: 0.25em; }
.numbered-list p { margin-bottom: 0; color: var(--muted); }

/* Card variant (homepage band only): the six "includes" items become
   white cards on the grey section background instead of a bare
   timeline list. The connector line is dropped; the number circle
   sits inside the card. Two columns on tablet, where the band is
   full-width; single column again on desktop, where the band column
   is half-width (see the media queries below). */
.numbered-list--cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
.numbered-list--cards li {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.25rem 4.1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* The base list removes bottom padding on the last item; cards keep it. */
.numbered-list--cards li:last-child { padding-bottom: 1.25rem; }
.numbered-list--cards li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #D8E1EB;
}
.numbered-list--cards li::before { display: none; }
.numbered-list--cards li::after {
  left: 1.15rem;
  top: 1.15rem;
  width: 2.1rem;
  height: 2.1rem;
  font-size: 1rem;
}

/* ---------- Combined services + process band (homepage) ---------- */
.split-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.band-heading {
  font-size: 1.35rem;
  margin-bottom: 1.75rem;
}
.band-heading::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  margin-top: 0.7rem;
}
.band-heading--mint::after {
  background: linear-gradient(90deg, var(--mint), #2DD4A7);
}
.band-link { margin: 1.5rem 0 0; font-weight: 600; }
.band-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  text-underline-offset: 4px;
}

/* ---------- "How much does it cost?" — price factors ----------
   Three numbered factors (pages, features, content readiness) above
   the payment cards. No prices are shown anywhere on the site — the
   owner quotes per project. */
.cost-subheading {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 1.75rem;
}
.cost-subheading::after {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  margin: 0.8rem auto 0;
}
.cost-factors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 2rem;
  margin-bottom: 2rem;
}
.cost-factor {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem 1.6rem 1.5rem;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cost-factor:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #D8E1EB;
}
/* Small amber tab at the top edge of each factor card. */
.cost-factor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.6rem;
  width: 2.5rem;
  height: 4px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
}
.cost-factor-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: var(--amber-soft);
  border: 1px solid #FDE68A;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--amber-dark);
  line-height: 1;
  margin-bottom: 0.9rem;
}
.cost-factor h4 { margin-bottom: 0.3em; }
.cost-factor p { margin-bottom: 0; color: var(--muted); }

/* Payment commitment cards: a full-width amber bar across the top,
   so the three promises read as the anchor of the section. */
.cost-cards .card {
  position: relative;
  overflow: hidden;
  padding-top: 2rem;
}
.cost-cards .card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
}

/* ---------- Mobile-friendly strip (services page) ----------
   Navy band with a phone photo. Mobile-friendly design is included
   in every website — not a separate service — so it gets its own
   strip below the services grid instead of a service card. */
.mobile-strip {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, #12304F);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.mobile-strip-photo {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  min-height: 0;
}
.mobile-strip-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mobile-strip-copy { padding: 2rem 1.75rem; }
.mobile-strip-copy h3 { color: #fff; }
.mobile-strip-copy p { color: var(--ink-on-navy); }
.mobile-strip-copy .check-list { margin-bottom: 0; }
.mobile-strip-copy .check-list li { color: var(--ink-on-navy); }
.mobile-strip-copy .check-list li::before {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.45);
  color: var(--amber-bright);
}

/* ---------- FAQ — modern accordion cards ----------
   <details>/<summary> behaviour, no JavaScript. The summary is a flex
   row: question text left, a circular plus badge right that rotates
   into a cross when the answer is open. */
.faq { max-width: 48rem; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-bottom: 0.85rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq details:hover { border-color: #C9D6E3; box-shadow: var(--shadow); }
.faq details[open] { border-color: #FDE68A; box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 1.05rem 1.1rem 1.05rem 1.4rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--navy);
  list-style: none;
  transition: background 0.2s ease;
}
.faq summary:hover { background: var(--bg-light); }
.faq details[open] summary { border-bottom: 1px solid var(--border-soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--amber-dark);
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--amber);
  color: #fff;
}
.faq details p {
  padding: 1.1rem 1.4rem 1.35rem;
  margin: 0;
  color: var(--muted);
}

/* FAQ theme groups (homepage) */
.faq-group { margin-bottom: 2.5rem; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group-title {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 1.1rem;
}
.faq-group-title::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  margin-top: 0.6rem;
}

/* Homepage FAQ refinements — scoped so the process page FAQ keeps its
   own layout. Centred intro and column (matching the cost section),
   an amber accent on the open question, and badge feedback on hover. */
.faq-section .section-intro { margin-left: auto; margin-right: auto; }
.faq-section .faq { margin: 0 auto; }
.faq-section details[open] {
  border-color: #FDE68A;
  box-shadow: inset 4px 0 0 var(--amber), var(--shadow-md);
}
.faq-section details[open] summary { background: var(--bg-warm); }
.faq-section summary:hover::after { background: var(--amber); color: #fff; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #12304F 100%);
  color: #fff;
  padding: 3.75rem 0;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 260px at 50% -30%, rgba(245, 158, 11, 0.28), transparent 65%);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--ink-on-navy); max-width: 38rem; margin: 0 auto 1.5rem; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem;
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4em;
}
.form-row label .optional { font-weight: 400; color: var(--muted); font-size: 0.9em; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.75em 0.9em;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: #fff;
  border: 1px solid #CBD5E1;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row textarea { min-height: 128px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--amber);
  outline: none;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}
.form-hint { font-size: 0.9rem; color: var(--muted); margin-top: 0.4em; }
.form-note {
  background: var(--bg-warm);
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 1.35rem;
}

/* ---------- Google Forms embed (contact page) ----------
   The iframe fills the form card's width at every size, so the layout
   cannot break on mobile. Height is fixed: tall enough for the whole
   form (6 questions) without an inner scrollbar; taller on narrow
   screens where the form's text wraps more. */
.form-embed iframe {
  display: block;
  width: 100%;
  height: 1560px;
  border: 0;
}
.form-embed-fallback {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .form-embed iframe { height: 1380px; }
}

/* ---------- Google Form embed: loading + slow-connection states ---------- */
.form-embed-loading {
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
  margin: 0;
}
.form-embed-slow {
  background: var(--bg-warm);
  border: 1px solid #FDE68A;
  border-radius: 10px;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: var(--navy);
  margin-top: 1rem;
}

/* ---------- Cookie banner ----------
   Fixed bottom bar; hidden until JS shows it (only when the visitor
   has not accepted yet). The choice is remembered in localStorage. */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: var(--navy-dark);
  color: #fff;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  padding: 1rem 0;
}
.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.cookie-banner-inner p { margin: 0; font-size: 0.92rem; flex: 1 1 280px; }
.cookie-banner-inner a { color: var(--amber-bright); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }

/* ---------- Work page filter tabs ---------- */
.work-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  min-height: 44px;
  padding: 0.65em 1.4em;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.filter-btn:hover { border-color: var(--navy); }
.filter-btn.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
/* .card sets display:flex, which overrides the UA hidden style. */
.demo-card[hidden] { display: none; }

/* ---------- Footer trust strip (honest points only) ---------- */
.footer-trust {
  background: var(--mint-soft);
  border-top: 1px solid var(--mint-border);
  padding: 1.25rem 0;
}
.footer-trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-trust li {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
  padding-left: 2em;
  position: relative;
}
.footer-trust li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.45em;
  height: 1.45em;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  font-size: 0.8em;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--navy-dark), var(--navy-deep));
  color: #CBD5E1;
  padding: 3.5rem 0 1.75rem;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--amber-dark), var(--amber), var(--amber-bright));
}
.footer-grid {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
  margin-bottom: 2.25rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.85em;
}
.site-footer a { color: #CBD5E1; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5em; }
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.footer-brand span { color: var(--amber); }
.footer-bottom {
  border-top: 1px solid var(--navy-light);
  padding-top: 1.35rem;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ---------- Legal / prose pages ---------- */
.prose { max-width: 48rem; }
.prose h2 { margin-top: 1.9em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- Two-column layout (contact) ---------- */
.split {
  display: grid;
  gap: 2.25rem;
  grid-template-columns: 1fr;
}

/* ---------- Photos — real stock imagery (local files, optimised) ----------
   All photos are illustrative stock photography from Pexels, downloaded
   and resized locally (no hotlinks). Captions say so where photos appear. */

/* Photo cards (homepage "Who we build for"): image bleeds to the card
   edges, text sits in .card-body below. */
.card--photo { padding: 0; overflow: hidden; }
.card-photo-wrap {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: var(--bg-light);
}
.card-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}
.card--photo:hover .card-photo { transform: scale(1.05); }
.card--photo .card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card--photo .card-body .btn { margin-top: auto; }
/* Photo-card images fill the wrap edge to edge — the generic
   .demo-card img rounding/margin must not apply here. */
.card--photo .card-photo { border-radius: 0; margin-bottom: 0; }

/* Full-width photo band (homepage): photo + navy overlay + text. */
.photo-band {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}
.photo-band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 16, 29, 0.88), rgba(11, 34, 55, 0.62) 62%, rgba(11, 34, 55, 0.35));
}
.photo-band .container {
  position: relative;
  z-index: 1;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}
.photo-band h2 { color: #fff; max-width: 24em; }
.photo-band .lead { color: var(--ink-on-navy); }
.photo-note {
  font-size: 0.85rem;
  color: rgba(214, 226, 238, 0.8);
  margin: 1.75rem 0 0;
}

/* Homepage photo band — refined overlay and hierarchy. Scoped to the
   homepage so the photo bands on About/Services keep their own look. */
.photo-band--home::after {
  /* Even, darker overlay on mobile: the directional gradient left the
     right side too light for white text on small screens. The
     directional gradient returns at desktop width (see below). */
  background: linear-gradient(180deg, rgba(4, 16, 29, 0.82), rgba(4, 16, 29, 0.74));
}
.photo-band--home h2::after {
  content: "";
  display: block;
  width: 4.5rem;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  margin-top: 0.9rem;
}
.photo-band--home .photo-note {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  padding-top: 1rem;
  max-width: 36rem;
}

/* In-article photo (About page). */
.prose-photo { margin: 2.25rem 0; }
.prose-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: block;
}
.prose-photo figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

/* Contact form heading (also fixes the heading hierarchy: h2 before the
   h3 sidebar cards). */
.form-heading { font-size: 1.35rem; margin-bottom: 1.25rem; }

/* ============================================================
   TABLET — 640px and up
   ============================================================ */
@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.7rem; }

  .section { padding: 5.25rem 0; }

  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .trust-strip ul { flex-direction: row; flex-wrap: wrap; gap: 1rem 2.25rem; }
  .footer-trust ul { flex-direction: row; flex-wrap: wrap; gap: 1rem 2.25rem; }

  .btn-row .btn { flex: 0 1 auto; }

  /* Homepage band: the "includes" cards pair up while the band is
     full-width; mint step cards get their roomier padding back. */
  .numbered-list--cards { grid-template-columns: repeat(2, 1fr); }
  .steps--mint li { padding: 1.75rem 1.75rem 1.75rem 5rem; }
  .steps--mint li::before {
    left: 1.4rem;
    top: 1.5rem;
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.15rem;
  }

  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ============================================================
   DESKTOP — 960px and up
   ============================================================ */
@media (min-width: 960px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.5rem; }
  .hero { padding: 5.25rem 0 4.5rem; }
  .hero h1 { font-size: 3.2rem; }
  .hero-inner { grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; }
  .section { padding: 6rem 0; }

  .split-band { grid-template-columns: 1fr 1fr; gap: 4rem; }
  /* Steps stay single-column inside the half-width band column. */
  .split-band .steps { grid-template-columns: 1fr; }
  .split-band .steps li:last-child:nth-child(odd) { grid-column: auto; }

  .cost-factors { grid-template-columns: repeat(3, 1fr); }

  /* Homepage band: single-column "includes" cards again — the band
     column is half-width now. Photo band gets its directional
     gradient back (text sits on the dark left side). */
  .numbered-list--cards { grid-template-columns: 1fr; }
  .photo-band--home::after {
    background: linear-gradient(90deg, rgba(4, 16, 29, 0.88), rgba(11, 34, 55, 0.62) 62%, rgba(11, 34, 55, 0.35));
  }

  .mobile-strip { grid-template-columns: 0.9fr 1.1fr; }
  .mobile-strip-photo { aspect-ratio: auto; }
  .mobile-strip-copy { padding: 2.5rem; }

  .nav-toggle, .js .nav-toggle { display: none; }
  .primary-nav, .js .primary-nav {
    display: block;
    position: static;
    flex: 0 1 auto;
    order: 0;
    border: none;
    box-shadow: none;
  }
  .primary-nav ul, .js .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
  }
  .primary-nav a { border-bottom: none; padding: 0.6em 0.8em; }
  .primary-nav .nav-cta { margin-top: 0; margin-left: 0.75rem; }
  .primary-nav .nav-cta a {
    background: linear-gradient(180deg, var(--amber-bright), var(--amber));
    color: var(--navy-dark);
    border-radius: var(--radius-btn);
    padding: 0.6em 1.15em;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
  }
  .primary-nav .nav-cta a:hover { background: linear-gradient(180deg, var(--amber), var(--amber-dark)); color: #fff; }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps li:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .split { grid-template-columns: 1.2fr 1fr; align-items: start; }

  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
