/*
Theme Name: The Voyage Editorial
Theme URI: https://thevoyage.blog
Author: The Voyage Studio
Author URI: https://thevoyage.blog
Description: A fast, editorial travel blog theme designed for thevoyage.blog featuring custom hero controls, destination category pills, reading-time badges, and responsive typography.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-voyage
*/

:root {
  --navy: #0f2c3f;
  --navy-light: #183f58;
  --terracotta: #c86d51;
  --gold: #d4a359;
  --sand: #faf8f5;
  --sand-dark: #efeae2;
  --ink: #1e242b;
  --muted: #5f6c7b;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 12px 32px rgba(15, 44, 63, 0.08);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--sand);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--sand-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.site-branding img {
  max-height: 52px;
  width: auto;
}

.primary-nav ul {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current-cat > a {
  color: var(--terracotta);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

/* Hero Banner */
.hero-section {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 80px 0;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 44, 63, 0.88) 0%, rgba(15, 44, 63, 0.48) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 660px;
}

.hero-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 14px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.3rem, 4.5vw, 3.6rem);
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero-subtitle {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 30px;
}

.btn-primary {
  display: inline-block;
  background: var(--terracotta);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: #b55b40;
  transform: translateY(-2px);
}

/* Category Pill Bar */
.category-strip {
  padding: 24px 0;
  border-bottom: 1px solid var(--sand-dark);
  background: var(--white);
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.category-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  transition: all 0.2s ease;
}

.category-pill:hover,
.category-pill.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Section Headers & Post Grid */
.section-block {
  padding: 64px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--navy);
  margin: 0;
}

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

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.card-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand-dark);
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .card-thumb img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
  margin-bottom: 10px;
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  line-height: 1.3;
  color: var(--navy);
  margin: 0 0 12px;
}

.card-title a:hover {
  color: var(--terracotta);
}

.card-excerpt {
  font-size: 0.94rem;
  color: var(--muted);
  margin: 0 0 20px;
  flex-grow: 1;
}

.card-footer {
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--sand-dark);
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
}

/* Newsletter Band */
.newsletter-band {
  background: var(--navy);
  color: var(--white);
  border-radius: 18px;
  padding: 52px 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 64px;
}

.newsletter-band h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  margin: 0 0 10px;
}

.newsletter-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border-radius: 999px;
  border: none;
  font-size: 0.95rem;
}

.newsletter-form button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

/* Single Article & Page View */
.article-header {
  max-width: 800px;
  margin: 56px auto 32px;
  text-align: center;
}

.article-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 12px 0 18px;
}

.article-featured-img {
  max-width: 980px;
  margin: 0 auto 42px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-content {
  max-width: 740px;
  margin: 0 auto 64px;
  font-size: 1.08rem;
  line-height: 1.85;
}

.article-content h2,
.article-content h3 {
  font-family: var(--font-serif);
  color: var(--navy);
  margin-top: 2.2rem;
}

.article-content img {
  border-radius: 10px;
  margin: 1.5rem 0;
}

/* Pagination */
.pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.pagination .page-numbers {
  padding: 10px 16px;
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--sand-dark);
  font-weight: 600;
}

.pagination .page-numbers.current {
  background: var(--navy);
  color: var(--white);
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 12px;
  display: block;
}

.footer-heading {
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.86rem;
}

/* Responsive */
@media (max-width: 960px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .newsletter-band {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--sand-dark);
    padding: 20px;
  }
  .primary-nav.is-open {
    display: block;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 14px;
  }
  .newsletter-form {
    flex-direction: column;
  }
}
