/* ============================================================
   GLOBAL.CSS — Reset, Variables, Typography, Header, Footer
   ============================================================ */

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

/* ── Variables ── */
:root {
  --navy:   #0B2545;
  --blue:   #1560BD;
  --blue-dark: #0F4A96;
  --ice:    #E8EEF4;
  --ice-dark: #D0DCE8;
  --white:  #FFFFFF;
  --text:   #1C2B3A;
  --muted:  #6B7C8D;
  --border: #D0DCE8;
  --gold:   #C9A84C;
  --gold-light: #F0C878;
  --max-width: 1160px;
  --radius: 8px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
ul, ol { padding-left: 1.25rem; }
button { cursor: pointer; font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--navy);
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 3.8vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2.2vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 500; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 0.65rem;
}

/* ── Callout block ── */
.callout {
  background: transparent;
  border-left: 2px solid var(--ice-dark);
  padding: 0.6rem 1.25rem;
  border-radius: 0;
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.6;
}
.callout strong { color: var(--navy); font-style: normal; font-weight: 600; }
.callout--prominent {
  background: var(--navy);
  color: rgba(255,255,255,0.9);
  border-left-color: #4A9EFF;
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.callout--prominent strong { color: var(--white); }

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: background 0.18s, box-shadow 0.18s, transform 0.12s;
  border: none;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(21,96,189,0.32);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(21,96,189,0.42); text-decoration: none; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn-outline:hover { background: var(--blue); color: var(--white); text-decoration: none; }

/* ── Section spacing ── */
.section { padding: 5rem 0; }
.section--ice { background: var(--ice); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section-title { margin-bottom: 3rem; }
.section-title h2 { margin-bottom: 0.6rem; }
.section-title p { color: var(--muted); font-size: 1.05rem; max-width: 620px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(11,37,69,0.3);
}
.site-header .container {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo__img { height: 44px; width: auto; display: block; }

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.site-nav a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.site-nav a.active { color: var(--white); }

/* Mobile nav toggle (CSS checkbox) */
.nav-toggle__input { display: none; }
.nav-toggle__btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--white);
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 767px) {
  .nav-toggle__btn { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.15rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 8px 24px rgba(11,37,69,0.4);
  }
  .nav-toggle__input:checked ~ .site-nav { display: flex; }
  .site-nav a { padding: 0.6rem 0.5rem; font-size: 0.9rem; width: 100%; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  color: rgba(255,255,255,0.6);
}
.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 0.4rem; }
.footer-col ul li a {
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 767px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Shared page hero (inner pages) ── */
.page-hero {
  background: var(--navy);
  padding: 3.5rem 0 3rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p { color: rgba(255,255,255,0.7); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ── Prose content (inner pages) ── */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 0.75rem; color: var(--navy); }
.prose p { color: var(--text); }
.prose ul, .prose ol { margin-bottom: 1rem; }
.prose li { margin-bottom: 0.35rem; color: var(--text); }
.prose a { color: var(--blue); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9rem; }
.prose th { background: var(--navy); color: var(--white); padding: 0.6rem 0.75rem; text-align: left; font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.prose td { padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose tr:last-child td { border-bottom: none; }
.prose tr:nth-child(even) td { background: var(--ice); }

/* ── FAQ details/summary ── */
details { border-bottom: 1px solid var(--border); }
details:first-of-type { border-top: 1px solid var(--border); }
summary {
  padding: 1.1rem 0;
  font-weight: 500;
  font-size: 0.975rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
  font-family: var(--font-body);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: background 0.2s, border-color 0.2s;
}
details[open] summary::after {
  background: var(--blue);
  border-color: var(--blue);
}
details > p, details > div {
  padding: 0 0 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ── Contact / Submit forms ── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--navy); margin-bottom: 0.4rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21,96,189,0.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
