/* Shared Riverview theme, adapted from the 0026ms-riverview reference. */
@font-face {
  font-family: Inter;
  src: url('../fonts/inter-400.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('../fonts/inter-700.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url('../fonts/inter-900.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-page: #fff;
  --color-section-alt: #f4f7fb;
  --color-surface-2: #edf4fc;
  --color-ink: #03172e;
  --color-muted: #34445a;
  --color-brand: #0066e8;
  --color-brand-hover: #004cb4;
  --color-brand-dark: #001b33;
  --color-accent: #0079ff;
  --color-accent-soft: #0066e810;
  --color-blue: #0066df;
  --color-line: #dce3ec;
  --radius: 2px;
  --button-radius: 2px;
  --site-width: 1280px;
  --gutter: clamp(22px, 5.2vw, 76px);
  --section-space: 72px;
}

html { scroll-padding-top: 132px; }
body { font-size: 17px; line-height: 1.55; }
::selection { background: #0066df; color: white; }
:focus-visible { outline: 3px solid #2495ff; outline-offset: 5px; }
.section + .section { border-top: 0; }
.section h1, .section h2, .hero h1 {
  max-width: 1000px;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.06;
  margin-bottom: 20px;
}
.section h1, .section h2 { font-size: clamp(34px, 4.3vw, 58px); }
.section-eyebrow { font-size: 13px; letter-spacing: .14em; font-weight: 700; }
.section p a, .section-list a { text-underline-offset: 4px; }
.section p a:hover, .section-list a:hover { color: var(--color-brand); }
.section-photo-copy h2 { font-size: clamp(32px, 3.5vw, 50px); }

/* Brand and navigation */
.site-header {
  padding-block: 0;
  background: #fff;
  box-shadow: 0 2px 14px #001b3310;
  backdrop-filter: none;
}
.nav { min-height: 112px; gap: clamp(16px, 2vw, 28px); }
.brand { flex: 0 0 auto; }
.brand-logo { display: block; width: 124px; height: 124px; object-fit: contain; }
.nav-links { flex-wrap: nowrap; gap: clamp(16px, 2vw, 28px); }
.nav-links a, .nav-dropdown summary {
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.025em;
  text-transform: none;
  white-space: nowrap;
}
.nav-links > a { position: relative; }
.nav-links > a::after {
  content: '';
  position: absolute;
  inset: auto 0 3px;
  height: 2px;
  background: var(--color-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}
.nav-links > a:hover::after, .nav-links > a:focus-visible::after { transform: scaleX(1); }
.nav-dropdown-menu { top: 100%; border-radius: 2px; border-top: 3px solid var(--color-brand); max-height: calc(100dvh - 150px); overflow-y: auto; overscroll-behavior: contain; }
.nav-dropdown-menu a { border-radius: 0; }
.nav-dropdown-areas .nav-dropdown-menu { left: auto; right: 0; width: 380px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nav-dropdown-overview { grid-column: 1 / -1; border-bottom: 1px solid var(--color-line); margin-bottom: 4px; }
.nav-dropdown[open] > summary::after { transform: rotate(225deg); margin-top: 3px; }
.nav-dropdown[open] > .nav-dropdown-menu { animation: dropdown-in 180ms ease-out; }
@keyframes dropdown-in { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
.nav-action { flex-shrink: 0; }
.header-phone {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 9px;
  color: #005acb;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}
.header-phone svg { width: 26px; height: 26px; }
.header-phone:hover { color: var(--color-ink); }

/* Square blue buttons and quieter telephone links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 58px;
  padding: 15px 26px;
  border: 1px solid #1685ff;
  background: linear-gradient(165deg, #0879ff, #0052c2);
  box-shadow: 0 3px 0 #002b6014;
  font: 700 17px/1.2 var(--font-body);
  letter-spacing: -.025em;
  text-transform: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.button::after { content: '\2192'; font-size: 24px; line-height: 1; transition: transform 180ms ease; }
.button:hover { background: linear-gradient(165deg, #006ae8, #00499e); transform: translateY(-3px); box-shadow: 0 8px 20px #002b6026; }
.button:hover::after { transform: translateX(4px); }
.button:disabled { transform: none; }
.button-secondary { background: white; color: var(--color-brand); border-color: var(--color-line); }
.button-secondary:hover { background: var(--color-section-alt); color: var(--color-brand-hover); }
.nav-action .button { min-height: 52px; padding: 13px 18px; font-size: 15px; gap: 10px; white-space: nowrap; }
.text-link { font-size: 16px; font-weight: 700; letter-spacing: -.02em; text-transform: none; text-underline-offset: 5px; }
.text-link:hover { text-decoration: underline; }

/* Wide photographic heroes with the reference's navy overlay. */
.hero-image-ready {
  --hero-overlay: linear-gradient(90deg, rgba(0,20,39,.97) 0%, rgba(0,25,47,.88) 32%, rgba(0,26,49,.5) 62%, rgba(0,20,39,.12) 100%);
}
.hero-image-ready.hero-with-image { min-height: 640px; padding-block: 64px; }
.home-hero.hero-with-image { min-height: 740px; }
.hero.hero-without-photo { background: var(--color-brand-dark); }
.home-hero .inner { padding-block: 0; }
.hero h1, .hero:not(.home-hero) h1 {
  max-width: 900px;
  font-size: clamp(48px, 5.7vw, 80px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: 1.02;
}
.home-hero h1 { max-width: 920px; font-size: clamp(54px, 6.2vw, 88px); }
.hero-image-ready.hero-with-image h1 { text-shadow: none; }
.hero-image-ready.hero-with-image p { color: #e1edf7; }
.home-hero p:not(.section-eyebrow), .hero:not(.home-hero) p:not(.section-eyebrow) { max-width: 610px; font-size: 17px; line-height: 1.55; }
.hero .hero-subtitle, .home-hero p.hero-subtitle, .hero:not(.home-hero) p.hero-subtitle { font-size: 21px; font-weight: 700; color: white; margin-bottom: 16px; }
.home-hero .button { min-height: 64px; font-size: 19px; }
.hero-actions { gap: 18px 28px; }

/* Cards, project photographs and copy sections */
.section.home-services { background: white; padding-block: 48px 52px; }
.section.home-process { background: white; }
.reason-list, .benefit-list { gap: 24px; margin-top: 32px; }
.reason-card, .benefit-card { border-radius: 2px; }
.reason-card h3, .benefit-card h3, .service-item h3, .service-note-grid h3 {
  font-size: clamp(23px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.12;
  text-transform: none;
  margin-bottom: 14px;
}
.reason-card p, .benefit-card p { font-size: 16px; }
.reason-card:has(.service-photo) { overflow: hidden; transition: transform 180ms ease, box-shadow 180ms ease; }
.reason-list:has(.service-photo) > .reason-card:not(:has(.service-photo)) { display: grid; align-content: center; }
.reason-card:has(.service-photo):hover { transform: translateY(-4px); box-shadow: 0 12px 30px #001b3312; }
.service-photo { border-radius: 0; overflow: hidden; }
.service-photo img { transition: transform 350ms ease; }
.reason-card:hover .service-photo img { transform: scale(1.035); }
.photo-badge { background: #001b33e8; color: white; border-radius: 1px; }
.photo-card { border-radius: 2px; box-shadow: none; }
.photo-card a { overflow: hidden; }
.photo-card img { transition: transform 350ms ease; }
.photo-card a:hover img { transform: scale(1.025); }
.photo-card figcaption { padding: 16px 18px; font-size: 14px; }
.photo-kind { color: #005acb; }
.photo-grid { gap: 24px; margin-top: 32px; }
.service-item, .detail-card, .contact-card, .media-collage img, .section-media img { border-radius: 2px; }
.community-list a { border-radius: 2px; font-weight: 700; transition: border-color 180ms ease, background 180ms ease; }
.community-list a:hover { color: var(--color-brand); border-color: var(--color-brand); background: #f1f7ff; }

/* Landscape panel from the reference, retaining the supplied company copy. */
.section.home-why-us {
  background: #001c35 url('../media/images/river-landscape.svg') center bottom / cover no-repeat;
  color: white;
}
.home-why-us h2 { max-width: 1000px; }
.home-why-us > .inner > p { color: #d3e4f3; }
.home-why-us .reason-card { padding: 6px 0 6px 26px; min-height: 0; background: transparent; border: 0; border-left: 2px solid #1685ff; }
.home-why-us .reason-list { gap: 34px 48px; margin-top: 40px; }
.home-why-us .reason-card h3 { color: white; }
.home-why-us .reason-card p { color: #d3e4f3; }
.section.reviews { background: #f3f7fb; }
.reviews h2 { max-width: 1000px; }

/* Split FAQ layout, with native accessible details interactions. */
.section.faq { background: white; }
.faq > .inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; gap: 60px; }
.faq h2 { max-width: 560px; font-size: clamp(34px, 4vw, 54px); }
.faq-list { min-width: 0; border: 0; border-top: 1px solid var(--color-line); border-radius: 0; }
.faq-list details { padding: 23px 4px; background: transparent; }
.faq-list summary { font-size: 17px; line-height: 1.4; font-weight: 700; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { color: var(--color-brand); }
.faq-list summary::after { font-size: 24px; }
.faq-list p { font-size: 16px; padding-right: 24px; }

.section.final-cta {
  min-height: 450px;
  background: #001b33 url('../media/images/river-landscape.svg') center bottom / cover no-repeat;
}
.final-cta::before { background: linear-gradient(90deg, #001b33b3, #001b3373); }
.final-cta h2 { max-width: 1060px; font-size: clamp(38px, 4.6vw, 66px); }
.final-cta p { color: #d3e4f3; }
.final-cta p a:hover { color: white; }

/* Footer and estimate form */
.footer-content { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr) minmax(0, .9fr); gap: 50px; }
.footer-logo { width: 104px; height: 104px; object-fit: contain; flex-shrink: 0; }
.footer-lockup strong { font-size: 20px; font-weight: 700; letter-spacing: -.04em; text-transform: none; line-height: 1.2; }
.footer-lockup em { margin-top: 6px; font-size: 12px; font-weight: 400; line-height: 1.5; letter-spacing: 0; text-transform: none; }
.footer-brand p, .footer-links a, .footer-visit address, .footer-visit a { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.footer-column h2 { color: var(--color-brand); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; font-size: 12px; }
.footer-credit { font-size: 12px; color: var(--color-muted); }
.footer-credit a { text-underline-offset: 3px; transition: color 180ms ease; }
.footer-credit a:hover, .footer-credit a:focus-visible { color: var(--color-brand); }
.isolated-footer-content { flex-wrap: wrap; gap: 12px 24px; padding-block: 18px; }
.lead-modal-panel { border-radius: 3px; border-top: 4px solid #087aff; }
.lead-modal-panel h2 { font-weight: 700; letter-spacing: -.045em; line-height: 1.06; }
.lead-capture-placeholder:has(.lead-capture-form) { background: #f4f7fb; border-radius: 2px; }
.form-field input, .form-field select, .form-field textarea { border-radius: 2px; font: inherit; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: 2px solid #087aff; outline-offset: 2px; }
.legal-document { border-radius: 2px; }
.legal-document h1 { font-weight: 700; letter-spacing: -.045em; }

@media (max-width: 1250px) {
  .header-phone span { display: none; }
}
@media (max-width: 1000px) {
  html { scroll-padding-top: 100px; }
  .nav { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; min-height: 88px; }
  .brand { width: fit-content; min-width: 0; }
  .brand-logo { width: 88px; height: 88px; }
  .header-phone { display: none; }
  .nav-toggle { display: grid; grid-column: 3; grid-row: 1; border-radius: 2px; }
  .nav-action { grid-column: 2; grid-row: 1; }
  .nav-action .button { min-height: 46px; font-size: 14px; padding: 11px 16px; }
  .nav-links {
    grid-column: 1 / -1;
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    border-top: 1px solid var(--color-line);
    text-align: left;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
  }
  .nav.nav-open .nav-links { display: grid; }
  .nav-links a, .nav-dropdown summary { min-height: 46px; justify-content: flex-start; }
  .nav-links > a::after { display: none; }
  .nav-dropdown { display: block; position: static; }
  .nav-dropdown-menu { position: static; min-width: 0; margin: 0 0 8px; padding: 4px 12px; justify-items: stretch; box-shadow: none; border: 0; border-left: 2px solid var(--color-brand); }
  .nav-dropdown-menu a { text-align: left; justify-content: flex-start; }
  .nav-dropdown-menu { max-height: none; overflow: visible; }
  .nav-dropdown-areas .nav-dropdown-menu { width: 100%; }
  .isolated-nav { display: flex; }
  .footer-content { gap: 30px; grid-template-columns: minmax(0, 1.2fr) minmax(0, .7fr) minmax(0, 1fr); }
  .footer-lockup { flex-wrap: wrap; }
  .faq > .inner { gap: 32px; }
}
@media (max-width: 800px) {
  :root { --section-space: 54px; }
  .hero-image-ready { --hero-overlay: linear-gradient(90deg, #001427eb, #001b33b8 65%, #001b337a); }
  .hero-image-ready.hero-with-image { min-height: 620px; padding-block: 56px; }
  .home-hero.hero-with-image { min-height: 700px; }
  .hero h1, .hero:not(.home-hero) h1, .home-hero h1 { font-size: clamp(44px, 7.5vw, 64px); }
  .section-photo-layout, .faq > .inner { grid-template-columns: 1fr; }
  .section-photo-copy h2 { max-width: 680px; }
  .home-why-us .reason-list { gap: 28px; }
  .footer-content { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-lockup { flex-wrap: nowrap; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; padding-block: 20px; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .nav { gap: 8px; min-height: 78px; }
  .brand-logo { width: 78px; height: 78px; }
  .nav-action .button { font-size: 12px; padding: 10px 12px; gap: 8px; }
  .nav-action .button::after { font-size: 20px; }
  .nav-toggle { width: 38px; height: 42px; }
  .nav-dropdown-areas .nav-dropdown-menu { grid-template-columns: minmax(0, 1fr); }
  .hero h1, .hero:not(.home-hero) h1, .home-hero h1 { font-size: clamp(36px, 10.5vw, 52px); }
  .hero-image-ready.hero-with-image { min-height: 620px; padding-block: 48px; }
  .home-hero.hero-with-image { min-height: 660px; }
  .home-hero p:not(.section-eyebrow), .hero:not(.home-hero) p:not(.section-eyebrow) { font-size: 16px; }
  .home-hero p.hero-subtitle, .hero:not(.home-hero) p.hero-subtitle { font-size: 19px; }
  .hero-actions { gap: 0 22px; }
  .home-hero .button { min-height: 58px; font-size: 17px; }
  .section h2, .faq h2 { font-size: 36px; }
  .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .final-cta h2 { font-size: 40px; }
  .footer-content { grid-template-columns: minmax(0, 1fr); }
  .footer-brand { grid-column: auto; }
  .lead-modal-panel { padding: 28px 20px; }
}
@media (max-width: 360px) {
  .nav-action .button::after { display: none; }
  .brand-logo { width: 64px; height: 72px; }
}
/* Hover and keyboard feedback share the same visual treatment. */
.reason-card, .benefit-card, .photo-card, .community-list a {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.brand-logo, .footer-logo { transition: transform 220ms ease; }
.nav-links a, .nav-dropdown summary, .header-phone, .text-link,
.footer-links a, .footer-visit a, .social-links a, .footer-legal-links a,
.faq-list summary { transition: color 180ms ease, background-color 180ms ease; }
.faq-list summary { border-radius: 2px; }
.photo-card:focus-within, .reason-card:focus-within, .benefit-card:focus-within {
  border-color: #8abdf5;
  box-shadow: 0 12px 28px #001b3312;
}
.community-list a:focus-visible { background: #edf5ff; border-color: var(--color-brand); }
.faq-list summary:focus-visible { color: var(--color-brand); background: #edf5ff; }
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-logo, .footer-lockup:hover .footer-logo { transform: scale(1.045); }
  .reason-card:hover, .benefit-card:hover, .photo-card:hover {
    transform: translateY(-4px);
    border-color: #8abdf5;
    box-shadow: 0 12px 28px #001b3312;
  }
  .home-why-us .reason-card:hover { box-shadow: none; border-color: #80c4ff; }
  .community-list a:hover { transform: translateY(-3px); box-shadow: 0 6px 18px #001b3310; }
  .faq-list summary:hover { color: var(--color-brand); background: #edf5ff; }
  .footer-links a:hover, .footer-visit a:hover, .social-links a:hover,
  .footer-legal-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .button:hover, .button:hover::after, .reason-card:hover, .benefit-card:hover,
  .photo-card:hover, .community-list a:hover, .brand:hover .brand-logo,
  .footer-lockup:hover .footer-logo, .reason-card:hover .service-photo img,
  .photo-card a:hover img { transform: none; }
}
