/* BrotherlyWell — site styles */
:root {
  --navy: #0f2147;
  --navy-deep: #0a1730;
  --navy-mid: #16306b;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #93c5fd;
  --blue-pale: #dbeafe;
  --bg: #f5f7fb;
  --panel: #e9eef7;
  --ink: #0f172a;
  --muted: #475569;
  --line: #d5dde9;
  --white: #ffffff;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --wrap: 1180px;
  --shadow: 0 18px 40px -24px rgba(10, 23, 48, 0.45);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg.art { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 3px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue-dark); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: .7rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.accent { color: var(--blue-soft); }
.lead { font-size: 1.18rem; color: var(--muted); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.6rem; border-radius: 8px; font-size: 1rem; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s;
  cursor: pointer; font-family: var(--sans); min-height: 50px;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-deep); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand svg { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-size: 1.35rem; font-weight: 400; letter-spacing: -.01em; }
.brand-name b { font-weight: 800; }
.brand-sub { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--blue-soft); margin-top: .4rem; }
.nav ul { list-style: none; display: flex; gap: 1.9rem; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--white); font-size: .98rem; padding: .3rem 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue-soft); color: var(--white); }
.header-cta { display: inline-flex; min-height: 44px; padding: .55rem 1.2rem; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255, 255, 255, .3); border-radius: 8px; width: 46px; height: 46px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--white); margin: 4px auto; border-radius: 2px; }

/* Hero (dark) */
.hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); overflow: hidden; color: var(--white);
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
}
.hero h1 { color: var(--white); }
.hero .lead { color: rgba(255, 255, 255, .84); }
.hero .eyebrow { color: var(--blue-soft); }
.hero .btn-ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--navy); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.hero-media { position: relative; }
.hero-media .art, .hero-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border: 1px solid rgba(255, 255, 255, .14); }
.hero-card {
  position: absolute; left: -20px; bottom: 28px; background: var(--white); color: var(--ink); border-radius: 10px; padding: .9rem 1.1rem;
  box-shadow: var(--shadow); display: flex; gap: .9rem; align-items: center; font-size: .9rem; max-width: 270px;
}
.hero-card .dot { width: 38px; height: 38px; display: grid; place-items: center; flex: none; }
.hero-card .dot svg { width: 38px; height: 38px; }
.hero-card strong { display: block; font-size: 1rem; }
.hero-card span { color: var(--muted); font-size: .84rem; }

/* Sections */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.bg-panel { background: var(--panel); }
.bg-white { background: var(--white); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split.flip .split-media { order: 2; }
.split-media img, .split-media .art { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.section-head { max-width: 660px; margin: 0 auto 3rem; }

/* Topics */
.basics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.basic { background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.basic img, .basic .art { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.basic-body { padding: 1.3rem 1.4rem 1.6rem; }
.basic-body h3 { margin-bottom: .35em; }
.basic-body p { color: var(--muted); font-size: 1rem; margin: 0; }
.basic-num { color: var(--blue-dark); font-weight: 700; font-size: .9rem; display: block; margin-bottom: .3rem; }

/* Quote band */
.band {
  padding: clamp(4rem, 9vw, 6.5rem) 0; text-align: center; color: var(--white);
  background: linear-gradient(135deg, var(--navy-deep), var(--navy-mid));
}
.band blockquote { margin: 0 auto; max-width: 820px; font-size: clamp(1.5rem, 3.2vw, 2.2rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.band cite { display: block; margin-top: 1.4rem; font-style: normal; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; }
.step { padding: 2rem 1.8rem; border-top: 3px solid var(--blue); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 2rem; font-weight: 800; color: var(--blue-dark); display: block; line-height: 1; margin-bottom: 1rem; }
.step p { color: var(--muted); margin: 0; }

/* Journal cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.card { text-decoration: none; color: inherit; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: inherit; }
.card img, .card .art { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem 1.5rem 1.7rem; }
.card-meta { font-size: .75rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-dark); }
.card h3 { margin: .5rem 0 .4rem; font-size: 1.3rem; }
.card p { color: var(--muted); font-size: 1rem; margin: 0; }

/* CTA */
.cta-box { background: var(--navy); color: var(--white); border-radius: 16px; padding: clamp(2.5rem, 6vw, 4rem); display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-box h2 { color: var(--white); margin: 0 0 .3em; }
.cta-box p { margin: 0; color: rgba(255, 255, 255, .84); }
.cta-box .btn { background: var(--blue); color: var(--white); }
.cta-box .btn:hover { background: var(--blue-dark); }

/* Page header (inner pages) */
.page-hero { padding: clamp(2.6rem, 6vw, 4.2rem) 0 clamp(2rem, 5vw, 3rem); color: var(--white); background: linear-gradient(160deg, var(--navy-deep), var(--navy)); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { color: rgba(255, 255, 255, .84); max-width: 660px; margin-bottom: 0; }
.crumbs { font-size: .88rem; color: var(--blue-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--blue-soft); }

/* Prose (legal + articles) */
.prose { padding: clamp(2.5rem, 6vw, 4.5rem) 0; background: var(--white); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.2rem; margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose .updated { font-size: .92rem; color: var(--muted); }
.prose .note { background: var(--panel); border-left: 4px solid var(--blue); padding: 1rem 1.2rem; border-radius: 0 10px 10px 0; font-size: .97rem; color: var(--muted); }
.article-cover { border-radius: var(--radius); margin: 0 0 2rem; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.2rem; }
.info-list li { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 1.1rem 1.3rem; }
.info-list strong { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--blue-dark); font-weight: 600; margin-bottom: .2rem; }
.info-list .hint { color: var(--muted); font-size: .94rem; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c7d2e5; padding: 4rem 0 2rem; font-size: .95rem; }
.site-footer a { color: #eef3fb; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr; gap: 2.5rem; }
.footer-grid .fh { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--blue-soft); margin-bottom: 1rem; font-weight: 600; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer .brand { margin-bottom: 1rem; }
.footer-notice { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 3rem; padding-top: 2rem; font-size: .85rem; color: #aebbd2; line-height: 1.65; }
.footer-notice p { margin-bottom: .8em; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; font-size: .85rem; color: #aebbd2; }
.linklike { background: none; border: 0; padding: 0; color: #eef3fb; font: inherit; cursor: pointer; }
.linklike:hover { text-decoration: underline; }

/* Cookie banner */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 560px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem; font-size: .92rem; display: none;
}
.cookie.show { display: block; }
.cookie p { margin: 0 0 .9rem; color: var(--muted); }
.cookie .btn { padding: .55rem 1.2rem; min-height: 44px; font-size: .92rem; }

/* Placeholder marker (disappears once the company data is filled in) */
.ph { background: #fff2b3; color: #6b5300; padding: 0 .25em; border-radius: 4px; }

/* Responsive */
@media (max-width: 1024px) {
  .basics { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .header-cta { display: none; }
  .nav { position: absolute; left: 0; right: 0; top: 74px; background: var(--navy-deep); border-bottom: 1px solid rgba(255, 255, 255, .14); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: .5rem 16px 1rem; }
  .nav a { display: block; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.flip .split-media { order: 0; }
  .hero-media { max-width: 520px; margin: 0 auto; }
  .hero-card { left: 12px; }
  .steps, .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .basics, .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
