/* ═══════════════════════════════════════════════════════════════
   ROLLIE JOHNSON — AUTHOR SITE
   Faithful rebuild of Figma design for Namecheap static hosting
   ═══════════════════════════════════════════════════════════════ */

:root {
  --teal:       #1aa0a0;
  --teal-dark:  #158080;
  --bg-dark:    #1c1c1c;
  --bg-darker:  #141414;
  --bg-card:    #272727;
  --text-white: #ffffff;
  --text-muted: #aaaaaa;
  --text-ghost: rgba(255,255,255,0.12);
  --border:     rgba(255,255,255,0.1);
  --serif:      'Playfair Display', Georgia, serif;
  --sans:       'Lato', sans-serif;
  --nav-h:      72px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-teal {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-teal:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

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

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }

/* ─── NAVIGATION ──────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-white);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  margin-left: auto;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-white);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--teal); }

.nav-links .nav-cta {
  background: var(--teal);
  color: #fff;
  padding: 9px 22px;
  font-weight: 700;
}
.nav-links .nav-cta:hover { background: var(--teal-dark); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
}

/* ─── HERO ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
  overflow: hidden;

  /* Placeholder gradient — replace with actual mountain photo */
  background: url('../images/hero-bg.jpg') center center / cover no-repeat;
  background-color: #2a3a4a;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,10,0.75) 0%,
    rgba(10,10,10,0.45) 50%,
    rgba(10,10,10,0.2) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  flex-shrink: 0;
}

.hero-eyebrow {
  font-size: 0.95rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-white);
  margin-bottom: 36px;
}

/* ─── HERO BOOKS ──────────────────────────────────────────────── */
.hero-books {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.hero-book {
  width: 185px;
  box-shadow: -8px 8px 32px rgba(0,0,0,0.6);
  transition: transform 0.3s;
}
.hero-book:hover { transform: translateY(-6px) scale(1.03); }

.hero-book img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.hero-book--1 { z-index: 1; transform: translateX(20px) rotate(-2deg); }
.hero-book--2 { z-index: 3; transform: translateY(-20px); }
.hero-book--3 { z-index: 2; transform: translateX(-20px) rotate(2deg); }

.hero-book--1:hover { transform: translateX(20px) rotate(-2deg) translateY(-6px); }
.hero-book--3:hover { transform: translateX(-20px) rotate(2deg) translateY(-6px); }

/* ─── FEATURED BOOK ───────────────────────────────────────────── */
.featured-book {
  background: var(--bg-darker);
  display: flex;
  align-items: center;
  gap: 80px;
  padding: 100px 80px;
  max-width: 1280px;
  margin: 0 auto;
}

.featured-book__image {
  flex: 0 0 380px;
}

.featured-book__image img {
  width: 100%;
  filter: drop-shadow(-20px 20px 40px rgba(0,0,0,0.6));
}

.featured-book__content {
  flex: 1;
}

.featured-quote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-white);
  margin-bottom: 32px;
  border: none;
  padding: 0;
}

.featured-author {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.featured-author__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--teal);
}

.featured-author strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.featured-author span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── BOOKS SECTION ───────────────────────────────────────────── */
.books-section {
  background: var(--bg-darker);
  padding: 80px 32px 100px;
}

.books-section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.books-section__header h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.text-ghost {
  color: rgba(255,255,255,0.15);
  margin-left: 12px;
}

.books-section__header p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.book-card {
  background: var(--bg-card);
  padding: 0 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.book-card--featured {
  transform: translateY(-16px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.book-card--featured:hover { transform: translateY(-20px); }

.book-card__cover {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  margin-bottom: 20px;
}

.book-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.book-card:hover .book-card__cover img { transform: scale(1.04); }

.book-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
  padding: 0 16px;
}

.book-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 16px;
  margin-bottom: 16px;
  flex: 1;
}

.book-card__formats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
  padding: 0 16px;
}

.book-card__formats span {
  font-size: 0.75rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 4px 10px;
  color: rgba(255,255,255,0.7);
}

.book-card__amazon {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.book-card__amazon:hover { color: var(--teal); }

/* ─── EVENTS CTA ──────────────────────────────────────────────── */
.events-cta {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 32px;
  background: url('../images/events-bg.jpg') center center / cover no-repeat;
  background-color: #3a4a3a;
  overflow: hidden;
}

.events-cta__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 15, 0.6);
}

.events-cta__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.events-cta__content h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 24px;
}

.events-cta__content h2 em {
  font-style: italic;
  color: var(--teal);
}

.events-cta__content p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.events-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 32px;
}

.events-cta__tags {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
}

.events-cta__tags span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── FOOTER ──────────────────────────────────────────────────── */
.site-footer {
  background: #1a1a1a;
  padding: 64px 32px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.footer-logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.footer-nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--teal); }

.footer-right h4 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-form {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
}

.footer-form input {
  flex: 1;
  background: #2a2a2a;
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  color: #fff;
  padding: 12px 16px;
  font-size: 0.9rem;
  font-family: var(--sans);
  outline: none;
}
.footer-form input::placeholder { color: rgba(255,255,255,0.3); }
.footer-form input:focus { border-color: var(--teal); }

.footer-form .btn { border-radius: 0; }

.footer-legal {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal a { text-decoration: underline; color: inherit; }
.footer-legal a:hover { color: var(--teal); }

.footer-bottom {
  max-width: 1280px;
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-bottom a { color: inherit; text-decoration: underline; }
.footer-bottom a:hover { color: var(--teal); }

/* ─── INNER PAGE HERO ─────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 32px 80px;
  background: var(--bg-darker);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1rem;
}

.page-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}

/* ─── CONTACT FORM ────────────────────────────────────────────── */
.contact-form-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: #272727;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--teal); }

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

/* ─── ABOUT PAGE ─────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-photo img {
  width: 100%;
  object-fit: cover;
}

.about-text h2 {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ─── DEVOTIONS / ADVENTURES GRID ────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.25s;
}
.post-card:hover { transform: translateY(-4px); }

.post-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-card__body {
  padding: 20px;
}

.post-card__body h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.post-card__body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── EVENTS PAGE ─────────────────────────────────────────────── */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  background: var(--bg-card);
  padding: 28px 32px;
  display: flex;
  gap: 32px;
  align-items: flex-start;
  border-left: 3px solid var(--teal);
}

.event-date {
  flex-shrink: 0;
  text-align: center;
  min-width: 60px;
}
.event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
}
.event-date .day {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.event-info h3 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.event-info p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-books { margin-left: 0; margin-top: 48px; }
  .featured-book { flex-direction: column; padding: 60px 32px; gap: 40px; }
  .featured-book__image { flex: none; width: 280px; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #141414; padding: 20px 32px; gap: 20px; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-books { flex-wrap: wrap; justify-content: center; }
  .hero-book { width: 130px; }
  .hero-book img { height: 185px; }
  .books-grid { grid-template-columns: 1fr; max-width: 360px; }
  .book-card--featured { transform: none; }
  .posts-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-form { flex-direction: column; }
  .footer-form input { border-right: 1px solid rgba(255,255,255,0.15); }
  .events-cta__actions { flex-direction: column; align-items: center; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero { padding: calc(var(--nav-h) + 32px) 20px 48px; }
  .hero-headline { font-size: 1.7rem; }
  .page-content { padding: 48px 20px; }
  .event-item { flex-direction: column; gap: 12px; }
}
