/* ============================================================
   KRR Website — Shared Stylesheet
   Kayte Reagan-Randive | Operations Professional
   April 2026
   ============================================================ */

@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: normal;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 400 900;
  font-style: italic;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: normal;
}
@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/SourceSans3-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 200 900;
  font-style: italic;
}

/* ── TOKENS ── */
:root {
  --navy:        #2C3E50;
  --sage:        #6B7F5E;
  --dark-sage:   #566A4C;
  --sage-tint:   #D4DAC9;
  --sage-mist:   #E6E8DE;
  --taupe:       #8B7D6B;
  --muted-sage:  #A8B09E;
  --warm-white:  #F5F0EB;
  --warm-border: #D6CFC6;
  --navy-border: #3D5166;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Source Sans 3', Arial, Helvetica, sans-serif;

  --content-max:  1200px;
  --body-max:     680px;
  --gutter:       clamp(24px, 5vw, 80px);
  --section-v:    clamp(72px, 8vw, 112px);

  --shadow-card:    0 2px 12px rgba(44,62,80,0.08), 0 1px 3px rgba(44,62,80,0.05);
  --shadow-raised:  0 4px 24px rgba(44,62,80,0.12), 0 2px 8px rgba(44,62,80,0.06);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--taupe);
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--warm-white); }
::-webkit-scrollbar-thumb { background: var(--sage-tint); border-radius: 3px; }

/* ── TYPE ── */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.15; }
h1 { font-size: clamp(38px, 5vw, 58px); font-weight: 700; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 600; }
h3 { font-size: clamp(20px, 2.5vw, 26px); font-weight: 500; }
h4 { font-family: var(--font-body); font-size: 17px; font-weight: 600; }

p { margin-bottom: 1.2em; max-width: var(--body-max); }
p:last-child { margin-bottom: 0; }

a { color: var(--sage); text-decoration: none; transition: color 0.18s; }
a:hover { color: var(--dark-sage); text-decoration: underline; }

em { font-style: italic; }

.overline {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--sage);
  display: block;
  margin-bottom: 16px;
}

.accent-bar {
  display: block;
  width: 30px;
  height: 2px;
  background: var(--sage);
  margin: 20px 0;
}

/* ── LAYOUT ── */
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-v) var(--gutter);
}
.section--mist   { background: var(--sage-mist); }
.section--navy   { background: var(--navy); }
.section--white  { background: #fff; }

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  padding: 13px 28px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--sage);
  color: var(--warm-white);
}
.btn-primary:hover {
  background: var(--dark-sage);
  color: var(--warm-white);
}

.btn-ghost {
  background: transparent;
  color: var(--sage);
  border: 1.5px solid var(--sage);
}
.btn-ghost:hover {
  background: var(--sage-tint);
  color: var(--dark-sage);
  border-color: var(--dark-sage);
}

.btn-on-dark {
  background: var(--warm-white);
  color: var(--navy);
}
.btn-on-dark:hover {
  background: var(--sage-mist);
  color: var(--navy);
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex;
  align-items: center;
  transition: background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
.site-nav.scrolled {
  background: rgba(245, 240, 235, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--warm-border);
  box-shadow: 0 2px 20px rgba(44,62,80,0.07);
}
.site-nav__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  text-decoration: none;
  display: inline-block;
  line-height: 1;
}
.wordmark__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--wm-name-size, 42px);
  color: var(--navy);
  display: block;
  line-height: 1;
}
.wordmark__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--sage);
  margin: 6px 0;
}
.wordmark__surname {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--wm-surname-size, 14px);
  color: var(--taupe);
  letter-spacing: 4px;
  text-transform: uppercase;
  display: block;
}
.wordmark:hover .wordmark__name { color: var(--sage); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--sage); }
.nav-links a.active { color: var(--sage); }

/* ── FOOTER ── */
.site-footer {
  background: var(--warm-white);
  border-top: 1px solid var(--warm-border);
  padding: 32px var(--gutter);
}
.site-footer__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer__copy {
  font-size: 13px;
  color: var(--muted-sage);
}
.site-footer__links {
  display: flex;
  gap: 24px;
  list-style: none;
}
.site-footer__links a {
  font-size: 13px;
  color: var(--muted-sage);
  text-decoration: none;
}
.site-footer__links a:hover { color: var(--sage); text-decoration: none; }

/* ── ON DARK OVERRIDES ── */
.section--navy .overline { color: var(--sage); }
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--warm-white); }
.section--navy p { color: var(--muted-sage); }
.section--navy hr { border-color: var(--navy-border); }

/* ── STAT CALLOUT ── */
.stat-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(52px, 6vw, 80px);
  line-height: 1;
  color: var(--warm-white);
}

/* ── INLINE LINK STYLE ── */
.inline-link {
  color: var(--sage);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--sage-tint);
  transition: color 0.18s, text-decoration-color 0.18s;
}
.inline-link:hover {
  color: var(--dark-sage);
  text-decoration-color: var(--dark-sage);
  text-decoration: underline;
}

/* ── HAMBURGER BUTTON ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 101;
  margin-right: -8px;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle.open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .nav-toggle__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  /* Hamburger visible */
  .nav-toggle { display: flex; }

  /* Nav drawer */
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(245, 240, 235, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: 8px var(--gutter) 28px;
    gap: 0;
    border-bottom: 1px solid var(--warm-border);
    box-shadow: 0 8px 32px rgba(44,62,80,0.10);
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav-links li {
    border-bottom: 1px solid var(--warm-border);
  }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a {
    display: block;
    padding: 15px 0;
    font-size: 16px;
    color: var(--navy);
  }
  /* Show CTA inside the drawer */
  .nav-links .btn {
    display: inline-block !important;
    margin-top: 18px;
    width: 100%;
    text-align: center;
    padding: 15px 28px;
  }

  /* Footer stack */
  .site-footer__inner {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .site-footer__links { gap: 20px; flex-wrap: wrap; }

  h1 { font-size: 34px; }
  h2 { font-size: 26px; }
  .stat-number { font-size: 48px; }
}
