/* ============================================================
   Chesapeake Bitcoin — The Causeway
   css/style.css
   Historical gravitas meets Bitcoin community.
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Inter:wght@300;400;500;600&display=swap');

/* ── Custom Properties ── */
:root {
  --bg:          #1B2A4A;
  --surface:     #243352;
  --surface-2:   #2c3d62;
  --orange:      #E8923A;
  --gold:        #7B5EA7;
  --gold-light:  #9B7BC4;
  --parchment:   #F5EDD6;
  --muted:       #A89F8C;
  --marsh:       #5C7A4E;
  --border:      rgba(123, 94, 167, 0.25);
  --border-strong: rgba(123, 94, 167, 0.55);

  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Inter', system-ui, sans-serif;

  --radius:      6px;
  --radius-lg:   12px;
  --shadow:      0 4px 24px rgba(0,0,0,0.35);
  --transition:  0.2s ease;
}

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

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

body {
  background-color: var(--bg);
  color: var(--parchment);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  padding-top: 64px;
}

/* Offset anchor links for fixed navbar */
section[id], footer[id] {
  scroll-margin-top: 72px;
}

img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--parchment);
}

/* ── Parchment Texture Utility ──
   Subtle lined texture using repeating-linear-gradient */
.parchment-bg {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    rgba(200, 146, 42, 0.04) 27px,
    rgba(200, 146, 42, 0.04) 28px
  );
}

/* ── Section Divider — rope/map border style ── */
.section-divider {
  border: none;
  height: 3px;
  background:
    linear-gradient(90deg,
      transparent 0%,
      var(--gold) 15%,
      var(--orange) 50%,
      var(--gold) 85%,
      transparent 100%
    );
  opacity: 0.4;
  margin: 0;
}

/* ── Container ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #e07d0a;
  border-color: #e07d0a;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(247, 147, 26, 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-secondary:hover {
  background: var(--gold);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--parchment);
  border-color: rgba(245, 237, 214, 0.35);
}
.btn-outline:hover {
  border-color: var(--parchment);
  color: var(--parchment);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(27, 42, 74, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--parchment);
  flex-shrink: 0;
}
.nav-logo img { height: 48px; width: auto; }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav-logo-text .logo-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--parchment);
}
.nav-logo-text .logo-sub {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--parchment);
}
.nav-links .nav-cta a {
  color: var(--orange);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--parchment);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 6rem 0 5rem;
  overflow: hidden;
  background-color: var(--bg);
  /* Subtle horizontal line map texture */
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(200, 146, 42, 0.06) 39px,
      rgba(200, 146, 42, 0.06) 40px
    ),
    radial-gradient(ellipse 80% 60% at 50% 50%, #1f3360 0%, var(--bg) 70%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 40%, rgba(247,147,26,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
  opacity: 0.85;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 400;
  font-style: italic;
  color: var(--orange);
  margin-bottom: 1.2rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.hero-slogan {
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--gold);
  opacity: 0.8;
  letter-spacing: 0.05em;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sections ── */
.section {
  padding: 4rem 0;
}
.section-alt {
  background-color: var(--surface);
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 27px,
    rgba(200, 146, 42, 0.035) 27px,
    rgba(200, 146, 42, 0.035) 28px
  );
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.6rem;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 0.5rem;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* ── Upcoming Meetup ── */
.upcoming-card {
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  max-width: 720px;
  margin: 0 auto;
  box-shadow: var(--shadow);
}
.upcoming-card .meetup-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}
.upcoming-card .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.upcoming-card .meta-icon {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0;
}
.upcoming-card .meta-value {
  color: var(--parchment);
  font-weight: 500;
}
.upcoming-card .upcoming-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}
.upcoming-card .upcoming-desc ul {
  padding-left: 1.5rem;
  margin: 0.25rem 0 0.75rem;
}
.upcoming-card .upcoming-desc li {
  margin-bottom: 0.2rem;
}
.see-more-btn {
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--font-body);
  padding: 0;
  margin-top: 0.25rem;
  text-decoration: underline;
}
.see-more-btn:hover {
  color: var(--gold);
}

/* ── Meetup Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.meetup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.meetup-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
  border-left-color: var(--orange);
}
.meetup-card .card-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}
.meetup-card .card-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--parchment);
  line-height: 1.3;
}
.meetup-card .card-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  flex-grow: 1;
  line-height: 1.6;
}
.meetup-card .card-actions {
  margin-top: 0.25rem;
}

.cards-cta {
  text-align: center;
  margin-top: 1rem;
}

/* ── Meetup History List (meetups.html) ── */
.meetup-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.meetup-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  transition: border-left-color var(--transition);
}
.meetup-entry:hover { border-left-color: var(--orange); }
.meetup-entry .entry-date {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.meetup-entry .entry-title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}
.meetup-entry .entry-recap {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

/* ── Resources ── */
.topic-section {
  margin-bottom: 3rem;
}
.topic-heading {
  font-family: var(--font-head);
  font-size: 1.4rem;
  color: var(--parchment);
  margin-bottom: 1.25rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.topic-heading::before {
  content: '§';
  color: var(--gold);
  font-style: italic;
  opacity: 0.8;
}
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.resource-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.resource-card .res-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--parchment);
}
.resource-card .res-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  flex-grow: 1;
}
.resource-card .res-actions {
  margin-top: 0.5rem;
}

/* ── About Page ── */
.about-section {
  max-width: 780px;
  margin: 0 auto 4rem;
}
.about-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}
.about-section h2 .accent { color: var(--orange); }
.about-section p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.2rem;
}
.about-section p strong {
  color: var(--parchment);
  font-weight: 600;
}
.about-section .pull-quote {
  border-left: 4px solid var(--orange);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--parchment);
}

/* ── Page Header (inner pages) ── */
.page-header {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(200, 146, 42, 0.05) 39px,
      rgba(200, 146, 42, 0.05) 40px
    );
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}
.page-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ── Footer ── */
.footer {
  background: #131f38;
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  text-decoration: none;
}
.footer-brand .footer-logo img { height: 36px; width: auto; }
.footer-brand .footer-logo-name {
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--parchment);
  font-weight: 700;
}
.footer-brand .footer-tagline {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.footer-brand .footer-slogan {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.8;
}
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.footer-col ul li a { color: var(--muted); }
.footer-col ul li a:hover { color: var(--parchment); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.footer-contact-item .contact-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  min-width: 48px;
  padding-top: 2px;
}
.footer-contact-item .contact-value {
  color: var(--muted);
  word-break: break-all;
  line-height: 1.4;
}
.footer-contact-item a.contact-value { color: var(--muted); }
.footer-contact-item a.contact-value:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom .copyright {
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-bottom .footer-community {
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-bottom .footer-community a {
  color: var(--gold);
}
.footer-bottom .footer-community a:hover { color: var(--orange); }

/* ── Loading / Empty States ── */
.loading-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  font-style: italic;
}
.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* ── Utility ── */
.text-orange { color: var(--orange); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }

/* ── Responsive — Tablet ── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ── Responsive — Mobile ── */
@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 99;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    font-size: 1.3rem;
    color: var(--parchment);
  }
  .nav-hamburger {
    display: flex;
  }

  .hero {
    padding: 4rem 0 3.5rem;
  }

  .upcoming-card {
    padding: 1.5rem;
  }
  .upcoming-card .meetup-meta {
    flex-direction: column;
    gap: 0.75rem;
  }

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

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

  .resource-list {
    grid-template-columns: 1fr;
  }

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

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
}
