/* ─────────────────────────────────────────
   GTI — Global Transformation Initiative
   Design System & Base Stylesheet
   ───────────────────────────────────────── */

/* FONTS */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* TOKENS */
:root {
  /* GTI Brand Palette */
  --navy:        #0c1f35;
  --navy-mid:    #122840;
  --navy-light:  #1a3a55;
  --teal:        #1e6b5e;
  --teal-light:  #2a8a78;
  --gold:        #c8a052;
  --gold-light:  #d4af6a;
  --cream:       #f5f2ec;
  --cream-dark:  #ede9e1;
  --ink:         #1a2b2a;
  --ink-mid:     #3a4f4d;
  --ink-light:   #6b7f7d;
  --white:       #ffffff;

  /* Semantic roles */
  --color-bg:        var(--cream);
  --color-surface:   var(--white);
  --color-text:      var(--ink);
  --color-text-muted: var(--ink-light);
  --color-primary:   var(--teal);
  --color-accent:    var(--gold);
  --color-dark-bg:   var(--navy);

  /* Type scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    7rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --content-narrow:  680px;
  --content-default: 1000px;
  --content-wide:    1240px;
  --gutter:          clamp(1.5rem, 5vw, 4rem);

  /* Fonts */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 160ms var(--ease);
  --t-base: 240ms var(--ease);
  --t-slow: 400ms var(--ease);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(10,30,40,0.06);
  --shadow-md:  0 4px 16px rgba(10,30,40,0.09);
  --shadow-lg:  0 12px 40px rgba(10,30,40,0.13);
  --shadow-xl:  0 24px 64px rgba(10,30,40,0.18);
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}

img, video { display: block; max-width: 100%; height: auto; }
ul[role='list'], ol[role='list'] { list-style: none; }
input, button, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { text-wrap: balance; font-family: var(--font-display); line-height: 1.1; }
p, li { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; }

::selection { background: rgba(200,160,82,0.2); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: var(--radius-sm); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── LAYOUT UTILITIES ─── */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }

/* ─── NAV ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12,31,53,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--t-base);
}
.site-nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,0.25); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding-inline: var(--gutter);
  max-width: var(--content-wide);
  margin-inline: auto;
}
.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
}
.nav-logo__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}
@media (min-width: 769px) {
  .nav-logo::before {
    content: '';
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background-image: url('../cgu-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }
}
.nav-logo__primary {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gold);
  line-height: 1.1;
}
.nav-logo__sub {
  font-family: var(--font-body);
  font-size: 0.48rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
  max-width: 100%;
}
@media (max-width: 480px) {
  .nav-logo__sub {
    font-size: 0.42rem;
    letter-spacing: 0.05em;
  }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  transition: color var(--t-fast);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t-base);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--white); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy) !important;
  background: var(--gold);
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--t-fast), transform var(--t-fast) !important;
}
.nav-cta:hover { background: var(--gold-light) !important; transform: translateY(-1px); }
.nav-cta::after { display: none !important; }

/* Mobile nav */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform var(--t-base), opacity var(--t-fast);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile {
  display: none;
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: var(--space-6) var(--gutter) var(--space-8);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block;
  padding: 13px 0;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--t-fast);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover, .nav-mobile a.nav-cta { color: var(--white); }
.nav-mobile .nav-cta {
  display: inline-block;
  margin-top: var(--space-4);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ─── FOOTER ─── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--gutter) var(--space-8);
}
.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--space-8);
}
.footer-brand__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.footer-brand__tagline {
  font-size: var(--text-xs);
  line-height: 1.6;
  color: rgba(255,255,255,0.45);
  max-width: 28ch;
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-4);
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-col a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--content-wide);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: var(--space-4);
}
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn--primary:hover { background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 4px 20px rgba(200,160,82,0.35); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn--outline:hover { border-color: var(--white); color: var(--white); }

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: rgba(12,31,53,0.3);
}
.btn--outline-dark:hover { border-color: var(--navy); background: rgba(12,31,53,0.05); }

/* ─── SECTION LABELS ─── */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-4);
}
.eyebrow--light { color: rgba(200,160,82,0.85); }
.eyebrow--muted { color: var(--ink-light); }

/* ─── SECTION SPACING ─── */
.section { padding-block: clamp(var(--space-12), 8vw, var(--space-24)); }
.section--sm { padding-block: clamp(var(--space-8), 5vw, var(--space-16)); }
.section--dark { background: var(--navy); color: var(--white); }
.section--cream { background: var(--cream); }
.section--cream-dark { background: var(--cream-dark); }
.section--white { background: var(--white); }

/* ─── DIVIDER ─── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-block: var(--space-6);
}
.divider--center { margin-inline: auto; }

/* ─── PAGE HERO (interior pages) ─── */
.page-hero {
  background: var(--navy);
  padding: clamp(var(--space-12), 8vw, var(--space-20)) var(--gutter);
  text-align: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  color: var(--white);
  margin-bottom: var(--space-4);
  letter-spacing: 0.01em;
}
.page-hero p {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.6);
  max-width: 56ch;
  margin-inline: auto;
}
