/*
Theme Name: WeBoondock with Ghost Gramps
Theme URI: https://weboondock.com
Author: Ghost Gramps
Author URI: https://weboondock.com
Description: A custom adventure, travel, paranormal, photography, video and digital-guide theme built for WeBoondock with Ghost Gramps.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: weboondock
License: GNU General Public License v2 or later
*/

:root {
  --wbg-forest: #20372d;
  --wbg-forest-2: #2f4a3c;
  --wbg-moss: #71805f;
  --wbg-amber: #c67a2b;
  --wbg-amber-light: #e6ad69;
  --wbg-rust: #8c4b2d;
  --wbg-cream: #f7f1e6;
  --wbg-paper: #fffdf8;
  --wbg-ink: #1e2521;
  --wbg-muted: #5c665f;
  --wbg-line: #d8d2c6;
  --wbg-shadow: 0 18px 45px rgba(21, 35, 29, 0.14);
  --wbg-radius: 18px;
  --wbg-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--wbg-ink);
  background: var(--wbg-paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.68;
}
a { color: var(--wbg-rust); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover, a:focus { color: var(--wbg-amber); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
button, .wbg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .8rem 1.15rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--wbg-amber);
  color: #17120c;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(95, 54, 19, .18);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
button:hover, .wbg-button:hover,
button:focus, .wbg-button:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(95, 54, 19, .24);
  background: var(--wbg-amber-light);
  color: #17120c;
}
.wbg-button--outline { background: transparent; border-color: currentColor; color: #fff; box-shadow: none; }
.wbg-button--outline:hover { background: rgba(255,255,255,.12); color: #fff; }
.wbg-button--dark { background: var(--wbg-forest); color: #fff; }
.wbg-button--dark:hover { background: var(--wbg-forest-2); color: #fff; }

.wbg-wrap { width: min(calc(100% - 36px), var(--wbg-width)); margin-inline: auto; }
.wbg-narrow { width: min(calc(100% - 36px), 820px); margin-inline: auto; }
.wbg-section { padding: 78px 0; }
.wbg-section--cream { background: var(--wbg-cream); }
.wbg-section--dark { background: var(--wbg-forest); color: #fff; }
.wbg-section--pattern {
  background-color: #f3eadb;
  background-image: radial-gradient(circle at 1px 1px, rgba(32,55,45,.12) 1px, transparent 0);
  background-size: 26px 26px;
}
.wbg-kicker {
  margin: 0 0 .55rem;
  color: var(--wbg-amber);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1, h2, h3, h4 {
  margin: 0 0 .7em;
  color: var(--wbg-forest);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.13;
  text-wrap: balance;
}
h1 { font-size: clamp(2.45rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.wbg-section--dark h1, .wbg-section--dark h2, .wbg-section--dark h3 { color: #fff; }
p { margin: 0 0 1.2em; }
.wbg-lede { font-size: clamp(1.08rem, 2.2vw, 1.3rem); color: var(--wbg-muted); }
.wbg-section--dark .wbg-lede { color: rgba(255,255,255,.82); }
.wbg-center { text-align: center; }
.wbg-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.wbg-center .wbg-actions { justify-content: center; }

/* Header */
.wbg-site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255,253,248,.96);
  border-bottom: 1px solid rgba(32,55,45,.12);
  backdrop-filter: blur(14px);
}
.admin-bar .wbg-site-header { top: 32px; }
.wbg-header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wbg-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--wbg-forest); }
.wbg-brand-mark {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wbg-forest);
  color: var(--wbg-amber-light);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.08);
}
.wbg-brand-copy { display: grid; line-height: 1.1; }
.wbg-brand-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.12rem; font-weight: 800; }
.wbg-brand-tag { margin-top: .23rem; color: var(--wbg-muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.wbg-nav-toggle { display: none; width: 48px; height: 48px; padding: 0; border-radius: 12px; background: var(--wbg-forest); color: #fff; }
.wbg-main-nav ul { display: flex; flex-wrap: wrap; gap: .2rem; margin: 0; padding: 0; list-style: none; }
.wbg-main-nav a { display: block; padding: .55rem .62rem; border-radius: 10px; color: var(--wbg-ink); font-size: .88rem; font-weight: 800; text-decoration: none; }
.wbg-main-nav a:hover, .wbg-main-nav .current-menu-item > a, .wbg-main-nav .current_page_item > a { background: var(--wbg-cream); color: var(--wbg-rust); }

/* Hero */
.wbg-hero {
  position: relative;
  overflow: hidden;
  min-height: 700px;
  display: grid;
  align-items: center;
  color: #fff;
  background: linear-gradient(115deg, rgba(17,35,28,.98) 0%, rgba(29,55,44,.92) 50%, rgba(34,53,44,.55) 100%), url('assets/images/hero-landscape.svg') center/cover no-repeat;
}
.wbg-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(to bottom, transparent, rgba(8,18,14,.72));
  pointer-events: none;
}
.wbg-hero-inner { position: relative; z-index: 2; padding: 110px 0 125px; }
.wbg-hero-copy { max-width: 850px; }
.wbg-hero h1 { color: #fff; text-shadow: 0 4px 28px rgba(0,0,0,.28); }
.wbg-hero .wbg-lede { max-width: 740px; color: rgba(255,255,255,.86); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.wbg-hero-note { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1.1rem; padding: .42rem .75rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; background: rgba(0,0,0,.16); color: #fff; font-size: .8rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

/* Cards */
.wbg-grid { display: grid; gap: 24px; }
.wbg-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wbg-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wbg-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wbg-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--wbg-line);
  border-radius: var(--wbg-radius);
  background: rgba(255,255,255,.88);
  box-shadow: 0 12px 35px rgba(25,43,34,.08);
}
.wbg-card h3 { margin-bottom: .45rem; }
.wbg-card p:last-child { margin-bottom: 0; }
.wbg-card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 15px;
  background: var(--wbg-cream);
  color: var(--wbg-rust);
}
.wbg-card-link { color: inherit; text-decoration: none; }
.wbg-card-link::after { content: ""; position: absolute; inset: 0; }
.wbg-card:hover { transform: translateY(-4px); box-shadow: var(--wbg-shadow); transition: .2s ease; }

/* Feature panel */
.wbg-feature {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 80px);
}
.wbg-book-cover {
  min-height: 460px;
  display: grid;
  place-items: center;
  padding: 45px;
  border-radius: 28px;
  background: linear-gradient(145deg, #1d342a, #4b2c1d);
  color: #fff;
  box-shadow: var(--wbg-shadow);
  transform: rotate(-1.5deg);
}
.wbg-book-cover-inner { max-width: 320px; text-align: center; }
.wbg-book-cover small { color: var(--wbg-amber-light); font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.wbg-book-cover h3 { margin: 1rem 0; color: #fff; font-size: clamp(2rem, 4vw, 3.4rem); }
.wbg-book-cover p { color: rgba(255,255,255,.82); }
.wbg-download-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 28px;
  background: linear-gradient(135deg, #f4e4ca, #fff9ee);
  box-shadow: var(--wbg-shadow);
}
.wbg-download-card::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  top: -95px;
  right: -75px;
  border: 24px solid rgba(198,122,43,.15);
  border-radius: 50%;
}
.wbg-badge { display: inline-block; margin-bottom: 1rem; padding: .35rem .65rem; border-radius: 999px; background: var(--wbg-forest); color: #fff; font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* Page headers */
.wbg-page-hero {
  position: relative;
  overflow: hidden;
  padding: 95px 0 76px;
  color: #fff;
  background: linear-gradient(120deg, #172a22, #304b3d 65%, #6f4327);
}
.wbg-page-hero::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: url('assets/images/topography.svg'); background-size: 700px; }
.wbg-page-hero .wbg-wrap { position: relative; z-index: 1; }
.wbg-page-hero h1 { max-width: 900px; color: #fff; }
.wbg-page-hero p { max-width: 760px; color: rgba(255,255,255,.82); font-size: 1.15rem; }

/* Posts */
.wbg-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.wbg-post-card { overflow: hidden; border: 1px solid var(--wbg-line); border-radius: var(--wbg-radius); background: #fff; box-shadow: 0 12px 30px rgba(25,43,34,.08); }
.wbg-post-thumb { aspect-ratio: 16/10; background: linear-gradient(140deg, #304b3d, #8c4b2d); }
.wbg-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wbg-post-body { padding: 24px; }
.wbg-post-meta { margin-bottom: .55rem; color: var(--wbg-muted); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wbg-post-card h2, .wbg-post-card h3 { margin-bottom: .45rem; }
.wbg-post-card a { text-decoration: none; }
.wbg-entry { padding: 68px 0; }
.wbg-entry-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.wbg-entry-content > .alignwide { max-width: var(--wbg-width); }

/* Forms */
.wbg-form { display: grid; gap: 18px; }
.wbg-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.wbg-field { display: grid; gap: .4rem; }
.wbg-field label { color: var(--wbg-forest); font-weight: 850; }
.wbg-field input, .wbg-field select, .wbg-field textarea {
  width: 100%;
  padding: .82rem .9rem;
  border: 1px solid #bcb7ae;
  border-radius: 12px;
  background: #fff;
  color: var(--wbg-ink);
}
.wbg-field input:focus, .wbg-field select:focus, .wbg-field textarea:focus { outline: 3px solid rgba(198,122,43,.25); border-color: var(--wbg-amber); }
.wbg-field textarea { min-height: 155px; resize: vertical; }
.wbg-honeypot { position: absolute !important; left: -9999px !important; }
.wbg-notice { margin: 0 0 1.5rem; padding: 1rem 1.1rem; border-left: 5px solid var(--wbg-amber); border-radius: 10px; background: #fff5df; }
.wbg-notice--success { border-color: #398352; background: #e9f7ed; }
.wbg-notice--error { border-color: #a63a2e; background: #fff0ed; }

/* Support */
.wbg-tip-box { padding: clamp(28px,5vw,56px); border-radius: 28px; background: #fff; box-shadow: var(--wbg-shadow); }
.wbg-tip-options { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.2rem 0; }
.wbg-tip-option { position: relative; }
.wbg-tip-option input { position: absolute; opacity: 0; pointer-events: none; }
.wbg-tip-option label { display: inline-flex; min-width: 86px; justify-content: center; padding: .65rem .9rem; border: 2px solid var(--wbg-line); border-radius: 999px; font-weight: 900; cursor: pointer; }
.wbg-tip-option input:checked + label { border-color: var(--wbg-amber); background: #fff3df; color: #6a3b12; }

/* Footer */
.wbg-site-footer { padding: 58px 0 24px; background: #15271f; color: rgba(255,255,255,.78); }
.wbg-footer-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 34px; }
.wbg-site-footer h2, .wbg-site-footer h3 { color: #fff; }
.wbg-site-footer a { color: #f1c089; }
.wbg-footer-menu { margin: 0; padding: 0; list-style: none; }
.wbg-footer-menu li { margin: .35rem 0; }
.wbg-footer-bottom { margin-top: 38px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }

/* Utilities */
.wbg-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,6vw,70px); align-items: start; }
.wbg-list { padding-left: 1.2rem; }
.wbg-list li { margin-bottom: .55rem; }
.wbg-pill-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.wbg-pill { padding: .42rem .72rem; border: 1px solid var(--wbg-line); border-radius: 999px; background: #fff; color: var(--wbg-forest); font-size: .86rem; font-weight: 800; }
.wbg-empty { padding: 44px; border: 2px dashed var(--wbg-line); border-radius: var(--wbg-radius); text-align: center; background: rgba(255,255,255,.55); }
.wbg-legal { color: var(--wbg-muted); font-size: .86rem; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed !important; z-index: 100000; top: 10px; left: 10px; width: auto; height: auto; clip: auto; padding: 10px 14px; background: #fff; color: #000; }

@media (max-width: 1040px) {
  .wbg-nav-toggle { display: inline-grid; }
  .wbg-main-nav { display: none; position: absolute; top: 78px; left: 18px; right: 18px; padding: 16px; border: 1px solid var(--wbg-line); border-radius: 18px; background: #fff; box-shadow: var(--wbg-shadow); }
  .wbg-main-nav.is-open { display: block; }
  .wbg-main-nav ul { display: grid; }
  .wbg-main-nav a { padding: .75rem; }
  .wbg-grid--4, .wbg-post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 780px) {
  body { font-size: 17px; }
  .admin-bar .wbg-site-header { top: 46px; }
  .wbg-brand-tag { display: none; }
  .wbg-hero { min-height: 640px; }
  .wbg-hero-inner { padding: 80px 0 100px; }
  .wbg-section { padding: 58px 0; }
  .wbg-feature, .wbg-split, .wbg-grid--2, .wbg-grid--3, .wbg-grid--4, .wbg-post-grid, .wbg-form-grid, .wbg-footer-grid { grid-template-columns: 1fr; }
  .wbg-book-cover { min-height: 380px; }
}
@media (max-width: 460px) {
  .wbg-wrap, .wbg-narrow { width: min(calc(100% - 24px), var(--wbg-width)); }
  .wbg-brand-title { font-size: .98rem; }
  .wbg-brand-mark { width: 42px; }
  .wbg-actions .wbg-button { width: 100%; }
  .wbg-card, .wbg-tip-box { padding: 22px; }
}
