/* =========================================================
   Be Brave — CAAJ Sports Limited
   Charitable foundation · business-card site
   Palette: warm paper + deep navy + brave coral (signature)
   Type: Spectral (display) / Manrope (body, UI)
   ========================================================= */

:root {
  --ink:        #16223D;   /* deep navy — text, dark sections */
  --ink-soft:   #33405C;
  --paper:      #FBF7F0;   /* warm paper background */
  --paper-2:    #F2EADD;   /* slightly deeper paper */
  --card:       #FFFFFF;
  --brave:      #EA6A47;   /* signature warm coral — courage */
  --brave-deep: #CE4E2E;
  --sea:        #2C6E75;   /* grounding teal — links, trust */
  --gold:       #F2B950;   /* small warm details */
  --muted:      #5C6377;   /* secondary text */
  --line:       rgba(22,34,61,.10);
  --line-strong:rgba(22,34,61,.16);

  --radius:     18px;
  --radius-sm:  12px;
  --shadow-sm:  0 1px 2px rgba(22,34,61,.06), 0 3px 10px rgba(22,34,61,.05);
  --shadow-md:  0 8px 30px rgba(22,34,61,.10);
  --maxw:       1140px;
  --gutter:     clamp(20px, 5vw, 48px);

  --font-body:   "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display:"Spectral", Georgia, "Times New Roman", serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

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

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brave-deep);
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--brave); border-radius: 2px;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: 0; }
p { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 2vw, 1.24rem); color: var(--ink-soft); max-width: 60ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brave); color: #fff; box-shadow: 0 6px 18px rgba(234,106,71,.32); }
.btn-primary:hover { background: var(--brave-deep); box-shadow: 0 10px 26px rgba(234,106,71,.38); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(22,34,61,.04); }
.btn svg { width: 18px; height: 18px; }

/* =========================================================
   Header / navigation
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,247,240,.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header.scrolled { border-color: var(--line); background: rgba(251,247,240,.94); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); letter-spacing: .01em; }
.brand-sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; font-size: .96rem;
  padding: .5rem .85rem; border-radius: 999px; transition: color .15s ease, background-color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(22,34,61,.05); text-decoration: none; }
.nav-cta { margin-left: .4rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong);
  border-radius: 12px; background: transparent; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg); }

/* =========================================================
   Hero
   ========================================================= */
.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-sun {
  position: absolute; z-index: 0; top: -22%; right: -10%;
  width: min(760px, 90vw); height: min(760px, 90vw);
  background: radial-gradient(circle at center,
     rgba(242,185,80,.30) 0%, rgba(234,106,71,.16) 38%, rgba(234,106,71,0) 68%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 {
  font-size: clamp(2.5rem, 6.6vw, 4.4rem);
  font-weight: 400; letter-spacing: -.02em; margin-top: 1.1rem;
}
.hero h1 .accent { position: relative; color: var(--ink); white-space: nowrap; }
.hero h1 .accent svg {
  position: absolute; left: 0; right: 0; bottom: -.24em; width: 100%; height: .34em;
  color: var(--brave); overflow: visible;
}
.hero h1 .accent path { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1.1s .5s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { margin-top: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; margin-top: 2.6rem;
  padding-top: 1.6rem; border-top: 1px solid var(--line);
  font-size: .92rem; color: var(--muted); font-weight: 600;
}
.hero-meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero-meta svg { width: 17px; height: 17px; color: var(--sea); }

/* =========================================================
   About + pillars
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.about-copy p + p { margin-top: 1.1rem; }
.about-copy .lead { margin-top: 1.3rem; }

.pillars { display: grid; gap: 14px; }
.pillar {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow-sm);
}
.pillar-ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; background: rgba(44,110,117,.10); color: var(--sea);
}
.pillar-ico svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 1.02rem; font-weight: 700; font-family: var(--font-body); }
.pillar p { font-size: .92rem; margin-top: .15rem; }

/* =========================================================
   Directions of work (themed groups)
   ========================================================= */
.work { background: var(--paper-2); }
.work-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.4rem; }
.work-head .lead { margin-top: 1rem; }
.work-grid {
  margin-top: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.work-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.5rem; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.work-card-top { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.work-num {
  font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--brave);
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  display: grid; place-items: center; background: rgba(234,106,71,.10);
}
.work-card h3 { font-size: 1.22rem; }
.work-card ul { display: grid; gap: .7rem; }
.work-card li {
  position: relative; padding-left: 1.6rem; color: var(--ink-soft); font-size: .97rem; line-height: 1.5;
}
.work-card li::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--sea); opacity: .55;
}

/* =========================================================
   Contact
   ========================================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 56px); align-items: start; }

.contact-info { display: grid; gap: 14px; align-content: start; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem; box-shadow: var(--shadow-sm);
}
.info-ico {
  flex: none; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(234,106,71,.10); color: var(--brave-deep);
}
.info-ico svg { width: 22px; height: 22px; }
.info-card .k { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.info-card .v { font-weight: 600; color: var(--ink); margin-top: .15rem; overflow-wrap: anywhere; }
.info-card a.v { color: var(--ink); }
.info-card a.v:hover { color: var(--brave-deep); }

/* form */
.form-card {
  background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--shadow-md);
}
.form-row { display: grid; gap: 6px; margin-bottom: 1.1rem; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row label { font-size: .86rem; font-weight: 700; color: var(--ink); }
.form-row label .req { color: var(--brave-deep); }
.form-row input, .form-row textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .8rem .95rem; width: 100%; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.form-row input::placeholder, .form-row textarea::placeholder { color: #9aa0ad; }
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brave); background: #fff; box-shadow: 0 0 0 4px rgba(234,106,71,.12);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-row.invalid input, .form-row.invalid textarea { border-color: var(--brave-deep); }
.field-error { font-size: .82rem; color: var(--brave-deep); font-weight: 600; display: none; }
.form-row.invalid .field-error { display: block; }

.form-consent { display: flex; gap: .65rem; align-items: flex-start; margin-bottom: 1.3rem; font-size: .88rem; color: var(--muted); }
.form-consent input { margin-top: .2rem; width: 18px; height: 18px; accent-color: var(--brave); flex: none; }
.form-consent.invalid { color: var(--brave-deep); }
.form-submit { width: 100%; justify-content: center; }

.form-status {
  display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius-sm);
  font-size: .93rem; font-weight: 600; line-height: 1.5;
}
.form-status.show { display: block; }
.form-status.ok { background: rgba(44,110,117,.10); color: var(--sea); border: 1px solid rgba(44,110,117,.25); }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { background: var(--ink); color: #cfd6e4; padding-block: clamp(52px, 7vw, 80px) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 56px); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8b96ac; }
.footer-about { margin-top: 1.1rem; font-size: .94rem; color: #aab3c6; max-width: 40ch; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: #cfd6e4; font-size: .95rem; }
.footer-col a:hover { color: #fff; }

.footer-legal-block { font-size: .92rem; color: #aab3c6; display: grid; gap: .55rem; }
.footer-legal-block .lbl { color: #8b96ac; font-weight: 700; margin-right: .35rem; }
.footer-legal-block a { color: #cfd6e4; }

.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px); padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem;
  font-size: .86rem; color: #8b96ac;
}
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.footer-bottom nav a { color: #aab3c6; }
.footer-bottom nav a:hover { color: #fff; }

/* =========================================================
   Cookie banner
   ========================================================= */
.cookie-banner {
  position: fixed; z-index: 80; left: clamp(12px, 3vw, 24px); right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px); max-width: 560px; margin-inline: auto;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: 0 18px 50px rgba(22,34,61,.22); padding: 1.25rem 1.4rem;
  transform: translateY(140%); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { font-size: .92rem; color: var(--ink-soft); }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.cookie-banner .btn { padding: .6rem 1.1rem; font-size: .9rem; }

/* =========================================================
   Legal / content pages
   ========================================================= */
.page-hero { padding-block: clamp(48px, 7vw, 84px) clamp(24px, 4vw, 40px); position: relative; }
.page-hero .crumbs { font-size: .88rem; color: var(--muted); font-weight: 600; margin-bottom: 1rem; }
.page-hero .crumbs a { color: var(--sea); }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 400; }
.page-hero .updated { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

.legal { padding-bottom: clamp(64px, 9vw, 110px); }
.legal-wrap { max-width: 820px; }
.legal h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.6rem; }
.legal h3 { margin-top: 1.6rem; font-size: 1.1rem; font-weight: 700; font-family: var(--font-body); }
.legal p { margin-top: .9rem; }
.legal ul { margin-top: .9rem; display: grid; gap: .55rem; }
.legal li { position: relative; padding-left: 1.5rem; color: var(--ink-soft); }
.legal li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--brave); }
.legal a { font-weight: 600; }
.legal .callout {
  margin-top: 1.6rem; background: var(--paper-2); border: 1px solid var(--line);
  border-left: 4px solid var(--brave); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem;
}
.legal .callout p { margin-top: 0; }
.legal .callout p + p { margin-top: .7rem; }

/* =========================================================
   Reveal animation
   ========================================================= */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 1.4rem;
    gap: .2rem; transform: translateY(-140%); transition: transform .3s ease; box-shadow: var(--shadow-md);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .8rem 1rem; font-size: 1.05rem; }
  .nav-cta { margin: .6rem 0 0; text-align: center; }
  .nav-toggle { display: inline-flex; }
  .work-grid { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .footer-top { grid-template-columns: 1fr; }
  .hero h1 .accent { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero h1 .accent path { stroke-dashoffset: 0; }
}
