/* ============================================================
   Janice Armbrust — Site Stylesheet
   ============================================================ */

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

/* ── Variables ── */
:root {
  --teal:        #5BBBB8;
  --teal-dark:   #48A09D;
  --teal-light:  #EAF7F7;
  --charcoal:    #3A3A3A;
  --charcoal-2:  #4A4A4A;
  --light-bg:    #F5F3EF;
  --white:       #FFFFFF;
  --text:        #2C2C2C;
  --text-muted:  #6B6B6B;
  --border:      #E0DDD8;
  --nav-height:  72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* ── Announcement Bar ── */
.announcement-bar {
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 11px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 200;
}
.announcement-bar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 12px;
  font-weight: 600;
}
.announcement-bar a:hover { opacity: 0.85; }

/* ── Navigation ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

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

/* Logo */
.nav-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-img { height: 52px; width: auto; display: block; }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links > li { position: relative; }
.nav-links > li > a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 6px 0;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}
.nav-links > li > a:hover,
.nav-links > li > a.active { color: var(--teal); border-bottom-color: var(--teal); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: -16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  min-width: 160px;
  padding: 8px 0;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu li a:hover { background: var(--light-bg); color: var(--teal); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: transform 0.3s;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: 'Raleway', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

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

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

/* ── Layout utilities ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-light { background: var(--light-bg); }
.bg-dark { background: var(--charcoal); color: var(--white); }
.bg-charcoal-2 { background: var(--charcoal-2); color: var(--white); }
.text-center { text-align: center; }

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* ── Two-column layout ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── Hero ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20,20,20,0.55) 0%, rgba(20,20,20,0.45) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 720px;
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 24px;
  font-variant: small-caps;
}
.hero-sub {
  font-size: 1.05rem;
  font-weight: 500;
  opacity: 0.95;
  margin-bottom: 40px;
  line-height: 1.9;
}

/* Dark background overrides for articles/podcasts/videos */
.bg-charcoal-2 .article-body h3,
.bg-charcoal-2 .media-body h3 { color: var(--white); }

.bg-charcoal-2 .article-body p,
.bg-charcoal-2 .media-body p { color: rgba(255,255,255,0.75); }

.bg-charcoal-2 .media-card { border-color: rgba(255,255,255,0.12); }

.bg-charcoal-2 .connect-card h3,
.bg-charcoal-2 .connect-card p { color: rgba(255,255,255,0.8); }

/* Simple page title (no hero image) */
.page-title-section {
  padding: 72px 0 56px;
  text-align: center;
}
.page-title-section h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-variant: small-caps;
  font-weight: 300;
  letter-spacing: 0.06em;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Inner page hero (shorter) ── */
.page-hero {
  height: 420px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center 30%;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,20,20,0.7) 0%, rgba(20,20,20,0.2) 60%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
}
.page-hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-variant: small-caps;
  font-weight: 300;
}

/* ── Image frame ── */
.img-frame {
  overflow: hidden;
  position: relative;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.img-frame:hover img { transform: scale(1.03); }
.img-tall { aspect-ratio: 3/4; }
.img-square { aspect-ratio: 1/1; }
.img-wide { aspect-ratio: 16/9; }

/* ── About / intro section ── */
.intro-text h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
}
.intro-text p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.intro-text p:last-of-type { margin-bottom: 28px; }

/* ── Book promo ── */
.book-section {
  background: var(--charcoal);
  color: var(--white);
}
.book-cover {
  max-width: 260px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.book-text h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--white); margin-bottom: 8px; }
.book-subtitle { font-size: 0.9rem; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; margin-bottom: 24px; }
.book-text p { font-size: 0.93rem; line-height: 1.9; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.book-text p:last-of-type { margin-bottom: 32px; }

/* ── Connect cards ── */
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.connect-card {
  text-align: center;
}
.connect-card .img-frame {
  aspect-ratio: 1/1;
  margin-bottom: 24px;
  border-radius: 2px;
}
.connect-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}
.connect-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0;
}

/* ── Article cards ── */
.articles-list { display: flex; flex-direction: column; gap: 64px; }
.article-card {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.article-card .img-frame { aspect-ratio: 4/3; border-radius: 2px; }
.article-body .org-name {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.article-body h3 { font-size: 1.8rem; margin-bottom: 16px; }
.article-body p { font-size: 0.92rem; line-height: 1.9; color: var(--text-muted); margin-bottom: 24px; }
.read-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  border-bottom: 1px solid var(--teal);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.read-link:hover { color: var(--teal-dark); border-color: var(--teal-dark); }

/* ── Podcast / Video cards ── */
.media-card {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: center;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.media-card:first-child { border-top: 1px solid var(--border); }
.media-card .img-frame { aspect-ratio: 4/3; border-radius: 2px; }
.media-body h3 { font-size: 2rem; margin-bottom: 20px; }
.media-body p { font-size: 0.93rem; line-height: 1.9; color: var(--text-muted); margin-bottom: 24px; }
.media-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Contact form ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 20px; }
.contact-info p { font-size: 0.93rem; line-height: 1.9; color: var(--text-muted); margin-bottom: 16px; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
}
.form-group input,
.form-group textarea,
.form-group select {
  font-family: 'Raleway', sans-serif;
  font-size: 0.92rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 0;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* ── Footer ── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 40px;
}
.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 64px;
  align-items: start;
}
.footer-logo-link { display: block; margin-bottom: 16px; }
.footer-logo-img { height: 80px; width: auto; display: block; }
.footer-tagline {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  opacity: 0.55;
  max-width: 200px;
  line-height: 1.7;
}
.footer-nav h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-nav ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--teal); }
.footer-bottom {
  max-width: 1160px;
  margin: 48px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  opacity: 0.45;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { color: inherit; transition: opacity 0.2s; }
.footer-bottom-links a:hover { opacity: 1; }

/* ── Divider ── */
.divider {
  width: 48px;
  height: 2px;
  background: var(--teal);
  margin: 24px 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

/* ── Pull quote ── */
.pull-quote {
  border-left: 3px solid var(--teal);
  padding: 8px 0 8px 28px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 300;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 32px 0;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .two-col.reverse { direction: ltr; }
  .article-card { grid-template-columns: 1fr; gap: 32px; }
  .media-card { grid-template-columns: 1fr; gap: 32px; }
  .connect-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 24px 32px;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  }
  .nav-toggle { display: flex; }
  .dropdown-menu { position: static; border: none; box-shadow: none; padding: 8px 0 0 16px; display: block; }
  .connect-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-title { font-size: 2.4rem; }
  .page-hero { height: 300px; }
}
