/*
Theme Name: Wander and Lead
Theme URI: https://wanderandlead.com
Author: Wander and Lead
Author URI: https://wanderandlead.com
Description: A personal travel blog theme for Wander and Lead — Arctic Blue palette, Playfair Display headings, warm and inspiring.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: wanderandlead
*/

/* ── CSS VARIABLES ─────────────────────────────────────────────────────────── */
:root {
  --bg:         #EEF6FF;
  --bg2:        #E0EEFA;
  --white:      #FFFFFF;
  --navy:       #0D2C4A;
  --blue:       #2E86C1;
  --muted:      #5D8AA8;
  --border:     #D0E4F4;
  --orange:     #F5A623;
  --orange-dk:  #C87020;
  --font-head:  'Playfair Display', Georgia, serif;
  --font-body:  'Lato', sans-serif;
  --radius:     10px;
  --shadow:     0 2px 16px rgba(13,44,74,0.08);
}

/* ── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color .2s; }
a:hover { color: var(--orange-dk); }

/* ── TYPOGRAPHY ────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(24px, 3.5vw, 36px); }
h3 { font-size: clamp(18px, 2.5vw, 24px); }
h4 { font-size: 18px; }
p  { color: var(--muted); line-height: 1.8; margin-bottom: 1em; }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
  margin-bottom: 10px;
}

/* ── BUTTONS ───────────────────────────────────────────────────────────────── */
.btn, button.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-light { background: #fff; color: var(--navy); }
.btn-dark { background: var(--navy); color: #fff; }

/* ── LAYOUT ────────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 64px 0; }
.section-bg2 { background: var(--bg2); }
.section-navy { background: var(--navy); }

/* ── NAVIGATION ────────────────────────────────────────────────────────────── */
#site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 8px rgba(13,44,74,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
}
.site-logo {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.site-logo span { color: var(--orange); }
#primary-nav { display: flex; align-items: center; gap: 32px; list-style: none; }
#primary-nav li a {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
#primary-nav li a:hover,
#primary-nav li.current-menu-item a { color: var(--orange); }
.nav-subscribe {
  background: var(--orange);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-subscribe:hover { opacity: .88; color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); margin: 5px 0;
  transition: all .3s;
}

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  padding: 80px 40px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(46,134,193,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.hero-logo {
  width: min(320px, 80%);
  margin: 0 auto 28px;
  filter: drop-shadow(0 4px 20px rgba(46,134,193,0.18));
  animation: fadeUp .8s ease both;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  margin-bottom: 18px;
  animation: fadeUp .8s ease .1s both;
}
.hero h1 em { color: var(--orange); font-style: italic; }
.hero .subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 36px;
  animation: fadeUp .8s ease .2s both;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .8s ease .3s both;
}

/* ── DIVIDER ───────────────────────────────────────────────────────────────── */
.section-divider {
  display: flex; align-items: center; gap: 20px;
  padding: 0 40px; margin: 4px 0;
}
.section-divider .line { flex: 1; height: 1px; background: var(--border); }
.section-divider .label {
  font-size: 10px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}

/* ── STORY CARDS ───────────────────────────────────────────────────────────── */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.story-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.story-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.story-card .card-img {
  width: 100%; height: 220px;
  background: var(--bg2);
  position: relative; overflow: hidden;
}
.story-card .card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.story-card:hover .card-img img { transform: scale(1.04); }
.story-card .card-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--orange); color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 3px;
}
.story-card .card-body { padding: 20px; }
.story-card .card-dest {
  font-size: 10px; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
  display: block;
}
.story-card .card-title {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700; color: var(--navy);
  margin-bottom: 8px; line-height: 1.3;
}
.story-card .card-excerpt {
  font-size: 13px; color: var(--muted);
  line-height: 1.7; margin-bottom: 14px;
}
.story-card .card-read {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--orange);
}
.story-card .card-read:hover { color: var(--orange-dk); }

/* Side story cards */
.side-cards { display: flex; flex-direction: column; gap: 16px; }
.side-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; display: grid;
  grid-template-columns: 100px 1fr;
  transition: transform .2s, box-shadow .2s;
}
.side-card:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.side-card .card-img { height: 100px; background: var(--bg2); }
.side-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.side-card .card-body { padding: 12px 14px; }
.side-card .card-dest {
  font-size: 9px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 4px; display: block;
}
.side-card .card-title {
  font-family: var(--font-head);
  font-size: 14px; font-weight: 700; color: var(--navy);
  line-height: 1.3; margin-bottom: 6px;
}
.side-card .card-read {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--orange);
}

/* Stories grid (The Journey page) */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 28px;
}
.stories-grid .story-card .card-img { height: 200px; }

/* ── FILTER BAR ────────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin: 24px 0;
}
.filter-btn {
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 8px 20px;
  border-radius: 20px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--muted);
  cursor: pointer; transition: all .2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--orange); color: #fff; border-color: var(--orange);
}

/* ── GIFT A FRAME SECTION ──────────────────────────────────────────────────── */
.gift-strip {
  background: var(--navy);
  border-radius: 16px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin: 32px 0;
}
.gift-strip h2 { color: #fff; margin-bottom: 12px; }
.gift-strip h2 em { color: var(--orange); font-style: italic; }
.gift-strip p { color: rgba(255,255,255,.55); margin-bottom: 20px; }
.gift-photos {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.gift-photo {
  border-radius: 8px; overflow: hidden;
  position: relative; cursor: pointer;
}
.gift-photo img {
  width: 100%; height: 120px; object-fit: cover;
  transition: transform .3s;
}
.gift-photo:hover img { transform: scale(1.06); }
.gift-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(13,44,74,0.8));
  display: flex; align-items: flex-end; padding: 10px;
  opacity: 0; transition: opacity .25s;
}
.gift-photo:hover .gift-photo-overlay { opacity: 1; }
.gift-photo-label {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: #fff;
}

/* Gallery page */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 28px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 220px; object-fit: cover;
  transition: transform .4s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 30%, rgba(13,44,74,0.85));
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 18px;
  opacity: 0; transition: opacity .25s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-location {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange); margin-bottom: 4px;
}
.gallery-title {
  font-family: var(--font-head);
  font-size: 16px; font-weight: 700; color: #fff;
  margin-bottom: 12px; line-height: 1.3;
}
.gift-this-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--orange); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 8px 16px;
  border-radius: 4px; border: none; cursor: pointer;
  transition: opacity .2s;
}
.gift-this-btn:hover { opacity: .88; }

/* ── GIFT POPUP ────────────────────────────────────────────────────────────── */
.gift-popup-overlay {
  position: fixed; inset: 0;
  background: rgba(13,44,74,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.gift-popup-overlay.active { opacity: 1; pointer-events: all; }
.gift-popup {
  background: var(--white);
  border-radius: 16px; padding: 40px 36px;
  max-width: 400px; width: 90%;
  text-align: center; position: relative;
  transform: translateY(20px);
  transition: transform .25s;
}
.gift-popup-overlay.active .gift-popup { transform: translateY(0); }
.gift-popup-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--navy); line-height: 1;
  transition: color .2s;
}
.gift-popup-close:hover { color: var(--orange); }
.gift-popup-icon { font-size: 48px; margin-bottom: 16px; display: block; }
.gift-popup h3 {
  font-family: var(--font-head);
  font-size: 22px; color: var(--navy); margin-bottom: 10px;
}
.gift-popup p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.whatsapp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 13px 28px;
  border-radius: 4px; border: none; cursor: pointer;
  text-decoration: none; transition: opacity .2s;
}
.whatsapp-btn:hover { opacity: .88; color: #fff; }

/* Success message */
.gift-success {
  display: none;
  background: var(--bg2);
  border-radius: 12px; padding: 20px;
  margin-top: 16px;
}
.gift-success p {
  color: var(--navy); font-size: 14px; margin: 0;
}

/* ── ABOUT STRIP ───────────────────────────────────────────────────────────── */
.about-strip {
  background: var(--bg2);
  padding: 48px 40px;
  display: flex; gap: 32px; align-items: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-avatar {
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-size: 32px; font-weight: 700;
  color: #fff; border: 3px solid var(--orange);
  overflow: hidden;
}
.about-avatar img { width: 100%; height: 100%; object-fit: cover; }
.about-text h4 {
  font-family: var(--font-head);
  font-size: 22px; color: var(--navy); margin-bottom: 6px;
}
.about-text p { font-size: 14px; color: var(--muted); max-width: 540px; margin: 0; }
.about-link {
  display: inline-block; margin-top: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--orange);
}

/* About page */
.about-page-grid {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 60px; align-items: start;
}
.about-photo {
  border-radius: 14px; overflow: hidden;
  border: 3px solid var(--border);
}
.about-photo img { width: 100%; height: 400px; object-fit: cover; }
.about-photo-placeholder {
  width: 100%; height: 400px;
  background: var(--bg2);
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
}
.about-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin: 32px 0; text-align: center;
}
.stat-num {
  font-family: var(--font-head);
  font-size: 42px; font-weight: 700; color: var(--orange);
  display: block; line-height: 1;
}
.stat-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--muted); margin-top: 4px;
  display: block;
}

/* ── EMAIL CAPTURE ─────────────────────────────────────────────────────────── */
.email-section {
  background: var(--navy);
  padding: 64px 40px;
  text-align: center;
}
.email-section h2 { color: #fff; margin-bottom: 10px; }
.email-section h2 em { color: var(--orange); font-style: italic; }
.email-section .sub { color: rgba(255,255,255,.5); margin-bottom: 28px; font-size: 14px; }
.email-form {
  display: flex; gap: 10px; justify-content: center;
  max-width: 460px; margin: 0 auto; flex-wrap: wrap;
}
.email-form input {
  flex: 1; min-width: 200px;
  padding: 14px 18px; border-radius: 4px; border: none;
  font-size: 14px; background: rgba(255,255,255,.1);
  color: #fff; outline: none;
  font-family: var(--font-body);
}
.email-form input::placeholder { color: rgba(255,255,255,.35); }
.email-form button {
  background: var(--orange); color: #fff; border: none;
  padding: 14px 24px; border-radius: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer;
  font-family: var(--font-body); white-space: nowrap;
  transition: opacity .2s;
}
.email-form button:hover { opacity: .88; }

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 36px 40px;
}
.footer-inner {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-logo {
  font-family: var(--font-head);
  font-size: 20px; font-weight: 700; color: #fff; text-decoration: none;
}
.footer-logo span { color: var(--orange); }
.footer-tagline {
  font-size: 11px; color: rgba(255,255,255,.35);
  letter-spacing: 1.5px; margin-top: 3px;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a {
  font-size: 10px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.4);
}
.footer-links a:hover { color: var(--orange); }
.footer-copy {
  font-size: 10px; color: rgba(255,255,255,.2); letter-spacing: 1px;
}

/* ── ANIMATIONS ────────────────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .7s ease both; }

/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr; }
  .gift-strip    { grid-template-columns: 1fr; padding: 32px 24px; }
  .about-page-grid { grid-template-columns: 1fr; }
  .about-stats   { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 680px) {
  .nav-inner     { padding: 14px 20px; }
  #primary-nav   { display: none; flex-direction: column; gap: 12px; }
  #primary-nav.open { display: flex; position: absolute; top: 60px; left: 0; right: 0; background: var(--white); padding: 20px; border-bottom: 1px solid var(--border); }
  .nav-toggle    { display: block; }
  .container     { padding: 0 20px; }
  .hero          { padding: 48px 20px 40px; }
  .about-strip   { flex-direction: column; text-align: center; padding: 32px 20px; }
  .stories-grid  { grid-template-columns: 1fr; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .about-stats   { grid-template-columns: 1fr 1fr; }
  .email-section { padding: 48px 20px; }
  #site-footer   { padding: 28px 20px; }
  .footer-inner  { flex-direction: column; text-align: center; gap: 20px; }
}
