/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/




@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* ============================================================
   TOKENS
============================================================ */
.op-home {
  --op-slate-dark:   #1a2535;
  --op-slate:        #243044;
  --op-slate-mid:    #334560;
  --op-amber:        #d4860a;
  --op-amber-light:  #e8a020;
  --op-amber-pale:   #fdf3e0;
  --op-white:        #ffffff;
  --op-off-white:    #f8f8f6;
  --op-border:       #e4e6ea;
  --op-text:         #1f2937;
  --op-text-mid:     #4b5563;
  --op-text-light:   #6b7280;
  --op-radius:       6px;
  --op-radius-lg:    10px;
  --op-shadow:       0 2px 12px rgba(0,0,0,.08);
  --op-shadow-hover: 0 6px 24px rgba(0,0,0,.14);
  --op-font-serif:   'Playfair Display', Georgia, serif;
  --op-font-sans:    'Inter', system-ui, -apple-system, sans-serif;

  font-family: var(--op-font-sans);
  color: var(--op-text);
  background: var(--op-white);
}

/* ============================================================
   LAYOUT UTILITIES
============================================================ */
.op-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.op-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.op-section-title {
  font-family: var(--op-font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--op-slate-dark);
  margin: 0;
  position: relative;
  padding-bottom: 10px;
}
.op-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--op-amber);
  border-radius: 2px;
}

.op-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--op-amber);
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s;
}
.op-all-link:hover { color: var(--op-amber-light); }

/* Badge */
.op-badge {
  display: inline-block;
  background: var(--op-amber);
  color: var(--op-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  text-decoration: none;
  line-height: 1.5;
  transition: background .2s;
}
.op-badge:hover { background: var(--op-amber-light); }
.op-badge--sm { font-size: 9px; padding: 2px 7px; }

/* Date meta */
.op-meta-date {
  font-size: 12px;
  color: var(--op-text-light);
}

/* ============================================================
   STATS BAR
============================================================ */
.op-stats-bar {
  background: var(--op-slate-dark);
  padding: 12px 0;
}
.op-stats-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.op-stats-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 36px;
  gap: 2px;
}
.op-stats-bar__item strong {
  font-family: var(--op-font-serif);
  font-size: 22px;
  color: var(--op-amber-light);
  line-height: 1;
}
.op-stats-bar__item span {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.op-stats-bar__sep {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

/* ============================================================
   MAGAZINE HERO
============================================================ */
.op-hero {
  padding: 32px 0 0;
  background: var(--op-white);
}
.op-hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3px;
  height: 500px;
}

/* Large lead card */
.op-hero__lead {
  position: relative;
  overflow: hidden;
  border-radius: var(--op-radius) 0 0 var(--op-radius);
}
.op-hero__lead-img-wrap {
  display: block;
  height: 100%;
}
.op-hero__lead-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.op-hero__lead-img--empty {
  background: linear-gradient(135deg, var(--op-slate) 0%, var(--op-slate-mid) 100%);
}
.op-hero__lead:hover .op-hero__lead-img { transform: scale(1.03); }

.op-hero__lead-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(10,15,25,.92) 0%, rgba(10,15,25,.5) 70%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.op-hero__lead-title {
  font-family: var(--op-font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}
.op-hero__lead-title a {
  color: var(--op-white);
  text-decoration: none;
  transition: color .2s;
}
.op-hero__lead-title a:hover { color: var(--op-amber-light); }
.op-hero__lead-excerpt {
  font-size: 13.5px;
  color: rgba(255,255,255,.8);
  margin: 0;
  line-height: 1.55;
}
.op-hero__lead-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.op-hero__lead-meta time { font-size: 12px; color: rgba(255,255,255,.6); }
.op-hero__read-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--op-amber-light);
  text-decoration: none;
  transition: color .2s;
}
.op-hero__read-btn:hover { color: var(--op-white); }

/* Right 4-post stack */
.op-hero__stack {
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 3px;
}
.op-hero__stack-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  overflow: hidden;
  background: var(--op-off-white);
  transition: background .2s;
}
.op-hero__stack-item:last-child { border-radius: 0 0 var(--op-radius) 0; }
.op-hero__stack-item:first-child { border-radius: 0 var(--op-radius) 0 0; }
.op-hero__stack-item:hover { background: #eef0f4; }

.op-hero__stack-img-wrap {
  display: block;
  overflow: hidden;
}
.op-hero__stack-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.op-hero__stack-img--empty {
  background: var(--op-slate-mid);
}
.op-hero__stack-item:hover .op-hero__stack-img { transform: scale(1.06); }

.op-hero__stack-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.op-hero__stack-title {
  font-family: var(--op-font-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}
.op-hero__stack-title a {
  color: var(--op-slate-dark);
  text-decoration: none;
  transition: color .2s;
}
.op-hero__stack-title a:hover { color: var(--op-amber); }

/* ============================================================
   TRUST BAR
============================================================ */
.op-trust {
  background: var(--op-slate-dark);
  padding: 28px 0;
  margin-top: 0;
}
.op-trust__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 0;
}
.op-trust__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 28px;
}
.op-trust__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: var(--op-amber-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.op-trust__icon svg { width: 100%; height: 100%; }
.op-trust__item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--op-white);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}
.op-trust__item p {
  font-size: 12.5px;
  color: rgba(255,255,255,.62);
  line-height: 1.5;
  margin: 0;
}
.op-trust__sep {
  width: 1px;
  height: 52px;
  background: rgba(255,255,255,.12);
}

/* ============================================================
   BROWSE BY CATEGORY — 4 col (first row) + 4 col (second row)
============================================================ */
.op-cats {
  padding: 56px 0;
  background: var(--op-off-white);
}
.op-cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.op-cat-card {
  display: flex;
  flex-direction: column;
  background: var(--op-white);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--op-shadow);
  transition: box-shadow .25s, transform .25s;
}
.op-cat-card:hover {
  box-shadow: var(--op-shadow-hover);
  transform: translateY(-3px);
}
.op-cat-card__img-wrap { height: 130px; overflow: hidden; }
.op-cat-card__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .35s;
}
.op-cat-card:hover .op-cat-card__img { transform: scale(1.06); }
.op-cat-card__img--empty { background: linear-gradient(135deg, var(--op-slate) 0%, var(--op-slate-mid) 100%); }
.op-cat-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.op-cat-card__icon {
  width: 32px; height: 32px;
  color: var(--op-amber);
  display: flex; align-items: center;
}
.op-cat-card__icon svg { width: 100%; height: 100%; }
.op-cat-card__name {
  font-family: var(--op-font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--op-slate-dark);
}
.op-cat-card__count {
  font-size: 11.5px;
  color: var(--op-text-light);
}

/* ============================================================
   LATEST REVIEWS — 3-col white card grid
============================================================ */
.op-latest {
  padding: 56px 0;
  background: var(--op-white);
}
.op-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.op-post-card {
  background: var(--op-white);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius-lg);
  overflow: hidden;
  box-shadow: var(--op-shadow);
  transition: box-shadow .25s, transform .25s;
}
.op-post-card:hover {
  box-shadow: var(--op-shadow-hover);
  transform: translateY(-3px);
}
.op-post-card__img-wrap { display: block; overflow: hidden; height: 190px; }
.op-post-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.op-post-card:hover .op-post-card__img { transform: scale(1.05); }
.op-post-card__img--empty { background: var(--op-slate); }
.op-post-card__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.op-post-card__title { font-family: var(--op-font-serif); font-size: 16px; font-weight: 600; line-height: 1.35; margin: 0; }
.op-post-card__title a { color: var(--op-slate-dark); text-decoration: none; transition: color .2s; }
.op-post-card__title a:hover { color: var(--op-amber); }
.op-post-card__excerpt { font-size: 13px; color: var(--op-text-mid); line-height: 1.6; margin: 0; }

/* ============================================================
   CATEGORY SPOTLIGHT STRIPS
============================================================ */
.op-strip {
  padding: 48px 0;
  border-top: 1px solid var(--op-border);
}
.op-strip:nth-of-type(even) { background: var(--op-off-white); }
.op-strip:nth-of-type(odd)  { background: var(--op-white); }

.op-strip__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--op-amber);
  gap: 16px;
}
.op-strip__title {
  font-family: var(--op-font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--op-slate-dark);
  margin: 0;
}
.op-strip__grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: start;
}

/* Lead card */
.op-strip-lead { display: flex; flex-direction: column; gap: 0; }
.op-strip-lead__img-wrap { display: block; overflow: hidden; border-radius: var(--op-radius) var(--op-radius) 0 0; }
.op-strip-lead__img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .35s; }
.op-strip-lead:hover .op-strip-lead__img { transform: scale(1.04); }
.op-strip-lead__img--empty { height: 220px; background: var(--op-slate); border-radius: var(--op-radius) var(--op-radius) 0 0; }
.op-strip-lead__body {
  padding: 16px 18px 20px;
  background: var(--op-white);
  border: 1px solid var(--op-border);
  border-top: none;
  border-radius: 0 0 var(--op-radius) var(--op-radius);
  display: flex; flex-direction: column; gap: 8px;
}
.op-strip-lead__title { font-family: var(--op-font-serif); font-size: 17px; font-weight: 700; line-height: 1.35; margin: 0; }
.op-strip-lead__title a { color: var(--op-slate-dark); text-decoration: none; transition: color .2s; }
.op-strip-lead__title a:hover { color: var(--op-amber); }
.op-strip-lead__excerpt { font-size: 13px; color: var(--op-text-mid); line-height: 1.6; margin: 0; }

/* Small cards 3-col */
.op-strip__smalls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.op-strip-card {
  background: var(--op-white);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  overflow: hidden;
  box-shadow: var(--op-shadow);
  transition: box-shadow .25s, transform .25s;
}
.op-strip-card:hover { box-shadow: var(--op-shadow-hover); transform: translateY(-2px); }
.op-strip-card__img-wrap { display: block; overflow: hidden; height: 110px; }
.op-strip-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.op-strip-card:hover .op-strip-card__img { transform: scale(1.06); }
.op-strip-card__img--empty { background: var(--op-slate-mid); height: 110px; }
.op-strip-card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; }
.op-strip-card__title { font-size: 13px; font-weight: 600; line-height: 1.35; margin: 0; }
.op-strip-card__title a { color: var(--op-slate-dark); text-decoration: none; transition: color .2s; }
.op-strip-card__title a:hover { color: var(--op-amber); }

/* ============================================================
   NEWSLETTER CTA
============================================================ */
.op-newsletter {
  background: var(--op-amber-pale);
  padding: 56px 0;
  border-top: 3px solid var(--op-amber);
}
.op-newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 480px;
  align-items: center;
  gap: 40px;
}
.op-newsletter__title {
  font-family: var(--op-font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--op-slate-dark);
  margin: 0 0 10px;
}
.op-newsletter__text p {
  font-size: 14.5px;
  color: var(--op-text-mid);
  line-height: 1.65;
  margin: 0;
}
.op-newsletter__form {
  display: flex;
  gap: 10px;
}
.op-newsletter__input {
  flex: 1;
  padding: 13px 16px;
  font-size: 14px;
  border: 2px solid var(--op-border);
  border-radius: var(--op-radius);
  outline: none;
  font-family: var(--op-font-sans);
  transition: border-color .2s;
  background: var(--op-white);
}
.op-newsletter__input:focus { border-color: var(--op-amber); }
.op-newsletter__btn {
  background: var(--op-slate-dark);
  color: var(--op-white);
  font-size: 14px;
  font-weight: 700;
  padding: 13px 24px;
  border: none;
  border-radius: var(--op-radius);
  cursor: pointer;
  font-family: var(--op-font-sans);
  white-space: nowrap;
  transition: background .2s;
}
.op-newsletter__btn:hover { background: var(--op-slate-mid); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .op-hero__grid { grid-template-columns: 1fr 280px; }
  .op-cat-grid { grid-template-columns: repeat(4, 1fr); }
  .op-strip__grid { grid-template-columns: 300px 1fr; }
  .op-newsletter__inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 860px) {
  .op-hero__grid { grid-template-columns: 1fr; height: auto; gap: 12px; }
  .op-hero__lead { height: 360px; }
  .op-hero__stack { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .op-hero__stack-item { grid-template-columns: 80px 1fr; }
  .op-hero__stack-item:first-child,
  .op-hero__stack-item:last-child { border-radius: 0; }
  .op-trust__row { grid-template-columns: 1fr 1fr; gap: 0; }
  .op-trust__sep { display: none; }
  .op-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .op-posts-grid { grid-template-columns: repeat(2, 1fr); }
  .op-strip__grid { grid-template-columns: 1fr; }
  .op-strip__smalls { grid-template-columns: repeat(3, 1fr); }
  .op-stats-bar__sep { display: none; }
  .op-stats-bar__inner { gap: 0; }
  .op-stats-bar__item { padding: 6px 16px; }
}

@media (max-width: 600px) {
  .op-hero__lead { height: 280px; }
  .op-hero__lead-title { font-size: 18px; }
  .op-hero__stack { grid-template-columns: 1fr; }
  .op-trust__row { grid-template-columns: 1fr; }
  .op-cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .op-posts-grid { grid-template-columns: 1fr; }
  .op-strip__smalls { grid-template-columns: 1fr; }
  .op-newsletter__form { flex-direction: column; }
  .op-section-title { font-size: 20px; }
  .op-strip__title { font-size: 18px; }
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  .op-hero__lead-img,
  .op-hero__stack-img,
  .op-cat-card,
  .op-cat-card__img,
  .op-post-card,
  .op-post-card__img,
  .op-strip-lead__img,
  .op-strip-card,
  .op-strip-card__img { transition: none; }
}