/*
Theme Name: AirUltra
Theme URI: https://airultrallc.com
Author: Your Agency Name
Description: AirUltra LLC — managed IT / business connectivity site. Built on the Small Business Starter base.
Version: 2.1.1
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   Swap these per-project. Everything below references only these.
   ============================================================ */
:root {
  /* --- Backgrounds (light theme) --- */
  --color-bg-page:    #ffffff;
  --color-bg-section: #F4F8FC;  /* alternating section bg — cool tint off the brand blue */
  --color-bg-raised:  #ffffff;  /* header bg */
  --color-bg-card:    #ffffff;
  --color-bg-border:  #DCE6F0;
  --color-bg-subtle:  #EAF1F8;

  /* --- Accent color: AirUltra ORANGE (from logo mark) — CTAs / highlights --- */
  --color-accent:       #EE4C25;
  --color-accent-light: #F47355;
  --color-accent-dark:  #C93C19;

  /* --- Brand blue (from logo wordmark bars) — header / hero / dark sections --- */
  --color-brand-blue:      #0F75BB;
  --color-brand-blue-dark: #0A3D63;
  --color-brand-blue-deep: #082C48;

  /* --- Text --- */
  --color-text-primary:   #14202B;
  --color-text-secondary: #4C5D6B;
  --color-text-muted:     #8296A3;
  --color-text-on-accent: #ffffff;
  --color-text-on-dark:       #ffffff;
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.78);

  /* --- Overlays: transparent nav sits on top of hero / page-hero images --- */
  --overlay-hero:      linear-gradient(to right, rgba(8,44,72,0.85) 0%, rgba(8,44,72,0.64) 45%, rgba(8,44,72,0.26) 100%);
  --overlay-page-hero: rgba(8,44,72,0.62);
  --overlay-footer:    rgba(5,22,37,0.86);
  --nav-glass-bg:      rgba(10,61,99,0.82);
  --nav-glass-blur:    14px;

  /* --- Fonts: swap Google Fonts link in functions.php if changing these --- */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --nav-height:      100px;
  --util-height:     40px;

  --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-accent); 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-dark);
  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;
}

.clear { clear: both; }

/* ============================================================
   UTILITY BAR
   ============================================================ */
.util-bar {
  background: var(--color-bg-subtle);
  border-bottom: 1px solid var(--color-bg-border);
  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-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-dark);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.util-bar__contact a:hover { color: var(--color-accent); }

.util-bar__contact a.util-bar__phone {
  font-family: var(--font-mono);
  font-weight: 600;
}

.util-bar__social {
  display: flex;
  align-items: center;
  gap: 12px;
}
.util-bar__social a {
  width: 15px;
  height: 15px;
  opacity: 0.75;
  color: var(--color-text-secondary);
}
.util-bar__social a:hover { opacity: 1; color: var(--color-accent-dark); }
.util-bar__social svg { width: 100%; height: 100%; fill: currentColor; }

/* ============================================================
   HERO EYEBROW — signature pulsing signal dot
   ============================================================ */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
  animation: sbt-pulse-dot 2.2s infinite;
}
@keyframes sbt-pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(238,76,37,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(238,76,37,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,76,37,0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow-dot { animation: none; }
}

/* ============================================================
   BRITES WORDMARK
   Colors sampled directly from the client's BRITES logo:
   B/E sky blue, R/S pink, I yellow, T an orange→red gradient.
   Markup comes from sbt_brites_mark() in functions.php so every
   occurrence of the word stays in sync — colors live only here.
   Letter colors are intentionally more specific than surrounding
   link/heading color rules, so this reads correctly inside nav
   links, footer links, and body copy alike without extra classes.
   ============================================================ */
.brites-mark {
  display: inline-flex;
  font-weight: 800;
}
.brites-mark span { display: inline-block; }
.brites-mark span:nth-child(1) { color: #3BC9FF; } /* B */
.brites-mark span:nth-child(2) { color: #FF00CC; } /* R */
.brites-mark span:nth-child(3) { color: #FFDB00; } /* I */
.brites-mark span:nth-child(4) {                    /* T — orange-to-red gradient */
  background: linear-gradient(180deg, #E37D00 0%, #C92400 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brites-mark span:nth-child(5) { color: #3BC9FF; } /* E */
.brites-mark span:nth-child(6) { color: #FF00CC; } /* S */

/* ============================================================
   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: 54px; /* AirUltra logo is a wide banner mark (~3:1) — taller values crowd the nav items */
  width: auto;
}

.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: rgba(181, 101, 45, 0.08);
}

.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;
}

.nav-cta:hover {
  background: var(--color-accent-dark);
  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; }

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

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-bg-section);
  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%, rgba(181,101,45,0.18) 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: 40px;
  padding-top: calc(var(--nav-height) + 150px);
  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: wrap;
}

.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: color-mix(in srgb, var(--color-accent-dark) 78%, black 22%);
  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;
  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;
}

@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; }

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

.gallery-preview__item {
  display: block;
  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 {
  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-accent-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-accent) 80%, 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; }

/* The button uses the same accent orange as the overlay above, so on its own
   it nearly disappears into the background — a faint ring gives it an edge
   to read against without introducing a second color. */
.cta-banner .btn--gold {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.55), 0 6px 20px rgba(0,0,0,0.25);
}
.cta-banner .btn--gold:hover {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.75), 0 6px 20px rgba(0,0,0,0.3);
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  position: relative;
  background-color: var(--color-bg-section);
  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: 64px 0; }

.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: rgba(181, 101, 45, 0.08);
  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; }

.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-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-accent-dark);
  background-image: url('/images/footer-background.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

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

.social-bar {
  position: relative;
  z-index: 1;
  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: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 48px;
}

.footer-brand__logo { height: 40px; 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 { 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: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding: 20px 0;
}
.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; }
}