/* ===================================================
   Brown Girl Rise Portland — Static Mirror Stylesheet
   Theme: Squarespace Bedford replica
   =================================================== */

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

/* --- CSS Variables --- */
:root {
  --bg: #fff;
  --text: #2d2d2d;
  --muted: #666;
  --accent: #c17b4a;
  --accent-dark: #a3623a;
  --border: #e8e8e8;
  --header-h: 80px;
  --dark: #1a1a1a;
  --dark2: #2d2d2d;
  --radius-pill: 50px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text);
}
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================================
   HEADER
   =================================================== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow var(--transition);
}
#site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.logo-wrap { flex-shrink: 0; }
.logo-img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* --- Desktop Nav --- */
#main-nav > ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
#main-nav > ul > li {
  position: relative;
}
#main-nav > ul > li > a {
  display: block;
  padding: 8px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
#main-nav > ul > li > a:hover,
#main-nav > ul > li.active > a {
  color: var(--accent);
  text-decoration: none;
}
/* Dropdown arrow */
#main-nav .has-dropdown > a::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.6;
}
/* Dropdown panel */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  min-width: 190px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  z-index: 999;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-size: 13px;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
}
.dropdown li a:hover {
  background: #faf5f1;
  color: var(--accent);
  text-decoration: none;
}

/* --- Mobile Toggle --- */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 26px;
  color: var(--text);
  padding: 6px;
  line-height: 1;
  z-index: 1100;
}

/* ===================================================
   HERO — Full-width banner
   =================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  max-width: 900px;
}
.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.9;
}
.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Inner page hero (smaller) */
.hero-inner {
  height: 50vh;
  min-height: 280px;
}
.hero-inner .hero-title {
  font-size: clamp(24px, 4vw, 44px);
}

/* ===================================================
   MAIN CONTENT SECTIONS
   =================================================== */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-lg { padding: 100px 0; }

/* Mission Statement */
.mission-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
}

/* CTA Button row */
.cta-center {
  text-align: center;
  margin-top: 40px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius-pill);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--dark2);
  color: #fff;
  border-color: var(--dark2);
}
.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--dark2);
  border-color: var(--dark2);
}
.btn-outline:hover {
  background: var(--dark2);
  color: #fff;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-lg {
  padding: 18px 52px;
  font-size: 16px;
}

/* ===================================================
   CARD BLOCKS (image + text side by side)
   =================================================== */
.card-block {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 60px 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.card-block.reverse { flex-direction: row-reverse; }
.card-block-image {
  flex: 0 0 50%;
  position: relative;
  overflow: hidden;
  min-height: 400px;
}
.card-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.card-block:hover .card-block-image img { transform: scale(1.03); }
.card-block-body {
  flex: 0 0 50%;
  padding: 48px 52px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}
.card-block-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.card-block-title {
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 20px;
  color: var(--text);
}
.card-block-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 28px;
}
.card-block-text p:last-child { margin-bottom: 28px; }

/* Offset card (indented) */
.card-block-offset {
  margin-left: 8.333%;
}

/* ===================================================
   FOOTNOTE
   =================================================== */
.footnote {
  text-align: center;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  font-style: italic;
  max-width: 860px;
  margin: 40px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

/* ===================================================
   INSTAGRAM GRID
   =================================================== */
.instagram-section {
  padding: 60px 0;
  background: #fafafa;
}
.instagram-section h2 {
  text-align: center;
  margin-bottom: 36px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.instagram-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--border);
  display: block;
  transition: opacity var(--transition);
}
.instagram-item:hover { opacity: 0.85; }
.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instagram-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  background: linear-gradient(135deg, #f9d8c0 0%, #e8b89a 50%, #d49070 100%);
  color: rgba(255,255,255,0.7);
}

/* ===================================================
   NEWSLETTER / PRE-FOOTER
   =================================================== */
.newsletter-section {
  padding: 60px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.newsletter-wrap {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.newsletter-wrap h2 {
  font-size: 22px;
  margin-bottom: 10px;
}
.newsletter-wrap p {
  color: var(--muted);
  margin-bottom: 24px;
}
.newsletter-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1 1 180px;
  min-width: 140px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.newsletter-form input:focus { border-color: var(--accent); }
.newsletter-form button {
  flex-shrink: 0;
}

/* ===================================================
   PAGE CONTENT (inner pages)
   =================================================== */
.page-content {
  padding: 72px 0;
}
.page-title {
  font-size: clamp(28px, 4vw, 48px);
  margin-bottom: 32px;
  text-align: center;
}
.page-body {
  max-width: 800px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.8;
}
.page-body p { margin-bottom: 1.2em; }
.page-body a { color: var(--accent); text-decoration: underline; }
.page-body a:hover { color: var(--accent-dark); }
.section-title {
  font-size: clamp(22px, 3vw, 36px);
  margin-bottom: 24px;
}

/* Sub-nav cards (for section landing pages) */
.sub-nav-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.sub-nav-card {
  background: #faf5f1;
  border-radius: 8px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.sub-nav-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  text-decoration: none;
}
.sub-nav-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text);
}
.sub-nav-card p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
}
.sub-nav-card .btn { font-size: 12px; padding: 10px 24px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}
.contact-info h3 { font-size: 20px; margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 10px; }
.contact-info a { color: var(--accent); }
.contact-social { display: flex; gap: 14px; margin-top: 20px; }
.contact-social a {
  color: var(--text);
  transition: color var(--transition);
}
.contact-social a:hover { color: var(--accent); }
.contact-form-wrap h3 { font-size: 20px; margin-bottom: 20px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input,
.contact-form textarea {
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--accent); }
.contact-form textarea { resize: vertical; min-height: 130px; }

/* Donate CTA box */
.donate-cta-box {
  background: linear-gradient(135deg, #faf0e8 0%, #f5e0cc 100%);
  border-radius: 12px;
  padding: 60px 40px;
  text-align: center;
  margin: 48px 0;
}
.donate-cta-box h2 { font-size: clamp(22px, 3vw, 36px); margin-bottom: 16px; }
.donate-cta-box p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; font-size: 16px; }

/* ===================================================
   FOOTER
   =================================================== */
#site-footer {
  background: var(--dark);
  color: #ccc;
}
.footer-banner {
  overflow: hidden;
  line-height: 0;
}
.footer-banner img {
  width: 100%;
  display: block;
  object-fit: cover;
  max-height: 200px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: 48px;
  padding: 56px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-col h3 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.footer-col ul { margin: 0; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: #aaa;
  font-size: 14px;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); text-decoration: none; }
.social-icons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.social-icons a {
  color: #aaa;
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.social-icons a:hover { color: var(--accent); }
.footer-newsletter p {
  font-size: 14px;
  color: #aaa;
  margin-bottom: 20px;
}
.footer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-form input {
  padding: 11px 16px;
  border: 1px solid #444;
  border-radius: 6px;
  background: #2a2a2a;
  color: #fff;
  font-size: 14px;
  font-family: 'Open Sans', sans-serif;
  outline: none;
  transition: border-color var(--transition);
}
.footer-form input::placeholder { color: #888; }
.footer-form input:focus { border-color: var(--accent); }
.footer-form .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  font-size: 13px;
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
}
.footer-form .btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.footer-copy {
  border-top: 1px solid #333;
  text-align: center;
  padding: 20px 24px;
}
.footer-copy p {
  font-size: 13px;
  color: #666;
  margin: 0;
}
.footer-copy a { color: #888; }
.footer-copy a:hover { color: var(--accent); }

/* ===================================================
   RESPONSIVE — Tablet (≤ 768px)
   =================================================== */
@media (max-width: 768px) {
  :root { --header-h: 68px; }

  .mobile-toggle { display: block; }

  #main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    overflow-y: auto;
    z-index: 999;
    padding: 24px 0 60px;
  }
  #main-nav.open { display: block; }
  #main-nav > ul { flex-direction: column; gap: 0; }
  #main-nav > ul > li { border-bottom: 1px solid var(--border); }
  #main-nav > ul > li > a {
    padding: 16px 24px;
    font-size: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .has-dropdown > a::after { content: ' ›'; font-size: 18px; }
  .dropdown {
    display: none;
    position: static;
    border: none;
    border-top: 1px solid var(--border);
    box-shadow: none;
    border-radius: 0;
    background: #fafafa;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown li a { padding: 12px 36px; font-size: 14px; }

  .hero { height: 70vh; }
  .hero-inner { height: 42vh; }

  .card-block,
  .card-block.reverse {
    flex-direction: column;
  }
  .card-block-image { flex: none; min-height: 260px; }
  .card-block-body { flex: none; padding: 36px 28px; }
  .card-block-offset { margin-left: 0; }

  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 40px 24px; }
}

/* ===================================================
   RESPONSIVE — Mobile (≤ 480px)
   =================================================== */
@media (max-width: 480px) {
  .hero { height: 60vh; min-height: 320px; }
  .section { padding: 52px 0; }
  .newsletter-form { flex-direction: column; align-items: stretch; }
  .newsletter-form input { min-width: auto; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .sub-nav-cards { grid-template-columns: 1fr; }
  .card-block-body { padding: 28px 20px; }
  .btn-lg { padding: 14px 32px; font-size: 14px; }
  .donate-cta-box { padding: 40px 20px; }
}

/* ===================================================
   UTILITY
   =================================================== */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-sm { margin-top: 20px; }
.mt-md { margin-top: 40px; }
.mt-lg { margin-top: 60px; }
.mb-sm { margin-bottom: 20px; }
.mb-md { margin-bottom: 40px; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ===================================================
   CARD SPLIT (Bedford-style image + text side by side)
   =================================================== */
.card-section { padding: 0; }
.card-split {
  display: flex;
  min-height: 480px;
}
.card-split-reverse { flex-direction: row-reverse; }
.card-split-offset { margin-left: 8.333%; }
.card-split-image {
  flex: 0 0 55%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 420px;
}
.card-split-body {
  flex: 0 0 45%;
  padding: 60px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--border);
}
.card-eyebrow {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.card-split-body h2 {
  font-size: clamp(24px, 2.8vw, 36px);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.2;
}
.card-split-body p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 14px;
}
.card-split-body .btn { margin-top: 10px; align-self: flex-start; }

@media (max-width: 768px) {
  .card-split, .card-split-reverse { flex-direction: column; }
  .card-split-offset { margin-left: 0; }
  .card-split-image { flex: none; height: 300px; }
  .card-split-body { flex: none; padding: 36px 24px; }
}
