/*
Theme Name: Campervans Gone Wild
Theme URI: https://campervans-gone-wild.com
Author: JP Caughey
Author URI: https://campervans-gone-wild.com
Description: Custom theme for Campervans Gone Wild - a cli-fi adventure novel site.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cgw
Tags: custom-theme, book, author, adventure
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
  --forest:       #1a3326;
  --forest-mid:   #2a5040;
  --forest-light: #3d7a5e;
  --amber:        #c8812a;
  --amber-light:  #e8a84a;
  --amber-pale:   #fdf0d5;
  --cream:        #f7f2e8;
  --cream-dark:   #ede5d0;
  --sand:         #d4c9a8;
  --charcoal:     #2c2c28;
  --muted:        #5c5a52;
  --white:        #ffffff;
  --nav-h:        72px;
  --max-w:        1100px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: var(--forest-light); text-decoration: none; }
a:hover { text-decoration: underline; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1.2rem; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.15;
  color: var(--forest);
  margin-bottom: 0.75rem;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }

/* =============================================
   NAVIGATION
   ============================================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--forest);
  border-bottom: 2px solid var(--amber);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
}

.site-branding a {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--amber-light);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-branding a:hover { text-decoration: none; color: var(--cream); }

.main-navigation ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 0.25rem; align-items: center;
}
.main-navigation ul li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: var(--cream);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.5rem 0.9rem; border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none; display: block;
}
.main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
  background: rgba(200,129,42,0.18);
  color: var(--amber-light);
}
.main-navigation ul li.menu-buy-now > a {
  background: var(--amber);
  color: var(--forest);
  font-weight: 600;
  border-radius: 4px;
  padding: 0.5rem 1.1rem;
}
.main-navigation ul li.menu-buy-now > a:hover {
  background: var(--amber-light);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: var(--cream); padding: 0.4rem;
}
.menu-toggle svg { display: block; }

/* Mobile menu */
.main-navigation.toggled ul {
  display: flex; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0;
  background: var(--forest);
  border-bottom: 2px solid var(--amber);
  padding: 1rem 0; z-index: 99;
  gap: 0;
}
.main-navigation.toggled ul li a {
  padding: 0.75rem 2rem; border-radius: 0;
  letter-spacing: 0.04em; font-size: 1rem;
}

/* =============================================
   LAYOUT
   ============================================= */
.site-content { padding-top: var(--nav-h); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-pad { padding: 4.5rem 0; }
.section-pad-sm { padding: 3rem 0; }

/* =============================================
   BUTTONS
   ============================================= */
.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.8rem 1.8rem; border-radius: 4px;
  border: none; cursor: pointer;
  text-decoration: none; transition: background 0.2s, transform 0.15s;
}
.btn-primary,
input[type="submit"],
button[type="submit"] {
  background: var(--amber);
  color: var(--forest) !important;
}
.btn-primary:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--forest) !important;
  border: 1.5px solid var(--sand);
}
.btn-outline:hover {
  border-color: var(--forest);
  background: rgba(26,51,38,0.06);
  text-decoration: none;
}
.btn-outline-light {
  background: transparent;
  color: var(--cream) !important;
  border: 1.5px solid rgba(247,242,232,0.4);
}
.btn-outline-light:hover {
  border-color: var(--cream);
  background: rgba(247,242,232,0.08);
  text-decoration: none;
}

/* =============================================
   HERO (front page)
   ============================================= */
.hero {
  background: var(--forest);
  padding: 5rem 2rem 4rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(61,122,94,0.3) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; position: relative;
}
.hero-eyebrow {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1.2rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.1;
  color: var(--cream); margin-bottom: 0.5rem;
}
.hero-author {
  font-family: 'Lora', serif;
  font-size: 1.1rem; font-style: italic;
  color: var(--amber-light); margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 1.05rem; line-height: 1.75;
  color: rgba(247,242,232,0.82); margin-bottom: 2rem;
}
.hero-desc em { font-style: italic; color: var(--amber-light); }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-cover { display: flex; justify-content: center; align-items: center; }
.hero-cover img {
  max-width: 340px; width: 100%;
  border-radius: 4px;
  box-shadow: -8px 16px 48px rgba(0,0,0,0.55), 4px 0 0 var(--amber);
  transform: rotate(-1.5deg);
  transition: transform 0.3s;
}
.hero-cover img:hover { transform: rotate(0deg) scale(1.02); }

/* =============================================
   STATS STRIP
   ============================================= */
.book-strip { background: var(--forest-mid); padding: 3rem 0; }
.book-strip-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
}
.book-fact {
  text-align: center; padding: 1.5rem;
  border-right: 1px solid rgba(247,242,232,0.12);
}
.book-fact:last-child { border-right: none; }
.book-fact-label {
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.5rem;
}
.book-fact-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; color: var(--cream); font-weight: 700;
  font-style: italic;
}

/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-label {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--forest-light); margin-bottom: 0.6rem;
}
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700;
  color: var(--forest); margin-bottom: 1.5rem; line-height: 1.15;
}
.section-heading em { font-style: italic; color: var(--amber); }
.divider {
  width: 56px; height: 3px;
  background: var(--amber); border-radius: 2px;
  margin-bottom: 2rem;
}

/* =============================================
   TWO-COLUMN CONTENT GRID
   ============================================= */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-body { font-size: 1.05rem; line-height: 1.85; color: var(--muted); }
.about-body p { margin-bottom: 1.2rem; }

/* =============================================
   QUOTE BLOCKS
   ============================================= */
.quote-block {
  background: var(--forest);
  border-left: 4px solid var(--amber);
  padding: 2rem 2rem 2rem 2.5rem;
  border-radius: 4px; margin-bottom: 1.5rem;
}
.quote-block blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-style: italic;
  color: var(--cream); line-height: 1.5;
  margin-bottom: 0.75rem; border: none; padding: 0;
}
.quote-block cite,
.quote-attr {
  font-size: 0.82rem; color: var(--amber-light);
  letter-spacing: 0.08em; font-weight: 500; font-style: normal;
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  background: var(--forest);
  padding: 4rem 2rem 3rem; text-align: center;
}
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 700;
  color: var(--cream); margin-bottom: 0.75rem;
}
.page-hero .page-hero-sub {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 1.05rem; color: rgba(247,242,232,0.75);
  max-width: 560px; margin: 0 auto;
}

/* =============================================
   REVIEWS
   ============================================= */
.reviews-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 2rem; margin-bottom: 3rem;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--amber);
  border-radius: 6px; padding: 2rem;
}
.review-stars { color: var(--amber); font-size: 1.1rem; margin-bottom: 1rem; }
.review-text {
  font-family: 'Lora', serif; font-style: italic;
  font-size: 1rem; line-height: 1.75;
  color: var(--muted); margin-bottom: 1.2rem;
}
.review-author { font-size: 0.85rem; font-weight: 600; color: var(--forest); }
.review-handle { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }

.cta-box {
  background: var(--forest); border-radius: 6px;
  padding: 2.5rem; text-align: center; margin-bottom: 3rem;
}
.cta-box h3 { color: var(--cream); margin-bottom: 0.75rem; }
.cta-box p { color: rgba(247,242,232,0.75); margin-bottom: 1.5rem; line-height: 1.7; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   FORMS (Contact, Review, Subscribe)
   ============================================= */
.form-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 6px; padding: 2.5rem;
}
.form-section {
  background: var(--cream-dark);
  border-radius: 6px; padding: 2.5rem; margin-bottom: 2rem;
}
.form-section h3 { color: var(--forest); margin-bottom: 0.5rem; }
.form-section > p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }

label {
  display: block;
  font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--forest); margin-bottom: 0.4rem;
}
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--sand); border-radius: 4px;
  background: var(--white); color: var(--charcoal);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s;
  margin-bottom: 1.2rem;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  outline: none; border-color: var(--forest-light);
}
textarea { min-height: 120px; resize: vertical; }

/* WPForms / CF7 overrides */
.wpcf7-form p { margin-bottom: 1rem; }
.wpcf7-form input[type="submit"] { margin-top: 0.5rem; }

/* =============================================
   SUBSCRIBE PAGE
   ============================================= */
.subscribe-wrap { max-width: 700px; margin: 0 auto; }
.subscribe-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-top: 4px solid var(--amber);
  border-radius: 8px; padding: 3rem;
}
.subscribe-card h2 { color: var(--forest); margin-bottom: 1rem; }
.subscribe-perks { list-style: none; padding: 0; margin-bottom: 2rem; }
.subscribe-perks li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.95rem; color: var(--muted);
}
.subscribe-perks li::before {
  content: '✦'; color: var(--amber);
  flex-shrink: 0; margin-top: 2px;
}
.privacy-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.5rem; }
.privacy-note a { color: var(--forest-light); }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; align-items: start; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0 1.5rem; }
.topic-chip {
  background: var(--cream-dark); color: var(--forest);
  border: 1.5px solid var(--sand); border-radius: 20px;
  padding: 0.4rem 1rem; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  display: inline-block;
}
.topic-chip:hover {
  background: var(--forest); color: var(--cream);
  border-color: var(--forest); text-decoration: none;
}

/* =============================================
   EXTRACT CARDS
   ============================================= */
.extract-card {
  background: var(--white);
  border-left: 4px solid var(--forest-light);
  border-radius: 4px; padding: 2rem 2.5rem; margin-bottom: 2rem;
}
.extract-chapter {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--forest-light); margin-bottom: 0.4rem;
}
.extract-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: var(--forest); margin-bottom: 1rem;
}
.extract-text {
  font-family: 'Lora', serif;
  font-size: 1rem; line-height: 1.9; color: var(--muted);
}

/* =============================================
   CTA BAND (bottom of pages)
   ============================================= */
.cta-band {
  background: var(--forest);
  padding: 4rem 2rem; text-align: center;
}
.cta-band .eyebrow {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 0.75rem;
}
.cta-band h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem,3.5vw,2.8rem);
  color: var(--cream); margin-bottom: 1rem;
}
.cta-band p {
  color: rgba(247,242,232,0.72);
  max-width: 480px; margin: 0 auto 2rem;
  line-height: 1.7;
}
.cta-band em { font-style: italic; color: var(--amber-light); }

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--charcoal);
  border-top: 2px solid var(--forest-mid);
  padding: 2.5rem; text-align: center;
  font-size: 0.82rem; letter-spacing: 0.04em;
  color: rgba(247,242,232,0.6);
}
.site-footer a { color: var(--amber); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav { margin-bottom: 0.75rem; }
.footer-nav a { margin: 0 0.75rem; }
.footer-brand {
  font-family: 'Playfair Display', serif;
  color: rgba(247,242,232,0.8);
  font-size: 0.95rem; margin-bottom: 0.5rem;
  display: block;
}

/* =============================================
   WORDPRESS DEFAULTS (keep editor happy)
   ============================================= */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero-inner,
  .two-col,
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-cover { order: -1; }
  .hero-cover img { max-width: 220px; }
  .book-strip-inner { grid-template-columns: 1fr; }
  .book-fact { border-right: none; border-bottom: 1px solid rgba(247,242,232,0.12); }
  .book-fact:last-child { border-bottom: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .site-header { padding: 0 1.25rem; }
  .main-navigation ul { display: none; }
  .menu-toggle { display: block; }
  .section-pad { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .hero { padding: 3rem 1.25rem; }
  .subscribe-card { padding: 2rem 1.5rem; }
  .form-card { padding: 1.5rem; }
}
