/* Potomac Site Services — single stylesheet, no framework. */

@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url('/fonts/barlow-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url('/fonts/barlow-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-weight: 800; font-display: swap; src: url('/fonts/barlow-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-semi-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-semi-condensed-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

:root {
  --navy: #14233c;
  --navy-2: #1d3152;
  --navy-deep: #0d182b;
  --yellow: #f5b819;
  --yellow-dark: #dba10c;
  --ink: #1b2533;
  --muted: #586374;
  --line: #d9dfe7;
  --bg-soft: #eef1f5;
  --white: #fff;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(20, 35, 60, .06), 0 6px 20px rgba(20, 35, 60, .08);
  --font: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', var(--font);
  --font-semi: 'Barlow Semi Condensed', 'Roboto Condensed', 'Arial Narrow', var(--font);
  /* Page gutter used by the header and hero, measured from the mockup (92px at 1679px). */
  --gutter-wide: clamp(20px, 5.5vw, 92px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy); line-height: 1.08; margin: 0 0 .5em; letter-spacing: .005em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:target { scroll-margin-top: 84px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1680px; margin: 0 auto; padding: 0 var(--gutter-wide); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--yellow); color: var(--navy); padding: 10px 14px; z-index: 100; font-weight: 600; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; color: var(--navy-2); margin-bottom: .6em; }
.eyebrow-yellow { color: var(--yellow); }
.pending { display: inline-block; background: #fff3c4; color: #6b4e00; border: 1px dashed #c99a0c; border-radius: 3px; padding: 0 6px; font-size: .88em; font-weight: 500; }
.preview-bar { background: #fff3c4; color: var(--navy); text-align: center; font-size: 13px; padding: 4px 12px; font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .02em; line-height: 1; padding: 14px 24px; border-radius: var(--radius); border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; min-height: 48px; }
.btn-sm { font-size: 1.02rem; padding: 10px 16px; min-height: 42px; }
.btn-block { width: 100%; }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.2); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 78px; }
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; flex-shrink: 0; }
.wm-top { font-family: var(--font); font-weight: 800; font-size: clamp(1.55rem, 2.45vw, 2.6rem); color: #fff; letter-spacing: .005em; line-height: .92; }
.wm-bottom { font-family: var(--font); font-weight: 700; font-size: clamp(.95rem, 1.5vw, 1.58rem); color: var(--yellow); letter-spacing: .035em; line-height: .95; margin-top: 2px; }

/* Desktop navigation: three top-level items pushed right, CTA at the far right. */
.site-nav { display: flex; align-items: center; margin-left: auto; gap: clamp(24px, 2.6vw, 44px); }
.nav-list { display: flex; align-items: center; gap: clamp(22px, 2.4vw, 38px); list-style: none; margin: 0; padding: 0; }
.nav-list > li > a, .nav-dd-toggle { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-family: var(--font); font-weight: 500; font-size: 1.06rem; line-height: 1.2; white-space: nowrap; padding: 8px 0; background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; cursor: pointer; }
.nav-list > li > a:hover, .nav-dd-toggle:hover, .nav-dd-toggle[aria-expanded="true"] { border-bottom-color: var(--yellow); }
.nav-caret { flex-shrink: 0; transition: transform .15s ease; }
.nav-dd-toggle[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }
.nav-dd { position: relative; }
.nav-dd-menu { list-style: none; margin: 0; padding: 8px 0; position: absolute; top: calc(100% + 14px); left: -18px; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 12px 28px rgba(13, 24, 43, .18); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s ease, transform .14s ease, visibility 0s linear .14s; z-index: 60; }
.nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .14s ease, transform .14s ease; }
.nav-dd-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -16px; height: 16px; } /* hover bridge to the menu */
.nav-dd-menu a { display: block; padding: 11px 20px; color: var(--navy); text-decoration: none; font-family: var(--font); font-weight: 500; font-size: 1rem; white-space: nowrap; }
.nav-dd-menu a:hover, .nav-dd-menu a:focus-visible { background: #f2f4f7; box-shadow: inset 3px 0 0 var(--yellow); outline: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }
.site-header .header-phone { font-family: var(--font-semi); font-size: 1.06rem; }
.site-header .header-phone .icon-sm { width: 20px; height: 20px; }
.header-cta { font-family: var(--font-semi); font-weight: 700; font-size: 1.06rem; padding: 10px 20px; min-height: 44px; border-radius: 6px; white-space: nowrap; }
.phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.phone .icon-sm { color: var(--yellow); flex-shrink: 0; }
.site-footer .phone, .doc .phone { color: inherit; }
.header-quote { display: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; flex-shrink: 0; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 24px; height: 2px; background: #fff; position: relative; transition: transform .2s; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -7px; }
.nav-toggle-bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-dd-menu, .nav-caret, .nav-toggle-bars::before, .nav-toggle-bars::after { transition: none; } }

/* Mobile and tablet navigation: hamburger panel with an expandable Services group. */
@media (max-width: 959px) {
  .header-inner { gap: 12px; min-height: 68px; }
  .header-quote { display: inline-flex; margin-left: auto; font-family: var(--font-semi); font-size: .98rem; padding: 8px 14px; min-height: 42px; border-radius: 6px; white-space: nowrap; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; gap: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 4px 20px 22px; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 24px rgba(0,0,0,.25); max-height: calc(100vh - 68px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .nav-list > li > a, .nav-dd-toggle { display: flex; width: 100%; justify-content: space-between; min-height: 54px; padding: 14px 0; font-size: 1.15rem; border-bottom: 0; }
  .nav-list > li > a:hover, .nav-dd-toggle:hover, .nav-dd-toggle[aria-expanded="true"] { border-bottom-color: transparent; color: var(--yellow); }
  .nav-dd-menu { position: static; display: none; min-width: 0; opacity: 1; visibility: visible; transform: none; transition: none; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0 0 10px; }
  .nav-dd.open .nav-dd-menu { display: block; }
  .nav-dd-menu::before { display: none; }
  .nav-dd-menu a { color: #dfe6ef; padding: 12px 0 12px 16px; font-size: 1.05rem; }
  .nav-dd-menu a:hover, .nav-dd-menu a:focus-visible { background: rgba(255,255,255,.06); color: #fff; box-shadow: inset 3px 0 0 var(--yellow); }
  .header-actions { flex-direction: column; align-items: stretch; gap: 14px; padding-top: 20px; }
  .header-cta { width: 100%; font-size: 1.15rem; min-height: 52px; }
}

/* Hero */
/* Hero proportions measured from the mockup: photo column 57%, photo shown
   uncropped at its own 954:437 ratio, copy on a 92px gutter. */
.hero { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); background: #fff; }
/* Left padding lines the copy up with the 1200px content column below. */
.hero-copy { display: flex; align-items: center; padding: 16px clamp(20px, 2vw, 36px) 16px max(var(--gutter-wide), calc((100vw - 1680px) / 2 + 92px)); }
.hero-copy-inner { max-width: 640px; width: 100%; }
.hero-label { display: flex; align-items: center; gap: 10px; font-family: var(--font-semi); font-weight: 600; font-size: clamp(.8rem, .9vw, .95rem); text-transform: uppercase; letter-spacing: .14em; color: var(--navy); margin: 0 0 clamp(8px, .8vw, 14px); }
.hero-label::before { content: ''; width: 28px; height: 3px; background: var(--yellow); flex-shrink: 0; }
.hero h1 { font-family: var(--font-semi); font-weight: 700; color: #111; font-size: clamp(2.6rem, 3.7vw, 4.1rem); line-height: 1; letter-spacing: -.005em; margin-bottom: .32em; }
.hero h1 span { display: block; }
.hero-lede { font-size: clamp(1.08rem, 1.3vw, 1.4rem); font-weight: 500; line-height: 1.38; color: #2a2f36; max-width: 22em; margin: 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .hero-ctas { margin-top: clamp(18px, 1.7vw, 28px); align-items: center; gap: clamp(18px, 1.8vw, 28px); }
.hero-link { font-family: var(--font-semi); font-weight: 600; font-size: clamp(1.02rem, 1.1vw, 1.15rem); color: var(--navy); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; padding: 8px 0; }
.hero-link:hover { text-decoration-color: var(--yellow); text-decoration-thickness: 2px; }
.hero .hero-ctas .btn { min-height: 46px; padding-top: 12px; padding-bottom: 12px; }
.hero .hero-ctas .btn { font-size: clamp(1.05rem, 1.15vw, 1.22rem); }
.hero-media { position: relative; aspect-ratio: 954 / 437; background: #4fa6ef; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 26px 20px 26px; justify-content: flex-start; }
  .hero-copy-inner { max-width: none; }
  .hero-media { order: 2; }
}
@media (max-width: 560px) {
  .hero .hero-ctas { flex-direction: column; align-items: stretch; gap: 6px; }
  .hero .hero-ctas .btn { width: 100%; }
  .hero-link { align-self: center; }
}

/* Services + quote */
.services-band { background: var(--bg-soft); padding: 56px 0 64px; }
.services-layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
.section-head { margin-bottom: 28px; }
.section-head p:last-child { color: var(--muted); margin: 0; }
.section-head.center { text-align: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(20,35,60,.04); }
.service-card h3 { margin-top: 14px; }
.service-card p { color: var(--muted); flex: 1; font-size: 1rem; }
.service-card .btn { align-self: flex-start; }
.service-icon { width: 60px; height: 60px; border-radius: var(--radius); background: #f4f6f9; color: var(--navy); display: grid; place-items: center; border: 1px solid var(--line); }
.service-icon .icon { width: 44px; height: 44px; }

.quote-card { background: #fff; border-top: 5px solid var(--navy); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 26px 26px; }
.quote-card h2 { font-size: 2rem; margin-bottom: .2em; }
.quote-intro { color: var(--muted); font-size: .98rem; }
.quote-form { display: grid; gap: 14px; }
.field { display: grid; gap: 5px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label, .field legend { font-size: .9rem; font-weight: 600; color: var(--navy); padding: 0; }
.field legend { margin-bottom: 6px; }
.req { color: #b3261e; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #b9c2ce; border-radius: var(--radius); padding: 10px 12px; min-height: 46px; }
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(245, 184, 25, .55); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .86rem; margin: 0; }
.service-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; border: 1px solid #b9c2ce; border-radius: var(--radius); padding: 10px 12px; cursor: pointer; font-size: .95rem; font-weight: 500; min-height: 46px; background: #fff; transition: border-color .15s, background-color .15s; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; flex-shrink: 0; }
.check:has(input:checked) { border-color: var(--navy); background: #fff8e0; box-shadow: inset 0 0 0 1px var(--navy); }
.check:has(input:focus-visible) { outline: 3px solid var(--yellow); outline-offset: 1px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; }
.form-status { background: #fdecea; color: #8c1d18; border-radius: var(--radius); padding: 10px 12px; font-size: .95rem; margin: 0; }
.form-fine { font-size: .82rem; color: var(--muted); margin: 0; }
.quote-success { text-align: center; padding: 24px 6px; }
.quote-success:focus { outline: none; }
.success-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; margin: 0 auto 14px; }
.success-ref { font-size: .9rem; color: var(--muted); word-break: break-all; }

@media (max-width: 1023px) {
  .services-layout { grid-template-columns: 1fr; }
  .quote-card { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 640px) {
  .service-grid { grid-template-columns: 1fr; }
  .services-band { padding: 40px 0 44px; }
  .quote-card { padding: 22px 16px 18px; }
}
@media (max-width: 420px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Why */
.why { padding: 64px 0; }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.why-item h3 { margin-top: 14px; }
.why-item p { color: var(--muted); font-size: 1rem; margin: 0; }
.why-check { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; }

/* How it works */
.how { background: var(--bg-soft); padding: 64px 0; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 1rem; margin: 0; }

@media (max-width: 960px) {
  .why-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .why-grid, .steps { grid-template-columns: 1fr; }
  .why, .how { padding: 44px 0; }
}

/* Service area */
.area { background: var(--navy); color: #dfe6ef; padding: 64px 0; }
.area h2 { color: #fff; }
.area-layout { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; }
.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.area-card { background: var(--navy-2); border: 1px solid rgba(255,255,255,.1); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 20px; }
.area-card h3 { color: #fff; font-size: 1.3rem; }
.area-card ul { margin: 0; padding: 0 0 0 18px; font-size: .98rem; }
.area-card li { margin: 3px 0; }
@media (max-width: 960px) {
  .area-layout { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .area-grid { grid-template-columns: 1fr; }
  .area { padding: 44px 0; }
}

/* CTA band */
.cta-band { background: var(--yellow); padding: 36px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.2rem); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c4d2; padding: 48px 0 0; font-size: .97rem; }
.site-footer a { color: #e3e9f1; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 32px; }
.footer-blurb { margin-top: 14px; max-width: 34em; }
.footer-h { font-size: 1.1rem; color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin: 7px 0; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; padding-bottom: 24px; font-size: .88rem; }
.footer-legal p { margin: 0; }
.footer-legal ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Legal / 404 */
.doc { padding: 56px 0 72px; }
.doc-wrap { max-width: 780px; }
.doc h1 { font-size: clamp(2.3rem, 4vw, 3rem); }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc-updated { color: var(--muted); font-size: .95rem; }
.center { text-align: center; }
.center-row { justify-content: center; }
