/* ============================================================
   Funding Connect Consulting — styles.css
   ============================================================
   Table of contents:
     1. Design tokens (CSS custom properties)
     2. Reset & base
     3. Layout utilities
     4. Header & navigation
     5. Page shell
     6. Home — hero
     7. Home — grants slider
     8. Home — company blurb
     9. Shared — page banner
    10. About page
    11. Services page
    12. Connect page
    13. Forms
    14. Footer
    15. Animations
    16. Responsive (mobile)
   ============================================================ */


/* ─────────────────────────────────────────────
   1. Design tokens
───────────────────────────────────────────── */
:root {
  --deep:  #0E4D57;
  --mid:   #4A7F7B;
  --pale:  #C6D8D3;
  --gold:  #D18B3D;
  --dark:  #2B2B2B;
  --cream: #F6F3EE;
  --white: #FFFFFF;

  --nav-height: 68px;
  --page-padding-x: 52px;
}


/* ─────────────────────────────────────────────
   2. Reset & base
───────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Mulish', sans-serif;
  background: var(--white);
  color: var(--dark);
  min-height: 100vh;
  line-height: 1.6;
}

/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ─────────────────────────────────────────────
   3. Layout utilities
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 3px;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-white {
  background: var(--white);
  color: var(--deep);
}
.btn-white:hover { background: var(--cream); }

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

.btn-deep {
  background: var(--deep);
  color: var(--white);
}
.btn-deep:hover { background: var(--mid); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #b87a2e; }

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


/* ─────────────────────────────────────────────
   4. Header & navigation
───────────────────────────────────────────── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--pale);
}

nav {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-padding-x);
}

/* Logo — rendered as a button for SPA navigation */
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.logo-text {
  line-height: 1.15;
  text-align: left;
}

.logo-text b {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.logo-text small {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 500;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

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

.nav-btn {
  background: var(--deep) !important;
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 3px;
  transition: background 0.2s !important;
}

.nav-btn:hover {
  background: var(--mid) !important;
  color: var(--white) !important;
}


/* ─────────────────────────────────────────────
   5. Page shell
───────────────────────────────────────────── */
.page {
  display: none;
  padding-top: var(--nav-height);
  min-height: 100vh;
}

.page.active {
  display: block;
}


/* ─────────────────────────────────────────────
   6. Home — hero
───────────────────────────────────────────── */
.home-hero {
  background: var(--deep);
  color: var(--white);
  padding: 100px var(--page-padding-x) 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}

/* Decorative background glow */
.home-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(209, 139, 61, 0.18) 0%, transparent 65%);
  pointer-events: none;
}

.hero-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--gold);
}

.home-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 700;
  max-width: 680px;
  margin-bottom: 28px;
}

.home-hero h1 em {
  font-style: italic;
  color: var(--pale);
}

.home-hero > p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ─────────────────────────────────────────────
   7. Home — grants slider
───────────────────────────────────────────── */
.grants-section {
  background: var(--cream);
  padding: 64px var(--page-padding-x);
}

.grants-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
}

.grants-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--deep);
}

.grants-header span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
}

.grants-track-wrap {
  overflow: hidden;
  position: relative;
}

/* Fade edges */
.grants-track-wrap::before,
.grants-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}

.grants-track-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}

.grants-track-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

.grants-track {
  display: flex;
  gap: 20px;
  animation: slide 32s linear infinite;
  width: max-content;
}

.grants-track:hover {
  animation-play-state: paused;
}

@keyframes slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.grant-card {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  min-width: 280px;
  max-width: 280px;
  flex-shrink: 0;
  border-radius: 2px;
}

.grant-cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid);
  font-weight: 600;
  margin-bottom: 6px;
}

.grant-title {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  color: var(--deep);
  line-height: 1.35;
  margin-bottom: 8px;
}

.grant-amount {
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.grant-close {
  font-size: 11px;
  color: #888;
}


/* ─────────────────────────────────────────────
   8. Home — company blurb
───────────────────────────────────────────── */
.blurb {
  padding: 80px var(--page-padding-x);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.blurb-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--deep);
  line-height: 1.2;
  margin-bottom: 20px;
}

.blurb-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 14px;
}

.blurb-text a {
  color: var(--deep);
  font-weight: 600;
  text-decoration: none;
}
.blurb-text a:hover { color: var(--gold); }

.blurb-visual {
  display: flex;
  justify-content: center;
}

.arch-box {
  background: var(--deep);
  padding: 48px;
  border-radius: 2px;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  max-width: 340px;
}

.arch-box::before {
  content: '';
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(209, 139, 61, 0.2);
}

.arch-box svg { margin-bottom: 20px; }

.arch-box p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 260px;
  margin: 0 auto;
}

.arch-box cite {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-style: normal;
}


/* ─────────────────────────────────────────────
   9. Shared — page banner
───────────────────────────────────────────── */
.page-banner {
  background: var(--deep);
  color: var(--white);
  padding: 72px var(--page-padding-x) 56px;
}

.page-banner .tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}

.page-banner h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  max-width: 600px;
}

.page-banner > p {
  margin-top: 16px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  line-height: 1.7;
}


/* ─────────────────────────────────────────────
   10. About page
───────────────────────────────────────────── */
.about-body {
  padding: 72px var(--page-padding-x);
}

.about-intro {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  margin-bottom: 64px;
}

.about-intro > div p {
  font-size: 16px;
  color: #444;
  line-height: 1.85;
  margin-bottom: 16px;
}

/* Values box */
.values-box {
  background: var(--cream);
  padding: 36px;
}

.values-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--deep);
  margin-bottom: 20px;
}

.values-list {
  list-style: none;
}

.value-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid var(--pale);
  font-size: 14px;
  color: #444;
}

.value-row:last-child {
  border: none;
  padding-bottom: 0;
}

.vdot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  margin-top: 5px;
}

/* Pillars */
.pillars-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--pale);
  list-style: none;
}

.pillar {
  background: var(--white);
  padding: 36px 28px;
  text-align: center;
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--cream);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--deep);
  margin-bottom: 8px;
}

.pillar p {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
}

/* Acknowledgement of Country */
.ack {
  margin-top: 48px;
  background: var(--deep);
  color: var(--white);
  padding: 36px 40px;
  border-radius: 2px;
}

.ack h4 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  margin-bottom: 10px;
}

.ack p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}


/* ─────────────────────────────────────────────
   11. Services page
───────────────────────────────────────────── */
.services-body {
  padding: 64px var(--page-padding-x);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--pale);
  margin-top: 48px;
  list-style: none;
}

.svc {
  background: var(--white);
  padding: 36px 28px;
  transition: background 0.2s;
}

.svc:hover { background: var(--cream); }

.svc-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.svc h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--deep);
  margin-bottom: 10px;
}

.svc p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
}

/* Process steps */
.process {
  margin-top: 64px;
  padding: 48px;
  background: var(--cream);
}

.process h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--deep);
  margin-bottom: 36px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
}

.step-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: var(--pale);
  line-height: 1;
  margin-bottom: 8px;
}

.step h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 6px;
}

.step p {
  font-size: 12px;
  color: #666;
  line-height: 1.65;
}


/* ─────────────────────────────────────────────
   12. Connect page
───────────────────────────────────────────── */
.connect-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-height) - 140px);
}

/* Left sidebar */
.connect-left {
  background: var(--cream);
  padding: 64px var(--page-padding-x);
}

.connect-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--deep);
  margin-bottom: 8px;
}

.connect-left > p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 32px;
}

.info-list {
  list-style: none;
  margin-bottom: 36px;
}

.info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.info-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.info-text strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 2px;
}

.info-text span,
.info-text a {
  font-size: 13px;
  color: #444;
  text-decoration: none;
}

.info-text a:hover { color: var(--deep); text-decoration: underline; }

/* Small acknowledgement block */
.ack-small {
  padding: 20px 24px;
  background: var(--deep);
  border-radius: 2px;
}

.ack-small strong {
  display: block;
  font-size: 12px;
  color: var(--white);
  margin-bottom: 6px;
}

.ack-small p {
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.75);
}

/* Right form panel */
.connect-right {
  padding: 64px 48px;
  background: var(--white);
}


/* ─────────────────────────────────────────────
   13. Forms
───────────────────────────────────────────── */
/* Tabs */
.tabs {
  display: flex;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--pale);
}

.tab-btn {
  padding: 10px 20px;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: #888;
  transition: color 0.2s, border-color 0.2s;
}

.tab-btn.active,
.tab-btn[aria-selected="true"] {
  color: var(--deep);
  border-bottom-color: var(--deep);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Field */
.field { margin-bottom: 14px; }

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 5px;
}

.field label span[aria-label="required"] {
  color: var(--gold);
  margin-left: 2px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #DDD;
  border-radius: 3px;
  font-family: 'Mulish', sans-serif;
  font-size: 13px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
  appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--deep);
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

/* Newsletter intro text */
.newsletter-intro {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 20px;
}

.form-note {
  font-size: 11px;
  color: #aaa;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Success message (hidden by default, shown via JS) */
.form-success {
  display: none;
  background: var(--deep);
  color: var(--white);
  padding: 13px 18px;
  border-radius: 3px;
  font-size: 13px;
  text-align: center;
  margin-top: 12px;
}


/* ─────────────────────────────────────────────
   14. Footer
───────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 48px var(--page-padding-x) 28px;
}

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

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-top: 12px;
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo span {
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 14px;
}

.footer-col h4 {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 14px;
  font-weight: 700;
}

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

.footer-col li { margin-bottom: 8px; }

.footer-col a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

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

.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
}


/* ─────────────────────────────────────────────
   15. Animations
───────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#page-home.active .hero-tag    { animation: fadeUp 0.45s ease 0.05s both; }
#page-home.active .home-hero h1 { animation: fadeUp 0.45s ease 0.15s both; }
#page-home.active .home-hero > p { animation: fadeUp 0.45s ease 0.25s both; }
#page-home.active .hero-actions  { animation: fadeUp 0.45s ease 0.35s both; }


/* ─────────────────────────────────────────────
   16. Responsive — mobile
───────────────────────────────────────────── */
@media (max-width: 900px) {
  :root {
    --page-padding-x: 24px;
  }

  nav { padding: 0 var(--page-padding-x); }

  /* Hide nav links on mobile — replace with a hamburger menu if needed */
  .nav-links { display: none; }

  .home-hero { padding: 56px var(--page-padding-x) 48px; }

  .blurb {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px var(--page-padding-x);
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pillars-row {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .connect-body {
    grid-template-columns: 1fr;
  }

  .connect-left,
  .connect-right {
    padding: 40px var(--page-padding-x);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bar {
    flex-direction: column;
    gap: 6px;
  }

  .page-banner {
    padding: 48px var(--page-padding-x) 40px;
  }

  .grants-section,
  .about-body,
  .services-body {
    padding: 48px var(--page-padding-x);
  }

  .process {
    padding: 32px 24px;
  }
}

@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
