/*
Theme Name: Travel with Husain
Theme URI: https://travelwithhusain.com
Author: Global Journeys
Author URI: https://globaljourneys.in
Description: A personal travel journal theme for Husain Tinwala. Editorial luxury aesthetic with Cormorant Garamond typography.
Version: 1.0
License: GNU General Public License v2 or later
Tags: blog, travel, minimal, editorial
Text Domain: travel-with-husain
*/

/* ─── RESET & BASE ─────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:      #f5f0e8;
  --parchment:  #ede8de;
  --ink:        #1c1a16;
  --ink-light:  #3d3a34;
  --warm-grey:  #8c8880;
  --gold:       #b8975a;
  --gold-light: #d4b47a;
  --rust:       #8b4a2b;
  --border:     rgba(28,26,22,0.12);
  --nav-h:      72px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 21px;
  line-height: 1.75;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── NAV ──────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  transition: background 0.4s, box-shadow 0.4s;
}

#site-header.scrolled {
  background: rgba(245,240,232,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}

.site-branding a {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 26px;
  color: #fff;
  letter-spacing: 0.04em;
  transition: color 0.3s;
}

#site-header.scrolled .site-branding a { color: var(--ink); }

#primary-navigation ul {
  display: flex;
  gap: 80px;
  list-style: none;
}

@media (max-width: 960px) {
  #primary-navigation ul { gap: 20px; }
}

#primary-navigation a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  transition: color 0.3s;
}

#site-header.scrolled #primary-navigation a { color: var(--ink-light); }
#primary-navigation a:hover { color: var(--ink) !important; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: #fff;
  transition: background 0.3s;
}
#site-header.scrolled .nav-toggle span { background: var(--ink); }

/* ─── HERO ─────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  animation: heroZoom 14s ease-out forwards;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10,9,7,0.1) 0%,
    rgba(10,9,7,0.0) 25%,
    rgba(10,9,7,0.55) 70%,
    rgba(10,9,7,0.85) 100%
  );
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.0); }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 52px 72px;
  max-width: 820px;
  animation: heroFadeUp 1.1s 0.2s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.hero-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(60px, 9vw, 112px);
  font-weight: 400;
  line-height: 0.9;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}

.hero-title em { font-style: italic; }

.hero-sub {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 22px;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  max-width: 500px;
  margin-bottom: 38px;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.scroll-line {
  width: 48px;
  height: 1px;
  background: rgba(255,255,255,0.35);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,100% { width:48px; opacity:0.4; }
  50%      { width:66px; opacity:0.8; }
}

/* ─── INTRO ────────────────────────────────── */
#intro {
  max-width: 800px;
  margin: 0 auto;
  padding: 96px 40px;
  text-align: center;
}

.intro-rule {
  width: 44px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 44px;
}

#intro p {
  font-size: 24px;
  line-height: 1.8;
  color: var(--ink-light);
  font-style: italic;
}

#intro p strong {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
}

.intro-byline {
  margin-top: 32px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-grey);
}

/* ─── SECTION UTILITY ──────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 52px;
}

.section-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--warm-grey);
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── LATEST STORIES ───────────────────────── */
#latest-stories {
  padding: 80px 52px;
  border-top: 1px solid var(--border);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.story-card {
  cursor: pointer;
  transition: opacity 0.3s;
}

.story-card:hover { opacity: 0.75; }

.story-img {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 20px;
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: saturate(0.88) brightness(0.95);
}

.story-card:hover .story-img img { transform: scale(1.05); }

.story-meta {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 10px;
}

.story-title {
  font-family: 'Cormorant', serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.story-excerpt {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-light);
  font-style: italic;
}

/* ─── FEATURED ─────────────────────────────── */
#featured {
  padding: 100px 52px;
  background: var(--parchment);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}

.featured-img {
  position: relative;
}

.featured-img::after {
  content: '';
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 78%;
  height: 78%;
  border: 1px solid var(--gold);
  z-index: 0;
  pointer-events: none;
}

.featured-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.95);
}

.featured-tag {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  border-bottom: 1px solid var(--rust);
  padding-bottom: 2px;
  margin-bottom: 26px;
}

.featured-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.featured-title em { font-style: italic; }

.featured-body {
  font-size: 18px;
  line-height: 1.85;
  color: var(--ink-light);
  margin-bottom: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  margin-top: 20px;
  transition: color 0.3s, border-color 0.3s;
}

.read-more:hover { color: var(--rust); border-color: var(--rust); }

/* ─── PHILOSOPHY ───────────────────────────── */
#philosophy {
  padding: 110px 52px;
  border-bottom: 1px solid var(--border);
}

.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  max-width: 1140px;
  margin: 0 auto;
}

.philosophy-num {
  font-family: 'Cormorant', serif;
  font-size: 110px;
  font-weight: 400;
  color: var(--parchment);
  line-height: 1;
  letter-spacing: -0.04em;
}

.philosophy-label {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-top: -8px;
}

.philosophy-heading {
  font-family: 'Cormorant', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 28px;
  letter-spacing: -0.015em;
}

.philosophy-heading em { font-style: italic; }

.philosophy-body {
  font-size: 18px;
  line-height: 1.88;
  color: var(--ink-light);
}

.philosophy-body p + p { margin-top: 18px; }

/* ─── TENETS ───────────────────────────────── */
#tenets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tenet {
  background: var(--cream);
  padding: 52px 44px;
}

.tenet-num {
  font-family: 'Cormorant', serif;
  font-size: 14px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.tenet-title {
  font-family: 'Cormorant', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.2;
}

.tenet-body {
  font-size: 17px;
  line-height: 1.7;
  color: var(--warm-grey);
  font-style: italic;
}

/* ─── NEWSLETTER ───────────────────────────── */
#newsletter {
  padding: 100px 52px;
  background: var(--ink);
  text-align: center;
}

.newsletter-rule {
  width: 1px;
  height: 56px;
  background: var(--gold);
  margin: 0 auto 36px;
}

.newsletter-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.newsletter-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.newsletter-title em { font-style: italic; }

.newsletter-sub {
  font-size: 19px;
  font-style: italic;
  color: rgba(245,240,232,0.58);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  max-width: 460px;
  margin: 0 auto;
  border: 1px solid rgba(245,240,232,0.18);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 15px 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-style: italic;
  color: var(--cream);
}

.newsletter-form input::placeholder { color: rgba(245,240,232,0.3); }

.newsletter-form button {
  background: var(--gold);
  border: none;
  padding: 15px 26px;
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
}

.newsletter-form button:hover { background: var(--gold-light); }

.newsletter-note {
  margin-top: 18px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: rgba(245,240,232,0.28);
  letter-spacing: 0.05em;
}

/* ─── FOOTER ───────────────────────────────── */
#site-footer {
  padding: 48px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--ink);
}

.footer-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

.footer-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  transition: color 0.3s;
}

.footer-nav a:hover { color: var(--ink); }

.footer-copy {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: var(--warm-grey);
}

/* ─── FADE IN ──────────────────────────────── */
/* Sections always visible — only story cards animate */
.fade-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.story-card.fade-in {
  opacity: 0;
  transform: translateY(18px);
}
.story-card.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── ORNAMENT ─────────────────────────────── */
.ornament {
  text-align: center;
  color: var(--gold);
  letter-spacing: 0.3em;
  padding: 36px 0;
  opacity: 0.5;
  font-size: 18px;
}

/* ─── RESPONSIVE ───────────────────────────── */
@media (max-width: 960px) {
  #site-header { padding: 0 24px; }
  .nav-toggle { display: flex; }

  #primary-navigation {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--cream);
    padding: 24px 24px 32px;
    border-bottom: 1px solid var(--border);
  }

  #primary-navigation.open { display: block; }
  #primary-navigation ul { flex-direction: column; gap: 20px; }
  #primary-navigation a { color: var(--ink-light) !important; font-size: 13px; }

  .hero-content { padding: 0 24px 52px; }
  .hero-title { font-size: clamp(52px, 14vw, 80px); }

  #intro { padding: 72px 24px; }
  #intro p { font-size: 21px; }

  #latest-stories { padding: 64px 24px; }
  .stories-grid { grid-template-columns: 1fr; gap: 48px; }

  #featured { padding: 64px 24px; }
  .featured-inner { grid-template-columns: 1fr; gap: 40px; }
  .featured-img::after { display: none; }

  #philosophy { padding: 72px 24px; }
  .philosophy-inner { grid-template-columns: 1fr; gap: 24px; }
  .philosophy-num { font-size: 72px; }

  #tenets { grid-template-columns: 1fr; }

  #newsletter { padding: 72px 24px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { border-bottom: 1px solid rgba(245,240,232,0.18); }

  #site-footer { flex-direction: column; gap: 24px; text-align: center; padding: 40px 24px; }
  .footer-nav ul { flex-wrap: wrap; justify-content: center; }
}


/* ─── INNER PAGE NAV (always dark) ──────────────── */
#site-header.inner-page {
  background: rgba(245,240,232,0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--border);
}

#site-header.inner-page .site-branding a { color: var(--ink); }
#site-header.inner-page #primary-navigation a { color: var(--ink-light); }
#site-header.inner-page .nav-toggle span { background: var(--ink); }

/* ─── PLAN A TRIP CTA ────────────────────────────── */
.nav-cta {
  font-family: 'Jost', sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  background: var(--gold) !important;
  color: var(--ink) !important;
  padding: 8px 16px !important;
  text-transform: uppercase !important;
  transition: background 0.3s !important;
}
.nav-cta:hover { background: var(--gold-light) !important; color: var(--ink) !important; }

/* ─── FOOTER REDESIGN ────────────────────────────── */
#site-footer {
  padding: 64px 52px 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  border-top: 1px solid var(--border);
  align-items: start;
}

.footer-brand {}

.footer-logo {
  font-family: 'Cormorant', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 15px;
  font-style: italic;
  color: var(--warm-grey);
  line-height: 1.5;
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
  list-style: none;
  align-items: flex-end;
}

.footer-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-grey);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-nav a:hover { color: var(--ink); }

.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-copy {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  color: var(--warm-grey);
  letter-spacing: 0.05em;
}

/* ─── STORY CARD IMPROVEMENTS ────────────────────── */
.story-card {
  cursor: pointer;
  transition: opacity 0.3s;
  display: flex;
  flex-direction: column;
}

.story-card a {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
}

.story-img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--parchment);
}

.story-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: saturate(0.88) brightness(0.95);
}

.story-card:hover .story-img img { transform: scale(1.05); }

.story-meta {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-grey);
  margin-bottom: 12px;
}

.story-title {
  font-family: 'Cormorant', serif;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  flex: 1;
}

.story-excerpt {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-light);
  font-style: italic;
  margin-bottom: 20px;
}

.story-read-more {
  font-family: 'Jost', sans-serif;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  display: inline-block;
  transition: color 0.3s;
}

/* ─── SECTION SPACING FIX ────────────────────────── */
#latest-stories {
  padding: 88px 52px;
  border-top: 1px solid var(--border);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px;
}

/* ─── MOBILE FOOTER FIX ──────────────────────────── */
@media (max-width: 960px) {
  #site-footer {
    grid-template-columns: 1fr;
    padding: 48px 24px 32px;
    gap: 32px;
  }
  .footer-nav ul { align-items: flex-start; }
  .footer-bottom { text-align: center; }
  .stories-grid { grid-template-columns: 1fr; gap: 52px; }
  #latest-stories { padding: 64px 24px; }
}


/* ─── POST CONTENT IMAGES — CONSISTENT FULL WIDTH ── */
.entry-content img,
.entry-content figure,
.entry-content .wp-block-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 40px 0 !important;
  object-fit: cover !important;
}

.entry-content img {
  /* No forced aspect ratio - respect original proportions */
}

.entry-content figure img {
  width: 100% !important;
  height: auto !important;
}

.entry-content figure {
  margin: 40px 0 !important;
}

.entry-content figcaption {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--warm-grey);
  text-align: center;
  margin-top: 10px;
  font-style: italic;
}

/* Remove TOC box styling that creates blank space */
.toc-box {
  display: none !important;
}

/* Fix any inline width attributes on images */
.entry-content img[width],
.entry-content img[style] {
  width: 100% !important;
  height: auto !important;
}
