/* Southwest Corridor family design language.
   Reference: https://swcorridor.f3solutions.com/design-system/
   Shared shell and scoped overrides preserve existing PHP routes and forms. */
:root {
    --sw-black: #080808;
    --sw-orange: #ff6a00;
    --sw-white: #f5f5f3;
    --sw-gray: #aaa;
    --sw-line: #303030;
    --main-font: 'Manrope', Arial, sans-serif;
    --second-font: 'Manrope', Arial, sans-serif;
    --para-font: 'Inter', Arial, sans-serif;
    --accent-color: #ff6a00;
    --fs-sm: .875rem;
    --fs-base: 1rem;
    --fs-md: 1.125rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.5rem;
    --fs-2xl: 2rem;
    --fs-3xl: 3rem;
    --fs-4xl: 4rem;
}
html { font-size: 100% !important; scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--sw-black); color: var(--sw-white); font: 16px/1.7 'Inter', Arial, sans-serif; }
body h1, body h2, body h3, body h4, body h5 { font-family: var(--main-font); font-weight: 400; line-height: 1.15; letter-spacing: -.045em; }
body a, body button { transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease; }
body a:focus-visible, body button:focus-visible, body input:focus-visible, body textarea:focus-visible, body select:focus-visible, body summary:focus-visible { outline: 3px solid var(--sw-orange); outline-offset: 5px; }
.sw-wrap { width: min(1320px, 88%); margin-inline: auto; }
.sw-skip { position: absolute; top: 0; left: 16px; padding: 12px 24px; z-index: 10000; background: var(--sw-orange); color: #080808; transform: translateY(-150%); }
.sw-skip:focus { transform: translateY(0); }
body #header.sw-header { height: auto; max-width: none; border: 0; border-bottom: 1px solid #252525; background: #101010; z-index: 50; }
.sw-topbar { background: #080808; color: #aaa; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.sw-topbar > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; }
.sw-topbar a { color: #ccc; text-decoration: none; }
.sw-header-inner { width: min(1320px, 88%); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 120px; padding: 18px 0; }
.sw-brand { flex: 0 0 270px; }
.sw-brand img { width: 270px; height: auto; }
.sw-header .sw-family { display: block; margin-top: 7px; font-size: 11px; text-decoration: none; color: #aaa; }
.sw-navigation { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.sw-navigation a, .sw-navigation button { color: #f5f5f3; text-decoration: none; white-space: nowrap; }
.sw-navigation button { border: 0; padding: 12px 0; background: none; cursor: pointer; font: inherit; }
.sw-navigation a:hover, .sw-navigation button:hover, .sw-navigation [aria-current="page"] { color: var(--sw-orange); }
.sw-navigation .sw-nav-contact { background: var(--sw-orange); color: #080808; padding: 16px 20px; border-radius: 2px; font-weight: 600; }
.sw-nav-contact span { margin-left: 16px; }
.sw-navigation .sw-nav-contact:hover { background: #ff8730; color: #080808; }
.sw-dropdown { position: relative; }
.sw-submenu { list-style: none; margin: 0; padding: 12px; background: #151515; border: 1px solid #383838; min-width: 248px; }
.sw-submenu li { margin: 0; padding: 0; }
.sw-submenu a { display: block; padding: 9px 12px; white-space: normal; line-height: 1.5; }
.sw-enhanced .sw-submenu { position: absolute; top: 100%; left: -12px; display: none; }
.sw-enhanced button[aria-expanded="true"] + .sw-submenu { display: block; }
.sw-menu-toggle { display: none; background: none; color: #fff; border: 1px solid #555; border-radius: 2px; padding: 12px 16px; cursor: pointer; }
.sw-menu-toggle span { margin-left: 8px; }
body #content.sw-home { width: 100%; max-width: none; padding: 0; background: var(--sw-black); color: var(--sw-white); }
.sw-home h1, .sw-home h2, .sw-home h3, .sw-home p { margin: 0; }
.sw-home h2 { font-size: clamp(36px, 4vw, 56px); }
.sw-home h3 { font-size: clamp(24px, 2.2vw, 32px); }
.sw-home p { color: #aaa; }
.sw-home .sw-eyebrow { color: var(--sw-orange); text-transform: uppercase; font-size: 12px; line-height: 1.6; letter-spacing: .16em; font-weight: 600; margin-bottom: 28px; }
.sw-hero { position: relative; min-height: 680px; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; }
.sw-hero-photo { position: absolute; inset: 0; height: 100%; width: 100%; object-fit: cover; z-index: -2; }
.sw-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.57); z-index: -1; }
.sw-hero-content { padding-block: 72px 48px; }
.sw-home .sw-hero h1 { font-size: clamp(48px, 6.5vw, 92px); line-height: 1.04; letter-spacing: -.06em; max-width: 1000px; text-transform: none; color: #fff; margin: 30px 0; }
.sw-home .sw-hero-description { color: #ececec; font-size: 18px; line-height: 1.7; }
.sw-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 32px; }
.sw-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; padding: 18px 24px; background: var(--sw-orange); color: #080808; text-decoration: none; border: 1px solid var(--sw-orange); border-radius: 2px; font-size: 14px; font-weight: 600; min-height: 58px; }
.sw-button span { font-size: 19px; }
.sw-button:hover { background: #ff8730; color: #080808; border-color: #ff8730; }
.sw-button-outline { color: #fff; background: rgba(0,0,0,.18); border-color: #888; }
.sw-button-outline:hover { color: #fff; background: #252525; border-color: #fff; }
.sw-hero-caption { display: flex; justify-content: space-between; gap: 24px; padding-block: 24px; border-top: 1px solid #ffffff38; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.sw-hero-caption a { color: #fff; text-decoration: none; text-transform: none; letter-spacing: 0; }
.sw-discipline-strip { border-bottom: 1px solid var(--sw-line); }
.sw-discipline-strip > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 32px; color: #aaa; font-size: 14px; }
.sw-discipline-strip span { display: flex; align-items: center; gap: 20px; }
.sw-discipline-strip strong { font-family: var(--main-font); font-size: 36px; color: #fff; font-weight: 400; letter-spacing: -.05em; }
.sw-section { padding-block: 104px; }
.sw-intro { background: var(--sw-white); color: #080808; }
.sw-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10%; }
.sw-home .sw-intro p { color: #646464; }
.sw-home .sw-intro .sw-eyebrow { color: #a84200; }
.sw-home .sw-intro .sw-lead { color: #252525; font-size: 22px; line-height: 1.6; }
.sw-intro p + p { margin-top: 24px; }
.sw-text-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; color: inherit; border: 0; border-bottom: 1px solid #777; background: none; padding: 12px 0; text-decoration: none; font: 500 14px/1.6 'Inter', Arial, sans-serif; cursor: pointer; }
.sw-intro .sw-text-link { margin-top: 20px; border-color: #bcbcbc; }
.sw-text-link:hover { color: var(--sw-orange); border-color: var(--sw-orange); }
.sw-intro .sw-text-link:hover { color: #a84200; border-color: #a84200; }
.sw-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.sw-solutions { background: #111; }
.sw-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sw-card { position: relative; display: flex; align-items: flex-end; min-height: 410px; overflow: hidden; isolation: isolate; text-decoration: none; color: #fff; }
.sw-card img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; z-index: -2; transition: transform 250ms ease; }
.sw-card::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: -1; }
.sw-card:hover img { transform: scale(1.025); }
.sw-card-body { width: 100%; padding: 28px; background: #080808cc; }
.sw-card .sw-eyebrow { font-size: 10px; margin-bottom: 12px; }
.sw-card h3 { display: flex; justify-content: space-between; gap: 12px; font-size: 26px; }
.sw-related { display: flex; flex-wrap: wrap; gap: 20px 32px; border-top: 1px solid var(--sw-line); margin-top: 40px; padding-top: 28px; font-size: 14px; }
.sw-related span { color: #aaa; margin-right: auto; }
.sw-related a { color: #fff; text-decoration: none; }
.sw-related a:hover { color: var(--sw-orange); }
.sw-process-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px; }
.sw-process-card { color: #fff; text-decoration: none; padding-top: 28px; border-top: 1px solid #555; display: flex; flex-direction: column; align-items: flex-start; }
.sw-step { font-family: var(--main-font); color: var(--sw-orange); font-size: 36px; margin-bottom: 40px; }
.sw-process-card h3 { margin-bottom: 20px; }
.sw-process-card p { margin-bottom: 20px; }
.sw-process-card .sw-text-link { margin-top: auto; }
.sw-process-card:hover { border-color: var(--sw-orange); }
.sw-contact { background: #171717; border-block: 1px solid var(--sw-line); }
.sw-contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; align-items: center; gap: 12%; }
.sw-contact h2 { font-size: clamp(44px, 5vw, 72px); }
.sw-contact p { margin-top: 24px; }
.sw-contact .sw-eyebrow { margin-top: 0; }
.sw-contact-aside { border-left: 1px solid #555; padding-left: 40px; }
.sw-contact-aside .sw-text-link { margin-top: 20px; }
body #measure-your-roof { position: static; color: inherit; border-radius: 0; font-size: 14px; width: auto; height: auto; }
.sw-resources { padding-block: 64px; }
.sw-resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.sw-resources .sw-eyebrow { margin-bottom: 18px; }
.sw-resources h3 { font-size: 24px; }
.sw-finance-links { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 20px; }
.sw-finance-links a { color: #ccc; font-size: 14px; text-decoration: none; }
body #footer.sw-footer { max-width: none; padding: 64px 0 24px; color: #aaa; background: var(--sw-black); border-top: 1px solid var(--sw-line); }
.sw-footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1.3fr 1fr; gap: 40px; }
.sw-footer h3 { font: 500 14px/1.5 'Inter', Arial, sans-serif; color: #fff; letter-spacing: 0; margin: 0 0 24px; }
.sw-footer a { display: block; color: #aaa; font-size: 14px; text-decoration: none; margin-bottom: 10px; overflow-wrap: anywhere; }
.sw-footer a:hover { color: var(--sw-orange); }
.sw-footer p { font-size: 14px; margin: 20px 0; }
.sw-footer-brand img { width: 240px; max-width: 100%; height: auto; }
.sw-footer-brand .sw-family { font-size: 12px; }
.sw-footer-tool { background: none; border: 0; color: #aaa; cursor: pointer; padding: 0; font-size: 14px; text-align: left; }
.sw-service-areas { margin-top: 48px; padding: 20px 0; border-top: 1px solid var(--sw-line); font-size: 14px; }
.sw-service-areas summary { cursor: pointer; }
.sw-footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--sw-line); padding-top: 24px; font-size: 12px; }

/* Existing interior pages retain their content and layouts, with the shared
   typography, neutral surfaces, controls, and spacing of the family design. */
body #content.sw-interior { max-width: 1440px; background: var(--sw-white); color: #252525; padding: 64px clamp(24px, 6vw, 80px); }
#content.sw-interior > h1 { margin: -64px calc(-1 * clamp(24px, 6vw, 80px)) 48px; padding: 72px clamp(24px, 6vw, 80px); background: #080808; color: #f5f5f3; font-size: clamp(40px, 5vw, 72px); font-weight: 400; text-transform: none; line-height: 1.1; }
#content.sw-interior h2 { font-size: clamp(28px, 3vw, 44px); font-weight: 400; text-transform: none; }
#content.sw-interior h3, #content.sw-interior h4 { font-size: clamp(23px, 2.4vw, 32px); font-weight: 400; text-transform: none; }
#content.sw-interior p, #content.sw-interior li { font-family: var(--para-font); font-size: 17px; line-height: 1.8; }
#content.sw-interior .btn, #content.sw-interior .sr-btn { display: inline-block; background: var(--sw-orange); color: #080808; font: 600 14px/1.5 'Inter', Arial, sans-serif; border: 1px solid var(--sw-orange); border-radius: 2px; padding: 16px 24px; text-decoration: none; margin-top: 20px; }
#content.sw-interior .btn:hover, #content.sw-interior .sr-btn:hover { background: #ff8730; }
#content.sw-interior .sr-hero { background: #080808; color: #fff; padding: 64px 32px; }
#content.sw-interior .sr-hero h1 { font-size: clamp(40px, 5vw, 72px); font-weight: 400; color: #fff; }
#content.sw-interior .sr-hero p { color: #ccc; font-size: 20px; }
#content.sw-interior .sr-eyebrow { color: var(--sw-orange); }
#content.sw-interior .sr-section h2 { font: 600 13px/1.5 'Inter', Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #a84200; }
#content.sw-interior .sr-section h3 { font-size: clamp(28px, 3vw, 44px); }
#content.sw-interior .sr-page { background: var(--sw-white); }
#content.sw-interior .sr-section-alt { background: #eaeae7; }
#content.sw-interior .article-body { max-width: 800px; }
#content.sw-interior .article-body h1 { font-size: clamp(40px, 5vw, 64px); }
#content.sw-interior .form-block { margin-top: 48px; }
#content.sw-interior .form-block .container { max-width: 900px; margin-inline: auto; }
#content.sw-interior .form-block input:not([type="radio"]):not([type="checkbox"]), #content.sw-interior .form-block textarea, #content.sw-interior .form-block select { border-radius: 2px; border: 1px solid #888; background: #fff; color: #080808; padding: 12px; font-size: 16px; }
#content.sw-interior .form-block button[type="submit"] { background: var(--sw-orange); color: #080808; border: 0; border-radius: 2px; padding: 16px 32px; font: 600 16px 'Inter', Arial, sans-serif; cursor: pointer; }
#content.sw-interior .about-services, #content.sw-interior .badg, #content.sw-interior .touch { background: #080808; }
#content.sw-interior .mainimage { height: auto; }
#content.sw-interior .carport { background: none; }
#content.sw-interior .carport .card-block .card { border: 1px solid #ccc; }
#content.sw-interior .carport .card-block .card h2, #content.sw-interior .carport .card-block .card h3, #content.sw-interior .carport .card-block .card h4 { color: #a84200; }
#content.sw-interior > .container:has(.images) { background: #171717; padding: 24px; margin-block: 24px 64px; }
#content.sw-interior .images img { flex-shrink: 0; border: 1px solid #666; }
#instantroofermodal { z-index: 1000; }
#instantroofermodal #instantroofer { width: min(440px, calc(100% - 32px)); padding: 16px; border-radius: 2px; }
#instantroofermodal #instantroofer iframe { width: 100%; inline-size: 100%; border: 0; }
@media (min-width: 1051px) {
    .sw-header:not(.sw-enhanced) .sw-navigation { align-items: flex-start; }
}
@media (max-width: 1150px) {
    .sw-header-inner { gap: 20px; }
    .sw-brand { flex-basis: 230px; }
    .sw-navigation { gap: 16px; font-size: 13px; }
    .sw-nav-contact span { margin-left: 6px; }
}
@media (max-width: 1050px) {
    .sw-header-inner { flex-wrap: wrap; min-height: 100px; }
    .sw-header .sw-menu-toggle:not([hidden]) { display: block; }
    .sw-navigation { width: 100%; display: flex; flex-direction: column; align-items: stretch; gap: 0; font-size: 16px; padding: 12px 0; }
    .sw-enhanced .sw-navigation { display: none; }
    .sw-enhanced .sw-navigation.is-open { display: flex; }
    .sw-navigation > a, .sw-dropdown > button { display: block; width: 100%; padding: 14px 0; text-align: left; border-bottom: 1px solid #333; }
    .sw-dropdown > button { display: flex; justify-content: space-between; }
    .sw-enhanced .sw-submenu { position: static; border: 0; border-left: 1px solid var(--sw-orange); margin: 8px 0 16px; }
    .sw-navigation .sw-nav-contact { margin-top: 16px; }
    .sw-footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sw-card-grid { gap: 16px; }
    .sw-card-body { padding: 20px; }
    .sw-card h3 { font-size: 23px; }
    .sw-process-grid { gap: 24px; }
}
@media (max-width: 700px) {
    .sw-topbar { font-size: 9px; letter-spacing: .03em; }
    .sw-wrap, .sw-header-inner { width: calc(100% - 40px); }
    .sw-brand { flex-basis: 195px; }
    .sw-brand img { width: 195px; }
    .sw-header .sw-family { font-size: 10px; }
    .sw-menu-toggle { padding: 10px; font-size: 13px; }
    .sw-header-inner { gap: 12px; }
    .sw-hero { min-height: 650px; }
    .sw-hero-content { padding-block: 56px 40px; }
    .sw-home .sw-hero h1 { font-size: clamp(42px, 9.5vw, 64px); }
    .sw-home .sw-hero-description { font-size: 16px; }
    .sw-hero-photo { object-position: 60% center; }
    .sw-hero-caption { flex-direction: column; gap: 12px; font-size: 10px; }
    .sw-actions { gap: 12px; }
    .sw-button { padding: 16px 20px; }
    .sw-hero .sw-button { width: 100%; }
    .sw-discipline-strip > div { grid-template-columns: 1fr; gap: 16px; padding-block: 24px; }
    .sw-discipline-strip span { gap: 24px; }
    .sw-discipline-strip strong { min-width: 64px; font-size: 32px; }
    .sw-section { padding-block: 64px; }
    .sw-intro-grid, .sw-card-grid, .sw-process-grid, .sw-contact-grid, .sw-resource-grid { grid-template-columns: 1fr; gap: 40px; }
    .sw-home .sw-eyebrow { font-size: 11px; margin-bottom: 20px; }
    .sw-home .sw-intro .sw-lead { font-size: 20px; }
    .sw-section-heading { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 32px; }
    .sw-card-grid { gap: 24px; }
    .sw-card { min-height: 420px; }
    .sw-related { gap: 16px 24px; }
    .sw-related span { width: 100%; }
    .sw-step { margin-bottom: 24px; }
    .sw-contact-aside { padding: 28px 0 0; border-left: 0; border-top: 1px solid #555; }
    .sw-footer-grid { gap: 36px 24px; }
    .sw-footer-brand { grid-column: 1 / -1; }
    .sw-footer-bottom { flex-direction: column; gap: 12px; }
    body #content.sw-interior { padding: 40px 20px; }
    #content.sw-interior > h1 { margin: -40px -20px 32px; padding: 48px 20px; }
    #content.sw-interior .container { padding: 24px 0; width: 100%; }
    #content.sw-interior .sr-hero { padding: 32px 20px; }
    #content.sw-interior .main, #content.sw-interior .project { flex-wrap: wrap; gap: 24px; padding: 24px 0; }
    #content.sw-interior .lt, #content.sw-interior .rt, #content.sw-interior .card, #content.sw-interior .about-services .item { width: 100%; }
    #content.sw-interior .text { padding: 20px 0; }
    #content.sw-interior .badg, #content.sw-interior .touch { padding: 24px; }
    #content.sw-interior .flex-container .item { padding: 12px 0; max-width: 100%; }
    #content.sw-interior .flex-container .item img { min-width: 0; }
}
@media (max-width: 380px) {
    .sw-topbar > div { justify-content: flex-end; }
    .sw-topbar span { display: none; }
    .sw-topbar a { font-size: 10px; }
    .sw-brand { flex-basis: 170px; }
    .sw-brand img { width: 170px; }
    .sw-footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body *, body *::before, body *::after { transition: none !important; animation: none !important; }
}
