/*
Theme Name:  First Step to Adventure
Theme URI:   https://firststepadventure.com
Author:      Andrew / Boltz Creations, Inc.
Author URI:  https://firststepadventure.com
Description: Custom travel blog theme for First Step to Adventure. Art Deco inspired, earthy palette, built for solo and adventure travelers.
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: fsta
Tags: travel, blog, custom, art-deco
*/

/* ══════════════════════════════════════════
   CSS VARIABLES
══════════════════════════════════════════ */
:root {
  --gold:       #C8882A;
  --gold-light: #F0D070;
  --burgundy:   #6B1515;
  --forest:     #2D5A1B;
  --sky:        #4A90C4;
  --terracotta: #C1440E;
  --cream:      #FDF6EE;
  --dark-navy:  #0D1E2A;
  --text-dark:  #1a1a1a;
  --text-mid:   #444;
}

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

html { scroll-behavior: smooth; }

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

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

/* ══════════════════════════════════════════
   HEADER & NAV
══════════════════════════════════════════ */
#site-header {
  background: var(--dark-navy);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 80px;
}

.site-logo img {
  height: 70px;
  width: auto;
}

/* Primary nav */
#primary-navigation {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 4px;
}

#primary-navigation > li {
  position: relative;
}

#primary-navigation > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 28px 14px;
  transition: color 0.2s;
  white-space: nowrap;
}

#primary-navigation > li > a:hover,
#primary-navigation > li.current-menu-item > a {
  color: var(--gold);
}

/* WordPress adds .menu-item-has-children automatically */
.menu-item-has-children > a::after {
  content: '▾';
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.7;
}

/* Dropdown (sub-menu) */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--dark-navy);
  border: 1px solid var(--gold);
  border-top: 3px solid var(--gold);
  min-width: 220px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  list-style: none;
}

.menu-item-has-children:hover .sub-menu { display: block; }

.sub-menu li a {
  display: block;
  color: var(--gold-light);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(200,136,42,0.15);
  transition: background 0.15s, color 0.15s;
}

.sub-menu li a:hover {
  background: rgba(200,136,42,0.1);
  color: var(--gold);
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 1px;
  padding: 8px 16px;
  cursor: pointer;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,30,42,0.25) 0%,
    rgba(13,30,42,0.1) 40%,
    rgba(13,30,42,0.55) 80%,
    rgba(13,30,42,0.75) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  width: 90%;
  max-width: 800px;
}

.hero-tagline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
  margin-bottom: 20px;
  animation: fadeUp 1s ease both;
}

.hero-sub {
  font-family: 'Lato', sans-serif;
  font-size: clamp(13px, 2vw, 17px);
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  letter-spacing: 4px;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  margin-bottom: 32px;
  animation: fadeUp 1s ease 0.2s both;
}

.hero-cta {
  display: inline-block;
  background: var(--gold);
  color: var(--dark-navy);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 16px 40px;
  border: 2px solid var(--gold);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  animation: fadeUp 1s ease 0.4s both;
}

.hero-cta:hover {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold-light);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   GOLD DIVIDER BAR
══════════════════════════════════════════ */
.gold-bar {
  background: var(--dark-navy);
  padding: 14px 0;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

.gold-bar span {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════
   CATEGORY BOXES
══════════════════════════════════════════ */
.categories-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 40px;
}

.categories-section .section-eyebrow {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 32px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-box {
  background: var(--dark-navy);
  border: 1px solid var(--gold);
  display: block;
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}

.cat-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(200,136,42,0.25);
}

.cat-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-box.destinations .cat-bg { background: linear-gradient(135deg, #0D2B3A 0%, #1a4060 100%); }
.cat-box.blog         .cat-bg { background: linear-gradient(135deg, #1a2D0D 0%, #2D5A1B 100%); }
.cat-box.about        .cat-bg { background: linear-gradient(135deg, #2D1A0D 0%, #6B3010 100%); }
.cat-box.resources    .cat-bg { background: linear-gradient(135deg, #0D1A2D 0%, #1C3555 100%); }
.cat-box.shop         .cat-bg { background: linear-gradient(135deg, #2D150D 0%, #6B1515 100%); }
.cat-box.contact      .cat-bg { background: linear-gradient(135deg, #1A1A0D 0%, #3A3A10 100%); }

.cat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
}

.cat-icon { font-size: 48px; margin-bottom: 8px; }

.cat-label {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold-light);
  text-transform: uppercase;
  text-align: center;
}

.cat-desc {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.5px;
  margin-top: 4px;
  text-align: center;
}

/* ══════════════════════════════════════════
   LATEST POSTS
══════════════════════════════════════════ */
.latest-posts-section {
  background: #fff;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  padding: 56px 24px;
}

.latest-posts-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 8px;
}

.section-sub {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Individual post cards */
.post-card {
  border: 1px solid #e8e0d0;
  background: var(--cream);
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
  box-shadow: 0 8px 32px rgba(200,136,42,0.15);
  transform: translateY(-3px);
}

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

.post-card .post-thumbnail-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--dark-navy) 0%, #1C3040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--gold);
}

.post-card-body { padding: 20px; }

.post-category {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}

.post-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark-navy);
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-title a { color: var(--dark-navy); }
.post-title a:hover { color: var(--gold); }

.post-excerpt {
  font-family: 'Lato', sans-serif;
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 14px;
}

.post-meta {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: #999;
  border-top: 1px solid #e8e0d0;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
}

/* ══════════════════════════════════════════
   EMAIL OPT-IN
══════════════════════════════════════════ */
.optin-section {
  background: var(--dark-navy);
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.optin-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 40px,
    rgba(200,136,42,0.03) 40px,
    rgba(200,136,42,0.03) 41px
  );
}

.optin-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.optin-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.optin-inner h3 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.optin-perks {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.perk {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: var(--gold-light);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.perk::before { content: '✦'; color: var(--gold); font-size: 10px; }

.optin-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--gold);
}

.optin-form input[type="email"] {
  flex: 1;
  padding: 15px 18px;
  background: rgba(255,255,255,0.06);
  border: none;
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 14px;
  outline: none;
}

.optin-form input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }

.optin-form button {
  background: var(--gold);
  color: var(--dark-navy);
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 15px 24px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.optin-form button:hover { background: var(--gold-light); }

.optin-disclaimer {
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  margin-top: 12px;
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
#site-footer {
  background: #080E14;
  border-top: 3px solid var(--gold);
  padding: 48px 24px 28px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img { height: 90px; margin-bottom: 14px; }

.footer-brand p {
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.45);
  font-family: 'Lato', sans-serif;
  font-size: 13px;
  margin-bottom: 8px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(200,136,42,0.2);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom p {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

.footer-bottom a {
  color: var(--gold);
  font-size: 12px;
  font-family: 'Lato', sans-serif;
}

.social-links { display: flex; gap: 14px; }

.social-links a {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(200,136,42,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.social-links a:hover {
  border-color: var(--gold);
  background: rgba(200,136,42,0.1);
}

/* ══════════════════════════════════════════
   SINGLE POST / PAGE
══════════════════════════════════════════ */
.page-hero {
  background: var(--dark-navy);
  padding: 80px 24px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 12px;
}

.page-hero .breadcrumb {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.content-wrap {
  max-width: 820px;
  margin: 60px auto;
  padding: 0 24px;
}

.content-wrap h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--dark-navy);
  margin: 40px 0 16px;
}

.content-wrap h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark-navy);
  margin: 30px 0 12px;
}

.content-wrap p {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-mid);
  margin-bottom: 20px;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .cat-grid       { grid-template-columns: repeat(2, 1fr); }
  .posts-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  #primary-navigation { display: none; }
  #primary-navigation.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--dark-navy);
    border-top: 2px solid var(--gold);
    padding: 16px 0;
    z-index: 999;
  }
  #primary-navigation.is-open > li > a { padding: 12px 24px; }
  .sub-menu { position: static; border: none; border-top: 1px solid rgba(200,136,42,0.2); }
  .menu-toggle { display: block; }
  .header-inner { position: relative; }
  .cat-grid     { grid-template-columns: repeat(2, 1fr); }
  .posts-grid   { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .optin-perks  { flex-direction: column; align-items: center; }
}
