/* ==========================================================================
   Bedrok Media — Base / Foundation Stylesheet
   Shared design system for all pages. Page-specific styles live in their
   own /assets/css/<page>.css file.
   ========================================================================== */

/* ---- Design Tokens ------------------------------------------------------- */
:root {
  /* Brand */
  --c-blue: #0177b5;          /* primary brand blue (links, secondary) */
  --c-blue-dark: #015a9c;     /* hover / active */
  --c-blue-accent: #1372d3;   /* secondary accent */
  --c-blue-light: #39a3d1;    /* light accent */
  --c-yellow: #ffe530;        /* highlight accent */

  /* Action accent — electric blue, reserved for CTAs + accent bars */
  --c-accent: #2f6bff;
  --c-accent-hover: #1e54e0;
  --c-on-accent: #ffffff;
  --c-glow: rgba(47, 107, 255, 0.16);
  --c-accent-tint: rgba(47, 107, 255, 0.10); /* card icon wash */

  /* Neutrals */
  --c-ink: #0c1115;           /* dark section background */
  --c-text: #333333;          /* body text */
  --c-text-soft: #555555;     /* secondary text */
  --c-muted: #94a3b0;         /* muted text on dark */
  --c-cream: #faf8ee;         /* soft section background */
  --c-white: #ffffff;
  --c-line: #e5e9ee;          /* hairline borders */

  /* Typography */
  --font: Helvetica, "Helvetica Neue", Arial, sans-serif;

  /* Layout */
  --maxw: 1180px;
  --gutter: 20px;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(12, 17, 21, 0.08);
  --shadow-lg: 0 20px 50px rgba(12, 17, 21, 0.14);

  /* Spacing scale */
  --space-section: 84px;
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, picture, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--c-blue-dark); }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.2; color: var(--c-ink); font-weight: 800; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--c-line); margin: 2rem 0; }

/* ---- Typography scale ---------------------------------------------------- */
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
.lead { font-size: 1.18rem; color: var(--c-text-soft); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--c-blue);
  margin-bottom: .75rem;
}

/* ---- Layout helpers ------------------------------------------------------ */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--space-section); }
.section--cream { background: var(--c-cream); }
.section--ink { background: var(--c-ink); color: var(--c-white); }
.section--ink h1, .section--ink h2, .section--ink h3, .section--ink h4 { color: var(--c-white); }
.section--ink p { color: rgba(255,255,255,.78); }
.section--ink a { color: var(--c-blue-light); }
.text-center { text-align: center; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.section-head { max-width: 760px; margin: 0 0 48px; text-align: left; }
.section-head p { color: var(--c-text-soft); font-size: 1.1rem; }

/* Accent bar under section + content headings — consistent left-aligned motif */
.accent-bar { width: 56px; height: 4px; background: var(--c-accent); border-radius: 3px; margin: 16px 0 0; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--c-accent); border-radius: 3px; margin-top: 16px;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font); font-weight: 800; font-size: 1rem; line-height: 1;
  padding: 16px 30px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; text-align: center; transition: all .18s ease; white-space: nowrap;
}
.btn--primary { background: var(--c-accent); color: var(--c-on-accent); }
.btn--primary:hover { background: var(--c-accent-hover); color: var(--c-on-accent); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--c-accent); border-color: var(--c-accent); }
.btn--ghost:hover { background: var(--c-accent); color: var(--c-on-accent); }

/* ---- Cards --------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--c-line); border-top: 3px solid var(--c-accent);
  border-radius: var(--radius); padding: 32px; height: 100%;
  transition: transform .16s ease;
}
.card:hover { transform: translateY(-4px); }
.card h3 { margin-bottom: .4em; }
.card img.icon {
  width: 34px; height: 34px; padding: 14px; box-sizing: content-box;
  background: var(--c-accent-tint); border-radius: 50%; margin-bottom: 18px;
}

/* ---- Header / Nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a { color: var(--c-ink); font-weight: 700; font-size: 1rem; }
.nav__links a:hover { color: var(--c-blue); }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 26px; height: 3px; background: var(--c-ink); border-radius: 3px; transition: .2s; }

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    padding: 8px var(--gutter) 20px; box-shadow: var(--shadow);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--c-line); }
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer { background: var(--c-ink); color: rgba(255,255,255,.7); padding-block: 56px 32px; font-size: .95rem; }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
.site-footer img.footer-logo { height: 38px; width: auto; margin-bottom: 16px; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.site-footer__links a { color: rgba(255,255,255,.8); font-weight: 600; }
.site-footer__links a:hover { color: #fff; }
.site-footer__address { max-width: 360px; color: rgba(255,255,255,.6); }
.site-footer__bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---- Forms (visual placeholders; backend wired later) -------------------- */
.form { display: grid; gap: 18px; max-width: 560px; }
.form label { font-weight: 700; color: var(--c-ink); margin-bottom: 6px; display: block; }
.form input, .form textarea, .form select {
  width: 100%; font-family: var(--font); font-size: 1rem; color: var(--c-text);
  padding: 14px 16px; border: 1px solid var(--c-line); border-radius: 8px; background: #fff;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--c-blue); border-color: var(--c-blue); }
.form textarea { min-height: 140px; resize: vertical; }
.form .form-note { font-size: .85rem; color: var(--c-text-soft); }

/* ---- Page hero (content pages) — light, with subtle blue wash + glow ------ */
.page-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60% 120% at 90% 0%, var(--c-glow) 0%, rgba(0,0,0,0) 60%),
    linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%);
  color: var(--c-text); padding-block: 76px; text-align: left;
  border-bottom: 1px solid var(--c-line);
}
.page-hero h1 { color: var(--c-ink); }
.page-hero h1::after {
  content: ""; display: block; width: 56px; height: 4px;
  background: var(--c-accent); border-radius: 3px; margin-top: 18px;
}
.page-hero p { color: var(--c-text-soft); max-width: 680px; margin-inline: 0; }

/* ---- Prose (legal / long-form content) ----------------------------------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }

/* ---- Responsive grids ---------------------------------------------------- */
@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  :root { --space-section: 56px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* ---- Utilities ----------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.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;
}
