/*
Theme Name: OG Technologies
Theme URI: https://ogtechnologies.net
Author: OG Technologies
Author URI: https://ogtechnologies.net
Description: Custom classic WordPress theme for OG Technologies — a web design, development and digital marketing agency. Dark-forest-green and lime design, built by hand with no page builder and no CSS framework.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ogtech
*/

/* ==========================================================================
   1. DESIGN TOKENS
   Palette sampled directly from the brand mockup.
   ========================================================================== */
:root {
  /* Colors */
  --bg:            #F3F3EF;   /* off-white page base */
  --surface:       #FFFFFF;   /* white cards on light */
  --ink:           #14211A;   /* near-black greenish text */
  --ink-soft:      #4E5A52;   /* secondary text on light */
  --forest-deep:   #122E1C;   /* dark section background */
  --forest:        #1D3D2A;   /* raised card on dark */
  --forest-line:   rgba(255,255,255,.10);
  --on-dark:       #EAF1EC;   /* text on dark */
  --on-dark-soft:  #9FB2A6;   /* secondary text on dark */
  --lime:          #B8F02A;   /* primary accent */
  --lime-deep:     #A2D820;   /* accent hover/pressed */
  --lime-ink:      #10251A;   /* text on lime */

  /* Typography */
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, sans-serif;

  --fs-eyebrow: .78rem;
  --fs-body:    1rem;
  --fs-lead:    1.125rem;
  --fs-h4:      1.25rem;
  --fs-h3:      1.6rem;
  --fs-h2:      clamp(2rem, 4.5vw, 3.1rem);
  --fs-h1:      clamp(2.6rem, 6vw, 4.4rem);
  --fs-stat:    clamp(2.4rem, 5vw, 3.4rem);

  /* Spacing rhythm */
  --space-section: clamp(4rem, 8vw, 7rem);
  --gap:      1.5rem;
  --gap-lg:   2.5rem;

  /* Radii + shape */
  --r-sm:  10px;
  --r-md:  16px;
  --r-lg:  24px;
  --r-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur:  .45s;

  /* Layout */
  --maxw: 1200px;
  --pad:  clamp(1.1rem, 4vw, 2rem);
}

/* ==========================================================================
   2. RESET + BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.02em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; padding: 0; }
button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Accessibility: skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--lime);
  color: var(--lime-ink);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* Visually hidden but available to screen readers */
.sr-only,
.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;
}

/* ==========================================================================
   3. LAYOUT HELPERS
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: var(--space-section); }
.section--dark { background: var(--forest-deep); color: var(--on-dark); }
.section--flush-bottom { padding-bottom: 0; }

.section__head { max-width: 640px; margin-bottom: var(--gap-lg); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.section--dark .eyebrow { color: var(--lime); }
.eyebrow::before {
  content: "";
  width: 22px; height: 10px;
  background: var(--lime);
  border-radius: var(--r-pill);
  display: inline-block;
}

.lead { font-size: var(--fs-lead); color: var(--ink-soft); }
.section--dark .lead { color: var(--on-dark-soft); }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px,-3px); }

.btn--primary { background: var(--lime); color: var(--lime-ink); }
.btn--primary:hover { background: var(--lime-deep); }

.btn--ghost-dark { border-color: var(--forest-line); color: var(--on-dark); }
.btn--ghost-dark:hover { background: var(--forest); border-color: transparent; }

.btn--ghost-light { border-color: rgba(20,33,26,.18); color: var(--ink); }
.btn--ghost-light:hover { background: var(--ink); color: #fff; border-color: transparent; }

/* ==========================================================================
   5. SITE HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest-deep);
  color: var(--on-dark);
  border-bottom: 1px solid var(--forest-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  min-height: 74px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--on-dark);
}
.site-brand__mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--lime);
  color: var(--lime-ink);
  border-radius: 9px;
  font-weight: 700;
}
.site-brand img { max-height: 40px; width: auto; }

/* WordPress custom logo (the_custom_logo) in the header. */
.site-header__brand .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.site-header__brand .custom-logo { max-height: 44px; width: auto; height: auto; display: block; }

.primary-nav ul { display: flex; align-items: center; gap: 1.9rem; }
.primary-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  position: relative;
  padding-block: .3rem;
  transition: color var(--dur) var(--ease);
}
.primary-nav a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--lime);
  transition: width var(--dur) var(--ease);
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav a.is-active { color: var(--on-dark); }
.primary-nav a:hover::after,
.primary-nav a.is-active::after { width: 100%; }

.header__cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 44px; height: 44px;
  padding: 0;
  color: var(--on-dark);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  margin-inline: auto;
}
.nav-toggle span::before { transform: translateY(-7px); }
.nav-toggle span::after  { transform: translateY(5px); }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: rotate(-45deg) translateY(-1px); }

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  background: var(--forest-deep);
  color: var(--on-dark);
  padding-block: clamp(3rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { margin-block: 1rem 1.25rem; }
.hero__title em { color: var(--lime); font-style: normal; }
.hero__text { color: var(--on-dark-soft); max-width: 44ch; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__media { position: relative; }
.hero__media img {
  border-radius: var(--r-lg);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 4.3;
}
.hero__badge {
  position: absolute;
  left: -18px; bottom: 26px;
  width: 92px; height: 92px;
  background: var(--lime);
  color: var(--lime-ink);
  border-radius: 50%;
  display: grid; place-items: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .72rem;
  line-height: 1.15;
  animation: spin-slow 16s linear infinite;
}
.hero__spark {
  position: absolute;
  top: -14px; right: -8px;
  color: var(--lime);
  font-size: 2rem;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

/* ==========================================================================
   7. MARQUEE STRIP
   ========================================================================== */
.marquee {
  background: var(--lime);
  color: var(--lime-ink);
  overflow: hidden;
  padding-block: .9rem;
  border-block: 2px solid var(--lime-ink);
}
.marquee__track {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}
.marquee__item::after { content: "✳"; font-size: 1rem; }
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   8. ABOUT + STATS + SKILL BARS
   ========================================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.about__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about__media img { border-radius: var(--r-md); height: 100%; object-fit: cover; }
.about__media img:first-child { margin-top: 2rem; }

.about__title { margin-bottom: 1rem; }

.skillbars { margin-top: 1.5rem; display: grid; gap: 1.15rem; }
.skillbar__row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: .45rem;
}
.skillbar__track {
  height: 8px;
  background: rgba(20,33,26,.10);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.skillbar__fill {
  height: 100%;
  width: 0;
  background: var(--forest-deep);
  border-radius: var(--r-pill);
  transition: width 1.2s var(--ease);
}
.skillbar__fill--lime { background: var(--lime); }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.5rem);
  border-top: 1px solid rgba(20,33,26,.12);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-stat);
  color: var(--forest-deep);
  line-height: 1;
}
.stat__num span { color: var(--lime-deep); }
.stat__label { color: var(--ink-soft); font-size: .95rem; margin-top: .4rem; }

/* ==========================================================================
   9. SERVICES ("Boost Your Brand")
   ========================================================================== */
.services__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gap);
  flex-wrap: wrap;
  margin-bottom: var(--gap-lg);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service-card {
  background: var(--forest);
  border: 1px solid var(--forest-line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.service-card:hover { transform: translateY(-6px); }
.service-card--featured { background: var(--lime); color: var(--lime-ink); }
.service-card__media {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.service-card__media img { width: 100%; height: 100%; object-fit: cover; }
.service-card__title { font-size: 1.3rem; }
.service-card__text { color: var(--on-dark-soft); font-size: .95rem; }
.service-card--featured .service-card__text { color: rgba(16,37,26,.75); }
.service-card__link {
  margin-top: auto;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  display: inline-flex;
  gap: .4rem;
  color: var(--lime);
}
.service-card--featured .service-card__link { color: var(--lime-ink); }

/* ==========================================================================
   10. WHY CHOOSE US (feature grid)
   ========================================================================== */
.why__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.why__media { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.why__media img { width: 100%; aspect-ratio: 3/3.4; object-fit: cover; }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}
.feature-card {
  background: var(--surface);
  border: 1px solid rgba(20,33,26,.08);
  border-radius: var(--r-md);
  padding: 1.4rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -24px rgba(18,46,28,.5);
}
.feature-card--dark { background: var(--forest-deep); color: var(--on-dark); border-color: transparent; }
.feature-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink);
  margin-bottom: 1rem;
}
.feature-card__title { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card__text { font-size: .92rem; color: var(--ink-soft); }
.feature-card--dark .feature-card__text { color: var(--on-dark-soft); }

/* ==========================================================================
   11. PROCESS (steps)
   ========================================================================== */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  margin-top: var(--gap-lg);
}
.step-card {
  background: var(--forest);
  border: 1px solid var(--forest-line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  position: relative;
}
.step-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid var(--forest-line);
  border-radius: var(--r-pill);
  padding: .3rem .8rem;
  margin-bottom: 1.4rem;
}
.step-card__title { font-size: 1.2rem; margin-bottom: .6rem; }
.step-card__text { color: var(--on-dark-soft); font-size: .9rem; }
.step-card__num {
  position: absolute;
  top: 1.4rem; right: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--forest-line);
}

/* ==========================================================================
   12. WORK / PORTFOLIO
   ========================================================================== */
.work__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin-bottom: var(--gap-lg);
}
.work-card {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: .8rem;
  border: 1px solid rgba(20,33,26,.08);
  transition: transform var(--dur) var(--ease);
}
.work-card:hover { transform: translateY(-5px); }
.work-card__media {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.work-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.work-card:hover .work-card__media img { transform: scale(1.05); }
.work-card__tag {
  position: absolute;
  top: .8rem; left: .8rem;
  background: var(--lime);
  color: var(--lime-ink);
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
}
.work-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem .6rem .5rem;
}
.work-card__title { font-size: 1.15rem; }
.work-card__go {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest-deep);
  color: var(--lime);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.work-card:hover .work-card__go { background: var(--lime); color: var(--lime-ink); transform: rotate(-45deg); }

/* ==========================================================================
   13. AWARDS
   ========================================================================== */
.awards__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.awards__emblem {
  aspect-ratio: 1;
  border: 1px solid var(--forest-line);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(184,240,42,.12), transparent 60%),
    var(--forest);
  color: var(--lime);
  font-size: 4rem;
}
.award-list { display: grid; gap: .5rem; }
.award-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--forest-line);
}
.award-row__meta { display: flex; flex-direction: column; gap: .2rem; }
.award-row__cat { font-size: .82rem; color: var(--on-dark-soft); }
.award-row__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.award-row__go {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--forest-line);
  display: grid; place-items: center;
  color: var(--lime);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.award-row:hover .award-row__go { background: var(--lime); color: var(--lime-ink); }

/* ==========================================================================
   14. CONTACT / QUOTE FORM
   ========================================================================== */
.contact__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
}
.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .85rem;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: .95rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(20,33,26,.16);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--forest-deep);
  box-shadow: 0 0 0 3px rgba(184,240,42,.35);
}
.contact__media { border-radius: var(--r-lg); overflow: hidden; position: relative; }
.contact__media img { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }

/* ==========================================================================
   15. TESTIMONIALS
   ========================================================================== */
.testi__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}
.rating-card {
  background: var(--forest);
  border: 1px solid var(--forest-line);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
}
.rating-card__score {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--lime);
}
.stars { color: var(--lime); letter-spacing: .12em; font-size: 1.05rem; }
.rating-card__meta { color: var(--on-dark-soft); font-size: .9rem; margin-top: .5rem; }
.rating-card__note { color: var(--on-dark); font-size: .95rem; margin-top: 1rem; }

.testi-card {
  background: var(--surface);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.testi-card__stars { margin-bottom: 1rem; }
.testi-card__quote { font-size: 1.05rem; line-height: 1.7; }
.testi-card__author {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: 1.4rem;
}
.testi-card__avatar { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; }
.testi-card__name { font-family: var(--font-display); font-weight: 700; }
.testi-card__role { font-size: .85rem; color: var(--ink-soft); }

/* ==========================================================================
   16. TEAM
   ========================================================================== */
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: var(--gap-lg);
}
.team-card { text-align: left; }
.team-card__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 3/3.4;
}
.team-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-card__media img { transform: scale(1.04); }
.team-card__social {
  position: absolute;
  right: .8rem; bottom: .8rem;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink);
  display: grid; place-items: center;
}
.team-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-top: 1rem; }
.team-card__role { color: var(--ink-soft); font-size: .9rem; }

/* ==========================================================================
   17. BLOG
   ========================================================================== */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-top: var(--gap-lg);
}
.post-card {
  background: var(--forest);
  border: 1px solid var(--forest-line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform var(--dur) var(--ease);
}
.post-card:hover { transform: translateY(-5px); }
.post-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__tag {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--lime); color: var(--lime-ink);
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  padding: .3rem .7rem; border-radius: var(--r-pill);
}
.post-card__body { padding: 1.3rem; }
.post-card__title { font-size: 1.15rem; margin-bottom: .8rem; }
.post-card__link { font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--lime); display: inline-flex; gap: .4rem; }

/* ==========================================================================
   18. FAQ (accordion)
   ========================================================================== */
.faq__grid {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: start;
}
.accordion { display: grid; gap: .8rem; }
.acc-item {
  background: var(--surface);
  border: 1px solid rgba(20,33,26,.10);
  border-radius: var(--r-md);
  overflow: hidden;
}
.acc-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.2rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
}
.acc-item__icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--lime);
  display: grid; place-items: center;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}
.acc-item[aria-expanded="true"] .acc-item__icon,
.acc-item__btn[aria-expanded="true"] .acc-item__icon { transform: rotate(45deg); background: var(--lime); color: var(--lime-ink); }
.acc-item__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--dur) var(--ease);
}
.acc-item__panel-inner { padding: 0 1.3rem 1.3rem; color: var(--ink-soft); font-size: .95rem; }

.faq-aside { display: grid; gap: var(--gap); }
.faq-aside__card {
  border-radius: var(--r-md);
  padding: 1.6rem;
  background: var(--forest-deep);
  color: var(--on-dark);
}
.faq-aside__card--lime { background: var(--lime); color: var(--lime-ink); }
.faq-aside__title { font-size: 1.2rem; margin-bottom: .5rem; }
.faq-aside__phone { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }

/* ==========================================================================
   19. NEWSLETTER
   ========================================================================== */
.newsletter { text-align: center; }
.newsletter__form {
  display: flex;
  gap: .6rem;
  max-width: 480px;
  margin: 1.6rem auto 0;
}
.newsletter__form input {
  flex: 1;
  padding: .9rem 1.2rem;
  border-radius: var(--r-pill);
  border: 1px solid var(--forest-line);
  background: var(--forest);
  color: var(--on-dark);
}
.newsletter__form input::placeholder { color: var(--on-dark-soft); }

/* ==========================================================================
   20. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--forest-deep);
  color: var(--on-dark);
  padding-top: var(--space-section);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--gap-lg);
  padding-bottom: var(--gap-lg);
  border-bottom: 1px solid var(--forest-line);
}
.footer__brand-text { color: var(--on-dark-soft); font-size: .95rem; margin-top: 1rem; max-width: 32ch; }
.footer__col-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1.1rem;
}
.footer__col ul { display: grid; gap: .6rem; }
.footer__col a { color: var(--on-dark-soft); font-size: .95rem; transition: color var(--dur) var(--ease); }
.footer__col a:hover { color: var(--lime); }
.footer__socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer__socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--forest-line);
  display: grid; place-items: center;
  color: var(--on-dark);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.footer__socials a:hover { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.footer__bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 1.5rem;
  font-size: .88rem;
  color: var(--on-dark-soft);
}

/* ==========================================================================
   21. SCROLL REVEAL (progressive enhancement)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   22. RESPONSIVE
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid,
  .about__grid,
  .why__grid,
  .awards__grid,
  .contact__grid,
  .testi__grid,
  .faq__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 460px; }
  .services__grid,
  .process__grid,
  .team__grid,
  .blog__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg) var(--gap); }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .header__cta { display: none; }
  .primary-nav {
    position: fixed;
    inset: 74px 0 auto 0;
    background: var(--forest-deep);
    border-bottom: 1px solid var(--forest-line);
    padding: 1rem var(--pad) 1.5rem;
    transform: translateY(-120%);
    transition: transform var(--dur) var(--ease);
    z-index: 90;
  }
  .primary-nav.is-open { transform: translateY(0); }
  .primary-nav ul { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .primary-nav a { font-size: 1.1rem; }
}

@media (max-width: 560px) {
  .services__grid,
  .process__grid,
  .team__grid,
  .blog__grid,
  .feature-grid,
  .work__grid,
  .quote-form,
  .footer__grid { grid-template-columns: 1fr; }
  .about__media img:first-child { margin-top: 0; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form input,
  .newsletter__form .btn { width: 100%; justify-content: center; }
  .services__head { align-items: flex-start; }
}

/* ==========================================================================
   23. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   24. CONTACT FORM 7 INTEGRATION
   CF7 wraps every control in <span class="wpcf7-form-control-wrap"> and appends
   a <div class="wpcf7-response-output">. These rules keep the quote-form grid
   and newsletter flex layouts intact around those extra wrappers. The theme's
   .field / .btn / input styles still apply because they use descendant
   selectors. (CF7 auto-<p> wrapping is disabled in functions.php.)
   ========================================================================== */

/* Quote form (grid). Make CF7's wrap span a full-width block grid item. */
.quote-form .wpcf7-form-control-wrap { display: block; width: 100%; }
.quote-form .field input,
.quote-form .field select,
.quote-form .field textarea { width: 100%; }
.quote-form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: .3rem 0 0;
  padding: .75rem 1rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
}
.quote-form .wpcf7-not-valid-tip { display: block; margin-top: .3rem; font-size: .8rem; color: #c0392b; }
.quote-form .wpcf7-spinner { display: block; margin: .6rem auto 0; }

/* Newsletter form (flex row on dark). Let CF7's wrap span flex like the input. */
.newsletter__form { flex-wrap: wrap; align-items: center; }
.newsletter__form .wpcf7-form-control-wrap { flex: 1; min-width: 0; margin: 0; }
.newsletter__form .wpcf7-form-control-wrap input { width: 100%; margin: 0; }
.newsletter__form .wpcf7-response-output {
  flex-basis: 100%;
  margin: .55rem 0 0;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  font-size: .85rem;
  color: var(--on-dark);
}
.newsletter__form .wpcf7-spinner { flex-basis: 100%; margin: .5rem 0 0; }

/* ==========================================================================
   25. STATIC PAGE / LEGAL PROSE (page.php → .entry-content)
   ========================================================================== */
.entry-content {
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  margin: 2.4rem 0 .8rem;
}
.entry-content h3 {
  font-family: var(--font-display);
  color: var(--ink);
  font-size: 1.1rem;
  margin: 1.8rem 0 .6rem;
}
.entry-content p { margin: 0 0 1.1rem; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.2rem; padding-left: 1.3rem; }
.entry-content li { margin: 0 0 .5rem; }
.entry-content a { color: var(--lime-deep); text-decoration: underline; }
.entry-content strong { color: var(--ink); }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.4rem;
  font-size: .95rem;
}
.entry-content th,
.entry-content td {
  border: 1px solid rgba(20,33,26,.14);
  padding: .7rem .9rem;
  text-align: left;
  vertical-align: top;
}
.entry-content th { background: rgba(20,33,26,.04); color: var(--ink); font-family: var(--font-display); }
.entry-content .legal-updated {
  display: inline-block;
  margin-bottom: 1.4rem;
  font-size: .85rem;
  color: var(--ink-soft);
  opacity: .8;
}
