/*
Theme Name: Sanhill Painting Services
Theme URI: https://sanhillpainting.com
Author: Bitwave Design
Author URI: https://bitwavedesign.com
Description: Custom theme for Sanhill Painting Services — residential painting in the Texas Hill Country. Built from the Bitwave Small Business Starter.
Version: 1.0.0
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   Swap these per-project. Everything below references only these.
   ============================================================ */
:root {
  /* --- Backgrounds (light theme) --- */
  --color-bg-page:    #ffffff;
  --color-bg-section: #f4f6fa;  /* alternating section bg — cool off-white */
  --color-bg-raised:  #ffffff;  /* header bg */
  --color-bg-card:    #ffffff;
  --color-bg-border:  #dfe4ee;
  --color-bg-subtle:  #eef1f7;

  /* --- Brand navy (from the Sanhill logo) --- */
  --color-brand:       #0a2a5c;
  --color-brand-light: #1d4384;

  /* --- Accent color: GOLD --- */
  --color-accent:       #d4a72c;
  --color-accent-light: #e6c25a;
  --color-accent-dark:  #8a6a0c;  /* dark enough for small gold text on white */

  /* --- Text --- */
  --color-text-primary:   #0f1b33;
  --color-text-secondary: #4a5568;
  --color-text-muted:     #7a8599;
  --color-text-on-accent: #071a3a;  /* gold is light — navy text on gold buttons */
  --color-text-on-dark:       #ffffff;
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.78);

  /* --- Dark surface: general-purpose dark background token, independent of
     the accent-derived darks used in the CTA banner/footer/services strip.
     Swap this per project — e.g. a brand navy, charcoal, or (as here) a
     dark grey-blue placeholder. --- */
  --color-bg-dark: #071a3a;  /* deep navy */

  /* --- Overlays: transparent nav sits on top of hero / page-hero images --- */
  --overlay-hero:      linear-gradient(to right, rgba(7,26,58,0.88) 0%, rgba(7,26,58,0.66) 45%, rgba(7,26,58,0.30) 100%);
  --overlay-page-hero: color-mix(in srgb, var(--color-bg-dark) 86%, transparent);
  --overlay-footer:    rgba(7,26,58,0.90);
  --nav-glass-bg:      rgba(7,26,58,0.86);
  --nav-glass-blur:    14px;

  /* --- Fonts: swap Google Fonts link in functions.php if changing these --- */
  --font-display: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-height:      104px;
  --util-height:     40px;
  --logo-height-base:     61px;
  --logo-height-scrolled: 49px;
  --mobile-cta-height:    56px;

  --max-width:       1200px;
  --content-width:   780px;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;

  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-primary);
  background: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-brand-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-accent-dark); }

ul { list-style: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { color: var(--color-text-secondary); line-height: 1.75; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
}

.btn--gold {
  background: var(--color-accent);
  color: var(--color-text-on-accent) !important;
}
.btn--gold:hover {
  background: var(--color-accent-light);
  color: var(--color-text-on-accent) !important;
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-bg-border);
  color: var(--color-text-primary) !important;
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent) !important;
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-text-on-dark) !important;
}
.btn--outline-light:hover {
  border-color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text-on-dark) !important;
}

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

.clear { clear: both; }

/* ============================================================
   UTILITY BAR
   ============================================================ */
.util-bar {
  background: var(--color-bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  height: var(--util-height);
  display: flex;
  align-items: center;
}

.util-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.util-bar__tagline {
  font-size: 12px;
  color: var(--color-text-on-dark-muted);
  letter-spacing: 0.04em;
}

.util-bar__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
}

.util-bar__contact a {
  color: var(--color-accent-light);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.util-bar__contact a:hover { color: var(--color-text-on-dark); }

@media (max-width: 640px) {
  .util-bar__tagline { display: none; }
  .util-bar .container { justify-content: center; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header-anchor {
  position: relative;
  height: 0;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  position: fixed;
  top: 0;
  background: var(--nav-glass-bg);
  backdrop-filter: blur(var(--nav-glass-blur));
  -webkit-backdrop-filter: blur(var(--nav-glass-blur));
  box-shadow: 0 4px 24px rgba(0,0,0,0.28);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.site-nav {
  background: transparent;
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo img {
  height: var(--logo-height-base);
  width: auto;
  transition: height var(--transition);
}

.site-header.scrolled .site-logo img {
  height: var(--logo-height-scrolled);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-menu > li { position: relative; }

.nav-menu > li > a {
  display: block;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-on-dark-muted);
  letter-spacing: 0.02em;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-page-ancestor > a {
  color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.12);
}

.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.nav-menu > li:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu li a {
  display: block;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.nav-menu .sub-menu li a:hover {
  color: var(--color-accent-dark);
  background: color-mix(in srgb, var(--color-brand) 7%, transparent);
}
.nav-menu .sub-menu li a:hover { color: var(--color-brand); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: var(--color-text-on-accent) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  text-transform: uppercase;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  line-height: 1.2;
}
.nav-cta__label { font-size: 10px; letter-spacing: 0.08em; opacity: 0.85; }
.nav-cta__phone { font-size: 15px; letter-spacing: 0.02em; }

.nav-cta:hover {
  background: var(--color-accent-light);
  color: var(--color-text-on-accent) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

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

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(360px, 88vw);
  height: 100vh;
  background: var(--color-bg-page);
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
  padding: calc(var(--util-height) + var(--nav-height) + 24px) 24px 24px;
  overflow-y: auto;
  transition: right var(--transition);
  z-index: 1100;
}

.mobile-nav.open { right: 0; }

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

.mobile-nav__item > a {
  display: block;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
}

.mobile-nav__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-primary);
  cursor: pointer;
}

.mobile-nav__arrow {
  transition: transform var(--transition);
}

.mobile-nav__toggle[aria-expanded="true"] .mobile-nav__arrow {
  transform: rotate(90deg);
}

.mobile-nav__sub {
  padding: 0 0 12px 12px;
}

.mobile-nav__sub li a {
  display: block;
  padding: 10px 4px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.mobile-nav__item--cta {
  border-bottom: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.mobile-nav__item--cta .btn { justify-content: center; font-size: 14px; }

@media (max-width: 900px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-logo img { max-width: 50vw; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg-dark);
  background-image: url('/images/hero-banner.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
  z-index: 0;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, color-mix(in srgb, var(--color-accent) 14%, transparent) 0%, transparent 60%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: calc(var(--nav-height) + clamp(56px, 4vw + 38px, 112px));
  padding-bottom: 60px;
}

.hero__content { max-width: 620px; }

.hero__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 10px;
}

.hero__title { margin-bottom: 20px; color: var(--color-text-on-dark); }
.hero__title em { color: var(--color-accent-light); font-style: normal; }

.hero__sub {
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
  color: var(--color-text-on-dark-muted);
}

.hero__btns {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
}

@media (max-width: 480px) {
  .hero__btns {
    gap: 10px;
  }
  .hero__btns {
    flex-direction: column;
  }
  .hero__btns .btn {
    justify-content: center;
    padding: 14px 18px;
    font-size: 13px;
  }
}

.hero__stats {
  display: flex;
  gap: 32px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
}

.hero__stat { text-align: center; }
.hero__stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent-light);
}
.hero__stat-lbl {
  font-size: 12px;
  color: var(--color-text-on-dark-muted);
  letter-spacing: 0.02em;
}

@media (max-width: 900px) {
  .hero__stats {
    width: 100%;
    justify-content: space-around;
    padding: 16px 18px;
    gap: 12px;
  }
  .hero__stat-num { font-size: 1.3rem; }
  .hero__stat-lbl { font-size: 10px; }
  .hero .container { padding-bottom: 32px; }
}

/* Desktop only: .hero's align-items:center + min-height was centering the
   (shorter) content vertically, which added invisible slack above and below
   on top of the explicit padding values — not a fixed, predictable gap.
   Switching to top-aligned content here makes the space below the CTA
   buttons exactly equal to padding-bottom, nothing more. Mobile is untouched
   and keeps the centered/min-height behavior above. */
@media (min-width: 901px) {
  .hero {
    align-items: flex-start;
    min-height: 0;
  }
  .hero .container {
    padding-bottom: 32px;
  }
}

/* ============================================================
   SERVICES STRIP
   ============================================================ */
.services-strip {
  background-color: var(--color-brand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.07'/%3E%3C/svg%3E");
  background-repeat: repeat;
  padding: 32px 0;
}

.services-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.strip-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.strip-item:first-child {
  padding-left: 0;
  border-left: none;
}

.strip-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  font-size: 22px;
}

.strip-item__title { font-weight: 700; font-size: 14px; color: var(--color-text-on-dark); }
.strip-item__desc { font-size: 12px; color: var(--color-text-on-dark-muted); }

@media (max-width: 900px) {
  .services-strip .container { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(2n) { border-left: none; padding-left: 0; }
  .strip-item:nth-child(n+3) { border-left: none; padding-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 20px; }
}
@media (max-width: 560px) {
  .services-strip .container { grid-template-columns: 1fr; }
  .strip-item { border-left: none; padding-left: 0; }
  .strip-item:not(:first-child) { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 20px; }
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section { padding: 80px 0; }

.section__header {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section__eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: 12px;
}

.section__title { margin-bottom: 16px; }
.section__sub { font-size: 16px; }

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.service-card__image-wrap {
  display: block;
  background: var(--color-bg-subtle);
  aspect-ratio: 4/3;
  overflow: hidden;
}

.service-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-card__image-wrap img { transform: scale(1.05); }

.service-card__body { padding: 24px; }
.service-card__title { margin-bottom: 10px; }
.service-card__desc { font-size: 14px; margin-bottom: 16px; }
.service-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service-cards--four { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service-cards--four .service-card__body { padding: 20px; }

@media (max-width: 1100px) {
  .service-cards--four { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .service-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .service-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   GALLERY PREVIEW (homepage "Recent Work" — links to full NGG gallery)
   ============================================================ */
.section--gallery { padding-top: 0; }
.section--alt + .section--gallery { padding-top: 80px; }

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-preview__item {
  display: block;
  background: var(--color-bg-subtle);
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.gallery-preview__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-preview__item:hover img { transform: scale(1.06); }

.gallery-preview__cta { text-align: center; }

@media (max-width: 900px) {
  .gallery-preview { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery-preview { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  background: var(--color-bg-section);
  padding: 80px 0;
}

.about-strip .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-strip__content p { margin: 16px 0; }

.about-strip__image {
  background: var(--color-bg-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.about-strip__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .about-strip .container { grid-template-columns: 1fr; }
  .about-strip__image { order: -1; }
}

/* ============================================================
   CTA BANNER
   Three-layer technique: solid color fallback on the section itself,
   a desaturated/darkened background photo on ::before, and a strong
   accent-color wash on ::after — giving texture without distraction.
   ============================================================ */
.cta-banner {
  background-color: var(--color-bg-dark);
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/cta-background.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: grayscale(60%) brightness(0.55);
  transform: scale(1.04);
  z-index: 0;
}
.cta-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: color-mix(in srgb, var(--color-brand) 88%, transparent);
  z-index: 1;
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta-banner .btn--gold {
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.cta-banner__btns,
.page-hero__btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-banner__btns { justify-content: center; }
.page-hero__btns { margin-top: 24px; }

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  background-color: var(--color-bg-dark);
  background-image: url('/images/header-page.webp');
  background-size: cover;
  background-position: center;
  padding: calc(var(--nav-height) + 56px) 0 56px;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-page-hero);
  z-index: 0;
}

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

.breadcrumb {
  font-size: 13px;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--color-text-on-dark-muted); }
.breadcrumb a:hover { color: var(--color-text-on-dark); }
.breadcrumb span { margin: 0 6px; }

.page-hero h1 { margin-bottom: 12px; color: var(--color-text-on-dark); }
.page-hero p { max-width: 640px; color: var(--color-text-on-dark-muted); }

/* ============================================================
   404
   ============================================================ */
.largepic { max-width: 320px; margin: 24px 0; border-radius: var(--radius-md); }

/* ============================================================
   CONTENT AREA / ENTRY CONTENT (block editor + page.php)
   ============================================================ */
.content-area { padding: 48px 0 64px; }

.entry-content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.entry-content > * + * { margin-top: 1.4em; }

.entry-content h2 { margin-top: 2em; }
.entry-content h3 { margin-top: 1.6em; }

.entry-content ul, .entry-content ol {
  padding-left: 1.4em;
  color: var(--color-text-secondary);
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }

.entry-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
  font-style: italic;
  color: var(--color-text-secondary);
}

.entry-content figure { margin: 0; }
.entry-content figcaption {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content table th,
.entry-content table td {
  border: 1px solid var(--color-bg-border);
  padding: 10px 14px;
  text-align: left;
}
.entry-content table th { background: var(--color-bg-section); }

/* Native block-editor alignment classes */
.alignwide { max-width: calc(var(--content-width) + 200px); margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* ============================================================
   BLOG LISTING (archive.php / t-blog.php)
   ============================================================ */
.blog-area { padding: 56px 0 80px; }

.blog-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

.blog-card__image-wrap {
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
}
.blog-card__image-wrap img { width: 100%; height: 100%; object-fit: cover; }

.blog-card__body { padding: 20px; }

.blog-card__cat {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-accent-dark);
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.blog-card__title { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card__title a { color: var(--color-text-primary); }
.blog-card__title a:hover { color: var(--color-accent-dark); }

.blog-card__meta {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.blog-card__meta-dot { margin: 0 6px; }

.blog-card__excerpt { font-size: 14px; margin-bottom: 14px; }

.blog-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.blog-empty { text-align: center; padding: 48px 0; }
.blog-empty p { margin-bottom: 20px; }

.blog-pagination { margin-top: 40px; }
.blog-pagination__inner {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-bg-border);
  padding-top: 20px;
}
.blog-pagination a { font-weight: 700; font-size: 14px; }

/* ============================================================
   SIDEBAR (shared: archive, single, t-blog)
   ============================================================ */
.post-sidebar { display: flex; flex-direction: column; gap: 24px; }

/* Hides sidebar on mobile */
@media (max-width: 1024px) {
  .post-content + .post-sidebar {
    display: none;
  }
  .post-layout {
    grid-template-columns: 1fr;
  }
}

/* Same treatment for archive.php/t-blog.php, where the sidebar's preceding
   sibling is .blog-main rather than .post-content. */
@media (max-width: 1024px) {
  .blog-main + .post-sidebar {
    display: none;
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.sidebar-card__header {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-bg-border);
}

.sidebar-card__body { padding: 16px 20px; }

.sidebar-card__body--links {
  display: flex;
  flex-direction: column;
}
.sidebar-card__body--links a {
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
}
.sidebar-card__body--links a:hover { color: var(--color-accent-dark); }

.sidebar-cat-count { color: var(--color-text-muted); font-size: 12px; }

.sidebar-card--cta { border-color: var(--color-accent); }
.sidebar-card--cta .sidebar-card__body { padding: 24px 20px; }
.sidebar-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.sidebar-card__title { margin-bottom: 10px; }
.sidebar-card--cta p { font-size: 14px; margin-bottom: 18px; }
.sidebar-card--cta .btn { margin-top: 4px; }
.sidebar-cta-phone {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-weight: 700;
  font-size: 14px;
}

.sidebar-recent-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}
.sidebar-recent-post__thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.sidebar-recent-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-post__text { display: flex; flex-direction: column; gap: 4px; }
.sidebar-recent-post__title { font-size: 13px; font-weight: 600; color: var(--color-text-primary); }
.sidebar-recent-post__date { font-size: 11px; color: var(--color-text-muted); }

@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero .post-category-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-on-dark);
  background: rgba(255, 255, 255, 0.16);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  margin-right: 8px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-text-on-dark-muted);
  margin-top: 8px;
}
.post-meta span { display: flex; align-items: center; gap: 6px; }
.post-meta__divider { opacity: 0.5; }

.post-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-bg-border);
}
.post-tags__label { font-size: 13px; color: var(--color-text-muted); }
.post-tag {
  font-size: 12px;
  background: var(--color-bg-section);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
}
.post-tag:hover { color: var(--color-accent-dark); }

.post-author-bio {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  padding: 24px;
  background: var(--color-bg-section);
  border-radius: var(--radius-md);
}
.post-author-bio__avatar img { border-radius: 50%; }
.post-author-bio__name { font-weight: 700; margin-bottom: 6px; }
.post-author-bio__content p { font-size: 14px; }

.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}
.post-nav__item {
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-nav__item--next { text-align: right; align-items: flex-end; }
.post-nav__dir { font-size: 12px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.post-nav__title { font-weight: 600; color: var(--color-text-primary); }

@media (max-width: 900px) {
  .post-layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-author-bio { flex-direction: column; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background-color: var(--color-bg-dark);
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/images/footer-background.webp');
  background-size: cover;
  background-position: center;
  opacity: 0.8;
  z-index: 0;
}

.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-footer);
  z-index: 1;
}

.social-bar {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 16px 0;
}
.social-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.social-bar__label { font-size: 12px; color: var(--color-text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.social-bar__icons { display: flex; gap: 14px; }
.social-bar__link {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--color-text-on-dark-muted);
}
.social-bar__link svg { width: 16px; height: 16px; }
.social-bar__link:hover { color: var(--color-text-on-dark); border-color: var(--color-accent-light); background: rgba(255, 255, 255, 0.14); }

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-brand__logo { height: 54px; width: auto; margin-bottom: 16px; }
.footer-brand__desc { font-size: 14px; margin-bottom: 20px; color: var(--color-text-on-dark-muted); }
.footer-brand__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer-brand__contact a,
.footer-brand__contact span { color: var(--color-text-on-dark-muted); }
.footer-brand__contact a:hover { color: var(--color-accent-light); }

.footer-col__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
  color: var(--color-text-on-dark);
}
.footer-col__links { display: flex; flex-direction: column; gap: 10px; }
.footer-col__links a { font-size: 14px; color: var(--color-text-on-dark-muted); }
.footer-col__links a:hover { color: var(--color-accent-light); }

.footer-bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
}
.footer-bottom__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 13px; color: var(--color-text-on-dark-muted); }
.footer-bottom a { color: var(--color-text-on-dark-muted); }
.footer-bottom a:hover { color: var(--color-accent-light); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .social-bar__inner { flex-direction: column; gap: 10px; text-align: center; }
}

/* ============================================================
   ALTERNATE SECTION BACKGROUND
   ============================================================ */
.section--alt { background: var(--color-bg-section); }

/* ============================================================
   CHECK LIST (about strip, service-area pages, editor content)
   ============================================================ */
.check-list { margin: 20px 0 28px; display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--color-text-primary);
  font-weight: 500;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-on-accent);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-content ul.check-list { list-style: none; padding-left: 0; }

/* ============================================================
   HOW IT WORKS (homepage process steps)
   ============================================================ */
.process__steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.process__step {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  text-align: center;
}
.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-brand);
  color: var(--color-accent-light);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent) 22%, transparent);
}
.process__title { margin-bottom: 10px; }
.process__desc { font-size: 15px; }

@media (max-width: 900px) {
  .process__steps { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}

/* ============================================================
   SERVICE AREA PAGES (t-area.php)
   ============================================================ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.area-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-top: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.area-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(7,26,58,0.10); }
.area-card__pin { color: var(--color-accent-dark); font-size: 18px; }
.area-card__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text-primary);
}
.area-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-brand);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.area-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.area-services__item {
  display: block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.area-services__item:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(7,26,58,0.10); }
.area-services__title { margin-bottom: 8px; }
.area-services__desc { font-size: 14px; margin-bottom: 14px; }

.area-why {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.area-why h2 { margin-top: 4px; }

@media (max-width: 1000px) {
  .area-services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .area-grid { grid-template-columns: repeat(2, 1fr); }
  .area-why { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .area-grid, .area-services { grid-template-columns: 1fr; }
}

/* ============================================================
   MOBILE CALL / TEXT BAR (fixed bottom, phones only)
   ============================================================ */
.mobile-cta-bar { display: none; }

@media (max-width: 900px) {
  .mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: var(--mobile-cta-height);
    box-shadow: 0 -4px 18px rgba(0,0,0,0.18);
  }
  .mobile-cta-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
  .mobile-cta-bar__btn--call { background: var(--color-accent); color: var(--color-text-on-accent) !important; }
  .mobile-cta-bar__btn--text { background: var(--color-brand); color: var(--color-text-on-dark) !important; }
  body { padding-bottom: var(--mobile-cta-height); }
}

/* ============================================================
   NINJA FORMS
   Built against NF's standard default markup/class names. If your
   form uses a different layout template or a customized markup,
   selectors below may need adjusting — send the rendered HTML and
   these can be tightened up.
   ============================================================ */
.nf-form-cont {
  max-width: 560px;
}

/* NF's own form title/description, if enabled in form settings —
   kept small and muted so it doesn't compete with the page's own
   H2 sitting right above the shortcode. */
.nf-form-title h3 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.nf-form-fields-required {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.nf-form-fields-required .ninja-forms-req-symbol {
  color: var(--color-accent-dark);
}

.nf-field-container {
  margin-bottom: 22px;
}

.nf-field-label label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 8px;
}

.ninja-forms-req-symbol {
  color: var(--color-accent-dark);
  margin-left: 2px;
}

.nf-field-element input[type="text"],
.nf-field-element input[type="email"],
.nf-field-element input[type="tel"],
.nf-field-element input[type="number"],
.nf-field-element input[type="url"],
.nf-field-element textarea,
.nf-field-element select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-primary);
  background: var(--color-bg-card);
  border: 1px solid var(--color-bg-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nf-field-element textarea {
  min-height: 140px;
  resize: vertical;
}

.nf-field-element input:focus,
.nf-field-element textarea:focus,
.nf-field-element select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}

.nf-field-element input::placeholder,
.nf-field-element textarea::placeholder {
  color: var(--color-text-muted);
}

.nf-error-wrap.nf-error {
  font-size: 13px;
  color: #c0392b;
  margin-top: 6px;
}

/* NF toggles an error class via JS on invalid submit — exact placement
   wasn't visible in the sample HTML (it only showed the valid/untouched
   state), so this targets the two most common spots. If red borders don't
   appear on an actual validation error, inspect the field in a failed
   state and adjust the selector below. */
.nf-field-container.nf-error .nf-field-element input,
.nf-field-container.nf-error .nf-field-element textarea,
.field-wrap.nf-error input,
.field-wrap.nf-error textarea {
  border-color: #c0392b;
}

/* Submit button, styled to match .btn--gold */
.nf-form-cont .submit-wrap input[type="submit"] {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-on-accent);
  background: var(--color-accent);
  border: none;
  border-radius: var(--radius-sm);
  padding: 13px 28px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.nf-form-cont .submit-wrap input[type="submit"]:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

/* Success message after submit */
.nf-response-msg {
  font-size: 15px;
  color: var(--color-text-primary);
  padding: 16px 0;
}