/*
 Theme Name: BackpackerChef
 Theme URI:  https://backpackerchef.com
 Description: Custom theme for BackpackerChef.com
 Author:      BackpackerChef
 Author URI:  https://backpackerchef.com
 Version:     1.0.0
 Text Domain: backpackerchef
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700&family=Lora:ital,wght@0,400;0,500;1,400&display=swap');

/* ── Reset / Base ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Lora', Georgia, serif; color: #A8B4C4; background-color: #0F2544; }
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', Georgia, serif; color: #F0EDE8; }
a { color: #F0EDE8; }
a:hover { color: #D4A853; }
img { max-width: 100%; height: auto; }

/* ── Header / Nav ── */
#bc-header {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 999;
  background: transparent; padding: 12px 40px; box-sizing: border-box;
}
.bc-nav-inner {
  display: flex; align-items: center;
}
.bc-nav-spacer { flex: 1; }
.bc-nav-logo {
  font-family: 'Playfair Display', Georgia, serif; font-size: 20px;
  font-weight: 700; color: #F0EDE8; text-decoration: none; letter-spacing: 0.05em;
  flex: 1; text-align: center;
}
.bc-nav-logo:hover { color: #D4A853; }
.bc-nav-menu { flex: 1; display: flex; align-items: center; justify-content: flex-end; }
.bc-nav-menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 32px; }
.bc-nav-menu ul li { list-style: none; }
.bc-nav-list {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 32px;
}
.bc-nav-list li a {
  font-family: 'Lora', Georgia, serif; font-size: 14px; color: #F0EDE8;
  text-decoration: none; letter-spacing: 0.06em; transition: color 0.2s;
}
.bc-nav-list li a:hover { color: #D4A853; }

/* ── Homepage — no padding, hero fills screen ── */
.home #bc-main, .home .bc-page-content { padding: 0; margin: 0; }

/* ── Hero ── */
.bc-hero {
  background-image: url('https://backpackerchef.com/wp-content/uploads/2026/04/20260210_073957-scaled.jpg');
  background-size: cover; background-position: center 40%; background-repeat: no-repeat;
  height: 100vh; margin: 0; padding: 0 40px; position: relative;
  display: flex; align-items: center; justify-content: center; width: 100%;
}
.bc-hero-inner {
  max-width: 800px; width: 100%; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 0 40px;
}
.bc-hero-label {
  font-family: 'Lora', Georgia, serif; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #D4A853; display: block; margin-bottom: 20px;
}
.bc-hero-heading {
  font-family: 'Playfair Display', Georgia, serif; font-size: clamp(44px, 6vw, 80px);
  font-weight: 900; line-height: 1.05; color: #F0EDE8; margin-bottom: 24px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.bc-hero-heading em { color: #D4A853; font-style: italic; text-shadow: 0 2px 20px rgba(0,0,0,1), 0 0 40px rgba(0,0,0,0.9); }
.bc-hero p { margin: 0; padding: 0; }
.bc-hero-sub {
  font-family: 'Lora', Georgia, serif; font-size: 17px; line-height: 1.75;
  color: rgba(240,237,232,0.85); margin-bottom: 80px; max-width: 520px; text-align: center;
}
.bc-cta {
  display: inline-block; background: transparent; color: #F0EDE8;
  font-family: 'Lora', Georgia, serif; font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 14px 32px; text-decoration: none;
  border: 1px solid #D4A853; transition: background 0.25s, color 0.25s;
}
.bc-cta:hover { background: #D4A853; color: #0F2544; }
.bc-stats { display: none; }

/* ── Section header ── */
.bc-section-head { display: flex; align-items: center; gap: 20px; margin-bottom: 44px; }
.bc-section-title {
  font-family: 'Playfair Display', Georgia, serif; font-size: 28px;
  font-weight: 700; color: #F0EDE8; white-space: nowrap;
}
.bc-section-rule { flex: 1; height: 1px; background: #1E3A5F; }
.bc-section-link {
  font-family: 'Lora', Georgia, serif; font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; color: #D4A853; white-space: nowrap; text-decoration: none;
}
.bc-section-link:hover { color: #F0EDE8; }

/* ── Trips section ── */
.bc-trips-wrap { padding: 80px 40px; background: #0F2544; margin-top: 0; }
.bc-trips-inner { max-width: 1100px; margin: 0 auto; }
.bc-trips-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: #1E3A5F;
}

/* ── Trip cards ── */
.bc-card {
  position: relative; background: #162E52; padding: 36px 28px 32px;
  overflow: hidden; display: block; transition: background 0.25s ease;
}
.bc-card:hover { background: #1C3860; }
.bc-card:hover .bc-card-arrow { color: #D4A853; transform: translateX(5px); }
.bc-card-num {
  position: absolute; top: -14px; right: 10px;
  font-family: 'Playfair Display', Georgia, serif; font-size: 110px;
  font-weight: 900; color: #F0EDE8; opacity: 0.04; line-height: 1;
  pointer-events: none; user-select: none;
}
.bc-card-tag {
  font-family: 'Lora', Georgia, serif; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #3B7DD8; display: block; margin-bottom: 14px;
}
.bc-card-title {
  font-family: 'Playfair Display', Georgia, serif; font-size: 22px;
  font-weight: 700; color: #F0EDE8; line-height: 1.2; margin-bottom: 12px;
}
.bc-card-desc {
  font-family: 'Lora', Georgia, serif; font-size: 14px;
  line-height: 1.75; color: #A8B4C4; margin-bottom: 24px;
}
.bc-card-arrow {
  font-size: 18px; color: #F0EDE8; display: inline-block;
  transition: color 0.2s, transform 0.2s;
}

/* ── About section ── */
.bc-about {
  background-color: #162E52; padding: 80px 40px;
  border-top: 1px solid #1E3A5F; border-bottom: 1px solid #1E3A5F;
}
.bc-about-inner {
  max-width: 1100px; margin: 0 auto; display: grid;
  grid-template-columns: 5fr 7fr; gap: 64px; align-items: center;
}
.bc-about-label {
  font-family: 'Lora', Georgia, serif; font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #D4A853; display: block; margin-bottom: 20px;
}
.bc-about-heading {
  font-family: 'Playfair Display', Georgia, serif; font-size: clamp(28px, 3vw, 42px);
  font-weight: 700; color: #F0EDE8; line-height: 1.2;
}
.bc-about-text {
  font-family: 'Lora', Georgia, serif; font-size: 17px;
  line-height: 1.85; color: #A8B4C4; margin-bottom: 32px;
}
.bc-about-cta {
  display: inline-block; color: #F0EDE8; font-family: 'Lora', Georgia, serif;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  border-bottom: 2px solid #D4A853; padding-bottom: 4px; text-decoration: none;
  transition: color 0.2s;
}
.bc-about-cta:hover { color: #D4A853; }

/* ── Footer ── */
#bc-footer {
  background-color: #0A1B35; color: #A8B4C4;
  border-top: 1px solid #1E3A5F; padding: 32px 40px;
}
#bc-footer a { color: #D4A853; }
#bc-footer a:hover { color: #F0EDE8; }
.bc-footer-inner {
  max-width: 1100px; margin: 0 auto; display: flex;
  align-items: center; justify-content: space-between;
}
.bc-footer-copy {
  font-family: 'Lora', Georgia, serif; font-size: 13px;
  letter-spacing: 0.08em; margin: 0;
}

/* ── Non-home nav: solid background so it doesn't overlap content ── */
body:not(.home) #bc-header {
  position: relative;
  background-color: #0A1B35;
  border-bottom: 1px solid #1E3A5F;
}

/* ── Journal header ── */
.bc-journal-header {
  background: #0A1B35; padding: 18px 40px 16px;
  text-align: center; border-bottom: 1px solid #1E3A5F;
  position: relative; overflow: hidden;
}
.bc-journal-header::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    90deg, transparent, transparent 120px,
    rgba(30,58,95,0.25) 120px, rgba(30,58,95,0.25) 121px
  );
  pointer-events: none;
}
.bc-journal-eyebrow {
  font-family: 'Lora', Georgia, serif; font-size: 9px;
  letter-spacing: 0.28em; text-transform: uppercase; color: #D4A853;
  display: block; margin-bottom: 10px; position: relative;
}
.bc-journal-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(20px, 2.8vw, 34px); font-weight: 900;
  color: #F0EDE8; margin: 0 0 8px 0; line-height: 1.1; position: relative;
}
.bc-journal-title em { color: #D4A853; font-style: italic; }
.bc-journal-sub {
  font-family: 'Lora', Georgia, serif; font-size: 13px;
  color: rgba(168,180,196,0.75); margin: 0; letter-spacing: 0.05em; position: relative;
}
.bc-journal-divider {
  display: flex; align-items: center; gap: 16px;
  max-width: 160px; margin: 10px auto 0; position: relative;
}
.bc-journal-divider::before,
.bc-journal-divider::after { content: ''; flex: 1; height: 1px; background: #1E3A5F; }
.bc-journal-divider span {
  font-size: 14px; color: #D4A853; line-height: 1;
}

/* ── Featured post ── */
.bc-featured-wrap {
  max-width: 1100px; margin: 0 auto; padding: 28px 40px 0;
}
.bc-featured-eyebrow {
  font-family: 'Lora', Georgia, serif; font-size: 10px; letter-spacing: 0.3em;
  text-transform: uppercase; color: #D4A853; margin-bottom: 20px;
  display: flex; align-items: center; gap: 14px;
}
.bc-featured-eyebrow::after { content: ''; flex: 0 0 48px; height: 1px; background: #D4A853; }
.bc-featured-card {
  display: grid; grid-template-columns: 1fr 1fr;
  background: #162E52; border: 1px solid #1E3A5F; overflow: hidden;
}
.bc-featured-card-no-img { grid-template-columns: 1fr; }
.bc-featured-img-link {
  display: block; overflow: hidden; height: 320px;
}
.bc-featured-img-link img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.bc-featured-card:hover .bc-featured-img-link img { transform: scale(1.04); }
.bc-featured-body {
  padding: 28px 36px; display: flex; flex-direction: column; justify-content: center;
}
.bc-featured-card-no-img .bc-featured-body { padding: 36px 40px; }
.bc-featured-cat {
  font-family: 'Lora', Georgia, serif; font-size: 10px; letter-spacing: 0.22em;
  text-transform: uppercase; color: #3B7DD8; margin-bottom: 18px; display: block;
}
.bc-featured-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 700;
  color: #F0EDE8; line-height: 1.25; margin: 0 0 14px 0;
}
.bc-featured-body h2 a { color: #F0EDE8; text-decoration: none; transition: color 0.2s; }
.bc-featured-body h2 a:hover { color: #D4A853; }
.bc-featured-body p {
  font-family: 'Lora', Georgia, serif; font-size: 13px;
  line-height: 1.75; color: #A8B4C4; margin: 0 0 20px 0;
}
.bc-featured-meta {
  font-family: 'Lora', Georgia, serif; font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(168,180,196,0.55);
  margin-bottom: 24px; display: block;
}

/* ── More posts grid ── */
.bc-posts-section {
  max-width: 1100px; margin: 0 auto; padding: 56px 40px 80px;
}
.bc-posts-divider {
  display: flex; align-items: center; gap: 20px; margin-bottom: 40px;
}
.bc-posts-divider span {
  font-family: 'Lora', Georgia, serif; font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: #A8B4C4; white-space: nowrap;
}
.bc-posts-divider::before,
.bc-posts-divider::after { content: ''; flex: 1; height: 1px; background: #1E3A5F; }
.bc-posts-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: #1E3A5F;
}
.bc-grid-card {
  background: #0F2544; overflow: hidden;
  display: flex; flex-direction: column; transition: background 0.25s;
}
.bc-grid-card:hover { background: #162E52; }
.bc-grid-img {
  display: block; overflow: hidden; height: 210px; flex-shrink: 0;
}
.bc-grid-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s ease;
}
.bc-grid-card:hover .bc-grid-img img { transform: scale(1.06); }
.bc-grid-img-placeholder {
  height: 210px; background: #162E52; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.bc-grid-img-placeholder span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 48px; color: rgba(240,237,232,0.06); font-weight: 900;
}
.bc-grid-body { padding: 28px 28px 32px; flex: 1; display: flex; flex-direction: column; }
.bc-grid-cat {
  font-family: 'Lora', Georgia, serif; font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: #3B7DD8; margin-bottom: 10px; display: block;
}
.bc-grid-body h2 {
  font-family: 'Playfair Display', Georgia, serif; font-size: 19px; font-weight: 700;
  color: #F0EDE8; line-height: 1.3; margin: 0 0 12px 0;
}
.bc-grid-body h2 a { color: #F0EDE8; text-decoration: none; transition: color 0.2s; }
.bc-grid-body h2 a:hover { color: #D4A853; }
.bc-grid-excerpt {
  font-family: 'Lora', Georgia, serif; font-size: 13px;
  line-height: 1.75; color: #A8B4C4; margin: 0 0 20px 0; flex: 1;
}
.bc-grid-meta {
  font-family: 'Lora', Georgia, serif; font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(168,180,196,0.45); margin-top: auto;
}

/* ── Post meta (date / category — used in single.php) ── */
.bc-post-meta {
  font-family: 'Lora', Georgia, serif; font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #D4A853; margin-bottom: 14px; display: block;
}

/* ── Single post: hero with image ── */
.bc-single-hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: flex-end; overflow: hidden;
}
.bc-single-hero img.bc-hero-img {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.bc-single-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,27,53,0.97) 0%, rgba(10,27,53,0.4) 55%, transparent 100%);
}
.bc-single-hero-content {
  position: relative; max-width: 800px;
  margin: 0 auto; padding: 0 40px 56px; width: 100%;
}

/* ── Single post: no featured image fallback ── */
.bc-single-no-hero {
  background: #0A1B35; padding: 56px 40px;
  border-bottom: 1px solid #1E3A5F;
}
.bc-single-no-hero .bc-single-hero-content {
  padding: 0; max-width: 800px; margin: 0 auto;
}

/* ── Single post title & body ── */
.bc-post-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(28px, 4vw, 52px); font-weight: 700;
  color: #F0EDE8; line-height: 1.15; margin: 0;
}
.bc-single-body { max-width: 720px; margin: 0 auto; padding: 56px 40px 80px; }
.bc-post-content {
  font-family: 'Lora', Georgia, serif; font-size: 17px; line-height: 1.9; color: #A8B4C4;
}
.bc-post-content h2, .bc-post-content h3 {
  font-family: 'Playfair Display', Georgia, serif; color: #F0EDE8;
  margin-top: 48px; margin-bottom: 16px;
}
.bc-post-content p { margin-bottom: 24px; }
.bc-post-content a { color: #D4A853; }
.bc-post-content a:hover { color: #F0EDE8; }
.bc-post-content img { width: 100%; height: auto; margin: 32px 0; display: block; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .bc-about-inner { grid-template-columns: 1fr; gap: 48px; }
  .bc-trips-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .bc-featured-card { grid-template-columns: 1fr; }
  .bc-featured-img-link { height: 300px; }
  .bc-featured-body { padding: 36px 32px; }
  .bc-posts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bc-nav-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
  .bc-nav-toggle span { display: block; width: 22px; height: 2px; background: #F0EDE8; }
  .bc-hero { padding: 0 20px; }
  .bc-trips-wrap, .bc-about { padding-left: 20px; padding-right: 20px; }
  .bc-trips-grid { grid-template-columns: 1fr; }
  .bc-nav-list { gap: 16px; }
  .bc-journal-header, .bc-featured-wrap, .bc-posts-section,
  .bc-single-body, .bc-single-no-hero { padding-left: 20px; padding-right: 20px; }
  .bc-single-hero-content { padding-left: 20px; padding-right: 20px; padding-bottom: 32px; }
  .bc-single-hero { min-height: 50vh; }
  .bc-featured-body { padding: 28px 20px 36px; }
  .bc-posts-grid { grid-template-columns: 1fr; }
}

.bc-nav-toggle { display: none; }
.bc-nav-menu > div { display: contents; }

body.home { overflow-x: hidden; }
.home .wp-block-group, .home .wp-block { margin: 0; padding: 0; }
.bc-wrap > p:empty { display: none; }
.bc-wrap > p { margin: 0; padding: 0; line-height: 0; font-size: 0; }
.bc-hero-sub { margin-bottom: 20px !important; }
