/*
Theme Name: Wes Harris Overhaul
Theme URI: https://wesharrisinsurance.com
Description: Crawlable, editor-friendly child theme for the Wes Harris insurance education site.
Author: Wes Harris
Template: wesharris
Version: 2.0.4
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: wesharris-overhaul
*/

:root {
  --wh2-navy: #17241f;
  --wh2-green: #2f5a48;
  --wh2-gold: #a56f2a;
  --wh2-paper: #faf7f0;
  --wh2-card: #fffdf8;
  --wh2-border: #d8d0c2;
}

html { scroll-behavior: smooth; }
body.wh-overhaul { background: var(--wh2-paper); }
body.admin-bar .site-header { top: 32px; }

.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 {
  width: auto;
  height: auto;
  clip: auto;
  margin: 10px;
  padding: 12px 16px;
  z-index: 1000;
  background: #fff;
  color: #111;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--wh2-border);
  background: color-mix(in srgb, var(--wh2-paper) 94%, transparent);
  backdrop-filter: blur(14px);
}
.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.site-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wh2-navy);
  color: #fff;
  font-family: var(--serif);
}
.site-brand__name { display: block; font-family: var(--serif); font-size: 1.12rem; line-height: 1.05; }
.site-brand__tag { display: block; color: var(--ink-3); font-size: .72rem; margin-top: 3px; }
.site-nav__list { display: flex; list-style: none; gap: 24px; padding: 0; margin: 0; }
.site-nav a { font-size: .91rem; color: var(--ink-2); }
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--wh2-green); }
.menu-toggle { display: none; padding: 10px; border: 1px solid var(--wh2-border); border-radius: 999px; }

.wh2-hero { padding: clamp(54px, 8vw, 108px) 0 70px; }
.wh2-hero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .7fr); gap: 72px; align-items: center; }
.wh2-hero h1 { font-family: var(--serif); font-size: clamp(3rem, 7vw, 6.8rem); line-height: .98; font-weight: 400; letter-spacing: -.035em; max-width: 12ch; margin: 18px 0 26px; }
.wh2-hero h1 em { color: var(--wh2-green); }
.wh2-hero__lede { font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.7rem); color: var(--ink-2); max-width: 35ch; }
.wh2-trust-card { background: var(--wh2-card); border: 1px solid var(--wh2-border); border-radius: 18px; padding: 30px; box-shadow: 0 24px 60px rgba(23,36,31,.08); }
.wh2-trust-card h2 { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; margin: 0 0 12px; }
.wh2-trust-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--wh2-border); }
.wh2-trust-list li { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--wh2-border); font-size: .92rem; }
.wh2-trust-list span:first-child { color: var(--ink-3); }

.wh2-section { padding: clamp(60px, 8vw, 104px) 0; }
.wh2-section--tint { background: #f0eadf; border-block: 1px solid var(--wh2-border); }
.wh2-section__head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 36px; }
.wh2-section__head h2 { margin: 8px 0 0; font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.2rem); font-weight: 400; max-width: 15ch; line-height: 1.02; }
.wh2-topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wh2-topic-card, .wh2-article-card { background: var(--wh2-card); border: 1px solid var(--wh2-border); border-radius: 14px; padding: 26px; transition: transform .2s ease, border-color .2s ease; }
.wh2-topic-card:hover, .wh2-article-card:hover { transform: translateY(-3px); border-color: var(--wh2-green); }
.wh2-topic-card h3, .wh2-article-card h2, .wh2-article-card h3 { font-family: var(--serif); font-weight: 400; margin: 10px 0; }
.wh2-topic-card p, .wh2-article-card p { color: var(--ink-2); }
.wh2-article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wh2-article-card { display: flex; flex-direction: column; }
.wh2-article-card__meta { color: var(--ink-3); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.wh2-article-card__link { margin-top: auto; padding-top: 18px; color: var(--wh2-green); font-weight: 600; }

.wh2-photo-story { background: var(--wh2-navy); color: #f8f3e9; }
.wh2-photo-story__head { align-items: end; }
.wh2-photo-story__head h2 { max-width: 12ch; }
.wh2-photo-story__head > p { max-width: 46ch; margin: 0; color: rgba(248,243,233,.74); font-size: 1.02rem; line-height: 1.65; }
.wh2-photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.wh2-photo-card { position: relative; min-width: 0; margin: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; background: #111a16; }
.wh2-photo-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .35s ease; }
.wh2-photo-card:hover img { transform: scale(1.02); }
.wh2-photo-card figcaption { position: absolute; inset: auto 0 0; padding: 48px 16px 15px; background: linear-gradient(transparent, rgba(10,18,15,.86)); color: #fff; font-size: .84rem; letter-spacing: .01em; }

.wh2-archive-hero { padding: 70px 0 30px; }
.wh2-archive-hero h1 { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; margin: 12px 0 18px; }
.wh2-filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 42px; }
.wh2-filter-row a { border: 1px solid var(--wh2-border); padding: 8px 14px; border-radius: 999px; font-size: .85rem; }

.wh2-article-hero { max-width: 900px; margin: 0 auto; padding: 64px 28px 36px; }
.wh2-article-hero h1 { font-family: var(--serif); font-size: clamp(2.7rem, 6vw, 5.2rem); font-weight: 400; line-height: 1.03; letter-spacing: -.025em; margin: 16px 0 24px; }
.wh2-article-hero__dek { font-family: var(--serif); font-size: 1.35rem; color: var(--ink-2); }
.wh2-byline { display: flex; gap: 14px; align-items: center; margin-top: 28px; font-size: .9rem; color: var(--ink-2); }
.wh2-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--wh2-navy); color: #fff; font-family: var(--serif); }
.wh2-content { max-width: 760px; margin: 0 auto; padding: 20px 28px 70px; }
.wh2-content p, .wh2-content li { font-size: 1.08rem; line-height: 1.75; }
.wh2-content h2 { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; margin: 2.2em 0 .6em; }
.wh2-content h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-top: 2em; }
.wh2-content a { color: var(--wh2-green); text-decoration: underline; text-underline-offset: 3px; }
.wh2-content blockquote { margin: 2em 0; padding: 20px 26px; border-left: 4px solid var(--wh2-gold); background: #f1eadc; font-family: var(--serif); font-size: 1.25rem; }
.wh2-disclosure { margin-top: 48px; padding: 20px; border: 1px solid var(--wh2-border); background: #f4efe6; font-size: .84rem; color: var(--ink-3); }

.wh2-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wh2-contact-card { background: var(--wh2-card); border: 1px solid var(--wh2-border); border-radius: 16px; padding: 30px; }
.wh2-contact-card h2 { font-family: var(--serif); font-weight: 400; font-size: 2rem; }
.wh2-alert { border-left: 4px solid var(--wh2-gold); background: #f1eadc; padding: 18px 20px; margin-top: 24px; }

.site-footer { background: var(--wh2-navy); color: #f8f3e9; padding: 70px 0 32px; margin-top: 80px; }
.site-footer a { color: #f8f3e9; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 60px; }
.site-footer h2, .site-footer h3 { font-family: var(--serif); font-weight: 400; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer__fine { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.72); font-size: .8rem; }

@media (max-width: 980px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header__cta { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset: 71px 0 auto; padding: 20px 28px; background: var(--wh2-paper); border-bottom: 1px solid var(--wh2-border); }
  .site-nav.is-open { display: block; }
  .site-nav__list { flex-direction: column; gap: 16px; }
  .wh2-hero__grid, .wh2-contact-grid { grid-template-columns: 1fr; }
  .wh2-topic-grid, .wh2-article-grid, .wh2-photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .site-header__inner { padding: 12px 18px; }
  .site-brand__tag { display: none; }
  .container, .container-wide { padding-inline: 20px; }
  .wh2-topic-grid, .wh2-article-grid, .site-footer__grid { grid-template-columns: 1fr; }
  .wh2-section__head { display: block; }
  .wh2-section__head .link-arrow { margin-top: 18px; }
  .wh2-photo-story__head > p { margin-top: 18px; }
}
@media (max-width: 440px) {
  .wh2-photo-grid { grid-template-columns: 1fr; }
}
