/*
Theme Name:  Woodard and Associates CPA
Theme URI:   https://woodard-cpa.com
Author:      Woodard and Associates CPA
Author URI:  https://woodard-cpa.com
Description: Custom theme for Woodard and Associates Certified Public Accountant
Version:     1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License:     Proprietary
Text Domain: woodard-cpa
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */

:root {
  /* Canonical palette */
  --color-brand-navy: #0a263f;
  --color-brand-blue: #13487b;
  --color-brand-blue-light: #2c6e9f;
  --color-accent-teal: #0f737a;
  --color-accent-teal-soft: #ddeeef;
  --color-text-primary: #202a32;
  --color-text-secondary: #606b74;
  --color-logo-gray: #767676;
  --color-bg-warm: #fbfaf7;
  --color-bg-white: #ffffff;
  --color-bg-cloud: #f3f6f8;
  --color-bg-blue-soft: #e7f0f6;
  --color-border: #d6dee3;
  --color-link: #13487b;
  --color-link-hover: #0a263f;
  --color-focus: #13487b;

  /* Legacy aliases retained for existing selectors */
  --color-navy:       var(--color-brand-navy);
  --color-navy-dark:  var(--color-link-hover);
  --color-navy-light: var(--color-brand-blue-light);
  --color-sky:        var(--color-accent-teal);
  --color-sky-light:  var(--color-accent-teal-soft);
  --color-charcoal:   var(--color-text-primary);
  --color-gray:       var(--color-text-secondary);
  --color-gray-light: var(--color-logo-gray);
  --color-surface:    var(--color-bg-cloud);
  --color-white:      var(--color-bg-white);
  --color-success:    #276749;
  --color-success-bg: #f0fff4;
  --color-success-border: #27ae60;
  --color-error:      #742a2a;
  --color-error-bg:   #fff5f5;
  --color-error-border: #c0392b;
  --color-overlay:    rgba(10, 38, 63, 0.56);
  --color-white-80:   rgba(255, 255, 255, 0.8);
  --color-white-75:   rgba(255, 255, 255, 0.75);
  --color-white-60:   rgba(255, 255, 255, 0.6);
  --color-white-50:   rgba(255, 255, 255, 0.5);
  --color-white-40:   rgba(255, 255, 255, 0.4);
  --color-white-20:   rgba(255, 255, 255, 0.2);
  --color-white-15:   rgba(255, 255, 255, 0.15);
  --color-white-10:   rgba(255, 255, 255, 0.1);
  --color-navy-10:    rgba(10, 38, 63, 0.1);
  --color-navy-08:    rgba(10, 38, 63, 0.08);
  --color-sky-12:     rgba(15, 115, 122, 0.12);
  --focus-ring:       rgba(19, 72, 123, 0.45);

  /* Typography */
  --font-display: 'Source Serif 4', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, -apple-system, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --leading-tight: 1.2;
  --leading-body: 1.7;
  --leading-relaxed: 1.75;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-14:  3.5rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Layout */
  --container-max:    1200px;
  --container-narrow: 760px;
  --container-wide:   1280px;
  --container-gutter: var(--space-8);
  --grid-gutter:      2rem;
  --section-space:    var(--space-24);
  --section-space-sm: var(--space-16);
  --section-space-lg: var(--space-32);

  /* No rounded corners — geometry matches the angular logo mark */
  --radius:    0px;
  --radius-sm: 2px;

  /* Transitions */
  --transition: 200ms ease;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(13, 74, 132, 0.08);
  --shadow-md: 0 4px 16px rgba(13, 74, 132, 0.12);
  --shadow-lg: 0 8px 32px rgba(13, 74, 132, 0.16);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  background-color: var(--color-bg-warm);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-link-hover);
}

a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-navy);
  letter-spacing: 0;
  font-optical-sizing: auto;
}

h1 { font-size: clamp(var(--text-4xl), 4vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-3xl), 3vw, var(--text-4xl)); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-charcoal);
  margin-bottom: var(--space-4);
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-sky);
  display: block;
  margin-bottom: var(--space-3);
}

.lead {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--color-gray);
  font-weight: var(--font-weight-regular);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-gutter);
  padding-right: var(--container-gutter);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.container--wide {
  max-width: var(--container-wide);
}

.section {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

.section--sm {
  padding-top: var(--section-space-sm);
  padding-bottom: var(--section-space-sm);
}

.section--lg {
  padding-top: var(--section-space-lg);
  padding-bottom: var(--section-space-lg);
}

.section--navy {
  background-color: var(--color-brand-navy);
  position: relative;
  overflow: hidden;
}

/* Restrained angular geometry inspired by the Woodard logo */
.section--navy::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background-color: var(--color-brand-blue);
  opacity: 0.12;
  clip-path: polygon(100% 0%, 100% 100%, 0% 0%);
  pointer-events: none;
  z-index: 0;
}

.section--navy > .container {
  position: relative;
  z-index: 1;
}

.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy h5,
.section--navy h6 {
  color: var(--color-white);
}

.section--navy p,
.section--navy .lead {
  color: var(--color-sky-light);
}

.section--navy .eyebrow {
  color: var(--color-sky);
}

.section--navy a:not(.btn) {
  color: var(--color-accent-teal-soft);
}

.section--navy a:not(.btn):hover {
  color: var(--color-white);
}

.section--surface {
  background-color: var(--color-surface);
}

.section--white {
  background-color: var(--color-white);
}

.section--warm {
  background-color: var(--color-bg-warm);
}

.section--cloud {
  background-color: var(--color-bg-cloud);
}

.section--blue-soft {
  background-color: var(--color-bg-blue-soft);
}

.grid {
  display: grid;
  gap: var(--grid-gutter);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), opacity var(--transition);
  white-space: nowrap;
  line-height: 1;
  border: 2px solid transparent;
  text-decoration: none;
}

.btn--primary {
  background-color: var(--color-brand-blue);
  color: var(--color-white);
  border-color: var(--color-brand-blue);
}

.btn--primary:hover {
  background-color: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  color: var(--color-white);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
}

.btn--outline:hover {
  background-color: var(--color-bg-blue-soft);
  color: var(--color-brand-navy);
}

.btn--outline-white {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline-white:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
}

.btn--white {
  background-color: var(--color-white);
  color: var(--color-brand-navy);
  border-color: var(--color-white);
}

.btn--white:hover {
  background-color: var(--color-accent-teal-soft);
  border-color: var(--color-accent-teal-soft);
  color: var(--color-brand-navy);
}

.btn--lg {
  padding: var(--space-4) var(--space-10);
  font-size: var(--text-base);
}

.btn--block {
  width: 100%;
  justify-content: center;
}

.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.text-link {
  color: var(--color-link);
  font-weight: var(--font-weight-semibold);
  text-decoration: underline;
  text-decoration-color: var(--color-sky);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.text-link:hover {
  color: var(--color-link-hover);
  text-decoration-color: currentColor;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: none;
  padding-inline: clamp(2rem, 4.5vw, 6rem);
}

.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.site-logo img,
.site-logo .custom-logo {
  display: block;
  height: auto;
  width: auto;
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
}

.site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-navy);
}

.site-logo__tagline {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gray);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.site-nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__menu a {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-charcoal);
  letter-spacing: 0.02em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.site-nav__menu a:hover,
.site-nav__menu a.current-menu-item {
  color: var(--color-navy);
  border-bottom-color: var(--color-brand-blue);
}

.site-nav__cta {
  margin-left: var(--space-4);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-charcoal);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO — light editorial split
   ============================================================ */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
  background-color: var(--color-bg-warm);
  position: relative;
  overflow: hidden;
}

.hero__left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--space-10) var(--space-10) var(--space-10)
           clamp(2rem, 4.5vw, 6rem);
  position: relative;
  z-index: 1;
}

.hero__inner {
  width: 100%;
  max-width: 560px;
}

.hero__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-teal);
  display: block;
  margin-bottom: var(--space-4);
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 3.2vw, 4.125rem);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  color: var(--color-brand-navy);
  letter-spacing: 0;
  margin-bottom: var(--space-6);
}

.hero__subheading {
  font-size: var(--text-xl);
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
  font-weight: 400;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.04em;
  color: var(--color-brand-blue);
  text-decoration: none;
  border-bottom: 1px solid var(--color-accent-teal);
  padding-bottom: 1px;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.hero__secondary-cta::after {
  content: '→';
  transition: transform 0.2s ease;
}

.hero__secondary-cta:hover {
  color: var(--color-brand-navy);
  border-bottom-color: var(--color-brand-navy);
}

.hero__secondary-cta:hover::after {
  transform: translateX(3px);
}

.hero__right {
  position: relative;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 50%;
  display: block;
}

/* Layered angular seam — three overlapping translucent bands */
.hero__seam {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 175px;
  clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%);
  background: rgba(231, 240, 246, 0.38);
  pointer-events: none;
  z-index: 1;
}

.hero__seam::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 125px;
  clip-path: polygon(0 0, 100% 0, 42% 100%, 0 100%);
  background: rgba(243, 246, 248, 0.72);
}

.hero__seam::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 58px;
  clip-path: polygon(0 0, 100% 0, 44% 100%, 0 100%);
  background: var(--color-bg-warm);
}

/* Interior page hero — dark wave header */
.page-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--color-navy);
  padding: 4rem 0;
  min-height: 280px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/decorative-wave-dark.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--color-white);
  margin-bottom: 0;
}

.page-hero .hero__eyebrow {
  color: var(--color-sky);
  margin-bottom: var(--space-3);
}

.page-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-sky-light);
  margin-top: var(--space-4);
  max-width: 680px;
}

/* Founder section — reduced vertical padding vs standard .section */
.faye-section {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* ============================================================
   ARTICLE HERO — compact variant for single Insights posts
   ============================================================ */

/* Tighter than generic interior heroes; bottom pocket absorbs image overlap */
.page-hero--article {
  min-height: 0;
  padding: 1.5rem 0 4rem;
}

/* Quiet uppercase metadata line: CATEGORY · DATE · READ TIME */
.article-meta {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white-75);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.article-meta__cat {
  color: var(--color-white-75);
  text-decoration: none;
  transition: color var(--transition);
}

.article-meta__cat:hover {
  color: var(--color-white);
}

.article-meta__cat:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
  border-radius: 1px;
}

.article-meta__date,
.article-meta__read-time {
  color: var(--color-white-75);
}

/* Separator dots — visually present, screen-reader silent via aria-hidden */
.article-meta__sep {
  color: var(--color-white-40);
  font-weight: 400;
  letter-spacing: 0;
}

/* Article H1 — slightly smaller than the global h1 to ease top-of-page density */
.page-hero--article .entry-header__title {
  font-size: clamp(var(--text-3xl), 3vw, var(--text-4xl));
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .page-hero--article {
    padding: 1.25rem 0 2.5rem;
  }

  .page-hero--article .entry-header__title {
    font-size: clamp(var(--text-2xl), 6vw, var(--text-3xl));
  }
}

@media (max-width: 480px) {
  .page-hero--article .entry-header__title {
    font-size: clamp(var(--text-xl), 7vw, var(--text-2xl));
  }
}

/* ============================================================
   TRUST BAR
   ============================================================ */

.trust-bar {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-charcoal);
}

.trust-bar__item svg {
  width: 20px;
  height: 20px;
  color: var(--color-sky);
  flex-shrink: 0;
}

.trust-bar + .section {
  padding-top: var(--space-12);
}

/* Homepage services section — scoped so global .section tokens are untouched */
#services {
  padding-bottom: var(--space-14);
  background: linear-gradient(to bottom, var(--color-bg-cloud) 68%, var(--color-bg-blue-soft) 100%);
}

#services .section-header {
  margin-bottom: var(--space-10);
}

#services .grid--4 {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
  gap: 1.5rem;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */

.service-card {
  padding: var(--space-6);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-navy);
  transition: box-shadow var(--transition), border-top-color var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  border-top-color: var(--color-sky);
  transform: translateY(-2px);
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-4);
  background-color: var(--color-accent-teal-soft);
  color: var(--color-brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-gray);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.service-card__link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border-bottom: 1px solid var(--color-sky);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.service-card__link::after {
  content: '→';
  transition: transform 0.2s ease;
}

.service-card:hover .service-card__link::after {
  transform: translateX(4px);
}

.service-card__link:hover {
  color: var(--color-brand-blue);
}

/* ============================================================
   ABOUT / SPLIT SECTION
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.split__image {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.split__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__image--placeholder {
  background-color: var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split__content {
  padding: var(--space-16) var(--space-12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.split__content h2 {
  margin-bottom: var(--space-6);
}

.split__content p {
  color: var(--color-gray);
  margin-bottom: var(--space-4);
}

/* When no about image is set, collapse to single-column and center content */
.split--text-only {
  grid-template-columns: 1fr;
}

.split--text-only .split__content {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding: var(--space-16) var(--space-8);
}

/* ============================================================
   STATS ROW
   ============================================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat( auto-fit, minmax(160px, 1fr) );
  border-top: 1px solid var(--color-white-15);
  border-bottom: 1px solid var(--color-white-15);
}

.stat-item {
  padding: var(--space-10) var(--space-8);
  border-right: 1px solid var(--color-white-15);
  text-align: center;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__number {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  display: block;
  margin-bottom: var(--space-2);
}

.stat-item__number em {
  font-style: normal;
  color: var(--color-sky);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--color-sky-light);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonial-card {
  padding: var(--space-8);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--color-sky);
  opacity: 0.4;
  position: absolute;
  top: var(--space-4);
  left: var(--space-6);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  color: var(--color-sky);
  margin-bottom: var(--space-4);
  font-size: 0; /* prevent ::before font-size from leaking into first flex child */
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.testimonial-card__text {
  font-size: var(--text-base);
  font-style: italic;
  line-height: 1.75;
  color: var(--color-charcoal);
  margin-bottom: var(--space-6);
  padding-top: var(--space-8);
}

.testimonial-card__author-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  background-color: var(--color-navy-10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-navy);
  font-size: var(--text-lg);
  flex-shrink: 0;
}

.testimonial-card__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
}

.testimonial-card__role {
  font-size: var(--text-xs);
  color: var(--color-gray);
  margin-top: var(--space-1);
}

/* ============================================================
   CTA SECTION
   ============================================================ */

.cta-section {
  background-color: var(--color-navy);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Layered wave motif — shared implementation with .who-section */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('assets/images/decorative-wave-dark.svg');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

.cta-section > .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-section p {
  color: var(--color-sky-light);
  font-size: var(--text-lg);
  margin-bottom: var(--space-8);
}

.cta-section .btn-group {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background-color: var(--color-navy);
  color: var(--color-gray-light);
}

.site-footer__main {
  padding: var(--space-16) 0 var(--space-12);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
}

.footer-brand__logo img {
  height: 44px;
  width: auto;
  margin-bottom: var(--space-4);
}

.footer-brand__text {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
}

.footer-brand__tagline-text {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-white-50);
}

.footer-brand__tagline {
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-white-20);
  color: var(--color-white-60);
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--color-sky);
  color: var(--color-sky);
}

.footer-col__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-col__menu {
  list-style: none;
}

.footer-col__menu li {
  margin-bottom: var(--space-2);
}

.footer-col__menu a {
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-col__menu a:hover {
  color: var(--color-sky);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  margin-bottom: var(--space-3);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-sky);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-item a:hover {
  color: var(--color-sky);
}

.site-footer__bottom {
  border-top: 1px solid var(--color-white-10);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-legal {
  font-size: var(--text-xs);
  color: var(--color-gray);
}

.footer-legal a {
  color: var(--color-gray);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--color-sky);
}

.footer-legal__links {
  display: flex;
  gap: var(--space-5);
}

/* ============================================================
   ENTRY CONTENT
   ============================================================ */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.entry-content h2:first-child,
.entry-content h3:first-child {
  margin-top: 0;
}

.entry-content ul,
.entry-content ol {
  list-style: revert;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.entry-content li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.entry-content blockquote {
  border-left: 3px solid var(--color-sky);
  padding-left: var(--space-6);
  margin: var(--space-8) 0;
  font-style: italic;
  color: var(--color-gray);
}

.entry-content img {
  margin: var(--space-6) 0;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.entry-content th {
  background-color: var(--color-navy);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-weight: 600;
}

.entry-content td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.entry-content tr:nth-child(even) td {
  background-color: var(--color-surface);
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: var(--space-2);
}

.form-label span[aria-hidden="true"] {
  color: var(--color-accent-teal);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  border-radius: 0;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.form-control::placeholder {
  color: var(--color-gray-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23606b74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  background-size: 18px;
  padding-right: 2.75rem;
  cursor: pointer;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */

.alignleft  { float: left;  margin-right: var(--space-6); margin-bottom: var(--space-4); }
.alignright { float: right; margin-left:  var(--space-6); margin-bottom: var(--space-4); }
.aligncenter { margin-left: auto; margin-right: auto; text-align: center; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: var(--text-sm); color: var(--color-gray); text-align: center; margin-top: var(--space-2); }

/* ============================================================
   UTILITY CLASSES
   ============================================================ */

.text-center { text-align: center; }
.text-navy   { color: var(--color-navy); }
.text-sky    { color: var(--color-sky); }
.text-white  { color: var(--color-white); }
.text-gray   { color: var(--color-gray); }

.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 1000;
  width: auto;
  height: auto;
  padding: var(--space-3) var(--space-4);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background-color: var(--color-white);
  color: var(--color-brand-navy);
  border: 2px solid var(--color-focus);
  box-shadow: var(--shadow-md);
}

.divider {
  width: 48px;
  height: 3px;
  background-color: var(--color-sky);
  display: block;
  margin-bottom: var(--space-6);
}

.divider--center {
  margin-left: auto;
  margin-right: auto;
}

/* Scroll reveal: content is visible by default until JS opts in. */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl)); }
  h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl)); }

  .hero__left {
    padding: var(--space-12) var(--space-6) var(--space-12) var(--space-8);
  }

  .hero__seam          { width: 135px; }
  .hero__seam::before  { width: 97px; }
  .hero__seam::after   { width: 45px; }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-top: 1px solid var(--color-white-15);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .split__image {
    min-height: 320px;
  }

  .split__content {
    padding: var(--space-10) var(--space-8);
  }

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

@media (max-width: 768px) {
  :root {
    --container-gutter: var(--space-4);
    --grid-gutter: 1.5rem;
    --section-space: var(--space-16);
    --section-space-sm: var(--space-12);
    --section-space-lg: var(--space-20);
  }

  .container {
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
  }

  .section {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
  }

  h1 { font-size: clamp(var(--text-3xl), 8vw, var(--text-4xl)); }
  h2 { font-size: clamp(var(--text-2xl), 6vw, var(--text-3xl)); }

  .page-hero::before { opacity: 0.5; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 280px;
    min-height: unset;
  }

  .hero__seam {
    display: none;
  }

  .hero__left {
    justify-content: flex-start;
    padding: var(--space-12) var(--space-6);
  }

  .hero__inner {
    max-width: 100%;
  }

  .hero__heading { font-size: clamp(var(--text-3xl), 7vw, var(--text-4xl)); }
  .hero__subheading { font-size: var(--text-lg); }

  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-logo img,
  .site-logo .custom-logo {
    max-height: 42px;
    max-width: 140px;
  }

  .site-footer__main {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }

  .trust-bar__inner {
    justify-content: center;
  }

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

  .cta-section { padding: var(--space-16) 0; }

  /* Soften wave motif on small screens */
  .cta-section::before {
    opacity: 0.5;
  }

  /* Interior page dark sections — scale angular geometry on mobile */
  .section--navy::before {
    width: 160px;
    height: 160px;
    opacity: 0.07;
  }
}

@media (max-width: 767px) {
  #services .grid--4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero {
    grid-template-rows: auto 240px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PHASE 5H — HEADER LOGO LOCKUP (wide horizontal)
   ============================================================ */

/* Wide horizontal logo (392×50 header, fallback chain) */
.site-logo img.logo-lockup,
.site-logo .custom-logo {
  max-height: 52px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Wrap custom-logo-link so it aligns correctly */
.site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

@media (max-width: 768px) {
  .site-logo img.logo-lockup,
  .site-logo .custom-logo {
    max-height: 42px;
    max-width: 160px;
  }
}

/* ============================================================
   PHASE 5H — DESKTOP SERVICES DROPDOWN
   ============================================================ */

.site-nav__item.has-dropdown {
  position: relative;
}

/* Invisible bridge covers the 8px gap between trigger and dropdown panel so
   pointer hover is not lost when crossing from the nav link to the menu. */
.site-nav__item.has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 8px;
}

.site-nav__item.has-dropdown > .site-nav__link {
  /* keep underline indicator on hover and ancestor context */
}

.site-nav__item.has-dropdown.current-menu-ancestor > .site-nav__link {
  color: var(--color-navy);
  border-bottom-color: var(--color-sky);
}

/* Toggle button: chevron sits inline with the nav link */
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--space-1);
  margin-left: var(--space-1);
  color: var(--color-charcoal);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
  vertical-align: middle;
  line-height: 0;
}

.dropdown-toggle:hover,
.dropdown-toggle[aria-expanded="true"] {
  color: var(--color-navy);
}

.dropdown-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Dropdown panel */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -1rem;
  min-width: 220px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  list-style: none;
  padding: var(--space-2) 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  pointer-events: none;
}

/* Reveal: keyboard (via JS .is-open) */
.has-dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Reveal: pointer hover on devices that support hover */
@media (hover: hover) and (pointer: fine) {
  .has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.dropdown-menu li a {
  display: block;
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-charcoal);
  text-decoration: none;
  border-bottom: none;
  transition: background-color var(--transition), color var(--transition);
}

.dropdown-menu li a:hover,
.dropdown-menu li a[aria-current="page"] {
  background-color: var(--color-bg-cloud);
  color: var(--color-brand-blue);
}

/* "View All Services" separator row */
.dropdown-menu__all {
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-1);
  padding-top: var(--space-1);
}

.dropdown-menu__all a {
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-blue) !important;
}

/* Client Portal link — standard nav appearance (intentional, not disabled) */
.nav-portal-link {
  color: var(--color-charcoal) !important;
  font-size: var(--text-sm) !important;
}

.nav-portal-link:hover {
  color: var(--color-navy) !important;
  border-bottom-color: var(--color-brand-blue) !important;
}

/* ============================================================
   PHASE 5H — MOBILE MENU PANEL
   ============================================================ */

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background-color: var(--color-white);
  z-index: 300;
  transform: translateX(100%);
  transition: transform 280ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__inner {
  padding: var(--space-6) var(--space-5) var(--space-10);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

/* Close button */
.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.75rem;
  color: var(--color-charcoal);
  background: none;
  border: none;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: var(--space-4);
  transition: color var(--transition);
  line-height: 1;
}

.mobile-menu__close:hover {
  color: var(--color-navy);
}

/* Nav list */
.mobile-menu__list {
  list-style: none;
  flex: 1;
}

.mobile-menu__item {
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-charcoal);
  text-decoration: none;
  transition: color var(--transition);
}

.mobile-menu__link:hover,
.mobile-menu__link[aria-current="page"] {
  color: var(--color-brand-blue);
}

/* CTA area at bottom of mobile menu */
.mobile-menu__cta {
  margin-top: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.mobile-menu__cta .btn {
  width: 100%;
  justify-content: center;
}

.mobile-menu__phone {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-charcoal);
}

.mobile-menu__phone a {
  color: inherit;
  text-decoration: none;
  font-weight: var(--font-weight-medium);
}

.mobile-menu__phone a:hover {
  color: var(--color-brand-blue);
}

/* Overlay */
.mobile-menu__overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay);
  z-index: 290;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms ease;
}

.mobile-menu__overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   PHASE 5H — MOBILE SUBMENU (Services)
   ============================================================ */

/* Row that holds the Services link + toggle chevron */
.mobile-submenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-submenu-header .mobile-menu__link {
  flex: 1;
}

.mobile-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-charcoal);
  transition: color var(--transition), transform var(--transition);
  flex-shrink: 0;
  line-height: 0;
}

.mobile-submenu-toggle:hover {
  color: var(--color-navy);
}

.mobile-submenu-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Collapsed submenu — hidden via native HTML hidden attribute (set in PHP, managed by JS).
   CSS must NOT override [hidden] display:none — do not add display:block here.
   The is-open class on the parent li is used only for the chevron rotation. */
.mobile-submenu {
  list-style: none;
}

.mobile-submenu__link {
  display: block;
  padding: var(--space-3) 0 var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  border-top: 1px solid var(--color-bg-cloud);
}

.mobile-submenu__link:hover,
.mobile-submenu__link[aria-current="page"] {
  color: var(--color-brand-blue);
}

.mobile-submenu__link--all {
  font-weight: var(--font-weight-semibold);
  color: var(--color-brand-blue);
}

/* Ancestor indicator */
.mobile-has-submenu.is-current-ancestor > .mobile-submenu-header .mobile-menu__link {
  color: var(--color-brand-blue);
}

/* ============================================================
   PHASE 5H — FOOTER BRAND LOGO
   ============================================================ */

.footer-brand__logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: var(--space-4);
}

/* Wide horizontal all-white/BW logo (418×46) */
.footer-logo-lockup {
  display: block;
  width: auto;
  height: auto;
  max-height: 44px;
  max-width: 200px;
  object-fit: contain;
}

/* ============================================================
   PHASE 5H — FOOTER AFFILIATIONS
   ============================================================ */

.footer-affiliations {
  margin-top: var(--space-6);
}

.footer-affiliations__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-white-60);
  margin-bottom: var(--space-3);
}

.footer-affiliations__items {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-affil-item {
  display: flex;
  align-items: center;
}

.footer-affil-item__logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  opacity: 0.75;
  transition: opacity var(--transition);
}

.footer-affil-item a:hover .footer-affil-item__logo {
  opacity: 1;
}

.footer-affil-item__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-white-60);
  text-decoration: none;
  transition: color var(--transition);
}

a.footer-affil-item__label:hover {
  color: var(--color-white);
}

/* ============================================================
   PHASE 5H — FOOTER CONTACT DETAILS
   ============================================================ */

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-address {
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-gray-light);
  line-height: 1.7;
}

.footer-address__map-link {
  color: var(--color-accent-teal-soft) !important;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-size: var(--text-xs);
}

.footer-address__map-link:hover {
  color: var(--color-white) !important;
}

/* Indent variant: no icon, used for map link after service-area row */
.footer-contact-item--indent {
  padding-left: calc(16px + var(--space-3));
  margin-top: calc(var(--space-3) * -0.5);
}

.footer-contact-item--appt {
  font-style: italic;
}

/* ============================================================
   PHASE 5H — FOOTER BOTTOM INNER
   ============================================================ */

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ============================================================
   PHASE 5H — RESPONSIVE ADDITIONS
   ============================================================ */

@media (max-width: 1024px) {
  /* Phase 5H nav breakpoint — show mobile menu at tablet and below (≤1024px).
     Desktop nav and CTA are hidden; the hamburger toggle is shown instead.
     Desktop mode begins at 1025px where the full header fits without overflow. */
  .site-nav__menu,
  .site-nav__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  /* Footer bottom bar stacks on mobile */
  .site-footer__bottom-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ============================================================
   PHASE 6B — TEXTURE SYSTEM
   Two variants:
     section--portrait-texture  Homepage Meet Your CPA (richer)
     section--subtle-texture    Service page intros (restrained)
   Visual language: broad translucent diagonal bands derived
   from the angled strokes of the Woodard logo (~135° angle).
   Same motif family across both variants — richer on homepage,
   quieter on service pages.
   Prior treatments rejected:
     • Thin circle ring — read as screen artifact
     • Dotted grid clusters — generic, not brand-connected
   Implementation: full-bleed inset:0 pseudo-elements with
   linear-gradient stops. No raster assets. No new colors.
   Never apply to dark-background sections.
   ============================================================ */

/* ---- Service pages: restrained (one primary + one secondary band) ---- */

.section--subtle-texture {
  position: relative;
  overflow: hidden;
}

/* Primary diagonal band — CTA blue, entering from upper-right */
.section--subtle-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 38%,
    rgba(19, 72, 123, 0.045) 38%,
    rgba(19, 72, 123, 0.045) 54%,
    transparent 54%
  );
  pointer-events: none;
  z-index: 0;
}

/* Secondary diagonal band — dark navy, narrower, trailing */
.section--subtle-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 57%,
    rgba(10, 38, 63, 0.030) 57%,
    rgba(10, 38, 63, 0.030) 67%,
    transparent 67%
  );
  pointer-events: none;
  z-index: 0;
}

.section--subtle-texture > .container,
.section--subtle-texture > .container--narrow {
  position: relative;
  z-index: 1;
}

/* ---- Homepage portrait section: richer ---- */

.section--portrait-texture {
  position: relative;
  overflow: hidden;
}

/*
 * Two primary diagonal bands echoing the parallel strokes of the logo.
 * Band 1 (CTA blue, wider): sweeps from behind the portrait into the
 *   open space alongside the copy column.
 * Band 2 (dark navy, slightly narrower): trails behind, adding depth.
 * Opacity kept low enough that heading and body text remain fully readable.
 */
.section--portrait-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 18%,
    rgba(19, 72, 123, 0.060) 18%,
    rgba(19, 72, 123, 0.060) 36%,
    transparent 36%,
    transparent 45%,
    rgba(10, 38, 63, 0.040) 45%,
    rgba(10, 38, 63, 0.040) 59%,
    transparent 59%
  );
  pointer-events: none;
  z-index: 0;
}

/* Narrow leading band — anchors composition at upper-left corner */
.section--portrait-texture::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 38, 63, 0.025) 0%,
    rgba(10, 38, 63, 0.025) 10%,
    transparent 10%
  );
  pointer-events: none;
  z-index: 0;
}

.section--portrait-texture > .container {
  position: relative;
  z-index: 1;
}

/* Mobile: collapse to single band — prevents awkward text crossings
   on stacked single-column layout */
@media (max-width: 768px) {
  .section--portrait-texture::before {
    background: linear-gradient(
      135deg,
      transparent 20%,
      rgba(19, 72, 123, 0.050) 20%,
      rgba(19, 72, 123, 0.050) 50%,
      transparent 50%
    );
  }
  .section--portrait-texture::after {
    display: none;
  }
  .section--subtle-texture::after {
    display: none;
  }
}

/* ============================================================
   CREDENTIALS & RECOGNITION
   ============================================================ */

.credentials-section {
  padding-top: var(--section-space-sm);
  padding-bottom: var(--section-space-sm);
}

.credentials-section__heading {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-8);
  text-align: center;
}

.credentials-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

.credentials-row__item {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.credentials-row__logo {
  height: 64px;
  width: auto;
  max-width: 180px;
  display: block;
  object-fit: contain;
  object-position: center;
}

.credentials-row__logo--badge {
  height: 80px;
}

@media (max-width: 600px) {
  .credentials-row {
    gap: var(--space-8);
  }

  .credentials-row__logo {
    height: 52px;
    max-width: 140px;
  }

  .credentials-row__logo--badge {
    height: 64px;
  }
}

/* ============================================================
   FOOTER CREDENTIALS
   ============================================================ */

.footer-credentials {
  margin-top: var(--space-6);
}

.footer-credentials__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
}

.footer-credentials__tile {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.footer-credentials__logo {
  width: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.footer-credentials__logo--calcpa {
  height: 42px;
  max-width: 160px;
}

.footer-credentials__logo--aicpa {
  height: 44px;
  max-width: 160px;
}

.footer-credentials__logo--badge {
  height: 62px;
}

.footer-credentials__tile--badge {
  margin-top: var(--space-2);
  gap: var(--space-3);
  max-width: 220px;
}

.footer-credentials__badge-label {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-white);
  line-height: 1.25;
  max-width: 120px;
}

@media (max-width: 600px) {
  .footer-credentials__logo--calcpa {
    height: 38px;
  }

  .footer-credentials__logo--aicpa {
    height: 40px;
  }

  .footer-credentials__logo--badge {
    height: 56px;
  }
}
