/*
Theme Name: Capitol Investment 2026
Theme URI: https://capitolinvestment.org
Author: Prestige Worldwide
Description: Custom theme for Capitol Investment Consultants — multifamily renovation and construction management. Gators blue & orange.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: capitol
*/

:root {
  --blue: #0021a5;
  --blue-700: #001a85;
  --blue-900: #0a1747;
  --blue-950: #060e30;
  --orange: #fa4616;
  --orange-600: #e23b0e;
  --ink: #0d1530;
  --muted: #586079;
  --line: #e2e5ee;
  --paper: #ffffff;
  --mist: #f3f5fa;
  --display: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 6px;
  --shadow: 0 24px 60px -24px rgba(6, 14, 48, 0.35);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(18px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--orange-600); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.skip-link { position: absolute; left: -9999px; top: 10px; z-index: 1000; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { left: 10px; }
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.15em; height: 1.15em; flex: none; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: -0.005em; text-transform: uppercase; margin: 0 0 0.5em; text-wrap: balance; }
h2 { font-size: clamp(2.3rem, 4.6vw, 3.75rem); color: var(--blue-950); }
h3 { font-size: 1.55rem; font-weight: 700; letter-spacing: 0.01em; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.22rem; color: var(--ink); font-weight: 500; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 700; font-size: 0.98rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--orange-600); margin: 0 0 18px;
}
.eyebrow::before { content: ''; width: 34px; height: 3px; background: var(--orange); }
.eyebrow-light { color: #ffb399; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; transition: transform 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 0.98rem; }
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 10px 24px -10px rgba(250, 70, 22, 0.7); }
.btn-orange:hover { background: var(--orange-600); color: #fff; }
.btn-white { background: #fff; color: var(--blue-950); }
.btn-white:hover { color: var(--orange-600); }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: background 0.3s, box-shadow 0.3s, border-color 0.3s; }
.site-header.is-overlay { position: fixed; inset: 0 0 auto; background: transparent; border-color: transparent; }
.site-header.is-overlay.is-scrolled, .site-header.is-open { background: #fff; border-color: var(--line); box-shadow: 0 10px 30px -18px rgba(6, 14, 48, 0.45); }
.admin-bar .site-header.is-overlay { top: 32px; }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 84px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--blue-950); flex: none; }
.brand img { width: 60px; height: 60px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; font-family: var(--display); text-transform: uppercase; line-height: 1; }
.brand-text strong { font-weight: 800; font-size: 1.32rem; letter-spacing: 0.02em; }
.brand-text span { font-weight: 600; font-size: 0.86rem; letter-spacing: 0.34em; color: var(--orange-600); margin-top: 3px; }
.is-overlay:not(.is-scrolled):not(.is-open) .brand { color: #fff; }
.is-overlay:not(.is-scrolled):not(.is-open) .brand-text span { color: #ffb399; }
.primary-nav { margin-left: auto; display: flex; align-items: center; }
.nav-list { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 14px; text-decoration: none; color: var(--ink);
  font-family: var(--display); font-weight: 600; font-size: 1.06rem; letter-spacing: 0.1em; text-transform: uppercase;
  position: relative;
}
.nav-list a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-list a:hover::after, .nav-list .current-menu-item a::after { transform: scaleX(1); }
.nav-list a:hover { color: var(--blue); }
.is-overlay:not(.is-scrolled):not(.is-open) .nav-list a { color: #fff; }
.nav-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--blue-950); font-weight: 600; white-space: nowrap; }
.header-phone .icon { color: var(--orange); }
.is-overlay:not(.is-scrolled):not(.is-open) .header-phone { color: #fff; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 0; background: transparent; padding: 11px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle .bar { display: block; height: 2.5px; border-radius: 2px; background: var(--blue-950); transition: transform 0.3s var(--ease), opacity 0.2s; }
.is-overlay:not(.is-scrolled):not(.is-open) .nav-toggle .bar { background: #fff; }
.is-open .nav-toggle .bar:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.is-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.is-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

@media (max-width: 1180px) { .header-phone span { display: none; } }
@media (max-width: 980px) {
  .header-inner { min-height: 74px; gap: 12px; }
  .brand img { width: 50px; height: 50px; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .header-actions { margin-left: auto; gap: 6px; }
  .header-phone { width: 46px; height: 46px; justify-content: center; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 18px; padding: 18px var(--gutter) 28px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(6, 14, 48, 0.5);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .is-open .primary-nav { visibility: visible; opacity: 1; transform: none; }
  .nav-list { flex-direction: column; }
  .nav-list a, .is-overlay:not(.is-scrolled):not(.is-open) .nav-list a { color: var(--ink); font-size: 1.3rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-list a::after { display: none; }
  .nav-cta { display: inline-flex; }
}
@media (max-width: 420px) { .brand-text strong { font-size: 1.12rem; } .brand-text span { font-size: 0.74rem; } }

/* Hero */
.hero { position: relative; min-height: min(100vh, 900px); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: var(--blue-950); padding-top: 140px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: scale(1.04); animation: cic-zoom 14s var(--ease) forwards; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(6, 14, 48, 0.94) 0%, rgba(0, 33, 165, 0.82) 42%, rgba(0, 33, 165, 0.35) 75%, rgba(6, 14, 48, 0.35) 100%), linear-gradient(0deg, rgba(6, 14, 48, 0.75), transparent 45%); }
.hero-inner { position: relative; padding-bottom: 56px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6.6rem); max-width: 12.5ch; margin-bottom: 26px; color: #fff; }
.hero h1 .hl { color: var(--orange); }
.hero-text { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 40em; color: rgba(255, 255, 255, 0.88); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 -1px; background: #fff; color: var(--ink); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow); }
.hero-stats div { padding: 26px 30px; border-left: 1px solid var(--line); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats dt { font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--blue); text-transform: uppercase; }
.hero-stats dd { margin: 6px 0 0; color: var(--muted); font-size: 1rem; }
@keyframes cic-zoom { to { transform: scale(1); } }
@media (max-width: 760px) {
  .hero { min-height: 0; padding-top: 120px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stats div { border-left: 0; border-top: 1px solid var(--line); padding: 18px 22px; display: flex; align-items: baseline; gap: 14px; }
  .hero-stats div:first-child { border-top: 0; }
  .hero-stats dt { font-size: 2rem; min-width: 3.4ch; }
  .hero-stats dd { margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .cic-rise { animation: cic-rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms + 150ms); }
}
@keyframes cic-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Clients */
.clients { background: #fff; border-bottom: 1px solid var(--line); }
.clients-inner { padding-block: 40px 46px; }
.clients-label { margin: 0 0 30px; font-family: var(--display); font-weight: 700; font-size: 1.02rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); line-height: 1.3; }
.client-logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 36px 24px; }
.client-logos li { display: flex; justify-content: center; max-width: 100%; }
/* Each logo carries its own balanced width (--w, set in front-page.php). */
.client-logos img { width: calc(var(--w, 130) * 1px); max-width: 100%; height: auto; filter: grayscale(0.35); opacity: 0.92; transition: filter 0.3s, opacity 0.3s, transform 0.3s var(--ease); }
.client-logos img:hover { filter: none; opacity: 1; transform: translateY(-2px); }
.client-more { font-family: var(--display); font-weight: 700; font-style: italic; font-size: 1.3rem; color: var(--blue); white-space: nowrap; }
@media (max-width: 900px) {
  .client-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
  .client-logos img { width: calc(var(--w, 130) * 0.9px); }
  .client-more { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .clients-label { margin-bottom: 24px; }
  .client-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .client-logos img { width: calc(var(--w, 130) * 0.8px); }
  .client-more { grid-column: auto; }
}

/* Sections */
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head-split h2 { margin-bottom: 0; }

/* History */
.history-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.history-media { position: relative; padding: 0 60px 70px 0; }
.history-media::before { content: ''; position: absolute; right: 0; top: 40px; bottom: 0; left: 80px; background: var(--orange); border-radius: var(--radius); z-index: -1; }
.history-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.history-inset { position: absolute; left: -16px; bottom: 0; width: 38%; aspect-ratio: 3 / 4; object-fit: cover; border: 6px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.history-badge { position: absolute; right: 12px; bottom: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 116px; height: 116px; background: var(--blue); color: #fff; border-radius: 50%; font-family: var(--display); text-transform: uppercase; box-shadow: var(--shadow); }
.history-badge strong { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.history-badge span { font-size: 0.95rem; letter-spacing: 0.2em; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checks .icon { color: #fff; background: var(--orange); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }
@media (max-width: 900px) {
  .history-grid { grid-template-columns: 1fr; }
  .history-media { padding: 0 24px 56px 0; max-width: 620px; }
  .history-inset { left: 8px; }
}
@media (max-width: 520px) { .checks { grid-template-columns: 1fr; } .history-badge { width: 92px; height: 92px; } .history-badge strong { font-size: 2rem; } }

/* Services */
.services { background: var(--blue-950); color: rgba(255, 255, 255, 0.82); position: relative; overflow: hidden; }
.services::before { content: ''; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(circle, rgba(0, 33, 165, 0.65), transparent 65%); pointer-events: none; }
.services h2 { color: #fff; }
.service-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.service-card { position: relative; padding: 32px 26px 30px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); transition: background 0.3s, transform 0.3s var(--ease), border-color 0.3s; }
.service-card::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: var(--orange); border-radius: var(--radius) var(--radius) 0 0; transform: scaleX(0.18); transform-origin: left; transition: transform 0.4s var(--ease); }
.service-card:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.service-card:hover::before { transform: scaleX(1); }
.service-num { position: absolute; top: 22px; right: 24px; font-family: var(--display); font-weight: 700; color: rgba(255, 255, 255, 0.28); letter-spacing: 0.1em; }
.service-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--orange); color: #fff; margin-bottom: 24px; }
.service-icon .icon { width: 28px; height: 28px; }
.service-card h3 { color: #fff; font-size: 1.6rem; }
.service-card p { margin: 0; font-size: 1rem; }
@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* Process */
.process { background: var(--mist); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; }
.step { position: relative; padding: 0 28px 0 0; }
.step::before { content: ''; position: absolute; top: 31px; left: 70px; right: 8px; height: 2px; background: repeating-linear-gradient(90deg, var(--blue) 0 8px, transparent 8px 14px); opacity: 0.4; }
.step:last-child::before { display: none; }
.step-num { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; border: 2px solid var(--blue); color: var(--blue); font-family: var(--display); font-weight: 800; font-size: 1.45rem; margin-bottom: 22px; transition: background 0.3s, color 0.3s; }
.step:hover .step-num { background: var(--orange); border-color: var(--orange); color: #fff; }
.step h3 { color: var(--blue-950); }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .step::before { display: none; }
}
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Work */
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: 14px; }
.work-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--blue-950); color: #fff; text-decoration: none; }
.work-item.wide { grid-column: span 2; grid-row: span 2; }
.work-item.tall { grid-row: span 2; }
.work-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease), opacity 0.4s; }
.work-item:hover img { transform: scale(1.06); opacity: 0.85; }
.work-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; background: linear-gradient(0deg, rgba(6, 14, 48, 0.9), transparent); display: flex; flex-direction: column; }
.work-caption strong { font-family: var(--display); font-weight: 700; font-size: 1.3rem; text-transform: uppercase; letter-spacing: 0.04em; line-height: 1.1; }
.work-caption span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.work-item:hover { color: #fff; }
@media (max-width: 980px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; } }
@media (max-width: 560px) { .work-grid { grid-auto-rows: 170px; gap: 10px; } .work-item.wide { grid-column: span 2; grid-row: span 2; } .work-caption strong { font-size: 1.08rem; } .work-caption span { display: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 4vw; background: rgba(6, 14, 48, 0.94); opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: var(--radius); }
.lightbox figcaption { text-align: center; color: #fff; margin-top: 14px; font-family: var(--display); font-size: 1.2rem; letter-spacing: 0.06em; text-transform: uppercase; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* CTA band */
.cta-band { background: var(--orange); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border: 60px solid rgba(255, 255, 255, 0.08); border-radius: 50%; }
.cta-inner { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-block: clamp(54px, 7vw, 84px); }
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.cta-band p { margin: 0; font-size: 1.15rem; max-width: 36em; color: rgba(255, 255, 255, 0.92); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-ghost-light:hover { background: rgba(255, 255, 255, 0.14); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-cards li { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color 0.3s, box-shadow 0.3s; }
.contact-cards li:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.contact-icon { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--mist); color: var(--blue); }
.contact-icon .icon { width: 26px; height: 26px; }
.contact-label { font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange-600); }
.contact-cards a, .contact-cards li > span:last-child { font-size: clamp(1.02rem, 3.6vw, 1.25rem); font-weight: 600; color: var(--blue-950); text-decoration: none; overflow-wrap: anywhere; }
.contact-cards a:hover { color: var(--orange-600); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Inner pages */
.page-banner { background: linear-gradient(100deg, var(--blue-950), var(--blue) 70%); color: #fff; padding: clamp(70px, 9vw, 120px) 0 clamp(54px, 7vw, 90px); position: relative; overflow: hidden; }
.page-banner::after { content: ''; position: absolute; right: -60px; bottom: -160px; width: 380px; height: 380px; border: 54px solid rgba(250, 70, 22, 0.85); border-radius: 50%; }
.page-banner h1 { position: relative; z-index: 1; color: #fff; font-size: clamp(2.8rem, 7vw, 5.4rem); margin: 0; max-width: 16ch; }
.page-banner-slim { padding: 54px 0 46px; }
.page-banner-slim h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.page-banner-tall { padding-block: clamp(100px, 14vw, 180px); }
.banner-text { position: relative; z-index: 1; font-size: 1.2rem; margin-top: 18px; color: rgba(255, 255, 255, 0.86); max-width: 34em; }
.prose { max-width: 820px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; }
.prose img, .prose figure { border-radius: var(--radius); }
.prose .wp-block-gallery, .prose .gallery { max-width: none; }
.elementor-wrap { min-height: 40vh; }
.gallery-intro { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.gallery-body .foogallery { margin-inline: auto; }
.post-hero { margin: 0 0 30px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card-img img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.post-card-body { padding: 22px; }
.post-card time { font-size: 0.9rem; color: var(--muted); }
.post-card h2 { font-size: 1.7rem; margin: 6px 0 10px; }
.post-card h2 a { color: var(--blue-950); text-decoration: none; }
.pagination { margin-top: 40px; }

/* Footer */
.site-footer { background: var(--blue-950); color: rgba(255, 255, 255, 0.74); padding-top: clamp(60px, 8vw, 90px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; }
.brand-light { color: #fff; }
.brand-light .brand-text span { color: #ffb399; }
.footer-tag { margin-top: 20px; max-width: 30em; }
.footer-title { font-size: 1.1rem; letter-spacing: 0.18em; color: #fff; margin-bottom: 18px; }
.site-footer .nav-list { flex-direction: column; gap: 2px; }
.site-footer .nav-list a { color: rgba(255, 255, 255, 0.78); padding: 6px 0; font-size: 1.02rem; }
.site-footer .nav-list a::after { left: 0; right: auto; width: 24px; }
.site-footer .nav-list a:hover { color: #fff; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; }
.footer-contact .icon { color: var(--orange); }
.footer-contact a { color: #fff; text-decoration: none; overflow-wrap: anywhere; }
.footer-contact a:hover { color: #ffb399; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.92rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 34px; } }

/* Scroll reveal — only hidden when JS is running */
.js .cic-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .cic-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .cic-reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
}

/* WordPress core alignment helpers */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, .wp-element-caption { font-size: 0.92rem; color: var(--muted); }

/* ── Motion extras ───────────────────────────────────────────────────────── */
[data-split].is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0.02em 0.1em; margin: -0.04em -0.02em -0.1em; }
[data-split].is-split .w > span { display: inline-block; transform: translateY(105%); transition: transform 0.85s var(--ease); transition-delay: calc(var(--w, 0) * 70ms + 200ms); }
[data-split].is-split.words-in .w > span { transform: none; }
.js .work-item.cic-reveal { opacity: 1; transform: none; clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .work-item.cic-reveal.in { clip-path: inset(0 0 0 0 round var(--radius)); }
.service-card:hover .service-icon { animation: cic-bounce 0.6s var(--ease); }
@keyframes cic-bounce { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-8deg); } 100% { transform: scale(1); } }
.btn-orange { position: relative; overflow: hidden; }
.btn-orange::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.38) 50%, transparent 70%); transform: translateX(-130%); pointer-events: none; }
.btn-orange:hover::after { transform: translateX(130%); transition: transform 0.75s var(--ease); }
.history-badge { animation: cic-float 5s ease-in-out infinite; }
@keyframes cic-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) {
  [data-split].is-split .w > span { transform: none; transition: none; }
  .js .work-item.cic-reveal { clip-path: none; }
  .history-badge, .service-card:hover .service-icon { animation: none; }
}
