/* ============================================
   DALBY COMPANY — Core Stylesheet
   Palette: #202A44 (ink), #FFFFFF (paper), #E20000 (signal), #2B4AA3 (channel)
   ============================================ */

:root {
  --ink: #202A44;
  --paper: #FFFFFF;
  --signal: #E20000;
  --channel: #2B4AA3;
  --ink-soft: #4A5573;
  --paper-soft: #F5F7FB;
  --line: #E2E6EF;
  --shadow: 0 18px 50px -24px rgba(32, 42, 68, 0.35);
  --radius: 14px;
  --max: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: var(--channel); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--signal);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
}
.btn-primary {
  background: var(--signal);
  color: var(--paper);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(226,0,0,0.55);
  text-decoration: none;
}
.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.4);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--paper);
  text-decoration: none;
}
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.logo svg { flex-shrink: 0; }
.logo-text { color: var(--ink); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover { color: var(--channel); text-decoration: none; }
.main-nav a.active { color: var(--channel); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--signal);
  border-radius: 2px;
}

.nav-cta {
  display: none;
  color: var(--paper) !important;
  white-space: nowrap;
}
.nav-cta:hover { color: var(--paper) !important; }
@media (min-width: 1024px) {
  .nav-cta { display: inline-flex; }
}

.menu-toggle {
  display: inline-flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle svg { width: 26px; height: 26px; }
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}
@media (max-width: 1023px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .main-nav.open { max-height: 520px; }
  .main-nav a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav .nav-cta {
    display: inline-flex;
    margin: 16px 24px 20px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, #161E36 60%, #11182C 100%);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43,74,163,0.45), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(226,0,0,0.18), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 90px 24px 80px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.1fr 0.9fr; }
}
.hero h1 { color: var(--paper); }
.hero .lede {
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  max-width: 540px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-visual img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.08);
}
.page-hero {
  background: linear-gradient(160deg, var(--ink) 0%, #161E36 70%);
  color: var(--paper);
  padding: 70px 24px 60px;
  text-align: center;
}
.page-hero h1 { color: var(--paper); }
.page-hero p { color: rgba(255,255,255,0.75); max-width: 640px; margin: 0 auto; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--paper-soft); }
.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark p { color: rgba(255,255,255,0.7); }

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head.left {
  margin: 0 0 48px;
  text-align: left;
}

/* ---------- Grids & Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon-badge {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--paper-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--channel);
}
.card .icon-badge svg { width: 24px; height: 24px; }

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--paper-soft);
  color: var(--channel);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: 20px;
}
.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  text-align: center;
}
@media (min-width: 720px) {
  .stat-row { grid-template-columns: repeat(4, 1fr); }
}
.stat .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--paper);
}
.stat .label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--channel);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: center;
  justify-items: center;
  opacity: 0.55;
}
@media (min-width: 720px) {
  .logo-strip { grid-template-columns: repeat(4, 1fr); }
}
.logo-strip div {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--channel), var(--ink));
  color: var(--paper);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(255,255,255,0.8); max-width: 560px; margin: 0 auto 24px; }
.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}
label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--ink);
}
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--paper);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--channel);
  outline-offset: 1px;
}
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.checkbox-row input { width: auto; margin-top: 4px; }
.checkbox-row label { font-weight: 400; font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 0; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
fieldset legend {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 6px;
}
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
}
.check-grid label { font-weight: 400; font-size: 0.9rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 6px; margin-bottom: 0; }
.check-grid input { width: auto; }

.form-msg {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 0.92rem;
}
.form-msg.success { background: #E7F6EC; color: #1E7A3D; border: 1px solid #BFE6CC; }
.form-msg.error { background: #FBEAEA; color: var(--signal); border: 1px solid #F6CACA; }

/* ---------- Map ---------- */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  height: 360px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Disclosure ---------- */
.disclosure-bar {
  background: var(--paper-soft);
  border-top: 1px solid var(--line);
  padding: 22px 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.6;
}
.disclosure-bar .container { max-width: 920px; }

.advertorial-tag {
  background: #FFF4E5;
  border-bottom: 1px solid #FFE3BD;
  color: #8A5800;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  padding: 64px 0 32px;
}
@media (min-width: 860px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-grid h4 {
  color: var(--paper);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-grid a:hover { color: var(--paper); }
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--paper);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-logo-text { color: var(--paper); }
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.social-row a:hover { background: rgba(255,255,255,0.14); }
.social-row svg { width: 17px; height: 17px; fill: rgba(255,255,255,0.85); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--paper); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Cookie banner ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--signal);
  padding: 20px 24px;
  display: none;
}
#cookie-banner.show { display: block; }
.cookie-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.cookie-inner p { margin: 0; color: rgba(255,255,255,0.8); font-size: 0.9rem; max-width: 620px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 20px; font-size: 0.85rem; }

/* ---------- Misc ---------- */
.team-card { text-align: center; }
.team-card img { aspect-ratio: 1/1; object-fit: cover; margin: 0 auto 16px; }
.team-card .role { color: var(--channel); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }

.split {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse > *:first-child { order: 2; }
}

.legal h2 { margin-top: 1.6em; }
.legal h3 { margin-top: 1.2em; }
.legal ul { color: var(--ink-soft); }
.legal .updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 2em; }

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.breadcrumb a { color: rgba(255,255,255,0.8); }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 20px 0;
}
.metric-grid .m {
  background: var(--paper-soft);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.metric-grid .m .v { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--channel); }
.metric-grid .m .l { font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
