/*
 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
*/


:root {
  --ov-green-dark:    #1a3a2a;
  --ov-green-mid:     #2d5c3e;
  --ov-green-accent:  #3a7a52;
    --ov-green-light:   #e8f5ee;
  --ov-amber:         #f5a623;
  --ov-text:          #1c1c1c;
  --ov-text-muted:    #5a6672;
  --ov-border:        #dde3e0;
  --ov-bg:            #f8faf9;
  --ov-white:         #ffffff;
  --ov-radius:        10px;
  --ov-radius-lg:     16px;
  --ov-shadow:        0 2px 12px rgba(0,0,0,0.08);
  --ov-transition:    0.18s ease;
  --ov-font-head:     'Georgia', 'Times New Roman', serif;
  --ov-font-body:     -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ov-container:     1200px;
  --ov-gap:           24px;
}

/* ---- BASE ---- */
.ov-home {
  font-family: var(--ov-font-body);
  color: var(--ov-text);
  background: var(--ov-white);
}

.ov-container {
  max-width: var(--ov-container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ---- BUTTONS ---- */
.ov-btn {
  display: inline-block;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: var(--ov-radius);
  text-decoration: none;
  transition: background var(--ov-transition), transform var(--ov-transition);
  cursor: pointer;
}

.ov-btn--primary {
  background: var(--ov-green-mid);
  color: var(--ov-white);
  border: 2px solid var(--ov-green-mid);
}

.ov-btn--primary:hover {
  background: var(--ov-green-dark);
  border-color: var(--ov-green-dark);
  transform: translateY(-1px);
}

/* ---- SECTION TITLE + HEADER ---- */
.ov-section-title {
  font-family: var(--ov-font-head);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--ov-green-dark);
  margin: 0 0 8px;
}

.ov-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 8px;
}

.ov-link-more {
  font-size: 14px;
  font-weight: 600;
  color: var(--ov-green-accent);
  text-decoration: none;
  white-space: nowrap;
}

.ov-link-more:hover { text-decoration: underline; }

/* =============================================================
   HERO
   ============================================================= */
.ov-hero {
  background: var(--ov-green-dark);
  color: var(--ov-white);
  padding: 0;
  overflow: hidden;
}

.ov-hero__inner {
  max-width: var(--ov-container);
  margin-inline: auto;
  padding-inline: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  align-items: center;
  gap: 40px;
}

.ov-hero__text {
  padding-block: 60px;
}

.ov-hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ov-amber);
  margin: 0 0 14px;
}

.ov-hero__heading {
  font-family: var(--ov-font-head);
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ov-white);
  margin: 0 0 18px;
}

.ov-hero__heading em {
  font-style: normal;
  color: var(--ov-amber);
}

.ov-hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: rgba(255,255,255,0.80);
  margin: 0 0 32px;
  max-width: 480px;
}

.ov-hero__image-wrap {
  align-self: stretch;
  overflow: hidden;
  border-radius: 0;
}

.ov-hero__image,
.ov-hero__image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ov-hero__image-placeholder svg {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* =============================================================
   CATEGORY GRID
   ============================================================= */
.ov-categories {
  background: var(--ov-bg);
  padding-block: 64px;
}

.ov-categories .ov-section-title {
  text-align: center;
  margin-bottom: 36px;
}

.ov-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}

.ov-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 12px;
  background: var(--ov-white);
  border: 1px solid var(--ov-border);
  border-radius: var(--ov-radius-lg);
  text-decoration: none;
  color: var(--ov-text);
  transition: border-color var(--ov-transition), box-shadow var(--ov-transition), transform var(--ov-transition);
  text-align: center;
}

.ov-cat-card:hover {
  border-color: var(--ov-green-accent);
  box-shadow: var(--ov-shadow);
  transform: translateY(-3px);
}

.ov-cat-card__icon {
  font-size: 32px;
  line-height: 1;
  display: block;
}

.ov-cat-card__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ov-green-dark);
  line-height: 1.3;
}

.ov-cat-card__count {
  font-size: 11px;
  color: var(--ov-text-muted);
}

/* =============================================================
   FEATURED / LATEST POSTS GRID
   ============================================================= */
.ov-featured {
  padding-block: 64px;
}

.ov-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ov-gap);
}

/* First card spans full width */
.ov-post-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.ov-post-card {
  background: var(--ov-white);
  border: 1px solid var(--ov-border);
  border-radius: var(--ov-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ov-transition), transform var(--ov-transition);
}

.ov-post-card:hover {
  box-shadow: var(--ov-shadow);
  transform: translateY(-3px);
}

.ov-post-card__img-wrap {
  display: block;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.ov-post-card--featured .ov-post-card__img-wrap {
  aspect-ratio: auto;
  height: 100%;
}

.ov-post-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.ov-post-card:hover .ov-post-card__img {
  transform: scale(1.04);
}

.ov-post-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ov-post-card--featured .ov-post-card__body {
  padding: 36px 40px;
  justify-content: center;
}

.ov-post-card__cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ov-green-accent);
  text-decoration: none;
  margin-bottom: 10px;
  display: block;
}

.ov-post-card__cat:hover { text-decoration: underline; }

.ov-post-card__title {
  font-family: var(--ov-font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.ov-post-card--featured .ov-post-card__title {
  font-size: clamp(20px, 2.2vw, 28px);
  margin-bottom: 14px;
}

.ov-post-card__title a {
  color: var(--ov-text);
  text-decoration: none;
}

.ov-post-card__title a:hover { color: var(--ov-green-mid); }

.ov-post-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ov-text-muted);
  margin: 0 0 14px;
  flex: 1;
}

.ov-post-card__meta {
  font-size: 12px;
  color: var(--ov-text-muted);
  margin-top: auto;
}

/* =============================================================
   TRUST BAR
   ============================================================= */
.ov-trust {
  background: var(--ov-green-light);
  padding-block: 52px;
  border-top: 1px solid var(--ov-border);
  border-bottom: 1px solid var(--ov-border);
}

.ov-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  text-align: center;
}

.ov-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.ov-trust__icon {
  font-size: 28px;
  display: block;
}

.ov-trust__item strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--ov-green-dark);
  display: block;
}

.ov-trust__item p {
  font-size: 13px;
  color: var(--ov-text-muted);
  margin: 0;
  line-height: 1.55;
}

/* =============================================================
   SPOTLIGHT STRIPS
   ============================================================= */
.ov-spotlight {
  padding-block: 52px;
  border-top: 1px solid var(--ov-border);
}

.ov-spotlight__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ov-gap);
}

.ov-mini-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ov-mini-card__img-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 72px;
  overflow: hidden;
  border-radius: var(--ov-radius);
  display: block;
}

.ov-mini-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.ov-mini-card:hover .ov-mini-card__img { transform: scale(1.05); }

.ov-mini-card__body {
  flex: 1;
  min-width: 0;
}

.ov-mini-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 6px;
}

.ov-mini-card__title a {
  color: var(--ov-text);
  text-decoration: none;
}

.ov-mini-card__title a:hover { color: var(--ov-green-mid); }

.ov-mini-card__date {
  font-size: 11px;
  color: var(--ov-text-muted);
  display: block;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Tablet — 900px */
@media (max-width: 900px) {
  .ov-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ov-hero__image-wrap { display: none; }
  .ov-hero__text { padding-block: 48px 40px; }

  .ov-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ov-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ov-post-card--featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .ov-post-card--featured .ov-post-card__img-wrap {
    aspect-ratio: 16/9;
  }

  .ov-post-card--featured .ov-post-card__body {
    padding: 20px 22px 22px;
  }

  .ov-spotlight__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile — 600px */
@media (max-width: 600px) {
  .ov-cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ov-posts-grid,
  .ov-spotlight__row {
    grid-template-columns: 1fr;
  }

  .ov-trust__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .ov-post-card--featured {
    grid-column: auto;
  }

  .ov-hero__heading { font-size: 26px; }
  .ov-hero__sub { font-size: 15px; }
}


