/* ==========================================================
   Sol Solutions | solsolutionservices.com
   Single stylesheet for the whole site
   ========================================================== */

/* ---------- Tokens ---------- */
:root {
  --z-sticky: 100;
  --z-float: 90;
  --z-drawer-backdrop: 200;
  --z-drawer: 210;
  --z-modal: 300;
  --navy: #14223c;
  --navy-deep: #0d172a;
  --navy-soft: #1e3054;
  --gold: #c9a063;
  --gold-light: #e6cc9b;
  --gold-dark: #a87f43;
  --mist: #f1f3f7;
  --mist-deep: #e4e8f0;
  --white: #ffffff;
  --ink: #1b2233;
  --muted: #5a6274;
  --line: rgba(20, 34, 60, 0.12);
  --line-light: rgba(255, 255, 255, 0.14);

  --font-display: "Marcellus", Georgia, "Times New Roman", serif;
  --font-body: "Mulish", "Segoe UI", Helvetica, Arial, sans-serif;

  --container: 1200px;
  --gutter: 24px;
  --radius: 4px;
  --header-h: 84px;
  --shadow-sm: 0 2px 10px rgba(13, 23, 42, 0.06);
  --shadow-md: 0 18px 50px -20px rgba(13, 23, 42, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 0.5em;
  color: var(--navy);
  letter-spacing: 0;
  text-wrap: balance;
}
p, li { text-wrap: pretty; }
b, strong { font-weight: 700; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 112px 0; }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.section--navy h2, .section--navy h3 { color: var(--white); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.section--navy .eyebrow, .page-hero .eyebrow { color: var(--gold); }

.title-lg { font-size: clamp(34px, 4.2vw, 52px); }
.title-md { font-size: clamp(30px, 3.4vw, 42px); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 30px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn--gold { background: var(--gold); color: var(--navy-deep); }
.btn--gold:hover { background: var(--gold-light); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-soft); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.45); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-light); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: 13px; }
.btn:active { transform: translateY(1px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 160, 99, 0.25);
  transition: box-shadow 0.3s var(--ease);
}
.header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.header__logo img { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 10px 14px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--gold-light); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.header__actions { display: flex; align-items: center; gap: 18px; }
.header__icon {
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line-light); border-radius: 50%;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s, border-color 0.25s;
}
.header__icon:hover { color: var(--gold); border-color: var(--gold); }
.header__icon svg { width: 16px; height: 16px; }
.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--white); letter-spacing: 0.02em;
}
.header__phone svg { width: 16px; height: 16px; color: var(--gold); }
.header__phone:hover { color: var(--gold-light); }

.hamburger {
  display: none; margin-left: auto;
  width: 46px; height: 46px; padding: 0;
  background: transparent; border: 1px solid var(--line-light); border-radius: var(--radius);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 1px; }

/* ---------- Mobile drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; z-index: var(--z-drawer-backdrop);
  background: rgba(8, 14, 26, 0.6);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer);
  width: min(360px, 88vw);
  background: var(--navy); color: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid var(--line-light);
}
.drawer__head img { width: 120px; }
.drawer__close {
  width: 44px; height: 44px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-light); border-radius: var(--radius); color: var(--white);
}
.drawer__close svg { width: 20px; height: 20px; }
.drawer__nav { padding: 12px 22px; }
.drawer__nav a {
  display: block; padding: 16px 0;
  font-family: var(--font-display); font-size: 26px;
  border-bottom: 1px solid var(--line-light);
}
.drawer__nav a.active { color: var(--gold); }
.drawer__cta { margin-top: auto; padding: 24px 22px 32px; display: grid; gap: 12px; }
.drawer__cta .btn { width: 100%; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(760px, calc(100vh - var(--header-h)));
  display: flex; align-items: center;
  color: var(--white);
  padding: 120px 0;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg span {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: heroFade 21s infinite;
  transform: scale(1.06);
}
.hero__bg span:nth-child(1) { background-image: url("../img/hero-handshake.webp"); animation-delay: 0s; }
.hero__bg span:nth-child(2) { background-image: url("../img/hero-renewable-energy.webp"); animation-delay: 7s; }
.hero__bg span:nth-child(3) { background-image: url("../img/hero-construction.webp"); animation-delay: 14s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.06); }
  6% { opacity: 1; }
  33% { opacity: 1; }
  40% { opacity: 0; transform: scale(1); }
  100% { opacity: 0; }
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(13, 23, 42, 0.94) 0%, rgba(13, 23, 42, 0.82) 45%, rgba(13, 23, 42, 0.35) 100%);
}
.hero__content { max-width: 760px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.06;
  margin-bottom: 40px;
}
.hero__rule { width: 72px; height: 2px; background: var(--gold); margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.hero__phone svg { width: 18px; height: 18px; color: var(--gold); }
.hero__phone:hover { color: var(--gold-light); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; isolation: isolate;
  padding: 120px 0 108px;
  background-size: cover; background-position: center;
  color: var(--white); text-align: center;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13, 23, 42, 0.78), rgba(13, 23, 42, 0.9));
}
.page-hero h1 { color: var(--white); font-size: clamp(38px, 5vw, 64px); margin-bottom: 30px; }
.page-hero--plain { background: var(--navy); padding: 88px 0 80px; }
.page-hero--about { background-image: url("../img/about-header.webp"); background-position: center 30%; }
.page-hero--services { background-image: url("../img/services-header.webp"); }
.page-hero--brokerage { background-image: url("../img/brokerage-header.webp"); }
.page-hero--experience { background-image: url("../img/experience-header.webp"); background-position: center 35%; }
.page-hero .accent { color: var(--gold); }

.breadcrumbs { background: var(--mist); border-bottom: 1px solid var(--line); }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin: 0; padding: 16px 0; list-style: none;
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted);
}
.breadcrumbs a { color: var(--navy); }
.breadcrumbs a:hover { color: var(--gold-dark); }
.breadcrumbs li + li::before { content: "/"; margin-right: 10px; color: var(--gold-dark); }

/* ---------- Portrait split (Why Choose Me / About) ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 88px; align-items: center; }
.split--top { align-items: start; }
.portrait { position: relative; max-width: 440px; }
.portrait::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  border: 1px solid var(--gold);
  z-index: 0;
}
.portrait img { position: relative; z-index: 1; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.split__body .lead { font-size: 19px; color: var(--ink); }
.split__body p { color: var(--muted); }
.split__body .btn { margin-top: 18px; }

/* ---------- What sets me apart ---------- */
.apart { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: start; }
.apart__item { display: grid; grid-template-columns: 56px 1fr; gap: 24px; padding: 34px 0; border-top: 1px solid var(--line-light); }
.apart__item:last-child { border-bottom: 1px solid var(--line-light); }
.apart__icon {
  width: 56px; height: 56px; display: grid; place-items: center;
  border: 1px solid rgba(201, 160, 99, 0.5); border-radius: 50%; color: var(--gold);
}
.apart__icon svg { width: 24px; height: 24px; }
.apart__item h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }

/* ---------- Connect card (replaces inline forms) ---------- */
.connect-card {
  position: relative;
  background: var(--white); color: var(--ink);
  border-top: 3px solid var(--gold);
  padding: 44px 40px;
  box-shadow: var(--shadow-md);
}
.connect-card h2 { font-size: clamp(30px, 3vw, 38px); margin-bottom: 26px; color: var(--navy); }
.connect-card__row {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0; border-top: 1px solid var(--line);
  font-weight: 600; color: var(--navy); word-break: break-word;
}
.connect-card__row:last-of-type { border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.connect-card__row svg { width: 18px; height: 18px; color: var(--gold-dark); flex-shrink: 0; }
.connect-card__row:hover { color: var(--gold-dark); }
.connect-card .btn { width: 100%; }
.sticky-col { position: sticky; top: calc(var(--header-h) + 32px); }

/* ---------- Testimonials ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head .eyebrow { justify-content: center; }
.section-head .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.review {
  display: flex; flex-direction: column;
  background: var(--white); padding: 44px 36px 34px;
  border: 1px solid var(--line);
  transition: background-color 0.7s var(--ease), border-color 0.7s var(--ease), box-shadow 0.7s var(--ease), transform 0.7s var(--ease);
}
.review__stars { display: flex; gap: 4px; color: var(--gold); margin-bottom: 22px; }
.review__stars svg { width: 16px; height: 16px; }
.review__text { font-family: var(--font-display); font-size: 19px; line-height: 1.6; color: var(--ink); flex: 1; margin: 0 0 26px; transition: color 0.7s var(--ease); }
.review__footer { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); transition: border-color 0.7s var(--ease); }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--gold);
  font-family: var(--font-display); font-size: 20px;
  transition: background-color 0.7s var(--ease), color 0.7s var(--ease);
}
.review__name { font-weight: 700; color: var(--navy); transition: color 0.7s var(--ease); }
/* Highlighted testimonial; js/main.js moves .is-active Robert, Kathy, Carol, repeat */
.review.is-active { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-8px); }
.review.is-active .review__text, .review.is-active .review__name { color: var(--white); }
.review.is-active .review__footer { border-color: var(--line-light); }
.review.is-active .review__avatar { background: var(--gold); color: var(--navy-deep); }
.reviews__dots { display: flex; justify-content: center; gap: 10px; margin-top: 40px; }
.reviews__dots button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px;
  background: rgba(20, 34, 60, 0.18); transition: background-color 0.4s var(--ease), width 0.4s var(--ease);
}
.reviews__dots button[aria-current="true"] { background: var(--gold); width: 54px; }

/* ---------- Sun motif (from the logo) ---------- */
.sun-rule { display: flex; align-items: center; gap: 14px; width: 132px; }
.sun-rule::before, .sun-rule::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: 0.7; }
.sun-rule span { width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23c9a063%27 stroke-width=%271.6%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27 fill=%27%23c9a063%27/%3E%3Cpath d=%27M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1%27/%3E%3C/svg%3E") center / contain no-repeat; }
.sun-rule--center { margin: 0 auto; }

/* ---------- About: credentials cards ---------- */
.cred-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 72px; }
.cred { padding-top: 30px; border-top: 1px solid var(--navy); }
.cred__tag {
  display: block; margin-bottom: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-dark);
}
.cred h3 { font-size: clamp(26px, 2.4vw, 32px); margin-bottom: 22px; }
.cred li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; line-height: 1.6; }
.cred li:last-child { border-bottom: 0; }
.cred li::before {
  content: ""; position: absolute; left: 0; top: 16px;
  width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23c9a063%27 stroke-width=%271.6%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27 fill=%27%23c9a063%27/%3E%3Cpath d=%27M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1%27/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Services ---------- */
.services-layout { display: grid; grid-template-columns: 290px 1fr; gap: 72px; align-items: start; }
.services-nav { position: sticky; top: calc(var(--header-h) + 32px); border-top: 3px solid var(--gold); background: var(--navy); }
.services-nav a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 24px;
  font-weight: 700; font-size: 15px; color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line-light);
  transition: background-color 0.25s, color 0.25s, padding 0.3s var(--ease);
}
.services-nav a svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.services-nav a:hover, .services-nav a.active { background: var(--navy-soft); color: var(--gold-light); padding-left: 30px; }
.service-block { padding: 48px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 24px); }
.sun-rule + .service-block { padding-top: 0; border-top: 0; }
.service-block h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 16px; }
.service-block h4 { font-size: 24px; margin: 28px 0 10px; }
.service-block > p { color: var(--muted); }
.checklist { display: grid; gap: 14px; margin-top: 22px; }
.checklist li { position: relative; padding-left: 36px; line-height: 1.7; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--mist-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a87f43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.services-cta { margin-top: 24px; }

.dont-do { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
.dont-do p { font-size: 19px; }

/* ---------- Brokerage ---------- */
.prose-split { display: grid; grid-template-columns: 7fr 5fr; gap: 80px; align-items: start; }
.prose p { color: var(--muted); font-size: 18px; }
.prose p.lead {
  font-family: var(--font-display); font-size: clamp(24px, 2.4vw, 30px); line-height: 1.45;
  color: var(--navy); margin-bottom: 1.4em;
}
.prose .sun-rule { margin-bottom: 28px; }

/* ---------- Experience ---------- */
.exp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.exp-item {
  position: relative;
  padding: 30px 0 30px 44px; border-top: 1px solid var(--line);
  color: #3f4759; font-size: 16.5px;
}
.exp-item::before {
  content: ""; position: absolute; left: 0; top: 35px;
  width: 22px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23c9a063%27 stroke-width=%271.6%27 stroke-linecap=%27round%27%3E%3Ccircle cx=%2712%27 cy=%2712%27 r=%274%27 fill=%27%23c9a063%27/%3E%3Cpath d=%27M12 2v3M12 19v3M2 12h3M19 12h3M4.9 4.9l2.1 2.1M17 17l2.1 2.1M4.9 19.1L7 17M17 7l2.1-2.1%27/%3E%3C/svg%3E") center / contain no-repeat;
}
.exp-item b { color: var(--navy); }
.connect-band { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.connect-band h2 { color: var(--white); margin: 0; font-size: clamp(32px, 3.6vw, 46px); }
.connect-band__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Privacy ---------- */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 28px; margin: 48px 0 14px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0 0 1.1em; display: grid; gap: 12px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before {
  content: ""; position: absolute; left: 0; top: 0.72em;
  width: 7px; height: 7px; background: var(--gold); border-radius: 50%;
}

/* ---------- Footer ---------- */
.footer { background: var(--navy); border-top: 1px solid rgba(201, 160, 99, 0.35); color: rgba(255, 255, 255, 0.72); font-size: 15.5px; }
.footer__top { padding: 88px 0 64px; display: grid; grid-template-columns: 1.1fr 1fr 1.3fr; gap: 56px; }
.footer__logo { width: 150px; margin-bottom: 26px; }
.footer h3 {
  font-family: var(--font-body); font-size: 13px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 24px;
}
.footer__contact { display: grid; gap: 18px; margin: 0; }
.footer__contact dt { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 2px; }
.footer__contact dd { margin: 0; color: var(--white); }
.footer__contact a:hover { color: var(--gold-light); }
.footer__social { display: flex; gap: 10px; margin-top: 28px; }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-light); border-radius: 50%;
  transition: border-color 0.25s, color 0.25s;
}
.footer__social a:hover { border-color: var(--gold); color: var(--gold); }
.footer__social svg { width: 16px; height: 16px; }
.footer__services { display: grid; gap: 14px; }
.footer__services li { display: flex; gap: 12px; align-items: flex-start; }
.footer__services svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 5px; }
.footer__map { border: 1px solid var(--line-light); line-height: 0; }
.footer__map iframe { width: 100%; height: 260px; border: 0; filter: grayscale(0.35) contrast(1.05); }
.footer__bottom { border-top: 1px solid var(--line-light); padding: 26px 0; font-size: 14px; }
.footer__bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; align-items: center; }
.footer__bottom a:hover { color: var(--gold-light); }
.footer__legal span { display: block; }
.footer__legal span + span { margin-top: 4px; color: rgba(255, 255, 255, 0.5); }
.footer__phone { font-weight: 700; color: var(--white); }

/* ---------- Sticky CTAs ---------- */
.side-cta {
  position: fixed; right: 0; top: 50%; z-index: var(--z-float);
  transform: translateY(-50%);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-md);
}
.side-cta a, .side-cta button {
  width: 54px; height: 54px; display: grid; place-items: center;
  border: 0; color: var(--navy-deep); background: var(--gold);
  transition: background-color 0.25s, width 0.3s var(--ease);
}
.side-cta a { background: var(--navy); color: var(--gold); border-bottom: 1px solid var(--line-light); }
.side-cta a:hover { background: var(--navy-soft); }
.side-cta button:hover { background: var(--gold-light); }
.side-cta svg { width: 22px; height: 22px; }

.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-float);
  grid-template-columns: 1fr 1fr;
  box-shadow: 0 -8px 24px rgba(13, 23, 42, 0.25);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--navy);
}
.mobile-bar a, .mobile-bar button {
  min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
}
.mobile-bar a { background: var(--navy); color: var(--white); }
.mobile-bar button { background: var(--gold); color: var(--navy-deep); }
.mobile-bar svg { width: 18px; height: 18px; }

/* ---------- Popup ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: rgba(8, 14, 26, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: var(--white);
  border-top: 3px solid var(--gold);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.45s var(--ease);
}
.popup-overlay.active .popup { transform: none; }
.popup__head { background: var(--navy); padding: 30px 36px 26px; text-align: center; }
.popup__head img { width: 120px; margin: 0 auto 14px; }
.popup__head h2 { color: var(--white); font-size: 30px; margin: 0; }
.popup__body { padding: 28px 36px 36px; }
.popup__close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line-light); border-radius: 50%; color: var(--white);
}
.popup__close:hover { border-color: var(--gold); color: var(--gold); }
.popup__close svg { width: 18px; height: 18px; }

/* ---------- Lead form ---------- */
.lead-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--navy); }
.field input, .field textarea {
  width: 100%; padding: 13px 14px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 104px; }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 160, 99, 0.25); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .terms input[aria-invalid="true"] { border-color: #b3261e; outline: 1px solid #b3261e; }
.terms { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.terms input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.terms a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.form-status { margin: 0; font-size: 14px; font-weight: 600; color: #b3261e; }
.form-status:empty { display: none; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; padding: 12px 0 4px; }
.form-success__icon { width: 60px; height: 60px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--gold); }
.form-success__icon svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 30px; }
.form-success p { color: var(--muted); }
.form-success a { color: var(--navy); font-weight: 700; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 140px 0; }
.notfound .code { font-family: var(--font-display); font-size: 120px; line-height: 1; color: var(--gold); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .header__actions { display: none; }
  .hamburger { display: flex; }
  .split, .apart, .prose-split, .dont-do { gap: 56px; }
  .services-layout { grid-template-columns: 240px 1fr; gap: 48px; }
}

@media (max-width: 1023px) {
  .side-cta { display: none; }
  .split, .apart, .prose-split, .dont-do { grid-template-columns: 1fr; }
  .portrait { margin: 0 auto 24px; max-width: 380px; }
  .reviews { grid-template-columns: 1fr; max-width: 680px; margin: 0 auto; }
  .services-layout { grid-template-columns: 1fr; }
  .services-nav { position: static; }
  .sticky-col { position: static; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__top > :last-child { grid-column: 1 / -1; }
  .connect-band { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --header-h: 72px; --gutter: 16px; }
  body { font-size: 16px; padding-bottom: 56px; }
  .section { padding: 72px 0; }
  .header__logo img { width: 120px; }
  .mobile-bar { display: grid; }
  .hero { padding: 80px 0 96px; min-height: 0; }
  .hero h1 { margin-bottom: 32px; }
  .hero__actions .btn { width: 100%; }
  .page-hero { padding: 80px 0 72px; }
  .cred-grid, .exp-grid { grid-template-columns: 1fr; }
  .cred, .connect-card { padding: 34px 24px; }
  .review { padding: 36px 24px 28px; }
  .footer__top { grid-template-columns: 1fr; padding: 64px 0 48px; gap: 44px; }
  .footer__bottom .container { flex-direction: column; align-items: flex-start; }
  .popup__head, .popup__body { padding-left: 22px; padding-right: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .portrait { max-width: calc(100% - 16px); margin: 0 16px 16px 0; }
  .portrait::before { inset: 16px -16px -16px 16px; }
  .connect-band__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .hero__bg span:nth-child(1) { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}
