/* ==========================================================================
   NANACRUZ - ASSOCIATION LOI 1901
   Design System & Master Stylesheet
   Color Palette:
     - Brand Deep Navy: #0E2335
     - Action Vibrant Teal: #00A3E0
     - Alert Coral Red: #E54838
     - Canvas Off-White: #F4F6F8
     - Pure White: #FFFFFF
     - Dark Slate Text: #1A1A1A
     - Subtle Border: #D8DFE6
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800;900&family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --navy: #0E2335;
  --teal: #00A3E0;
  --coral: #E54838;
  --offwhite: #F4F6F8;
  --white: #FFFFFF;
  --slate: #1A1A1A;
  --border: #D8DFE6;
  --muted: #5A6E7F;
  --shadow: 0 4px 16px rgba(14, 35, 53, 0.08);
  --shadow-hover: 0 10px 24px rgba(14, 35, 53, 0.14);
  --font-heading: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --font-body: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--slate);
  background-color: var(--offwhite);
  -webkit-font-smoothing: antialiased;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p {
  margin-bottom: 1.25rem;
  max-width: 80ch;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: #0082b3;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(14, 35, 53, 0.08);
}

/* Top Administrative Utility Strip */
.top-utility-strip {
  background-color: var(--navy);
  color: #DDE5ED;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

.top-utility-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
}

.utility-badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 2px;
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.utility-link {
  color: #CBD5E1;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 0.82rem;
}

.utility-link:hover {
  color: #FFFFFF;
}

.btn-donate-top {
  background-color: var(--coral);
  color: var(--white) !important;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 2px;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: background-color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn-donate-top:hover {
  background-color: #d13a2b;
  transform: translateY(-1px);
}

/* Main Navigation Bar */
.main-nav-bar {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand-logo {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

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

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 12px 16px;
  border-radius: 2px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-item:hover > .nav-link {
  color: var(--teal);
  background-color: rgba(0, 163, 224, 0.06);
}

.dropdown-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.nav-item:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 240px;
  list-style: none;
  box-shadow: var(--shadow-hover);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 2px 2px;
  padding: 8px 0;
  z-index: 1100;
}

.nav-item:hover .dropdown-menu {
  display: block;
}

.dropdown-item a {
  display: block;
  padding: 10px 20px;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 600;
  border-bottom: 1px solid #F0F4F8;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.dropdown-item:last-child a {
  border-bottom: none;
}

.dropdown-item a:hover {
  background-color: #F4F9FD;
  color: var(--teal);
  padding-left: 24px;
}

/* Mobile Navigation Toggle */
.mobile-toggle-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 8px 12px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  color: var(--navy);
  font-size: 1.3rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  background-color: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 70px 0 80px;
}

.hero-bg-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  filter: blur(1px);
}

.hero-bg-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.hero-headline {
  color: var(--white);
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-summary-statement {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #E2E8F0;
  margin-bottom: 2rem;
  border-left: 4px solid var(--teal);
  padding-left: 20px;
  font-weight: 500;
}

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

.btn-primary {
  background-color: var(--coral);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  border: 2px solid var(--coral);
  min-height: 48px;
  line-height: 1.2;
}

.btn-primary:hover {
  background-color: #c9392b;
  border-color: #c9392b;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 72, 56, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  min-height: 48px;
  line-height: 1.2;
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-teal {
  background-color: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 2px;
  display: inline-block;
  letter-spacing: 0.04em;
  transition: all 0.2s ease;
  min-height: 48px;
  line-height: 1.2;
}

.btn-teal:hover {
  background-color: #0087b9;
  border-color: #0087b9;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 163, 224, 0.3);
}

/* Institutional Callout Banner */
.mission-callout-block {
  background: var(--white);
  border-left: 6px solid var(--teal);
  border-radius: 2px;
  padding: 32px 36px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}

.mission-callout-block h3 {
  color: var(--navy);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.mission-callout-block p {
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Statutory Reinvestment Quote */
.statutory-quote-box {
  background-color: #EBF7FC;
  border: 1px solid #BCE5F5;
  border-left: 5px solid var(--teal);
  padding: 24px 28px;
  border-radius: 2px;
  margin: 32px 0;
}

.statutory-quote-box blockquote {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.statutory-quote-box cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 600;
}

/* Teal Interactive Action Banner */
.teal-action-banner {
  background: linear-gradient(135deg, var(--teal) 0%, #0083B3 100%);
  color: var(--white);
  padding: 48px 0;
  margin: 48px 0;
  border-radius: 2px;
}

.teal-action-banner h2 {
  color: var(--white);
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.teal-action-banner p {
  color: #E2F4FA;
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

.teal-banner-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 720px;
}

.teal-banner-form input[type="text"],
.teal-banner-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  height: 50px;
  padding: 0 16px;
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.teal-banner-form button {
  background-color: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 2px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  padding: 0 26px;
  height: 50px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.teal-banner-form button:hover {
  background-color: #06111a;
}

/* Card Style Directives (2px rounded, 4px top accent border) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 40px 0;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin: 40px 0;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 40px 0;
}

.card {
  background-color: var(--white);
  border-radius: 2px;
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card.coral-accent {
  border-top-color: var(--coral);
}

.card.navy-accent {
  border-top-color: var(--navy);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-media {
  margin: -28px -28px 20px -28px;
  overflow: hidden;
  height: 200px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-tag {
  display: inline-block;
  align-self: flex-start;
  background-color: rgba(0, 163, 224, 0.1);
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.card-body {
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
}

.card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #F0F4F8;
}

/* Circular Updates Section (5 Columns) */
.circular-grid-5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  text-align: center;
  margin: 40px 0;
}

.circular-card {
  background: var(--white);
  padding: 24px 16px;
  border-radius: 2px;
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.circular-badge-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 14px;
  box-shadow: 0 4px 10px rgba(14, 35, 53, 0.2);
}

.circular-card h4 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.circular-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Campaign Split Grid */
.split-campaign-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  background-color: var(--white);
  border-radius: 2px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--coral);
  overflow: hidden;
  margin: 48px 0;
}

.campaign-text {
  padding: 48px;
}

.campaign-visual {
  height: 100%;
  min-height: 380px;
}

.campaign-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Transparency Block */
.transparency-block {
  background-color: var(--navy);
  color: var(--white);
  border-radius: 2px;
  padding: 40px;
  margin: 48px 0;
  border-top: 4px solid var(--teal);
}

.transparency-block h3 {
  color: var(--white);
  font-size: 1.5rem;
}

.transparency-block p {
  color: #D1DCE5;
  font-size: 0.98rem;
  line-height: 1.7;
}

.transparency-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.transparency-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 2px;
  border-left: 3px solid var(--teal);
}

.transparency-item strong {
  display: block;
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--teal);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

/* Content Page Banner */
.page-header-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #15324d 100%);
  color: var(--white);
  padding: 56px 0;
  border-bottom: 4px solid var(--teal);
  margin-bottom: 48px;
}

.page-header-banner h1 {
  color: var(--white);
  font-size: 2.6rem;
  margin-bottom: 0.75rem;
}

.page-header-banner .breadcrumbs {
  font-size: 0.88rem;
  color: #9FB3C8;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.page-header-banner .breadcrumbs a {
  color: #DDE5ED;
}

.page-header-banner .breadcrumbs a:hover {
  color: var(--teal);
}

/* Article / Longform Content Layout */
.content-wrapper {
  background: var(--white);
  border-radius: 2px;
  box-shadow: var(--shadow);
  padding: 56px 64px;
  margin-bottom: 60px;
}

.article-meta-strip {
  display: flex;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.status-badge {
  display: inline-block;
  background: #E6F6ED;
  color: #0E723C;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
}

.status-badge.active {
  background: #E1F3FE;
  color: #0073A8;
}

/* Data Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.95rem;
}

.data-table th {
  background-color: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 14px 18px;
  text-align: left;
}

.data-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
}

.data-table tr:nth-child(even) {
  background-color: #F8FAFC;
}

/* Form Styling */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--slate);
  background-color: var(--white);
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 163, 224, 0.15);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* Master Footer */
.site-footer {
  background-color: var(--navy);
  color: #C2D1DE;
  font-size: 0.92rem;
  padding-top: 60px;
  border-top: 4px solid var(--teal);
}

.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1.3fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 8px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background-color: var(--teal);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #CBD5E1;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--teal);
  transform: translateX(4px);
}

.footer-newsletter-form input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 2px;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-newsletter-form input:focus {
  outline: none;
  border-color: var(--teal);
}

.footer-newsletter-form button {
  width: 100%;
  height: 44px;
  background: var(--teal);
  color: var(--white);
  border: none;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.footer-newsletter-form button:hover {
  background: #0087b9;
}

/* Mandatory Bottom Legal Strip */
.footer-legal-strip {
  background-color: #081520;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  font-size: 0.82rem;
  color: #8A9CAE;
  line-height: 1.6;
}

.footer-legal-strip strong {
  color: #CBD5E1;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-toggle-btn {
    display: block;
  }

  .nav-menu.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: var(--shadow-hover);
    border-top: 2px solid var(--teal);
    z-index: 1050;
  }

  .nav-item {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-top: none;
    padding-left: 16px;
    background: #F8FAFC;
    border-left: 2px solid var(--teal);
    margin: 8px 0;
  }

  .card-grid,
  .card-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .circular-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-headline {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  /* Force all multi-column CSS Grid structures to single column */
  .card-grid,
  .card-grid-2,
  .card-grid-4,
  .circular-grid-5,
  .split-campaign-grid,
  .transparency-grid,
  .footer-grid-4 {
    grid-template-columns: 1fr !important;
  }

  .top-utility-strip .container {
    flex-direction: column;
    align-items: flex-start;
  }

  .utility-right {
    width: 100%;
    justify-content: space-between;
  }

  .hero-headline {
    font-size: 1.85rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-primary, .btn-secondary, .btn-teal {
    width: 100%;
    text-align: center;
  }

  .content-wrapper {
    padding: 32px 20px;
  }
}
