@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ==========================================
   DESIGN TOKENS - derived from logo colors
   Navy #1C2E52  |  Gold #C4A24C  |  White
   ========================================== */
:root {
  --navy:        #1C2E52;
  --navy-deep:   #0F1B33;
  --navy-mid:    #243660;
  --gold:        #C4A24C;
  --gold-light:  #D6B562;
  --gold-pale:   rgba(196,162,76,0.12);
  --gold-glow:   rgba(196,162,76,0.25);

  --white:       #FFFFFF;
  --off-white:   #F8F9FB;
  --light-grey:  #F1F3F7;
  --border:      #E4E8EF;
  --text-dark:   #1A2236;
  --text-body:   #3D4F6A;
  --text-muted:  #6B7FA0;
  --text-light:  #A0B0CA;

  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:   'Playfair Display', Georgia, serif;

  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   14px;
  --radius-xl:   24px;

  --shadow-sm:   0 2px 8px rgba(28,46,82,0.06);
  --shadow-md:   0 8px 28px rgba(28,46,82,0.10);
  --shadow-lg:   0 20px 60px rgba(28,46,82,0.13);
  --shadow-gold: 0 4px 24px rgba(196,162,76,0.20);

  --ease:        cubic-bezier(0.16,1,0.3,1);
  --trans-fast:  all 0.2s var(--ease);
  --trans-med:   all 0.4s var(--ease);
  --trans-slow:  all 0.8s var(--ease);

  --navbar-h:    72px;
  --max-w:       1160px;

  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.75rem;
  --sp-lg:  3rem;
  --sp-xl:  5rem;
  --sp-xxl: 7.5rem;
}

/* ==========================================
   RESET
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--navy-mid); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 600;
}
h1 { font-size: clamp(2.4rem,5vw,4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem,3.5vw,2.8rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem,2vw,1.6rem); font-weight: 500; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { color: var(--text-body); font-size: 1rem; }
a { color: inherit; text-decoration: none; transition: var(--trans-fast); }

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  width: 92%;
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
}

.section { padding: var(--sp-xxl) 0; overflow: hidden; }
.section--sm { padding: var(--sp-xl) 0; }
.section--light { background: var(--off-white); }
.section--dark  { background: var(--navy-deep); color: var(--white); }
.section--dark h1,.section--dark h2,.section--dark h3,.section--dark h4 { color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.70); }
.section--dark .label { color: var(--gold); border-bottom-color: var(--gold); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-md); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-md); }

/* Section heading block */
.section-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto var(--sp-lg);
}
.section-intro p { font-size: 1.05rem; color: var(--text-muted); margin-top: var(--sp-sm); }

/* Label / eyebrow text */
.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  margin-bottom: var(--sp-sm);
}

/* Gold rule */
.rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: var(--sp-md) auto;
}
.rule--left { margin-left: 0; }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ==========================================
   LOGO - handle white-bg image
   ========================================== */
.logo-img {
  height: 52px;
  width: auto;
  display: block;
  transition: var(--trans-med);
  /* Default for light backgrounds: multiply removes white */
  mix-blend-mode: multiply;
}
.footer .logo-img {
  /* For dark backgrounds: turn dark logo white, and white bg black, then screen removes black */
  filter: grayscale(1) invert(1) brightness(2);
  mix-blend-mode: screen;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  :root { --sp-xxl: 5rem; --sp-xl: 3.5rem; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .grid-2,.grid-3,.grid-4 { grid-template-columns: 1fr; gap: var(--sp-md); }
  .section { padding: var(--sp-xl) 0; }
}
