/* Team Roof America — brand colors
   Navy #0B2E5B  Red #D0112B  White #FFFFFF  Gray #8A8F98  Black #141414 */
:root {
  --navy: #0B2E5B;
  --navy-deep: #071F3F;
  --navy-soft: #1D4577;
  --red: #D0112B;
  --red-deep: #A80D22;
  --white: #FFFFFF;
  --paper: #F3F5F8;
  --tint: #E7ECF3;
  --gray: #8A8F98;
  --ink: #141414;
  --muted: #4F5A68;
  --line: #D8DDE5;
  --on-navy: #D3DCE7;
  --display: "Saira", "Arial Narrow", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;
  --wrap: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.6; padding-bottom: env(safe-area-inset-bottom, 0px); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

h1, h2, h3 { font-family: var(--display); color: var(--navy); line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; font-stretch: 112%; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; font-stretch: 110%; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--navy); border-bottom: 4px solid var(--red); padding-top: env(safe-area-inset-top, 0px); }
.utility { background: var(--navy-deep); color: var(--on-navy); font-size: .86rem; }
.utility-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
.utility a { color: var(--white); }
.utility a:hover { color: #FFB3BD; }
.utility-login { font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--white); }
.brand img { height: 64px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-sub { font-size: .8rem; color: var(--on-navy); font-weight: 600; }
.site-nav { display: flex; gap: 22px; align-items: center; }
.site-nav a { font-weight: 700; font-size: .98rem; color: var(--on-navy); text-decoration: none; padding: 4px 0; }
.site-nav a:hover { color: var(--white); }
.site-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -3px 0 var(--red); }
.site-nav .nav-cta { background: var(--red); color: var(--white); padding: 10px 20px; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); box-shadow: none; }
.site-nav .nav-cta:hover { background: var(--red-deep); color: var(--white); }
.nav-toggle, .nav-login-mobile { display: none; }
@media (max-width: 900px) {
  .brand img { height: 52px; }
  .nav-toggle { display: block; font: inherit; font-weight: 700; background: none; border: 2px solid var(--on-navy); color: var(--white); padding: 7px 14px; cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--navy); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 22px 18px; border-bottom: 4px solid var(--red); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid var(--navy-soft); }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .nav-login-mobile { display: block; }
  .site-nav .nav-cta { text-align: center; margin-top: 12px; border-bottom: 0; }
}
@media (max-width: 560px) {
  .utility-login { display: none; }
  .utility-row { justify-content: center; text-align: center; }
  .brand-sub { display: none; }
}

/* ---------- Buttons (slanted like the logo's TEAM banner) ---------- */
.btn { display: inline-block; font-family: var(--body); font-weight: 700; font-size: 1rem; padding: 14px 28px; text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-deep); color: var(--white); }
.btn-quiet { background: var(--navy); color: var(--white); }
.btn-quiet:hover { background: var(--navy-deep); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--tint); color: var(--navy); }
.btn-outline-light { background: transparent; color: var(--white); border-color: var(--white); clip-path: none; }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 60px 0 110px; position: relative; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%); }
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 52px; align-items: center; }
.hero h1 { color: var(--white); }
.hero .lede { color: var(--on-navy); }
.hero .btn-quiet { background: transparent; border-color: var(--white); clip-path: none; }
.hero .btn-quiet:hover { background: var(--white); color: var(--navy); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 38em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-photo { max-width: 420px; justify-self: end; width: 100%; border: 4px solid var(--red); }
@media (max-width: 860px) {
  .hero { padding: 40px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { justify-self: start; max-width: 360px; }
}

.page-hero { background: var(--navy); border-bottom: 6px solid var(--red); padding: 52px 0 46px; }
.page-hero h1 { color: var(--white); margin-bottom: .3em; }
.page-hero .lede { color: var(--on-navy); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 46em; margin-bottom: 38px; }
.section-head p { font-size: 1.1rem; color: var(--muted); }
.source-note { font-size: .88rem; color: var(--muted); margin-top: 26px; }
.more-link { margin-top: 26px; }
.more-link a { font-weight: 700; color: var(--red); }
@media (max-width: 700px) { .section { padding: 58px 0; } }

/* Our team vs Precision */
.who { display: grid; grid-template-columns: 1fr 1fr; border: 3px solid var(--navy); }
.who-col { padding: 28px 28px 20px; }
.who-us { background: var(--navy); color: var(--white); }
.who-us h3 { color: var(--white); }
.who-them { background: var(--white); }
.who-col h3 { font-size: 1.35rem; margin-bottom: 14px; }
.who-col ul { list-style: none; margin: 0; padding: 0; }
.who-col li { padding: 10px 0 10px 24px; position: relative; border-top: 1px solid var(--line); }
.who-us li { border-top-color: rgba(255,255,255,.18); }
.who-col li::before { content: ""; position: absolute; left: 1px; top: 19px; width: 9px; height: 9px; background: var(--red); transform: rotate(45deg); }
@media (max-width: 760px) { .who { grid-template-columns: 1fr; } .who-col { padding: 22px 20px 14px; } }

/* Reasons */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 4px solid var(--navy); }
.reason { padding: 24px 24px 8px 0; border-bottom: 1px solid var(--line); }
.reason:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.reason p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .reasons { grid-template-columns: 1fr 1fr; }
  .reason, .reason:not(:nth-child(3n+1)) { padding: 22px 18px 6px 0; border-left: 0; }
  .reason:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
}
@media (max-width: 600px) { .reasons { grid-template-columns: 1fr; } .reason:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* Credentials */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 4px solid var(--navy); border-bottom: 1px solid var(--line); background: var(--white); margin: 0 0 28px; }
.creds-home { grid-template-columns: repeat(4, 1fr); }
.cred { padding: 20px 18px; display: flex; flex-direction: column; }
.cred + .cred { border-left: 1px solid var(--line); }
.cred-num { font-family: var(--display); font-weight: 800; font-stretch: 112%; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1; color: var(--red); }
.cred-label { font-size: .95rem; color: var(--muted); margin-top: 6px; }
.certs h3 { margin-bottom: 12px; }
.cert-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cert-list li { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy); padding: 7px 12px; font-weight: 700; font-size: .95rem; color: var(--navy); }
.cert-list li.ph-line { font-weight: 400; border-style: dashed; border-left-style: solid; color: var(--muted); }
.cred-list { padding-left: 1.2em; margin: 0; }
.cred-list li { margin-bottom: 6px; }
.cred-list li::marker { color: var(--red); }
.ph-line { color: var(--muted); font-style: italic; }
@media (max-width: 800px) {
  .creds-home { grid-template-columns: 1fr 1fr; }
  .creds-home .cred:nth-child(3) { border-left: 0; }
  .creds-home .cred:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .creds, .creds-home { grid-template-columns: 1fr; }
  .cred + .cred { border-left: 0; border-top: 1px solid var(--line); }
}

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.person { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--navy); padding: 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); }
a.person:hover { border-top-color: var(--red); color: var(--ink); }
.person .ph, .person img { margin-bottom: 12px; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.person h3 { margin: 0; font-size: 1.15rem; }
.p-title { font-weight: 700; color: var(--red); font-size: .95rem; margin: 0 0 6px; }
.p-bio { font-size: .95rem; color: var(--muted); margin: 0 0 8px; }
.p-more { margin-top: auto; padding-top: 6px; font-weight: 700; font-size: .92rem; color: var(--navy); }
a.person:hover .p-more { color: var(--red); }

/* Expert network */
.network { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 4px solid var(--navy); }
.net-item { padding: 22px 22px 8px 0; border-bottom: 1px solid var(--line); }
.net-item:not(:nth-child(3n+1)) { padding-left: 22px; border-left: 1px solid var(--line); }
.net-item p { color: var(--muted); font-size: 1rem; }
@media (max-width: 900px) {
  .network { grid-template-columns: 1fr 1fr; }
  .net-item, .net-item:not(:nth-child(3n+1)) { padding: 20px 18px 6px 0; border-left: 0; }
  .net-item:nth-child(2n) { padding-left: 18px; border-left: 1px solid var(--line); }
}
@media (max-width: 580px) { .network { grid-template-columns: 1fr; } .net-item:nth-child(2n) { padding-left: 0; border-left: 0; } }

/* Videos and projects */
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.video { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--navy); border-bottom: 4px solid var(--red); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { display: flex; flex-direction: column; margin-top: 10px; }
.video strong { font-family: var(--display); font-size: 1.1rem; color: var(--navy); }
.v-place { color: var(--ink); font-size: .95rem; }
.v-tag { color: var(--muted); font-size: .9rem; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 26px; }
.project h3 { margin-top: 14px; }
.project p { color: var(--muted); font-size: .98rem; }
@media (max-width: 900px) { .video-grid, .projects { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .video-grid, .projects { grid-template-columns: 1fr; } }

/* Profile pages */
.profile-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 46px 0; }
.profile-grid { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.profile-photo img, .profile-photo .ph { aspect-ratio: 4 / 5; width: 100%; object-fit: cover; border-bottom: 5px solid var(--red); }
.crumb { font-weight: 700; font-size: .95rem; margin-bottom: 10px; }
.profile-title { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: var(--red); }
.on-file { border-left: 4px solid var(--red); padding: 4px 0 4px 16px; max-width: 36em; color: var(--muted); }
.profile-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: start; }
.story p { max-width: 38em; }
.highlights { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--navy); padding: 24px; }
.highlights h2 { font-size: 1.5rem; }
@media (max-width: 860px) {
  .profile-grid, .profile-body { grid-template-columns: 1fr; gap: 26px; }
  .profile-photo { max-width: 280px; }
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; border-left: 4px solid var(--navy); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 0 0 20px 24px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 7px; width: 12px; height: 12px; background: var(--red); transform: rotate(45deg); }
.tl-when { font-family: var(--display); font-weight: 700; color: var(--navy); }
.tl-what { color: var(--muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* Contact band */
.contact-band { background: var(--navy); color: var(--on-navy); padding: 52px 0; border-top: 6px solid var(--red); }
.contact-band h2 { color: var(--white); margin-bottom: .2em; }
.contact-band p { margin: 0; }
.contact-band-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.contact-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.contact-band .btn-light { background: var(--red); color: var(--white); }
.contact-band .btn-light:hover { background: var(--red-deep); }

/* Contact page and forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-grid > .text-form { order: -1; }
.contact-list { margin: 0; }
.contact-list dt { font-weight: 700; color: var(--navy); margin-top: 16px; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 2px 0 0; color: var(--muted); }
.contact-note { margin-top: 28px; background: var(--white); border-left: 5px solid var(--red); padding: 20px 22px; }
.contact-note p { margin: 0; color: var(--muted); }
.answers-line { margin-top: 22px; color: var(--muted); }
.text-form { background: var(--white); border: 1px solid var(--line); border-top: 6px solid var(--red); padding: 26px; display: grid; gap: 16px; }
.text-form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; color: var(--navy); }
.text-form input, .text-form textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 11px 12px; border: 1px solid #A9B3C1; background: var(--white); color: var(--ink); width: 100%; }
.text-form input:focus, .text-form textarea:focus { outline: 3px solid var(--navy); outline-offset: 0; border-color: var(--navy); }
.form-error { color: var(--red); font-weight: 600; font-size: .95rem; margin: 0; }
.form-fine { font-size: .85rem; color: var(--muted); margin: 0; text-align: center; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 30px; } }
@media (max-width: 420px) { .text-form { padding: 18px; } }

/* Login */
.login-wrap { min-height: 60vh; }
.login-form { max-width: 420px; margin: 0 auto; }
.login-form h1 { font-size: 2.2rem; margin: 0; }
.login-form > p { margin: 0; color: var(--muted); }
#login-msg { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy); padding: 48px 0 96px; font-size: .95rem; border-top: 4px solid var(--red); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: #FFB3BD; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 170px; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.f-head { font-family: var(--display); font-weight: 700; color: var(--white); margin-bottom: 4px; }
.copyright { border-top: 1px solid var(--navy-soft); margin-top: 28px; padding-top: 16px; font-size: .85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Text us chat bubble ---------- */
.chat { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-bubble { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: var(--white); border: 0; cursor: pointer; font-family: var(--body); font-weight: 700; font-size: 1rem; padding: 14px 20px; border-radius: 999px; box-shadow: 0 6px 18px rgba(11,46,91,.35); }
.chat-bubble:hover { background: var(--red-deep); }
.chat.is-open .chat-bubble { background: var(--navy); }
.chat-panel { width: min(340px, calc(100vw - 36px)); background: var(--white); border: 3px solid var(--navy); border-top: 6px solid var(--red); padding: 18px; box-shadow: 0 10px 30px rgba(11,46,91,.25); max-height: calc(100vh - 120px); overflow-y: auto; }
.chat-head { display: flex; justify-content: space-between; align-items: center; }
.chat-title { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--navy); margin: 0; }
.chat-close { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 4px; }
.chat-intro { font-size: .95rem; color: var(--muted); margin: 6px 0 12px; }
.chat-form { display: grid; gap: 10px; }
.chat-form label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; color: var(--navy); }
.chat-form input, .chat-form textarea { font: inherit; font-size: 1rem; padding: 9px 10px; border: 1px solid #A9B3C1; width: 100%; }
.chat-form input:focus, .chat-form textarea:focus { outline: 3px solid var(--navy); outline-offset: 0; }
.chat-alt { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .92rem; }
.chat-alt p { margin: 0; width: 100%; color: var(--muted); }
@media (max-width: 480px) { .chat { right: 12px; } }

/* ---------- Photo placeholders ---------- */
.ph { position: relative; width: 100%; background: repeating-linear-gradient(45deg, #DDE4EE 0 12px, #E8EDF4 12px 24px); border: 2px dashed #8A9AB0; display: flex; align-items: center; justify-content: center; text-align: center; }
.ph::after { content: attr(data-label); font-weight: 700; font-size: .9rem; color: var(--navy); background: rgba(255,255,255,.9); padding: 6px 10px; margin: 10px; }
.ph-square { aspect-ratio: 1 / 1; }
.ph-portrait { aspect-ratio: 4 / 5; }
.ph-wide { aspect-ratio: 3 / 2; }
.hero .ph { background: repeating-linear-gradient(45deg, #163A6A 0 12px, #1B4175 12px 24px); border-color: #5A7596; }

/* ---------- Fixed Call / Text / Email bar ---------- */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 8px max(8px, calc((100vw - 720px) / 2)); padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--navy); border-top: 4px solid var(--red); box-shadow: 0 -6px 20px rgba(11,46,91,.25); }
.ab { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; font-weight: 700; font-size: 1.05rem; text-decoration: none; color: var(--white); border: 2px solid rgba(255,255,255,.55); }
.ab:hover { color: var(--white); background: var(--navy-soft); }
.ab-text { background: var(--red); border-color: var(--red); }
.ab-text:hover { background: var(--red-deep); }
.has-action-bar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.chat { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
.chat:not(.is-open) { pointer-events: none; }
@media (max-width: 380px) { .ab { font-size: .95rem; gap: 6px; } .ab svg { width: 18px; height: 18px; } }

/* ---------- Help-by-situation cards ---------- */
.site-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.site-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--navy); padding: 22px 22px 18px; text-decoration: none; color: var(--ink); }
.site-card:hover { border-top-color: var(--red); color: var(--ink); }
.site-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.site-card p { color: var(--muted); font-size: 1rem; margin: 0 0 16px; }
.site-name { margin-top: auto; font-weight: 700; color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.site-card-main { background: var(--navy); border-color: var(--navy); border-top-color: var(--red); }
.site-card-main h3 { color: var(--white); }
.site-card-main p { color: var(--on-navy); }
.site-card-main .site-name { color: var(--white); }
.site-card-main:hover { background: var(--navy-deep); }
@media (max-width: 900px) { .site-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .site-grid { grid-template-columns: 1fr; } }

/* Footer site list */
.footer-grid { grid-template-columns: 1.3fr 1fr 1.2fr 1fr; }
.footer-sites a { display: flex; flex-direction: column; line-height: 1.3; margin-bottom: 4px; }
.fs-q { font-size: .82rem; color: var(--on-navy); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* storm page timeline labels */
.timeline .tl-when { font-size: 1.1rem; }
@media (max-width: 1080px) { .site-nav { gap: 16px; } .site-nav a { font-size: .93rem; } }

/* ---------- Precision partner strip ---------- */
.partner-strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; }
.partner-row { display: grid; grid-template-columns: 240px 1fr auto; gap: 36px; align-items: center; }
.partner-logo { display: flex; align-items: center; justify-content: center; min-height: 96px; padding: 12px; border-right: 4px solid var(--red); text-decoration: none; }
.partner-logo .pl-img { max-height: 110px; width: auto; }
.pl-text { font-family: var(--display); font-weight: 800; font-size: 1.2rem; line-height: 1.15; color: var(--navy); text-align: center; }
.partner-copy h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .35em; }
.partner-copy p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
  .partner-row { grid-template-columns: 1fr; gap: 18px; }
  .partner-logo { justify-content: flex-start; border-right: 0; border-left: 4px solid var(--red); padding-left: 16px; min-height: 0; }
  .partner-btn { justify-self: start; }
}
.footer-partner { display: inline-block; background: var(--white); padding: 10px 14px; max-width: 220px; }
.footer-partner .pl-img { max-height: 64px; width: auto; }
.footer-partner .pl-text { font-size: 1rem; }
.f-gap { margin-top: 18px; }
@media (max-width: 900px) { .partner-logo .pl-text { text-align: left; } }
/* Precision's round logo */
.partner-logo .pl-img { max-height: 150px; }
.footer-partner { background: none; padding: 0; }
.footer-partner .pl-img { max-height: 96px; }

/* Precision logo in the header, between the partner line and the menu */
.header-partner { display: flex; align-items: center; margin-right: auto; margin-left: 4px; padding-left: 20px; border-left: 2px solid var(--navy-soft); }
.header-partner img { height: 58px; width: auto; }
@media (max-width: 1180px) { .site-nav { gap: 14px; } .site-nav a { font-size: .9rem; } .header-partner img { height: 50px; } }
@media (max-width: 900px) { .header-partner { margin-left: 0; padding-left: 14px; } .header-partner img { height: 46px; } }
@media (max-width: 560px) { .header-partner { border-left: 0; padding-left: 0; } .header-partner img { height: 42px; } }

/* ---------- Message popup ---------- */
.msg-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px; }
.msg-modal[hidden] { display: none; }
.msg-backdrop { position: absolute; inset: 0; background: rgba(7,31,63,.6); }
.msg-box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--white); border-top: 6px solid var(--red); padding: 22px; box-shadow: 0 20px 50px rgba(7,31,63,.4); }
.msg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.msg-done p { color: var(--muted); }
.msg-done .chat-title { color: var(--navy); }
.hp { position: absolute !important; left: -9999px; }
.modal-open { overflow: hidden; }
.form-error.form-ok { color: var(--navy); }
@media (max-width: 480px) { .msg-row { grid-template-columns: 1fr; } .msg-box { padding: 18px; } }

/* ---------- Gallery ---------- */
.g-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.g-filter { font: inherit; font-weight: 700; font-size: .95rem; background: var(--white); color: var(--navy); border: 2px solid var(--line); padding: 8px 14px; cursor: pointer; }
.g-filter:hover { border-color: var(--navy); }
.g-filter[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.g-item { margin: 0; }
.g-item[hidden] { display: none; }
.g-item .ph::after { font-size: .8rem; }
.g-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.g-open img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.g-open:hover img { outline: 4px solid var(--red); outline-offset: -4px; }
.g-item figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
@media (max-width: 900px) { .g-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 580px) { .g-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .g-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .g-filter { white-space: nowrap; } }
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(7,31,63,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 80vh; width: auto; }
.lightbox p { color: var(--white); margin: 12px 0 0; text-align: center; }
.lb-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; color: var(--white); font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* ---------- Flat roof band (home) ---------- */
.flat-band { background: var(--navy); color: var(--on-navy); padding: 48px 0; border-top: 6px solid var(--red); border-bottom: 6px solid var(--red); }
.flat-band h2 { color: var(--white); margin-bottom: .3em; }
.flat-band p { margin: 0; max-width: 40em; }
.flat-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review { margin: 0; background: var(--white); border-left: 5px solid var(--red); padding: 22px; }
.review p { font-size: 1.05rem; color: var(--ink); }
.review cite { font-style: normal; font-weight: 700; color: var(--navy); }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }

/* ---------- Second menu row: Get help ---------- */
.subnav { background: var(--white); border-top: 1px solid var(--navy-soft); }
.subnav-row { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; min-height: 42px; padding-top: 6px; padding-bottom: 6px; }
.subnav-label { font-weight: 700; color: var(--muted); font-size: .9rem; }
.subnav a { font-weight: 700; font-size: .92rem; color: var(--navy); text-decoration: none; }
.subnav a:hover { color: var(--red); text-decoration: underline; }
.site-header { border-bottom-width: 4px; }
.nav-help-mobile { display: none; }
@media (max-width: 900px) {
  .subnav { display: none; }
  .nav-help-mobile { display: block; padding: 12px 0 4px; }
  .nav-help-mobile p { margin: 0 0 4px; font-size: .8rem; font-weight: 700; color: var(--on-navy); text-transform: none; }
  .nav-help-mobile a { display: block; padding: 10px 0; border-bottom: 1px solid var(--navy-soft); color: var(--white); font-weight: 600; }
}
html { scroll-padding-top: 170px; }
#credentials .creds { margin-bottom: 0; }
