/*
Theme Name: Wanderwide v2
Theme URI: https://yoursite.com
Author: Your Name
Description: A fast, clean, Pinterest-optimized travel blog theme for national parks, road trips, and adventure travel. System fonts, full-width posts, Google Ads ready.
Version: 2.0
License: GNU General Public License v2 or later
Text Domain: wanderwide
*/

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  /* Colors */
  --c-bg:        #FAFAF8;
  --c-surface:   #F3F1ED;
  --c-border:    #E4E0D8;
  --c-text:      #1C1C1A;
  --c-muted:     #6B6560;
  --c-accent:    #B85C3A;
  --c-accent-dk: #8F3F22;
  --c-link:      #2563A8;

  /* System font stack — zero loading time */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif, "Apple Color Emoji";
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-mono:  "Courier New", Courier, monospace;

  /* Layout */
  --max-w:       1100px;
  --post-w:       740px;
  --gap:          1.5rem;
  --radius:       6px;

  /* Transitions */
  --t: 0.2s ease;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-link); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.5em; }
li { margin-bottom: .3em; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.875rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.375rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--c-accent);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.post-container {
  max-width: var(--post-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================================
   SKIP LINK (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  padding: .5rem 1rem;
  background: var(--c-accent);
  color: #fff;
  font-weight: 700;
  border-radius: var(--radius);
  z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(250,250,248,.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-border);
  height: 60px;
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  gap: 1rem;
}

/* Logo icon — small square/circle badge */
.site-logo img,
.site-logo .custom-logo-link img,
.site-logo .custom-logo,
header .custom-logo,
header .custom-logo-link img {
  height: 32px !important;
  width: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 4px;
}

.site-logo .custom-logo-link,
.site-logo a {
  display: flex !important;
  align-items: center !important;
  gap: .55rem !important;
  line-height: 1 !important;
  text-decoration: none !important;
}

/* Blog name text shown next to the icon */
.site-logo .custom-logo-link::after,
.site-logo a.has-custom-logo::after {
  content: attr(data-blogname);
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.02em;
  white-space: nowrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; }

.site-logo-text {
  font-size: 1rem;
  font-weight: 800;
  color: var(--c-text);
  letter-spacing: -.02em;
  white-space: nowrap;
  line-height: 1;
}
.site-logo:hover .site-logo-text { color: var(--c-accent); }

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: .125rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.primary-nav a {
  display: block;
  padding: .4rem .75rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--radius);
  transition: background var(--t), color var(--t);
}
.primary-nav a:hover {
  background: var(--c-surface);
  color: var(--c-accent);
  text-decoration: none;
}
.primary-nav a.current { color: var(--c-accent); }

/* ---- Dropdown — works with both custom class and WordPress default .sub-menu ---- */
.primary-nav li { position: relative; list-style: none; }

.primary-nav li:hover > a,
.primary-nav li.current-menu-item > a,
.primary-nav li.current-menu-parent > a {
  color: var(--c-accent);
}

/* Parent item with children — show arrow */
.primary-nav li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.primary-nav li.menu-item-has-children > a::after {
  content: '▾';
  font-size: .65rem;
  line-height: 1;
  transition: transform var(--t);
}
.primary-nav li.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

/* The dropdown panel — targets WordPress's .sub-menu class */
.primary-nav .sub-menu,
.primary-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 500;
  padding: .4rem 0;
  list-style: none;
  margin: 0;
}

/* Show on hover */
.primary-nav li.menu-item-has-children:hover > .sub-menu,
.primary-nav li.menu-item-has-children:hover > .dropdown-menu,
.primary-nav .has-dropdown:hover > .sub-menu,
.primary-nav .has-dropdown:hover > .dropdown-menu {
  display: block;
}

.primary-nav .sub-menu li,
.primary-nav .dropdown-menu li {
  position: static;
}

.primary-nav .sub-menu li a,
.primary-nav .dropdown-menu li a {
  display: block;
  padding: .55rem 1.1rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
  border-radius: 0;
  transition: background var(--t), color var(--t);
}
.primary-nav .sub-menu li a:hover,
.primary-nav .dropdown-menu li a:hover {
  background: var(--c-surface);
  color: var(--c-accent);
  text-decoration: none;
}

/* Old .has-dropdown references kept for fallback */
.primary-nav .has-dropdown { position: relative; }

/* ---- Mobile submenu (second level in drawer) ---- */
.mobile-nav .mobile-sub-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .75rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  cursor: pointer;
  font-family: var(--font-sans);
  text-align: left;
  border-radius: var(--radius);
}
.mobile-nav .mobile-sub-toggle::after {
  content: '▾';
  font-size: .7rem;
  transition: transform var(--t);
  flex-shrink: 0;
}
.mobile-nav .mobile-sub-toggle.open::after { transform: rotate(180deg); }

.mobile-submenu {
  display: none;
  flex-direction: column;
  background: var(--c-surface);
  border-radius: var(--radius);
  margin-bottom: .25rem;
  overflow: hidden;
}
.mobile-submenu.open { display: flex; }
.mobile-submenu a {
  padding: .65rem 1.5rem !important;
  font-size: .95rem !important;
  font-weight: 500 !important;
  border-bottom: 1px solid var(--c-border) !important;
  color: var(--c-muted) !important;
}
.mobile-submenu a:last-child { border-bottom: none !important; }

/* ---- Category photo grid ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .cat-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } }

.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  text-decoration: none;
}
.cat-card:hover { text-decoration: none; }

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
  display: block;
}
.cat-card:hover img { transform: scale(1.05); }

.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.65) 0%, rgba(0,0,0,.1) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: .9rem 1rem;
}
.cat-card-name {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
@media (max-width: 500px) { .cat-card-name { font-size: .85rem; } }

/* ---- National Parks subcategory grid (NP archive page) ---- */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 0 3rem;
}
@media (max-width: 700px) { .subcat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .subcat-grid { grid-template-columns: 1fr 1fr; gap: .6rem; } }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-radius: var(--radius);
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: var(--t);
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--c-bg);
  z-index: 190;
  padding: 1.5rem 1.25rem;
  flex-direction: column;
  gap: .25rem;
  overflow-y: auto;
  border-top: 1px solid var(--c-border);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: .75rem 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--c-border);
}
.mobile-nav a:hover { background: var(--c-surface); text-decoration: none; }

/* ============================================================
   GOOGLE ADS — HEADER LEADERBOARD
   ============================================================ */
.ad-leaderboard {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  text-align: center;
  padding: .5rem 1rem;
  font-size: .7rem;
  color: var(--c-muted);
  overflow: hidden;
}
/* The actual ad unit goes here via Google Ads snippet */

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.home-hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 3.5rem 1.25rem;
  text-align: center;
  position: relative;
}

/* Image version */
.home-hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 6rem 1.25rem;
  border-bottom: none;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Text colors with image */
.home-hero--image .eyebrow { color: rgba(255,255,255,.85); }
.home-hero--image h1 { color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.home-hero--image p  {
  color: #fff !important;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
  font-weight: 500;
}

/* Text colors without image */
.home-hero:not(.home-hero--image) .home-hero-content .eyebrow { display: block; margin-bottom: .6rem; }

.home-hero .eyebrow { display: block; margin-bottom: .6rem; }
.home-hero h1 { margin-bottom: .75rem; max-width: 22ch; margin-inline: auto; }
.home-hero p {
  color: var(--c-muted);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 0;
}

@media (max-width: 600px) {
  .home-hero--image { padding: 4rem 1.25rem; min-height: 340px; }
}

/* ============================================================
   POST CARD GRID
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: 2.5rem 0 3rem;
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
}

.post-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.post-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

/* Pinterest-ratio thumbnail on cards */
.card-thumb {
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--c-surface);
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.post-card:hover .card-thumb img { transform: scale(1.03); }

.card-body {
  padding: 1rem 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.card-cat {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  text-decoration: none;
}
.card-cat:hover { text-decoration: underline; }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--c-accent); text-decoration: none; }

.card-meta {
  font-size: .75rem;
  color: var(--c-muted);
  margin-top: auto;
  padding-top: .5rem;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 2px solid var(--c-border);
  padding-bottom: .75rem;
  margin-bottom: 1.75rem;
}
.section-head h2 { font-size: 1.1rem; font-weight: 700; }
.section-head a {
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-accent);
}

/* ============================================================
   HOMEPAGE SECTIONS
   ============================================================ */
.home-section { padding: 2.5rem 0; }
.home-section + .home-section { border-top: 1px solid var(--c-border); }

/* ============================================================
   SINGLE POST — PINTEREST-OPTIMIZED
   ============================================================ */

/* Featured pin image at top — tall 2:3 ratio */
.post-pin-wrap {
  background: var(--c-surface);
  display: flex;
  justify-content: center;
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid var(--c-border);
}

.post-pin-image {
  width: 100%;
  max-width: 500px; /* Pinterest pin max display width */
  aspect-ratio: 2 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
  position: relative;
}

.post-pin-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* On mobile, constrain pin height so it doesn't dominate */
@media (max-width: 600px) {
  .post-pin-image {
    max-width: 320px;
  }
}

/* Post header — sits below the pin */
.post-header {
  padding: 2rem 1.25rem 0;
  max-width: var(--post-w);
  margin: 0 auto;
}

.post-header .eyebrow {
  display: block;
  margin-bottom: .5rem;
}

.post-header h1 {
  margin-bottom: .75rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.25rem;
  font-size: .8rem;
  color: var(--c-muted);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--c-border);
}

/* Ad unit — below post header, above content */
.ad-in-content {
  max-width: var(--post-w);
  margin: 1.5rem auto;
  padding: 0 1.25rem;
  text-align: center;
  font-size: .7rem;
  color: var(--c-muted);
}

/* Post body */
.post-body {
  max-width: var(--post-w);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #2a2825;
}

.post-body > * + * { margin-top: 1.25em; }
.post-body p { margin-top: 0; margin-bottom: 1.4em; }

.post-body h2 { font-size: 1.4rem; margin-top: 2.25em; margin-bottom: .6em; }
.post-body h3 { font-size: 1.15rem; margin-top: 2em; margin-bottom: .5em; }

.post-body a { color: var(--c-link); }
.post-body a:hover { color: var(--c-accent-dk); }

.post-body blockquote {
  border-left: 3px solid var(--c-accent);
  padding: .5em 1.25em;
  margin: 1.75em 0;
  color: var(--c-muted);
  font-style: italic;
}

/* Images inside post body — also get Pinterest data attrs */
.post-body img {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
}

/* Tall pin images inside the body keep their ratio */
.post-body .pin-image {
  max-width: 500px;
  margin-inline: auto;
}

.post-body ul, .post-body ol { margin-bottom: 1.4em; }

/* Post tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: 1.5rem 1.25rem;
  border-top: 1px solid var(--c-border);
  max-width: var(--post-w);
  margin: 0 auto;
}
.post-tag {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: .3em .85em;
  border: 1px solid var(--c-border);
  border-radius: 100px;
  color: var(--c-muted);
  transition: background var(--t), color var(--t), border-color var(--t);
}
.post-tag:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  text-decoration: none;
}

/* Post navigation */
.post-nav {
  max-width: var(--post-w);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  border-top: 1px solid var(--c-border);
}
.post-nav a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-accent);
  max-width: 45%;
}
.post-nav .prev::before { content: '← '; }
.post-nav .next::after  { content: ' →'; }

/* ============================================================
   AD — BEFORE RELATED POSTS
   ============================================================ */
.ad-between {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem;
  text-align: center;
  font-size: .7rem;
  color: var(--c-muted);
}

/* ============================================================
   RELATED POSTS
   ============================================================ */
.related-section {
  padding: 2.5rem 0 3rem;
  background: var(--c-surface);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

@media (max-width: 700px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 460px) {
  .related-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ARCHIVE / CATEGORY
   ============================================================ */
.archive-head {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 2.5rem 1.25rem 2rem;
  text-align: center;
}
.archive-head .eyebrow { display: block; margin-bottom: .4rem; }
.archive-head h1 { margin-bottom: .4rem; }
.archive-head p { color: var(--c-muted); max-width: 50ch; margin-inline: auto; font-size: .95rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .35rem;
  padding: 1.5rem 0 2.5rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 .5rem;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-text);
  transition: background var(--t), border-color var(--t), color var(--t);
}
.page-numbers:hover { background: var(--c-surface); text-decoration: none; }
.page-numbers.current {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
  display: flex;
  gap: .5rem;
  max-width: 480px;
  margin: 1.5rem auto;
}
.search-form input[type="search"] {
  flex: 1;
  padding: .6rem .9rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  background: #fff;
  color: var(--c-text);
  outline: none;
}
.search-form input[type="search"]:focus { border-color: var(--c-accent); }
.search-form button {
  padding: .6rem 1.1rem;
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t);
}
.search-form button:hover { background: var(--c-accent-dk); }

/* ============================================================
   404 / NO RESULTS
   ============================================================ */
.no-results {
  padding: 4rem 1.25rem;
  text-align: center;
}
.no-results h1 { margin-bottom: 1rem; }
.no-results p { color: var(--c-muted); margin-bottom: 1.5rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-text);
  color: #ccc;
  padding: 2.5rem 1.25rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .site-logo-text {
  color: #fff;
  display: block;
  margin-bottom: .75rem;
}
.footer-brand p { font-size: .875rem; line-height: 1.65; }

.footer-col h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: .5rem; }
.footer-col a { font-size: .875rem; color: #ccc; }
.footer-col a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 1.25rem auto 0;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}

@media (max-width: 680px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — HEADER
   ============================================================ */
@media (max-width: 768px) {
  .primary-nav { display: none; }
  .nav-toggle   { display: flex; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .ad-leaderboard,
  .ad-in-content, .ad-between, .related-section,
  .post-nav, .post-tags { display: none; }
  body { font-size: 12pt; }
  .post-body { max-width: 100%; }
}

/* ============================================================
   EMAIL SIGNUP — SHARED FORM STYLES
   ============================================================ */
.signup-form {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: .7rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .9rem;
  background: #fff;
  color: var(--c-text);
  outline: none;
  transition: border-color var(--t);
}
.signup-form input[type="email"]:focus { border-color: var(--c-accent); }
.signup-form button {
  padding: .7rem 1.4rem;
  background: var(--c-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: .875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t);
}
.signup-form button:hover { background: var(--c-accent-dk); }
.signup-note {
  font-size: .75rem;
  color: var(--c-muted);
  margin-top: .6rem;
  text-align: center;
}

/* ============================================================
   POST EMAIL SIGNUP BOX (after content)
   ============================================================ */
.post-email-signup {
  max-width: var(--post-w);
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
}
.post-email-inner {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
}
.post-email-icon {
  font-size: 2rem;
  margin-bottom: .75rem;
  line-height: 1;
}
.post-email-inner h3 {
  font-size: 1.3rem;
  margin-bottom: .5rem;
}
.post-email-inner > p {
  color: var(--c-muted);
  font-size: .95rem;
  max-width: 42ch;
  margin: 0 auto;
}

/* ============================================================
   HOMEPAGE EMAIL BANNER
   ============================================================ */
.home-email-banner {
  background: var(--c-accent);
  padding: 3.5rem 1.25rem;
}
.home-email-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}
.home-email-text .eyebrow { color: rgba(255,255,255,.8); display: block; margin-bottom: .5rem; }
.home-email-text h2 { color: #fff; font-size: 1.6rem; margin-bottom: .75rem; }
.home-email-text p  { color: rgba(255,255,255,.85); font-size: .95rem; }

.signup-form--large input[type="email"] {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.signup-form--large input[type="email"]::placeholder { color: rgba(255,255,255,.7); }
.signup-form--large input[type="email"]:focus { border-color: #fff; }
.signup-form--large button {
  background: #fff !important;
  color: var(--c-accent) !important;
  font-weight: 700;
}
.signup-form--large button:hover {
  background: #f5f0e8 !important;
}
.home-email-banner .signup-note { color: rgba(255,255,255,.7); }

@media (max-width: 700px) {
  .home-email-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }
}

/* ============================================================
   EXIT INTENT POPUP
   ============================================================ */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.popup-overlay.visible {
  display: flex !important;
}

.popup-box {
  background: #fff;
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  animation: popupIn .25s ease;
}
@keyframes popupIn {
  from { opacity: 0; transform: scale(.95) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.popup-close {
  position: absolute;
  top: .75rem;
  right: .75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--c-muted);
  line-height: 1;
  padding: .25rem .4rem;
  border-radius: var(--radius);
  transition: background var(--t), color var(--t);
}
.popup-close:hover { background: var(--c-surface); color: var(--c-text); }

/* Circular photo */
.popup-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 3px solid var(--c-accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.popup-photo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--c-surface);
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--c-accent);
}

.popup-box h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.popup-box > p { color: var(--c-muted); font-size: .9rem; max-width: 32ch; margin: 0 auto; }

.popup-skip {
  display: inline-block;
  margin-top: 1rem;
  background: none;
  border: none;
  font-size: .78rem;
  color: var(--c-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  text-decoration: underline;
}
.popup-skip:hover { color: var(--c-text); }

@media (max-width: 480px) {
  .popup-box { padding: 2rem 1.25rem 1.5rem; }
}

/* ============================================================
   HEADER SEARCH BAR
   ============================================================ */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-search-input {
  width: 200px;
  padding: .45rem .75rem .45rem 1rem;
  padding-right: 2.2rem;
  border: 1.5px solid var(--c-border);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .82rem;
  background: var(--c-surface);
  color: var(--c-text);
  outline: none;
  transition: border-color var(--t), width var(--t), box-shadow var(--t);
  -webkit-appearance: none;
}

.header-search-input:focus {
  border-color: var(--c-accent);
  width: 260px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(184,92,58,.12);
}

.header-search-input::placeholder { color: var(--c-muted); }

/* Hide browser default search clear button */
.header-search-input::-webkit-search-decoration,
.header-search-input::-webkit-search-cancel-button { display: none; }

.header-search-btn {
  position: absolute;
  right: .5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-muted);
  display: flex;
  align-items: center;
  padding: .2rem;
  transition: color var(--t);
}
.header-search-btn:hover { color: var(--c-accent); }

/* Live search results dropdown */
.header-search-results {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  z-index: 500;
  max-height: 380px;
  overflow-y: auto;
}
.header-search-results.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--c-border);
  text-decoration: none;
  transition: background var(--t);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--c-surface); text-decoration: none; }

.search-result-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--c-border);
}

.search-result-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--c-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.search-result-info { flex: 1; min-width: 0; }

.search-result-title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-cat {
  font-size: .72rem;
  color: var(--c-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .15rem;
}

.search-result-excerpt {
  font-size: .78rem;
  color: var(--c-muted);
  margin-top: .15rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-no-results {
  padding: 1rem;
  font-size: .875rem;
  color: var(--c-muted);
  text-align: center;
}

.search-view-all {
  display: block;
  padding: .65rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--c-accent);
  text-align: center;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  transition: background var(--t);
}
.search-view-all:hover { background: var(--c-border); text-decoration: none; }

.search-loading {
  padding: 1rem;
  text-align: center;
  font-size: .875rem;
  color: var(--c-muted);
}

/* Hide desktop search on mobile */
@media (max-width: 768px) {
  .header-search { display: none; }
}

/* ============================================================
   MOBILE SEARCH (inside drawer)
   ============================================================ */
.mobile-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: .25rem;
  position: relative;
}

.mobile-search input[type="search"] {
  flex: 1;
  padding: .65rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: .9rem;
  background: #fff;
  color: var(--c-text);
  outline: none;
  -webkit-appearance: none;
}
.mobile-search input[type="search"]:focus { border-color: var(--c-accent); }
.mobile-search input[type="search"]::placeholder { color: var(--c-muted); }
.mobile-search input::-webkit-search-decoration,
.mobile-search input::-webkit-search-cancel-button { display: none; }

.mobile-search button {
  background: var(--c-accent);
  border: none;
  border-radius: 100px;
  padding: .65rem .85rem;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background var(--t);
  flex-shrink: 0;
}
.mobile-search button:hover { background: var(--c-accent-dk); }

/* ============================================================
   SEARCH RESULTS PAGE
   ============================================================ */
.search-results-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 2rem 1.25rem;
}
.search-results-header h1 { font-size: 1.4rem; }
.search-results-header p { color: var(--c-muted); font-size: .9rem; margin-top: .3rem; }

/* ============================================================
   ABOUT SECTION — responsive fix for larger image
   ============================================================ */
@media (max-width: 640px) {
  .home-section .about-grid {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .home-section .about-grid > div:first-child {
    width: 200px !important;
    height: 200px !important;
    margin: 0 auto;
  }
}

/* ============================================================
   GRAND CATEGORY GRID
   ============================================================ */
.grand-cat-section {
  padding: 3rem 0 0;
  background: var(--c-bg);
}

.grand-cat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.grand-cat-header .eyebrow { display: block; margin-bottom: .3rem; }
.grand-cat-header h2 { font-size: 1.75rem; }

/* Top row — 2 large equal cards */
.grand-cat-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  margin-bottom: .75rem;
}

/* Bottom row — 4 smaller cards */
.grand-cat-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 3rem;
}

/* Base card styles */
.grand-cat-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  text-decoration: none;
  background: var(--c-border);
}
.grand-cat-card:hover { text-decoration: none; }

.grand-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.grand-cat-card:hover img { transform: scale(1.05); }

.grand-cat-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--c-stone, #E8E0D0), var(--c-border));
}

/* Large card height */
.grand-cat-card--large {
  height: 380px;
}

/* Small card height */
.grand-cat-card--small {
  height: 220px;
}

/* Overlay gradient */
.grand-cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.72) 0%,
    rgba(0,0,0,.2) 50%,
    rgba(0,0,0,0) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  transition: background var(--t);
}
.grand-cat-card:hover .grand-cat-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.3) 60%,
    rgba(0,0,0,.05) 100%
  );
}

.grand-cat-label { width: 100%; }

.grand-cat-label h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: .4rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.4);
  line-height: 1.2;
}

.grand-cat-card--small .grand-cat-label h3 {
  font-size: 1.05rem;
}

.grand-cat-cta {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.8);
  transition: color var(--t), letter-spacing var(--t);
}
.grand-cat-card:hover .grand-cat-cta {
  color: #fff;
  letter-spacing: .1em;
}

/* Tablet */
@media (max-width: 900px) {
  .grand-cat-bottom {
    grid-template-columns: repeat(2, 1fr);
  }
  .grand-cat-card--large { height: 300px; }
  .grand-cat-card--small { height: 200px; }
}

/* Mobile */
@media (max-width: 560px) {
  .grand-cat-top {
    grid-template-columns: 1fr;
  }
  .grand-cat-bottom {
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
  }
  .grand-cat-card--large { height: 240px; }
  .grand-cat-card--small { height: 160px; }
  .grand-cat-label h3 { font-size: 1.1rem; }
  .grand-cat-card--small .grand-cat-label h3 { font-size: .9rem; }
  .grand-cat-overlay { padding: 1rem; }
}

/* ============================================================
   START HERE BLOCK
   ============================================================ */
.start-here-section {
  padding: 3.5rem 0;
  background: var(--c-bark, #1C1C1A);
}

.start-here-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.start-here-header-text .eyebrow { color: var(--c-accent); display: block; margin-bottom: .3rem; }
.start-here-header-text h2 { color: #fff; font-size: 1.75rem; margin-bottom: .4rem; }
.start-here-header-text p { color: rgba(255,255,255,.6); font-size: .9rem; }

.start-here-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.start-here-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  position: relative;
}
.start-here-card:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,.3);
  text-decoration: none;
}

.start-here-number {
  position: absolute;
  top: .75rem;
  left: .75rem;
  background: var(--c-accent);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.start-here-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(255,255,255,.05);
}
.start-here-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.start-here-card:hover .start-here-image img { transform: scale(1.04); }

.start-here-placeholder {
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,.05);
}

.start-here-body {
  padding: 1.1rem 1.25rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.start-here-cat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.start-here-body h3 {
  font-size: 1rem;
  color: #fff;
  line-height: 1.35;
  margin: 0;
}

.start-here-body p {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.start-here-read {
  font-size: .78rem;
  font-weight: 700;
  color: var(--c-accent);
  margin-top: .5rem;
  display: block;
  transition: letter-spacing var(--t);
}
.start-here-card:hover .start-here-read { letter-spacing: .04em; }

.start-here-tip {
  margin-top: 1.5rem;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
  text-align: center;
}

@media (max-width: 700px) {
  .start-here-grid { grid-template-columns: 1fr; }
  .start-here-section { padding: 2.5rem 0; }
}

/* ============================================================
   SOCIAL MEDIA BAR
   ============================================================ */
.social-bar {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem 1.25rem;
}

.social-bar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-bar-label {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.social-bar-links {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.social-bar-link {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--c-border);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-text);
  background: #fff;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t), transform var(--t);
}
.social-bar-link:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

@media (max-width: 560px) {
  .social-bar-inner { gap: 1rem; }
  .social-bar-link span { display: none; }
  .social-bar-link { padding: .5rem .75rem; }
}

/* Footer social icons */
.footer-social-icons {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #ccc;
  transition: background var(--t), color var(--t);
}
.footer-social-icon:hover {
  background: var(--c-accent);
  color: #fff;
}

/* Hide default page title on About page */
.page-template-page-about .entry-title,
.page-template-page-about h1.page-title,
.page-template-page-about .wp-block-post-title,
body.page-id-about .entry-title {
  display: none !important;
}
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.about-hero-image {
  overflow: hidden;
}
.about-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-hero-text {
  background: var(--c-surface);
  padding: 4rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-hero-text .eyebrow { display: block; margin-bottom: .5rem; }
.about-hero-text h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); margin-bottom: 1.25rem; }

.about-social {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.about-social-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--c-text);
  background: #fff;
  text-decoration: none;
  transition: background var(--t), border-color var(--t), color var(--t);
}
.about-social-link:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  text-decoration: none;
}

.about-content-wrap {
  padding: 3rem 0;
}

/* Quick facts strip */
.about-facts {
  background: var(--c-accent);
  padding: 2.5rem 1.25rem;
}

.about-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.about-fact-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: .4rem;
}

.about-fact-label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 800px) {
  .about-hero { grid-template-columns: 1fr; }
  .about-hero-image { height: 300px; }
  .about-hero-text { padding: 2.5rem 1.5rem; }
  .about-facts-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 480px) {
  .about-facts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   EQUAL 6-SQUARE CATEGORY GRID
   ============================================================ */
.grand-cat-equal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 3rem;
}

.grand-cat-equal-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  background: var(--c-border);
  text-decoration: none;
}
.grand-cat-equal-card:hover { text-decoration: none; }

.grand-cat-equal-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.grand-cat-equal-card:hover img { transform: scale(1.06); }

.grand-cat-equal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.68) 0%,
    rgba(0,0,0,.15) 55%,
    rgba(0,0,0,0) 100%
  );
  display: flex;
  align-items: flex-end;
  padding: 1.25rem 1.4rem;
  transition: background var(--t);
}
.grand-cat-equal-card:hover .grand-cat-equal-overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.25) 60%,
    rgba(0,0,0,.05) 100%
  );
}

.grand-cat-equal-overlay h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
  margin: 0;
  transition: letter-spacing var(--t);
}
.grand-cat-equal-card:hover .grand-cat-equal-overlay h3 {
  letter-spacing: .02em;
}

@media (max-width: 700px) {
  .grand-cat-equal-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }
  .grand-cat-equal-overlay h3 { font-size: 1rem; }
}

@media (max-width: 400px) {
  .grand-cat-equal-grid { grid-template-columns: repeat(2, 1fr); }
}

/* About hero content area */
.about-hero-content {
  margin: 1rem 0;
  font-size: .95rem;
  line-height: 1.7;
  color: var(--c-muted);
  overflow-y: auto;
  max-height: 320px;
}

.about-hero-content p {
  margin-bottom: 1em;
  font-size: .95rem;
  color: var(--c-muted);
}

.about-hero-content h2 {
  font-size: 1.1rem;
  color: var(--c-text);
  margin: 1.2em 0 .4em;
}

.about-hero-content ul {
  padding-left: 1.25em;
  margin-bottom: 1em;
}

.about-hero-content li {
  font-size: .9rem;
  color: var(--c-muted);
  margin-bottom: .3em;
}

/* Make hero taller to fit content */
.about-hero {
  min-height: 560px;
  align-items: stretch;
}

.about-hero-text {
  overflow-y: auto;
  padding: 2.5rem 2.5rem;
}

@media (max-width: 800px) {
  .about-hero-content {
    max-height: none;
  }
  .about-hero-text {
    padding: 2rem 1.5rem;
  }
}

/* ============================================================
   ABOUT PAGE — REVISED FULL WIDTH LAYOUT
   ============================================================ */
.about-page { }

.about-top {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 3rem 0;
}

.about-top-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: center;
}

.about-top-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

.about-top-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.about-top-intro .eyebrow { display: block; margin-bottom: .5rem; }
.about-top-intro h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
.about-top-intro > p { color: var(--c-muted); font-size: 1rem; margin-bottom: 1.25rem; }

.about-body-wrap {
  padding: 3rem 0 4rem;
}

@media (max-width: 800px) {
  .about-top-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-top-photo { max-width: 400px; }
}
