/* ==========================================================================
   Haven Heating & Air — site styles
   Brand: Haven Navy #03182E · Beacon Red #8F0404 · Warm Ivory #F5F0E6 · Classic Grey #B4B4B5
   ========================================================================== */

:root {
  --navy: #03182e;
  --navy-700: #0b2744;
  --navy-600: #163a5f;
  --red: #8f0404;
  --red-600: #a80d0d;
  --ivory: #f5f0e6;
  --ivory-200: #ebe3d3;
  --grey: #b4b4b5;
  --ink: #1b2430;
  --muted: #4d5866;
  --white: #ffffff;

  --font-head: "Zilla Slab", "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: "Source Serif 4", "Source Serif Pro", Georgia, serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(3, 24, 46, .06), 0 8px 24px rgba(3, 24, 46, .08);
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); }
a:hover { color: var(--red-600); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--white { background: var(--white); }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.center { text-align: center; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 46rem; }
.center .lede { margin-left: auto; margin-right: auto; }
.section--navy .lede { color: #cdd5df; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 14px; }

/* Brand "tab" label — the angled banner from the brand package */
.eyebrow {
  display: inline-block;
  background: var(--navy);
  color: var(--ivory);
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  padding: 7px 26px 7px 14px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  margin-bottom: 18px;
}
.eyebrow--red { background: var(--red); }
@media (max-width: 420px) { .eyebrow { letter-spacing: .1em; font-size: .72rem; } }
.section--navy .eyebrow { background: var(--red); }

/* Double rule under headings, echoing the logo */
/* Separator: tight double line echoing the rules under "HAVEN" in the logo,
   centered between the heading above and the text below */
.rule { width: 72px; height: 6px; border-top: 2px solid var(--red); border-bottom: 2px solid var(--red); margin: 20px 0; }
h2:has(+ .rule) { margin-bottom: 0; }
.center .rule { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em;
  padding: 14px 26px; border-radius: 6px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
  min-height: 48px;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-600); color: var(--white); transform: translateY(-1px); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-600); color: var(--white); }
.btn--ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--ghost-light { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn--white { background: var(--white); color: var(--red); }
.btn--white:hover { background: var(--ivory); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: #d9dfe7; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a { color: var(--white); text-decoration: none; font-weight: 600; }
.topbar__items { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__items span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__items .icon { color: #e05a5a; }
.topbar__emergency { display: inline-flex; align-items: center; gap: 8px; }
/* Desktop: three items spread evenly — left, true center, right */
@media (min-width: 961px) {
  .topbar .wrap { display: grid; grid-template-columns: 1fr auto 1fr; }
  .topbar__items { display: contents; }
  .topbar__items span:first-child { justify-self: start; }
  .topbar__emergency { justify-self: end; }
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #e33; box-shadow: 0 0 0 0 rgba(227,51,51,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(227,51,51,0); } 100% { box-shadow: 0 0 0 0 rgba(227,51,51,0); } }

/* ---------- Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 3px solid var(--red); box-shadow: 0 2px 12px rgba(3,24,46,.06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand img { width: 220px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { font-family: var(--font-head); font-weight: 600; color: var(--navy); text-decoration: none; padding: 10px 14px; border-radius: 6px; font-size: 1.05rem; }
.nav a:hover { background: var(--ivory); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav .btn { margin-left: 10px; padding: 11px 20px; color: var(--white); }
.nav .btn:hover { background: var(--red-600); color: var(--white); }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); border-radius: 6px; width: 48px; height: 44px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 960px) {
  .topbar__items span.hide-sm { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 3px solid var(--red);
    padding: 8px 20px 20px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--ivory-200); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav .btn { margin: 14px 0 0; border-bottom: 0; border-radius: 6px; }
  .brand img { width: 180px; }
}
@media (max-width: 560px) {
  .topbar__items { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--ivory); overflow: hidden; }
/* Home page hero photo, shown through a Haven Navy wash */
.hero {
  background:
    linear-gradient(90deg, rgba(3,24,46,.90) 0%, rgba(3,24,46,.72) 40%, rgba(3,24,46,.55) 70%, rgba(3,24,46,.62) 100%),
    url("../assets/hero-photo.jpg") center 45% / cover no-repeat,
    var(--navy);
}
.hero::before { /* subtle beacon glow */
  content: ""; position: absolute; width: 900px; height: 900px; right: -260px; top: -380px;
  background: radial-gradient(circle, rgba(245,240,230,.10) 0%, rgba(245,240,230,0) 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(72px, 9vw, 120px); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--white); }
.hero .lede { color: #d5dce5; font-size: 1.25rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 26px 0 30px; padding: 0; list-style: none; font-family: var(--font-head); font-weight: 600; }
.hero__badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero__badges .icon { color: #f08a8a; width: 20px; height: 20px; }
.hero__card {
  background: var(--ivory); color: var(--ink); border-radius: 160px 160px var(--radius) var(--radius);
  border: 6px solid var(--red); padding: 48px 32px 30px; text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,.35);
}
.hero__card img { width: 120px; margin: 0 auto 10px; }
.hero__card h2 { font-size: 1.6rem; margin-bottom: 6px; }
.hero__card p { color: var(--muted); font-size: 1rem; }
.hero__card .phone-big { display: block; font-family: var(--font-head); font-weight: 700; font-size: 2rem; color: var(--navy); text-decoration: none; margin: 4px 0 16px; }
.hero__card .phone-big:hover { color: var(--red); }
.hero__card .btn { width: 100%; }
.hero__card .phone-big { margin-bottom: 8px; }
.hero .wrap { align-items: start; }
.hero .wrap > div:first-child { padding-top: clamp(0px, 4vw, 56px); }
.hero__card { scroll-margin-top: 100px; }
.hero__card-or { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-family: var(--font-head); font-weight: 600; color: var(--navy); font-size: .95rem; }
.hero__card-or::before, .hero__card-or::after { content: ""; flex: 1; height: 1px; background: var(--grey); }
.hero__card form { text-align: left; }
.hero__card .form-grid { gap: 12px; }
.hero__card label, .hero__card .field-label { font-size: .92rem; margin-bottom: 4px; }
.hero__card input, .hero__card select, .hero__card textarea { background: var(--white); padding: 9px 12px; min-height: 42px; font-size: .95rem; }
.hero__card textarea { min-height: 64px; }
.hero__card .form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.hero__card .form-grid .full { grid-column: 1 / -1; }
@media (max-width: 340px) { .hero__card .form-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .hero__card { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 480px) { .hero__card .form-grid .wide-sm { grid-column: 1 / -1; } }
.hero__card h2 { margin-bottom: 0; }
.hero__card .phone-big { margin: 2px 0 12px; }
.hero__card-or { margin-bottom: 14px; }
.hero__card { padding: 30px 28px 26px; }
.hero__card img { width: 64px; margin-bottom: 6px; }
.hero__card .btn { margin-top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero__card .radio-row label { background: var(--white); padding: 8px 12px; }
.hero__card .btn { margin-top: 16px; }
.hero__card .form-status { text-align: left; font-size: .92rem; }
.field-label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.hero__mountains { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: auto; display: block; }

.page-hero { position: relative; background: var(--navy); color: var(--ivory); overflow: hidden; }
.page-hero .wrap { position: relative; padding-top: clamp(48px, 7vw, 80px); padding-bottom: clamp(64px, 8vw, 104px); }
.page-hero h1 { color: var(--white); max-width: 20ch; }
/* About page hero photo (the Earl family), shown through a Haven Navy wash */
.page-hero--about {
  background:
    linear-gradient(90deg, rgba(3,24,46,.92) 0%, rgba(3,24,46,.75) 45%, rgba(3,24,46,.5) 100%),
    url("../assets/about-hero.jpg") 70% 68% / cover no-repeat,
    var(--navy);
}
/* Contact page hero photo (Haven service call), shown through a Haven Navy wash */
.page-hero--contact {
  background:
    linear-gradient(90deg, rgba(3,24,46,.92) 0%, rgba(3,24,46,.75) 45%, rgba(3,24,46,.5) 100%),
    url("../assets/contact-hero.jpg") center 35% / cover no-repeat,
    var(--navy);
}
/* Services page hero photo, shown through a Haven Navy wash */
.page-hero--services {
  background:
    linear-gradient(90deg, rgba(3,24,46,.92) 0%, rgba(3,24,46,.78) 45%, rgba(3,24,46,.6) 100%),
    url("../assets/services-hero.webp") center 40% / cover no-repeat,
    var(--navy);
}
.page-hero .lede { color: #d5dce5; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero__card { max-width: 440px; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--white); border-bottom: 1px solid var(--ivory-200); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; gap: 14px; align-items: flex-start; padding: 28px 22px; border-right: 1px solid var(--ivory-200); }
.trust__item:last-child { border-right: 0; }
.trust__item .icon { width: 34px; height: 34px; color: var(--red); flex: none; margin-top: 2px; }
.trust__item h3 { font-size: 1.12rem; margin: 0 0 2px; }
.trust__item p { margin: 0; font-size: .95rem; color: var(--muted); line-height: 1.45; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr 1fr; } .trust__item:nth-child(2) { border-right: 0; } .trust__item:nth-child(-n+2) { border-bottom: 1px solid var(--ivory-200); } }
@media (max-width: 520px) { .trust__grid { grid-template-columns: 1fr; } .trust__item { border-right: 0; border-bottom: 1px solid var(--ivory-200); } }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li { position: relative; padding-left: 36px; margin-bottom: 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--navy .checklist li::before { background-color: #b21b1b; }

.worry-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.worry-list li { background: var(--white); border-left: 5px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px; box-shadow: var(--shadow); font-size: 1.05rem; }
.worry-list strong { font-family: var(--font-head); color: var(--navy); display: block; font-size: 1.15rem; }

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards, .cards--3 { grid-template-columns: 1fr; } }
@media (max-width: 1020px) and (min-width: 561px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }

.card {
  background: var(--white); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow);
  border-top: 4px solid var(--navy); display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
a.card:hover { transform: translateY(-4px); border-top-color: var(--red); color: var(--ink); box-shadow: 0 2px 4px rgba(3,24,46,.06), 0 16px 36px rgba(3,24,46,.14); }
.card__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ivory); color: var(--red); display: grid; place-items: center; margin-bottom: 16px; }
.card__icon .icon { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 14px; }
.card__more { margin-top: auto; font-family: var(--font-head); font-weight: 700; color: var(--red); }

/* Detailed service blocks (services page) */
.svc { display: grid; grid-template-columns: 80px 1fr; gap: 24px; background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); scroll-margin-top: 110px; }
.svc + .svc { margin-top: 22px; }
.svc .card__icon { width: 72px; height: 72px; margin: 0; }
.svc .card__icon .icon { width: 36px; height: 36px; }
.svc h3 { font-size: 1.6rem; }
.svc__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.svc .checklist { margin-bottom: 0; }
.svc .checklist li { margin-bottom: 8px; }
@media (max-width: 720px) { .svc { grid-template-columns: 1fr; padding: 26px 22px; } .svc__cols { grid-template-columns: 1fr; } }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.jump a { background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.25); padding: 8px 14px; border-radius: 999px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.jump a:hover { background: var(--white); color: var(--navy); }

/* ---------- Integrity / quote ---------- */
.honor { position: relative; background: var(--ivory); border: 3px solid var(--navy); border-radius: var(--radius); padding: 64px 36px 32px; }
.honor::before { content: "\201C"; position: absolute; top: -34px; left: 26px; font-family: var(--font-head); font-size: 6rem; line-height: 1; color: var(--red); background: var(--ivory); padding: 0 10px; }
.section--white .honor::before { background: var(--white); }
.honor blockquote { margin: 0 0 14px; font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 600; color: var(--navy); line-height: 1.25; }
.honor cite { font-style: normal; color: var(--muted); font-size: .95rem; }

/* ---------- Plan / financing ---------- */
.plan { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: grid; grid-template-columns: 1fr 1.2fr; }
.plan__head { background: var(--red); color: var(--white); padding: 40px 36px; position: relative; }
.plan__head h2, .plan__head h3 { color: var(--white); }
.plan__head p { color: #f6dede; }
.plan__body { padding: 40px 36px; }
.plan__tag { display: inline-block; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; border: 1px solid rgba(255,255,255,.6); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
@media (max-width: 820px) { .plan { grid-template-columns: 1fr; } }

.feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--navy-700); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 28px 24px; }
.feature .icon { width: 34px; height: 34px; color: #f08a8a; margin-bottom: 12px; }
.feature h3 { font-size: 1.3rem; }
.feature p { color: #cdd5df; margin: 0; font-size: 1rem; }
@media (max-width: 860px) { .feature-row { grid-template-columns: 1fr; } }

/* ---------- Reviews placeholder ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.review { background: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 4px solid var(--red); margin: 0; }
.review blockquote { margin: 0; }
.review .source { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .92rem; }
.reviews--single { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
.reviews--single .review { padding: 36px 40px; text-align: center; }
.reviews--single .review p { font-size: 1.2rem; line-height: 1.6; }
.review .stars { color: var(--red); letter-spacing: 3px; font-size: 1.2rem; margin-bottom: 10px; }
.review p { color: var(--muted); font-style: italic; }
.review .who { font-family: var(--font-head); font-weight: 700; color: var(--navy); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Service area ---------- */
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.area { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.area h3 { font-size: 1.2rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.area h3 .icon { color: var(--red); width: 20px; height: 20px; }
.area p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
@media (max-width: 960px) { .areas { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .areas { grid-template-columns: 1fr; } }

/* ---------- Brands ---------- */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.brands span { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--navy); background: var(--white); border: 2px solid var(--ivory-200); padding: 12px 28px; border-radius: 8px; }
.brands small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .78rem; color: var(--muted); text-align: center; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--red); color: var(--white); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 260px; height: 260px; background: url("../assets/lighthouse.png") center/contain no-repeat; opacity: .12; filter: brightness(0) invert(1); }
.cta-band .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 52px; padding-bottom: 52px; }
.cta-band h2 { color: var(--white); margin: 0 0 6px; }
.cta-band p { margin: 0; color: #f6dede; font-size: 1.15rem; }
.cta-band .btn--white { background: var(--white); color: var(--red); }
.cta-band .btn--white:hover { background: var(--ivory); color: var(--navy); }

/* ---------- About ---------- */
.portrait { position: relative; max-width: 460px; margin-bottom: 48px; }
.portrait img { border-radius: 220px 220px var(--radius) var(--radius); border: 6px solid var(--red); box-shadow: var(--shadow); background: var(--white); }
.portrait__badge { position: absolute; right: -14px; bottom: -48px; background: var(--navy); color: var(--white); padding: 14px 18px; border-radius: 8px; font-family: var(--font-head); line-height: 1.25; box-shadow: var(--shadow); }
.portrait__badge strong { display: block; font-size: 1.2rem; }
.portrait__badge span { font-size: .9rem; color: #cdd5df; }
@media (max-width: 560px) { .portrait__badge { right: 8px; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 32px; }
.cred { background: var(--white); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: flex-start; }
.cred .icon { width: 28px; height: 28px; color: var(--red); flex: none; }
.cred strong { font-family: var(--font-head); color: var(--navy); display: block; font-size: 1.08rem; }
.cred span { color: var(--muted); font-size: .94rem; }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border-top: 5px solid var(--red); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--font-head); font-weight: 600; color: var(--navy); margin-bottom: 6px; }
label .opt { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .9rem; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--ivory);
  border: 2px solid var(--ivory-200); border-radius: 6px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); background: var(--white); }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-row label { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 400; color: var(--ink); background: var(--ivory); border: 2px solid var(--ivory-200); border-radius: 6px; padding: 10px 14px; cursor: pointer; margin: 0; }
.radio-row input { width: auto; min-height: 0; accent-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: 14px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 6px; display: none; }
.form-status.ok { display: block; background: #e8f3ea; color: #1d5a2b; border: 1px solid #b9dcc0; }
.form-status.err { display: block; background: #fbeaea; color: var(--red); border: 1px solid #efc4c4; }

.info-card { background: var(--navy); color: var(--ivory); border-radius: var(--radius); padding: 30px 28px; }
.info-card h3 { color: var(--white); }
.info-card a { color: var(--white); }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-list li:last-child { border-bottom: 0; }
.info-list .icon { width: 22px; height: 22px; color: #f08a8a; flex: none; margin-top: 3px; }
.info-list strong { display: block; font-family: var(--font-head); color: var(--white); }
.info-list span, .info-list a { color: #cdd5df; text-decoration: none; }
.info-list a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c3ccd7; position: relative; }
.site-footer::before { content: ""; display: block; height: 8px; background: linear-gradient(var(--red) 0 50%, var(--ivory) 50% 62%, var(--navy) 62%); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; padding: 60px 0 40px; }
.footer-grid h4 { color: var(--white); font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #c3ccd7; text-decoration: none; }
.footer-grid a:hover { color: var(--white); text-decoration: underline; }
.footer-logo { width: 220px; margin-bottom: 16px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .88rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Mobile sticky call bar */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; box-shadow: 0 -4px 16px rgba(0,0,0,.18); }
  .callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 10px; font-family: var(--font-head); font-weight: 700; text-decoration: none; color: var(--white); font-size: 1.05rem; }
  .callbar a:first-child { background: var(--red); }
  .callbar a:last-child { background: var(--navy); }
  .callbar .icon { width: 20px; height: 20px; }
  body { padding-bottom: 56px; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .pulse { animation: none; }
  * { transition: none !important; }
}
