/* Fonts loaded non-blocking via <link> in HTML */

:root {
  /* Refined, more professional palette */
  --brand-gold: #8B6B10; /* Sophisticated deep gold */
  --brand-gold-light: #B8963D;
  --brand-gold-pale: #FDF9EE;
  --text-dark: #0F172A; /* Slate 900 */
  --text-medium: #334155; /* Slate 700 */
  --text-muted: #64748B; /* Slate 500 */
  --bg-white: #FFFFFF;
  --bg-soft: #F8FAFC; /* Slate 50 */
  --bg-dark: #0F172A;
  --border-light: #E2E8F0; /* Slate 200 */
  --primary-font: 'Inter', sans-serif;
  --heading-font: 'Playfair Display', serif;
  --container-width: 1000px; /* Narrower for better readability in text-heavy sites */
  --transition: all 0.25s ease-out;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

/* Accessibility: Skip Link */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-gold);
  color: white;
  padding: 8px;
  z-index: 1001;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Global Focus States */
:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 4px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--primary-font);
  line-height: 1.7;
  color: var(--text-medium);
  background-color: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.01em;
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  color: var(--text-dark);
  line-height: 1.15;
  font-weight: 800;
}

p {
  margin-bottom: 1.5rem;
}

strong {
  color: var(--text-dark);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography Helpers */
.text-gold { color: var(--brand-gold); }
.text-center { text-align: center; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.75rem; font-weight: 700; color: var(--brand-gold); }

/* Header & Navigation */
header {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--heading-font);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-dark);
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-medium);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--brand-gold);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 0.25rem;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: var(--text-dark);
  color: white !important;
}

.btn-primary:hover {
  background: var(--brand-gold);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.text-link {
  color: var(--brand-gold);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.text-link:hover {
  color: var(--brand-gold-light);
  text-decoration: underline;
}

/* Sections */
section {
  padding: 7rem 0;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
}

/* Hero Section - Text Focused */
.hero {
  background: var(--bg-soft);
  padding: 10rem 0;
  border-bottom: 1px solid var(--border-light);
}

.hero h1 {
  font-size: clamp(3rem, 10vw, 4.5rem);
  margin-bottom: 2rem;
  letter-spacing: -0.04em;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  color: var(--text-medium);
  margin-bottom: 3rem;
}

.cac-badge {
  color: var(--brand-gold);
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  display: block;
  margin-bottom: 1rem;
}

/* Cards - Minimalist */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 3rem;
}

.card {
  background: white;
  padding: 0;
  border: none;
}

.card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gold-pale);
    color: var(--brand-gold);
    border-radius: 50%;
    margin-bottom: 2rem;
}

/* Stats - High Impact Typography */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 4rem;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 5rem 0;
}

.stat-item h2 {
  font-size: 4rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.05em;
}

.stat-item p {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--brand-gold);
}

/* Footer - Sophisticated & Clean */
footer {
  background: white;
  color: var(--text-dark);
  padding: 8rem 0 4rem;
  border-top: 1px solid var(--border-light);
}

footer h4 {
  font-family: var(--primary-font);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 2rem;
  color: var(--brand-gold);
}

footer p, footer li, footer a {
  color: var(--text-medium);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 1rem;
}

.footer-col a:hover {
  color: var(--brand-gold);
}

.footer-bottom {
  margin-top: 8rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-light);
  text-align: left;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Forms - Clean & Large */
.form-group {
  margin-bottom: 2rem;
}

label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input, select, textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0; /* Boxy for professional look */
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--text-dark);
}

/* ─── Scroll-aware header ─────────────────────────── */
header {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.95);
  transition: box-shadow 0.3s ease;
}
header.scrolled {
  box-shadow: 0 1px 20px 0 rgb(0 0 0 / 0.07);
}

/* ─── Mobile Menu ─────────────────────────────────── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 0.25rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text-dark);
  line-height: 0;
  position: relative;
  z-index: 1001;
}

.mobile-menu-btn:hover {
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

/* ─── Card hover lift ─────────────────────────────── */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -4px rgb(0 0 0 / 0.09);
}

/* Disable lift on cards that are used as form wrappers */
.card form,
.card[style*="position: sticky"] {
  transform: none !important;
  box-shadow: none !important;
}

/* ─── Footer logo (dark on white bg) ─────────────── */
footer .logo {
  color: var(--text-dark) !important;
}

/* ─── Social icon hover ───────────────────────────── */
footer a[aria-label] {
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}
footer a[aria-label]:hover {
  opacity: 1;
  color: var(--brand-gold);
}

/* ─── Entrance animations ─────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero h1,
.hero p,
.hero .btn,
.hero .cac-badge {
  animation: fadeUp 0.6s ease both;
}
.hero .cac-badge { animation-delay: 0s; }
.hero h1         { animation-delay: 0.08s; }
.hero p          { animation-delay: 0.16s; }
.hero .btn       { animation-delay: 0.24s; }

/* ─── Stat counter styling ────────────────────────── */
.stat-item {
  transition: transform 0.2s ease;
}
.stat-item:hover {
  transform: translateY(-2px);
}

/* ─── Button focus ring ───────────────────────────── */
.btn:focus-visible {
  outline: 2px solid var(--brand-gold);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgb(139 107 16 / 0.15);
}

/* ─── Form input focus ────────────────────────────── */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgb(139 107 16 / 0.12);
}

/* ─── Blockquote styling ──────────────────────────── */
blockquote {
  position: relative;
}

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

/* ─── Mobile Adjustments ──────────────────────────── */

/* Hide nav close button on desktop */
.nav-close-btn { display: none; }
@media (max-width: 768px) {
  .section-title { font-size: 2.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero { padding: 5rem 0; }
  .hero h1 { font-size: clamp(2.25rem, 8vw, 3.5rem); }

  .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 3rem;
    gap: 2rem;
    z-index: 1002;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
  }

  .nav-links .btn {
    width: 100%;
    justify-content: center;
  }

  /* Close button inside mobile nav overlay */
  .nav-close-btn {
    display: block;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: 1px solid var(--border-light);
    border-radius: 0.25rem;
    padding: 0.4rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 0;
  }
  .nav-close-btn:hover { color: var(--text-dark); border-color: var(--text-dark); }

  /* Stack grids on mobile */
  .grid {
    grid-template-columns: 1fr !important;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

/* Mobile menu icon toggle */
.mobile-menu-btn .icon-close { display: none; }
.mobile-menu-btn.is-open .icon-menu { display: none; }
.mobile-menu-btn.is-open .icon-close { display: block; }

/* ─── Button & Form Loading States ───────────────── */
.btn:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown),
select:invalid:not(:placeholder-shown) {
  border-color: #EF4444;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
  border-color: #10B981;
}

/* ─── Print Stylesheet ────────────────────────────── */
@media print {
  header, footer, .mobile-menu-btn, .cookie-banner,
  .btn, nav, .skip-link { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  section { padding: 1rem 0; }
  .container { max-width: 100%; padding: 0; }
  h1, h2, h3, h4 { page-break-after: avoid; }
  .stats-grid { display: flex; flex-wrap: wrap; gap: 1rem; }
  .stat-item h2 { font-size: 2rem; }
}
