/*
Theme Name: Angenuru Holdings
Theme URI: https://angenuru.co.ke
Author: Angenuru Holdings
Author URI: https://angenuru.co.ke
Description: Custom WordPress theme for Angenuru Holdings non-medical home care and hospice support services.
Version: 3.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: angenuru-holdings
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ui-bg: #f3f2f7;
  --ui-surface: #ffffff;
  --ui-surface-soft: #faf9fd;
  --ui-ink: #2f2840;
  --ui-muted: #4d4660;
  --ui-primary: #7b2e60;
  --ui-primary-deep: #6a244f;
  --ui-accent: #8dcd42;
  --ui-accent-deep: #79b935;
  --ui-line: #ebe5f2;
  --ui-shadow: 0 14px 30px rgba(40, 21, 58, 0.12);
  --ui-shadow-strong: 0 20px 42px rgba(34, 16, 51, 0.2);
  --ui-radius: 14px;
  --container: min(1220px, 92vw);

  --success-bg: #eff9de;
  --success-line: #b8de78;
  --success-text: #385316;
  --error-bg: #fcedf4;
  --error-line: #da9fbe;
  --error-text: #612943;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.72;
  color: var(--ui-ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(123, 46, 96, 0.08), transparent 33%),
    linear-gradient(180deg, #f8f7fb 0%, var(--ui-bg) 100%);
}

a {
  color: var(--ui-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--ui-primary-deep);
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  margin-bottom: 0.7em;
  line-height: 1.15;
  font-family: "Playfair Display", "Times New Roman", serif;
  color: #332447;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.8rem);
}

h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

p {
  margin-top: 0;
  margin-bottom: 1.05rem;
  color: var(--ui-muted);
}

li {
  color: var(--ui-muted);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: var(--container);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  background: var(--ui-primary-deep);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--ui-radius);
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}

.site-main {
  min-height: 68vh;
  position: relative;
}

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  background: linear-gradient(100deg, var(--ui-primary-deep), var(--ui-primary));
  color: #f7f0f7;
  font-size: 0.9rem;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.topbar a {
  color: #ddf9b5;
  font-weight: 700;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: linear-gradient(112deg, rgba(121, 41, 95, 0.98), rgba(138, 54, 109, 0.98));
  backdrop-filter: blur(8px);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #2d2513;
  background:
    radial-gradient(circle at 23% 24%, #f4ffe3, transparent 54%),
    linear-gradient(150deg, #97d84b, #7fbc39);
  box-shadow:
    inset 0 0 0 1px rgba(58, 88, 21, 0.2),
    0 8px 18px rgba(84, 124, 30, 0.25);
}

.site-title {
  margin: 0;
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
}

.site-title a {
  color: #ffffff;
}

.site-tagline {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Navigation */
.primary-nav {
  justify-self: center;
}

.primary-nav ul,
.primary-nav .menu>ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid transparent;
  transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .current-menu-item>a,
.primary-nav .current_page_item>a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #2d200f;
  background: linear-gradient(130deg, var(--ui-accent), #a2dd56);
  border: 1px solid rgba(65, 96, 24, 0.28);
  box-shadow: 0 10px 20px rgba(106, 156, 40, 0.32);
  transition: transform 0.2s ease;
}

.header-cta:hover,
.header-cta:focus-visible {
  color: #2d200f;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  border: 0;
  border-radius: var(--ui-radius);
  background: var(--ui-accent);
  color: #33240f;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: clamp(48px, 6vw, 80px) 0;
}

.section-soft {
  background: #f7f6fb;
}

/* Backdrop sections (with background images) */
.section-backdrop {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-backdrop::before,
.section-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-backdrop::before {
  z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  opacity: 0.32;
}

.section-backdrop::after {
  z-index: -1;
  background: linear-gradient(120deg, rgba(74, 22, 58, 0.86), rgba(90, 30, 72, 0.78) 50%, rgba(100, 38, 80, 0.72));
}

.section-backdrop>.container {
  position: relative;
  z-index: 2;
}

.section-backdrop .section-heading h2,
.section-backdrop .section-heading p {
  color: #fff;
}

.section-backdrop h2 {
  color: #fff;
}

.section-backdrop p {
  color: rgba(255, 255, 255, 0.88);
}

.section-backdrop .eyebrow {
  color: #d9ffad;
  background: rgba(140, 204, 61, 0.22);
  border-color: rgba(221, 255, 173, 0.42);
}

.section-backdrop .card,
.section-backdrop .trust-card,
.section-backdrop .service-card,
.section-backdrop .step-card,
.section-backdrop .faq-item,
.section-backdrop .comparison,
.section-backdrop .timeline li {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 44px rgba(30, 13, 40, 0.35);
}

.section-backdrop .card h2,
.section-backdrop .card h3,
.section-backdrop .trust-card h3,
.section-backdrop .service-card h3,
.section-backdrop .step-card h3,
.section-backdrop .faq-item h3 {
  color: #332447;
}

.section-backdrop .card p,
.section-backdrop .trust-card p,
.section-backdrop .service-card p,
.section-backdrop .step-card p,
.section-backdrop .faq-item p {
  color: var(--ui-muted);
}

.section-backdrop .comparison th {
  background: #f2edf7;
  color: #553261;
}

/* Backdrop image assignments */
.section-backdrop-trust::before {
  background-image: url("assets/images/about-home.jpg");
}

.section-backdrop-story::before {
  background-image: url("assets/images/about-care.jpg");
}

.section-backdrop-services::before {
  background-image: url("assets/images/service-hospice.jpg");
}

.section-backdrop-scope::before {
  background-image: url("assets/images/service-personal.jpg");
}

.section-backdrop-process::before {
  background-image: url("assets/images/hero-main.jpg");
}

.section-backdrop-contact::before {
  background-image: url("assets/images/hero-support.jpg");
}

/* Section headings */
.section-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 68ch;
}

/* ============================================================
   EYEBROW, BUTTONS
   ============================================================ */
.eyebrow {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b6f1e;
  background: rgba(141, 205, 66, 0.16);
  border: 1px solid rgba(141, 205, 66, 0.34);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  font-family: "Poppins", "Segoe UI", sans-serif;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--ui-accent), #9fdd52);
  color: #2b200e;
  border-color: rgba(67, 97, 26, 0.22);
  box-shadow: 0 10px 24px rgba(92, 143, 30, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #2b200e;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ui-primary);
  border-color: rgba(123, 46, 96, 0.28);
}

.hero .btn-outline,
.page-hero-premium .btn-outline,
.services-cta-strip .btn-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(255, 255, 255, 0.12);
}

/* ============================================================
   HERO (HOMEPAGE)
   ============================================================ */
.hero {
  padding: clamp(86px, 9.5vw, 124px) 0;
}

.hero-premium {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(108, 34, 82, 0.84), rgba(108, 34, 82, 0.5) 55%, rgba(108, 34, 82, 0.26));
  z-index: -1;
}

.hero-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/hero-main.jpg") center / cover no-repeat;
  z-index: -2;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 24px;
  grid-template-columns: 1.06fr 0.94fr;
}

.hero-copy {
  padding: 8px 0;
}

.hero-copy h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  margin-bottom: 14px;
  color: #ffffff;
}

.hero-copy p {
  max-width: 64ch;
  color: rgba(255, 255, 255, 0.92);
}

/* Hero metrics */
.hero-metrics {
  margin-top: 18px;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-metric {
  border-radius: var(--ui-radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(3px);
  padding: 12px 13px;
}

.hero-metric strong {
  display: block;
  color: #ffffff;
  font-size: 1.04rem;
  margin-bottom: 2px;
}

.hero-metric span {
  display: block;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Hero media */
.hero-panel.hero-media-frame {
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 16px;
  box-shadow: var(--ui-shadow-strong);
  padding: 14px;
}

.hero-media,
.hero-thumb,
.feature-visual,
.photo-card,
.page-hero-media,
.service-media {
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
}

.hero-media {
  box-shadow: var(--ui-shadow-strong);
}

.hero-media img {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  display: block;
}

.hero-ribbon {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: 76%;
  background: rgba(96, 30, 75, 0.92);
  color: #f7ebf5;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.35;
  font-size: 0.92rem;
}

.hero-thumb {
  position: absolute;
  width: 46%;
  right: -16px;
  top: -22px;
  border: 5px solid #fff;
  box-shadow: var(--ui-shadow);
}

.hero-thumb img {
  width: 100%;
  display: block;
  height: 185px;
  object-fit: cover;
}

/* ============================================================
   CARDS (shared)
   ============================================================ */
.card,
.trust-card,
.service-card,
.step-card,
.faq-item,
.comparison,
.timeline li,
.post-card,
.service-spot-card,
.services-focus-row,
.legacy-card,
.contact-shell .card {
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
}

.card {
  padding: clamp(20px, 2.2vw, 30px);
}

/* ============================================================
   TRUST GRID
   ============================================================ */
.trust-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-card {
  padding: 20px 20px 20px 22px;
  border-left: 3px solid var(--ui-accent);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ui-shadow-strong);
}

.trust-card h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: #332447;
}

/* ============================================================
   SPLIT / TWO-COLUMN
   ============================================================ */
.split {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split.align-center {
  align-items: center;
}

/* ============================================================
   MISSION BANNER
   ============================================================ */
.mission-banner {
  position: relative;
  padding: clamp(64px, 8vw, 110px) 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(141, 205, 66, 0.12), transparent 40%),
    radial-gradient(circle at 10% 85%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #4a1a3a, #6a244f 40%, #7b2e60);
  overflow: hidden;
  text-align: center;
}

.mission-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/about-care.jpg") center / cover no-repeat;
  opacity: 0.1;
  pointer-events: none;
}

.mission-banner-inner {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
}

.mission-banner .eyebrow {
  margin-inline: auto;
  color: #d9ffad;
  background: rgba(141, 205, 66, 0.2);
  border-color: rgba(221, 255, 173, 0.36);
  margin-bottom: 16px;
}

.mission-banner h2 {
  color: #ffffff;
  margin-bottom: 18px;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
}

.mission-quote {
  font-family: "Playfair Display", "Times New Roman", serif;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  font-style: italic;
  line-height: 1.5;
  margin: 0 auto 16px;
  padding: 0;
  border: 0;
  max-width: 640px;
}

.mission-support {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.02rem;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin-inline: auto;
}

.mission-pillar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
}

.mission-pillar-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ui-accent);
}

.mission-pillar strong {
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.mission-pillar>span:last-child {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* ============================================================
   FEATURE VISUAL
   ============================================================ */
.feature-visual {
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow);
  background: #fff;
}

.feature-visual img {
  width: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
}

.feature-caption {
  padding: 12px 14px;
  border-top: 1px solid var(--ui-line);
  color: var(--ui-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-caption strong {
  display: block;
  color: var(--ui-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

/* ============================================================
   LEGACY SECTION (redesigned gallery)
   ============================================================ */
.legacy-section {
  padding-top: clamp(48px, 6vw, 80px);
}

.legacy-heading {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 32px;
}

.legacy-heading .eyebrow {
  margin-inline: auto;
}

.legacy-feature {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow-strong);
  margin-bottom: 20px;
}

.legacy-feature figure {
  margin: 0;
  height: clamp(280px, 36vw, 480px);
}

.legacy-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transition: transform 0.6s ease;
}

.legacy-feature:hover img {
  transform: scale(1.03);
}

.legacy-feature-overlay {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px 24px 22px;
  background: linear-gradient(0deg, rgba(46, 14, 59, 0.92), rgba(46, 14, 59, 0.6) 60%, rgba(46, 14, 59, 0));
  color: #ffffff;
}

.legacy-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #eaffcf;
  background: rgba(141, 205, 66, 0.26);
  border: 1px solid rgba(224, 255, 180, 0.45);
}

.legacy-feature-overlay h3,
.legacy-feature-overlay p {
  color: #ffffff;
}

.legacy-feature-overlay h3 {
  margin-bottom: 6px;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}

.legacy-feature-overlay p {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.9);
}

/* Legacy Gallery — 3 column tiles */
.legacy-gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.legacy-tile {
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-line);
  background: var(--ui-surface);
  box-shadow: var(--ui-shadow);
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.legacy-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--ui-shadow-strong);
}

.legacy-tile-media {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.legacy-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.legacy-tile:hover .legacy-tile-media img {
  transform: scale(1.06);
}

.legacy-tile-content {
  padding: 14px 16px 16px;
}

.legacy-tile-content h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #332447;
  font-family: "Playfair Display", "Times New Roman", serif;
}

.legacy-tile-content p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.52;
}

/* ============================================================
   SERVICES GRID (homepage)
   ============================================================ */
.services-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card {
  overflow: hidden;
}

.service-media {
  aspect-ratio: 16 / 10;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s ease;
}

.service-card:hover .service-media img,
.service-card:focus-within .service-media img {
  transform: scale(1.06);
}

.service-content {
  padding: 18px 18px 20px;
}

.service-content h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
}

.service-content p {
  color: var(--ui-muted);
}

/* ============================================================
   PHOTO SHOWCASE
   ============================================================ */
.photo-showcase {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-card {
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow);
  background: #fff;
}

.photo-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.photo-card figcaption {
  padding: 11px 13px 13px;
  color: var(--ui-muted);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ============================================================
   SCOPE / COMPLIANCE
   ============================================================ */
.scope-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scope-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.scope-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.scope-list li::before {
  content: "✦";
  color: var(--ui-accent-deep);
  font-weight: 900;
  line-height: 1.2;
  margin-top: 1px;
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
.comparison {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.comparison th,
.comparison td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--ui-line);
}

.comparison th {
  background: #f2edf7;
  font-family: "Poppins", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.76rem;
  font-weight: 800;
  color: #553261;
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.timeline li {
  padding: 15px 14px;
}

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.process-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step-card {
  padding: 18px;
  border-top: 3px solid var(--ui-accent);
  color: var(--ui-ink);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ui-shadow-strong);
}

.step-card h3 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 1.1rem;
}

.step-no {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 900;
  color: var(--ui-accent-deep);
  margin-bottom: 6px;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 18px 18px 18px 20px;
  border-left: 3px solid var(--ui-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--ui-shadow-strong);
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.faq-item p {
  color: var(--ui-muted);
  margin-bottom: 0;
  font-size: 0.92rem;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-shell {
  display: grid;
  gap: 20px;
  grid-template-columns: 0.95fr 1.05fr;
}

.notice {
  border-radius: var(--ui-radius);
  padding: 11px 13px;
  margin-bottom: 14px;
  border: 1px solid;
  font-weight: 700;
}

.notice-success {
  background: var(--success-bg);
  border-color: var(--success-line);
  color: var(--success-text);
}

.notice-error {
  background: var(--error-bg);
  border-color: var(--error-line);
  color: var(--error-text);
}

form.contact-form {
  display: grid;
  gap: 12px;
}

.field-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 5px;
  color: #3a2e4a;
  font-size: 0.91rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #d9d3e5;
  background: #fcfbff;
  color: var(--ui-ink);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(123, 46, 96, 0.2);
  outline-offset: 1px;
  border-color: var(--ui-primary);
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  padding: clamp(58px, 7vw, 86px) 0 28px;
}

.page-hero p {
  max-width: 78ch;
}

.page-hero-premium {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.page-hero-premium::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, rgba(108, 34, 82, 0.7), rgba(108, 34, 82, 0.26) 54%),
    url("assets/images/hero-support.jpg") center / cover no-repeat;
  z-index: -2;
}

.page-hero-premium::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 4%, rgba(141, 205, 66, 0.22), transparent 36%),
    radial-gradient(circle at 86% 30%, rgba(255, 255, 255, 0.24), transparent 38%);
  z-index: -1;
}

.page-hero-grid {
  display: grid;
  gap: 24px;
  align-items: center;
  grid-template-columns: 1.06fr 0.94fr;
}

.page-hero-grid>div {
  border-radius: var(--ui-radius);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: var(--ui-shadow);
  padding: clamp(20px, 2.8vw, 34px);
}

.page-hero-media {
  border: 1px solid var(--ui-line);
  box-shadow: var(--ui-shadow);
}

.page-hero-media img {
  width: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.entry-shell {
  display: grid;
  gap: 20px;
}

.entry-meta {
  margin: 0;
  color: var(--ui-muted);
  font-weight: 700;
  font-size: 0.92rem;
}

.entry-content {
  color: #3e354f;
}

.entry-content>* {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content>h2,
.entry-content>h3 {
  margin-top: 1.7em;
}

.entry-content img {
  border-radius: var(--ui-radius);
}

.posts-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.post-card:hover,
.post-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--ui-shadow-strong);
}

.post-card-media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--ui-line);
}

.post-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-media img,
.post-card:focus-within .post-card-media img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 18px;
}

.post-card h2 {
  margin-bottom: 10px;
}

.post-meta {
  margin: 0 0 8px;
  color: var(--ui-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-empty {
  grid-column: 1 / -1;
  padding: 20px;
}

.pagination-wrap {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.pagination-wrap .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, 0.8);
  color: #3a2e4c;
  font-weight: 700;
}

.pagination-wrap .page-numbers.current {
  background: linear-gradient(130deg, var(--ui-accent), #a6df55);
  border-color: rgba(67, 97, 24, 0.24);
  color: #2b200e;
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--ui-ink);
  font-weight: 700;
}

.page-links .post-page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, 0.8);
  color: #3a2e4c;
  padding: 0 10px;
}

.page-links .post-page-numbers.current {
  background: linear-gradient(130deg, var(--ui-accent), #a6df55);
  border-color: rgba(67, 97, 24, 0.24);
  color: #2b200e;
}

.post-nav {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-nav div {
  border-radius: var(--ui-radius);
  border: 1px solid var(--ui-line);
  background: rgba(255, 255, 255, 0.82);
  padding: 12px 14px;
}

/* ============================================================
   404
   ============================================================ */
.notfound-panel {
  max-width: 760px;
  margin-inline: auto;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-wrap {
  margin: 10px 0 14px;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-form label {
  flex: 1 1 260px;
  margin: 0;
}

.search-form .search-field {
  width: 100%;
}

.search-form .search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(67, 97, 24, 0.22);
  padding: 0 16px;
  background: linear-gradient(130deg, var(--ui-accent), #a2dd56);
  color: #2b200e;
  font-weight: 800;
  cursor: pointer;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  margin-top: 54px;
  background: linear-gradient(145deg, var(--ui-primary-deep), var(--ui-primary) 70%, #96417a);
  color: #f4e8f4;
  padding: 64px 0 26px;
}

.site-footer p {
  color: #f1e5f2;
}

.site-footer h3 {
  margin-bottom: 10px;
  font-family: "Poppins", "Segoe UI", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #dfffaf;
}

.site-footer a {
  color: #ffffff;
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ddf8b8;
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1.25fr 1fr 1fr;
}

.footer-nav ul,
.footer-nav .menu>ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
}

.footer-badges {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(222, 255, 175, 0.42);
  padding: 6px 12px;
  color: #ebffd1;
  background: rgba(141, 205, 66, 0.18);
  font-size: 0.79rem;
  font-weight: 700;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(243, 222, 188, 0.26);
  color: #f1e5f2;
  font-size: 0.9rem;
}

/* ============================================================
   SERVICES PAGE (template-services.php)
   ============================================================ */
.services-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(74px, 8vw, 112px) 0;
  background: linear-gradient(126deg, var(--ui-primary-deep), var(--ui-primary));
}

.services-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(108, 33, 84, 0.8), rgba(108, 33, 84, 0.38)),
    url("assets/images/hero-support.jpg") center / cover no-repeat;
  opacity: 0.34;
  z-index: -1;
}

.services-hero .container {
  max-width: 900px;
  text-align: center;
}

.services-hero .eyebrow {
  margin-inline: auto;
}

.services-hero h1 {
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.04;
}

.services-hero p {
  color: rgba(255, 255, 255, 0.92);
  max-width: 680px;
  margin-inline: auto;
}

.services-showcase {
  background: #ffffff;
  padding-top: 44px;
}

.services-spot-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-spot-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.service-spot-card:hover {
  box-shadow: var(--ui-shadow-strong);
}

.service-spot-media {
  margin: 0;
  aspect-ratio: 16 / 11;
}

.service-spot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-spot-content {
  position: relative;
  padding: 16px 16px 18px;
}

.service-spot-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(140deg, var(--ui-accent), var(--ui-accent-deep));
  box-shadow: 0 8px 16px rgba(95, 149, 29, 0.3);
  margin-bottom: 10px;
}

.service-spot-content h3 {
  font-size: 1.23rem;
  margin-bottom: 8px;
}

.service-spot-content p {
  color: var(--ui-muted);
  margin-bottom: 12px;
}

.service-spot-link {
  color: var(--ui-primary);
  font-weight: 700;
  font-size: 0.92rem;
}

.service-spot-link::after {
  content: " →";
}

.services-focus {
  padding-top: 52px;
  padding-bottom: 22px;
}

.services-focus .section-heading {
  margin-bottom: 4px;
}

.services-focus-list {
  display: grid;
  gap: 20px;
}

.services-focus-row {
  display: grid;
  grid-template-columns: 0.48fr 0.52fr;
  align-items: center;
  gap: 24px;
  padding: 18px;
}

.services-focus-row:nth-child(even) .services-focus-media {
  order: 2;
}

.services-focus-row:nth-child(even) .services-focus-copy {
  order: 1;
}

.services-focus-media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.services-focus-media img {
  width: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.services-focus-copy h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 8px;
}

.services-focus-copy p {
  color: var(--ui-muted);
  margin-bottom: 10px;
}

.services-focus-copy .scope-list {
  margin-bottom: 14px;
}

.services-focus-copy .scope-list li {
  color: #514b62;
}

.services-cta-area {
  padding-top: 10px;
}

.services-cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-radius: var(--ui-radius);
  background: linear-gradient(100deg, #84c737, #9ede4f);
  padding: 26px 24px;
  box-shadow: 0 18px 34px rgba(88, 141, 24, 0.24);
}

.services-cta-strip h2 {
  color: #ffffff;
  margin-bottom: 6px;
}

.services-cta-strip p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.services-cta-strip .btn-primary {
  background: linear-gradient(130deg, var(--ui-primary), #96407a);
  color: #ffffff;
  border-color: rgba(96, 34, 76, 0.35);
  box-shadow: 0 12px 24px rgba(82, 28, 65, 0.34);
}

.services-cta-strip .btn-primary:hover,
.services-cta-strip .btn-primary:focus-visible {
  color: #ffffff;
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE — ≤ 1200px
   ============================================================ */
@media (max-width: 1200px) {
  .services-spot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   RESPONSIVE — ≤ 1180px
   ============================================================ */
@media (max-width: 1180px) {

  .hero .container,
  .page-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-thumb {
    right: 16px;
    top: 14px;
    width: 42%;
  }

  .trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legacy-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   RESPONSIVE — ≤ 980px (tablet / mobile nav)
   ============================================================ */
@media (min-width: 981px) {
  .section-backdrop::before {
    background-attachment: fixed;
  }
}

@media (max-width: 980px) {
  .site-header-inner {
    grid-template-columns: auto auto auto;
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .primary-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(117, 40, 91, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 14px 4vw 16px;
    display: none;
    justify-self: stretch;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-nav ul,
  .primary-nav .menu>ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .primary-nav a {
    width: 100%;
    justify-content: flex-start;
  }

  .split,
  .scope-grid,
  .contact-shell,
  .post-nav {
    grid-template-columns: 1fr;
  }

  .mission-pillars {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .services-focus-row {
    grid-template-columns: 1fr;
  }

  .services-focus-row:nth-child(even) .services-focus-media,
  .services-focus-row:nth-child(even) .services-focus-copy {
    order: initial;
  }

  .services-cta-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ============================================================
   RESPONSIVE — ≤ 760px (mobile)
   ============================================================ */
@media (max-width: 760px) {
  .topbar .container {
    justify-content: center;
    text-align: center;
    min-height: 54px;
    padding: 8px 0;
    gap: 4px;
    flex-direction: column;
  }

  .hero-media img {
    min-height: 380px;
  }

  .hero-ribbon {
    position: static;
    max-width: 100%;
    margin-top: 12px;
  }

  .hero-thumb {
    position: static;
    width: 100%;
    margin-top: 12px;
    border: 0;
  }

  .hero-thumb img {
    height: 180px;
  }

  .hero-metrics,
  .services-grid,
  .trust-grid,
  .posts-grid,
  .process-grid,
  .photo-showcase,
  .legacy-gallery,
  .field-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legacy-feature figure {
    height: 260px;
  }

  .legacy-feature-overlay {
    padding: 16px 14px 14px;
  }

  .mission-pillars {
    gap: 10px;
  }

  .services-spot-grid {
    grid-template-columns: 1fr;
  }

  .services-focus-row {
    padding: 14px;
  }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}