/* CommuniLinks — global.css — Design System v2 */
/* Fonts loaded via <link> tags in HTML for non-blocking render */

/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --blue-il: #0F4B69;
  --blue-us: #003C64;
  --red-us: #B22234;
  --gold: #C5A572;
  --gold-light: #E8D5B0;
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --cream-mid: #F5F1EA;
  --white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #4a4a5a;
  --text-light: #7a7a8a;
  --text-gold: #8B6914;
  --accent: #4E80A0;
  --hero-gradient: linear-gradient(160deg, #FAF7F2 0%, #EDE8DF 60%, #E3DDD5 100%);
  --blue-gradient: linear-gradient(135deg, #0F4B69 0%, #003C64 100%);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --section-padding: 80px 0;
  --container-max: 1160px;
  --container-padding: 0 48px;
  --border: rgba(0,0,0,0.08);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.07);
  --radius-card: 20px;
  --success: #16a34a;
  --warning: #d97706;
  --error: #dc2626;
}

/* ============================================
   RESET
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--container-padding);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.fade-up { animation: fadeUp .8s ease forwards; opacity: 0; }
.fade-up-d1 { animation-delay: .15s; }
.fade-up-d2 { animation-delay: .3s; }
.fade-up-d3 { animation-delay: .45s; }
.fade-up-d4 { animation-delay: .6s; }
.fade-up-d5 { animation-delay: .75s; }

.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  min-height: 64px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
}
.site-logo-text { white-space: nowrap; }
.site-logo-text span { color: var(--gold); }
.site-logo svg { width: 28px; height: 28px; flex-shrink: 0; }
.site-logo img { height: 48px; width: auto; flex-shrink: 0; }

.site-nav {
  display: none;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s;
  position: relative;
}
.site-nav a:hover,
.site-nav a.active { color: var(--blue-il); }
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-il);
  transition: width .2s;
}
.site-nav a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-supplier-cta {
  display: none;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 20px;
  border: 1px solid var(--blue-il);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-il);
  transition: all .2s;
  white-space: nowrap;
}
.nav-supplier-cta:hover {
  background: var(--blue-il);
  color: var(--white);
}

@media (min-width: 768px) {
  .site-nav { display: flex; }
  .nav-supplier-cta { display: flex; }
  .nav-toggle { display: none; }
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  width: 32px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-dark);
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 899;
  padding: 32px 24px;
}
.mobile-nav.open {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-nav a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:hover { color: var(--blue-il); }

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-gradient);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 56px 0;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15,75,105,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--text-dark);
  max-width: 780px;
  margin: 0 auto 24px;
}
.hero h1 em {
  font-style: italic;
  color: var(--blue-il);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto 40px;
}

.hero-trust {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 24px;
}

.scroll-chevron {
  display: block;
  margin: 8px auto 0;
  animation: bounce 2s ease-in-out infinite;
  color: var(--text-light);
  font-size: 28px;
}

/* Hero — subpage variant (smaller) */
.hero--page {
  min-height: 280px;
  padding: 56px 0 8px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 36px;
  background: var(--blue-gradient);
  color: var(--white);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 24px rgba(15,75,105,0.25);
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15,75,105,0.35);
}
.btn-primary:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  background: transparent;
  color: var(--blue-il);
  border: 1px solid var(--blue-il);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--blue-il);
  color: var(--white);
}

.btn-ghost {
  padding: 12px 24px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  transition: all .2s;
  background: var(--white);
}
.btn-ghost:hover {
  border-color: var(--blue-il);
  color: var(--blue-il);
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.section-label::before,
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold-light);
  max-width: 60px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 48px;
}

/* ============================================
   WHO WE ARE
   ============================================ */
.who-we-are {
  background: var(--white);
  padding: var(--section-padding);
}
.who-we-are-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
.who-we-are-text {
  max-width: 640px;
}
.who-we-are-text p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.who-we-are-text .story-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-il);
  transition: opacity .2s;
}
.who-we-are-text .story-link:hover { opacity: .7; }

.who-we-are-motif {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .who-we-are-grid {
    grid-template-columns: 60% 40%;
  }
}

/* ============================================
   INITIATIVES SECTION
   ============================================ */
.initiatives-section {
  background: var(--cream);
  padding: var(--section-padding);
}

.initiatives-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 900px;
}

.initiative-card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  transition: transform .3s, box-shadow .3s;
}
.initiative-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.initiative-card-spine {
  width: 20px;
  flex-shrink: 0;
  background: var(--blue-gradient);
  border-radius: var(--radius-card) 0 0 var(--radius-card);
}

.initiative-card-body {
  padding: 28px 32px;
  flex: 1;
}

.initiative-card-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.initiative-card-season {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: 12px;
}

.initiative-card-desc {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}

.initiative-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.initiative-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.initiative-badge--active { background: #e6f4ea; color: #1e7e34; }
.initiative-badge--coming { background: #fef3c7; color: #92400e; }
.initiative-badge--closed { background: #f3f4f6; color: #6b7280; }

.initiative-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.initiative-card-cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue-il);
  transition: opacity .2s;
}
.initiative-card-cta:hover { opacity: .7; }

.initiatives-footnote {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 32px;
  max-width: 500px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-logo {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }

.footer-text {
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  padding-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copyright {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-credit:hover { color: rgba(255,255,255,1); }
.footer-credit:hover img { opacity: 1 !important; }
.footer-credit img { transition: opacity 0.2s; }

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  padding: 80px 0;
  background: var(--white);
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}
.legal-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 32px;
}
.legal-intro {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.legal-section {
  margin-bottom: 32px;
}
.legal-section h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.legal-section p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-mid);
  white-space: pre-line;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.page-content {
  padding: 40px 0 56px;
}
.page-body {
  max-width: 720px;
  margin: 0 auto;
}
.page-body h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-top: 32px;
  margin-bottom: 12px;
}
.page-body h3 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.page-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 16px;
}
.page-body strong { font-weight: 600; }
.page-body em { font-style: italic; }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-form {
  max-width: 600px;
  margin: 32px auto 0;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  background: var(--cream);
  color: var(--text-dark);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-il);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* ============================================
   LIFECYCLE BANNER
   ============================================ */
.lifecycle-banner {
  padding: 12px 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}
.lifecycle-banner--amber {
  background: #fef3c7;
  color: #92400e;
}
.lifecycle-banner--red {
  background: #fef2f2;
  color: #991b1b;
}
.lifecycle-banner-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  opacity: .5;
}
.lifecycle-banner-close:hover { opacity: 1; }

/* ============================================
   SKELETONS
   ============================================ */
.skel-bar {
  height: 14px;
  border-radius: 6px;
  margin-bottom: 10px;
  background: #e8e3db;
  position: relative;
  overflow: hidden;
}
.skel-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}
.skel-bar.w30 { width: 30%; }
.skel-bar.w40 { width: 40%; }
.skel-bar.w50 { width: 50%; }
.skel-bar.w60 { width: 60%; }
.skel-bar.w70 { width: 70%; }
.skel-bar.w80 { width: 80%; }

.skel-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
}
.skel-card-spine {
  width: 20px;
  flex-shrink: 0;
  background: #e8e3db;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card) 0 0 var(--radius-card);
  margin: -28px 24px -28px -32px;
}
.skel-card-spine::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

/* ============================================
   NOTIFY MODAL
   ============================================ */
.notify-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}
.notify-modal-overlay.open { display: flex; }
.notify-modal {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 32px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.notify-modal h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 8px;
}
.notify-modal p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.notify-modal input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  margin-bottom: 12px;
}
.notify-modal input:focus {
  outline: none;
  border-color: var(--blue-il);
}

/* ============================================
   MESSAGES
   ============================================ */
.error-message {
  text-align: center;
  padding: 24px;
  color: var(--error);
  font-size: 14px;
}
.success-message {
  text-align: center;
  padding: 24px;
  color: var(--success);
  font-size: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
    --container-padding: 0 24px;
  }
  .hero { min-height: auto; padding: 48px 0 36px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .initiatives-grid { gap: 16px; }
  .initiative-card-body { padding: 20px 24px; }
  .initiative-card-name { font-size: 22px; }
}

@media (max-width: 600px) {
  :root {
    --container-padding: 0 16px;
  }
  .btn-primary { width: 100%; }
}
