/* ==============================================
   BCFF — Beach Cities Frontline Foundation
   Patriot palette: Navy #0D2B5E | Red #BF0A30 | White #FFFFFF
   Typography: Inter, system sans fallback
   ============================================== */

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

:root {
  --navy: #0D2B5E;
  --navy-light: #1A3F7A;
  --navy-dark: #081D42;
  --red: #BF0A30;
  --red-dark: #9E0828;
  --red-soft: rgba(191, 10, 48, 0.08);
  --white: #FFFFFF;
  --off-white: #F4F5F7;
  --gray-light: #E2E4E9;
  --gray: #5F6B7A;
  --charcoal: #1A1D23;
  --border: #D1D5DC;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.06);
  --max-width: 1100px;
  --gutter: 32px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}

/* ---- Navigation ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 43, 94, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--red);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 1px;
  transition: 0.3s;
}

/* ---- Hero ---- */

.hero {
  padding: 100px var(--gutter) 88px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-logo {
  height: 80px;
  width: auto;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--red);
}

.hero p {
  font-size: 20px;
  line-height: 1.6;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  min-height: 48px;
  min-width: 48px;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

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

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}

.btn-outline:hover {
  background: rgba(13, 43, 94, 0.05);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-1px);
}

/* ---- Sections ---- */

.section {
  padding: 80px var(--gutter);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray);
  max-width: 640px;
  margin-bottom: 48px;
}

.section-alt {
  background: var(--white);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy .section-title {
  color: var(--white);
}

.section-navy .section-subtitle {
  color: rgba(255,255,255,0.68);
}

.section-navy .section-label {
  color: rgba(255,255,255,0.55);
}

/* ---- Cards Grid ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.card-icon-red {
  background: var(--red-soft);
}

.card-icon-navy {
  background: rgba(13, 43, 94, 0.07);
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.6;
}

.card .card-cta {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.2s;
}

.card .card-cta:hover {
  color: var(--red);
}

/* ---- Stat Row ---- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
  margin-top: 48px;
}

.stat-number {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

/* ---- Page Header (subpages) ---- */

.page-header {
  padding: 80px var(--gutter) 56px;
  max-width: 740px;
  margin: 0 auto;
  text-align: center;
}

.page-header h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 16px;
  text-align: center;
}

.page-header p {
  font-size: 20px;
  color: var(--gray);
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

/* ---- Content Body ---- */

.content-body {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

.content-body h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin: 48px 0 16px;
  letter-spacing: -0.02em;
}

.content-body h2:first-child {
  margin-top: 0;
}

.content-body h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 32px 0 12px;
}

.content-body p {
  margin-bottom: 16px;
  color: var(--gray);
}

.content-body ul,
.content-body ol {
  margin: 0 0 24px 24px;
  color: var(--gray);
}

.content-body li {
  margin-bottom: 8px;
}

.content-body blockquote {
  border-left: 4px solid var(--red);
  padding: 20px 28px;
  margin: 36px 0;
  background: var(--red-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--charcoal);
  font-style: italic;
}

.content-body blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--gray);
  font-style: normal;
}

.content-body a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Feature Two-Column ---- */

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
}

.feature-block h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.feature-block p {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.feature-block ul {
  list-style: none;
  margin-top: 12px;
}

.feature-block ul li {
  padding: 6px 0;
  font-size: 15px;
  color: var(--gray);
}

.feature-block ul li::before {
  content: '★ ';
  color: var(--red);
  font-size: 12px;
}

.feature-visual {
  background: var(--navy);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.8;
}

/* ---- Table ---- */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 15px;
}

.compare-table th {
  text-align: left;
  padding: 16px;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
}

.compare-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
}

.compare-table tr:nth-child(even) td {
  background: rgba(244, 245, 247, 0.6);
}

.table-wrap {
  overflow-x: auto;
  margin: 32px 0;
}

/* ---- FAQ ---- */

.faq-list {
  max-width: 740px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item summary {
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--red);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item .answer {
  padding-top: 12px;
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
}

/* ---- Photo Gallery ---- */

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 0 0 48px;
}

.photo-gallery figure {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.photo-gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.photo-gallery figcaption {
  padding: 14px 16px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  font-style: italic;
}

/* ---- Holding Page ---- */

.holding-page {
  padding: 100px var(--gutter) 120px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.holding-page h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 20px;
}

.holding-page h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 40px 0 16px;
}

.holding-page p {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.7;
}

.holding-page ul {
  list-style: none;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
  color: var(--gray);
}

.holding-page ul li {
  padding: 8px 0;
}

.holding-page .divider {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 32px auto;
  border-radius: 2px;
}

/* ---- CTA Banner ---- */

.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 80px var(--gutter);
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.68);
  max-width: 540px;
  margin: 0 auto 32px;
}

.cta-banner .btn-primary {
  background: var(--red);
  color: var(--white);
}

.cta-banner .btn-primary:hover {
  background: var(--red-dark);
}

/* ---- Footer ---- */

.footer {
  background: var(--navy-dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 56px var(--gutter) 32px;
  color: rgba(255,255,255,0.60);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer-brand h3 span {
  color: var(--red);
}

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

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

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

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

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

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

.footer-logo-sm {
  height: 28px;
  width: auto;
  opacity: 0.5;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero h1,
  .page-header h1 {
    font-size: 34px;
  }

  .hero p,
  .page-header p {
    font-size: 18px;
  }

  .section-title {
    font-size: 26px;
  }

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

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

  .feature-block {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .feature-visual {
    order: -1;
  }

  .stat-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px var(--gutter);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    gap: 6px;
  }

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

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 56px var(--gutter) 48px;
  }

  .hero h1,
  .page-header h1 {
    font-size: 28px;
  }

  .hero-logo {
    height: 56px;
  }

  .section {
    padding: 56px var(--gutter);
  }

  .content-body h2 {
    font-size: 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

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