/* =============================================
   Freedom Note Capital — styles.css
   Mobile-first. CSS custom properties throughout.
   ============================================= */

/* ── Custom Properties ── */
:root {
  --color-navy:      #001F3E;
  --color-gold:      #FFC354;
  --color-white:     #FFFFFF;
  --color-offwhite:  #F8F7F4;
  --color-text:      #1A1A1A;
  --color-muted:     #6B7280;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1100px;
  --section-pad: 4rem 1.25rem;
  --nav-height: 88px;

  --transition-fast: 180ms ease;
  --transition-med:  300ms ease;
}

/* ── Reset / Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── Utilities ── */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--section-pad);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-navy);
  display: inline-block;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-heading__underline {
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-gold);
  margin-top: 0.5rem;
  border-radius: 2px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
  text-align: center;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-navy);
  border-color: var(--color-gold);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  opacity: 0.88;
  outline: none;
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-navy);
  border-bottom: 1px solid rgba(255, 195, 84, 0.2);
  transition: box-shadow var(--transition-med);
}

.navbar.is-scrolled {
  box-shadow: 0 2px 16px rgba(0, 31, 62, 0.45);
}

.navbar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo-link {
  flex-shrink: 0;
}

.navbar__logo {
  height: 75px;
  width: auto;
  display: block;
}

/* Hamburger */
.navbar__hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-right: -0.5rem;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-med), opacity var(--transition-med);
}

/* Hamburger → X animation */
.navbar__hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav (default hidden) */
.navbar__nav {
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-navy);
  border-top: 1px solid rgba(255, 195, 84, 0.2);
  padding: 0.5rem 0 1rem;
}

.navbar__nav.is-open {
  display: flex;
}

.navbar__link {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.75rem 1.5rem;
  transition: color var(--transition-fast);
}

.navbar__link:hover {
  color: var(--color-gold);
}

/* Desktop nav */
@media (min-width: 768px) {
  .navbar__hamburger {
    display: none;
  }

  .navbar__nav {
    display: flex;
    flex-direction: row;
    position: static;
    background: none;
    border: none;
    padding: 0;
    gap: 2rem;
  }

  .navbar__link {
    padding: 0;
  }
}

/* ── HERO ── */
.hero {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 7.5rem 1.25rem; /* 120px top & bottom */
}

.hero__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero__headline {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero__subheadline {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
    justify-content: center;
  }
}

/* ── WHAT WE DO ── */
.what-we-do {
  background: var(--color-white);
}

.what-we-do__content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.what-we-do__content p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.75;
}

/* ── ABOUT ── */
.about {
  background: var(--color-white);
}

.about__layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Photo */
.about__photo-wrap {
  flex-shrink: 0;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.about__photo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.about__photo-placeholder {
  display: none;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
}

/* When headshot.jpg is missing, JS onerror shows placeholder */
.about__photo-wrap--placeholder .about__photo {
  display: none;
}

.about__photo-wrap--placeholder .about__photo-placeholder {
  display: flex;
}

/* Bio */
.about__bio {
  text-align: left;
}

.about__name {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.about__title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.about__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.about__text p {
  font-size: 1.05rem;
  color: var(--color-text);
  line-height: 1.75;
}

@media (min-width: 768px) {
  .about__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3.5rem;
  }

  .about__photo-wrap {
    /* keep photo at top of bio column */
    margin-top: 0.5rem;
  }
}

/* ── GET INVOLVED ── */
.get-involved {
  background: var(--color-offwhite);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

/* Card */
.card {
  background: var(--color-white);
  border: 1px solid rgba(0, 31, 62, 0.08);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 31, 62, 0.06);
  transition: box-shadow var(--transition-med);
}

.card:hover {
  box-shadow: 0 4px 20px rgba(0, 31, 62, 0.12);
}

.card__header {
  padding: 1.75rem 1.75rem 1.5rem;
  cursor: pointer;
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.6rem;
}

.card__short {
  font-size: 0.97rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-fast);
}

.card__toggle:hover {
  color: var(--color-navy);
}

.card__arrow {
  display: inline-block;
  transition: transform var(--transition-med);
  font-size: 0.75rem;
}

.card__toggle[aria-expanded="true"] .card__arrow {
  transform: rotate(180deg);
}

/* Card body — accordion */
.card__body {
  padding: 0 1.75rem 1.75rem;
  border-top: 1px solid rgba(0, 31, 62, 0.07);
}

/* JS adds/removes hidden; CSS handles transition via max-height trick */
.card__body[hidden] {
  display: none;
}

.card__body p {
  font-size: 0.97rem;
  color: var(--color-text);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.card__body p:last-of-type {
  margin-bottom: 1.25rem;
}

.card__cta {
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* ── NEWSLETTER ── */
.newsletter {
  background: var(--color-navy);
  color: var(--color-white);
}

.newsletter__inner {
  text-align: center;
}

.newsletter__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.newsletter__subtext {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.65;
}

.ghl-form-placeholder {
  background: rgba(255, 195, 84, 0.08);
  border: 1px dashed rgba(255, 195, 84, 0.5);
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter__coming-soon {
  color: var(--color-gold);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.newsletter__coming-soon-sub {
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.newsletter__coming-soon-sub a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition-fast);
}

.newsletter__coming-soon-sub a:hover {
  opacity: 0.75;
}

/* ── FOOTER ── */
.footer {
  background: var(--color-navy);
  border-top: 1px solid rgba(255, 195, 84, 0.2);
  color: var(--color-white);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer__logo {
  height: 60px;
  width: auto;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer__entity {
  font-weight: 600;
  font-size: 1rem;
}

.footer__email a {
  color: var(--color-gold);
  font-size: 0.97rem;
  transition: opacity var(--transition-fast);
}

.footer__email a:hover {
  opacity: 0.75;
}

.footer__copyright {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.15rem;
}

.footer__disclaimer {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 720px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

@media (min-width: 768px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 2rem;
  }

  .footer__logo-block {
    flex: 0 0 auto;
  }

  .footer__info {
    flex: 1;
  }

  .footer__disclaimer {
    flex: 0 0 100%;
    margin-top: 0.5rem;
  }
}
