/* ==========================================================================
   Kauffman Builder — Landing Page Styles
   ========================================================================== */

:root {
    --navy: #002956;
    --navy-dark: #001d3d;
    --navy-light: #0b3a70;
    --red: #e86c26;
    --red-dark: #c95a1c;
    --text: #002956;
    --text-muted: #5d6a7d;
    --text-light: #aab6c6;
    --blue-accent: #e86c26;
    --highlight: #f5a36d;
    --sky-from: #dbe7f3;
    --sky-to: #f5f8fb;
    --border: #dfe5ec;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px rgba(0, 41, 86, 0.06);
    --shadow-md: 0 10px 30px rgba(0, 41, 86, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

/* Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    border-radius: 2px;
    padding: 14px 28px;
    transition: background-color 0.2s ease, transform 0.05s ease;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-block {
    width: 100%;
    padding: 18px 20px;
    font-size: 15px;
    text-transform: none;
}

/* Top Bar
   ========================================================================== */
.top-bar {
    background: var(--navy-dark);
    color: var(--white);
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-inner {
    display: flex;
    align-items: center;
}

.location-select {
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0;
}

.location-select i {
    font-size: 10px;
    opacity: 0.85;
}

/* Header
   ========================================================================== */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: relative;
    z-index: 20;
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: 120px;
    gap: 24px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    align-self: center;
}

.site-logo {
    width: auto;
    height: 100px;
    display: block;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
}

.mobile-nav-header,
.nav-backdrop {
    display: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    margin-left: 24px;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    border-radius: 4px;
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--red);
}

.main-nav .has-dropdown i {
    font-size: 10px;
    margin-top: 2px;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    display: grid;
    gap: 0;
    margin-left: 0;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 18px 42px rgba(0, 41, 86, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}

.main-nav .dropdown-menu a {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
    white-space: nowrap;
}

.main-nav .has-dropdown:hover .dropdown-menu,
.main-nav .has-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
    align-self: stretch;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    padding: 0 28px;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.header-cta {
    padding: 0 36px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 0;
    min-height: 100%;
    align-self: stretch;
}

.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--navy);
    align-self: center;
    padding: 0 8px;
}

/* Hero
   ========================================================================== */
.hero {
    position: relative;
    background: linear-gradient(180deg, var(--sky-from) 0%, var(--sky-to) 100%);
    overflow: hidden;
    padding-bottom: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.6) 0%, transparent 50%),
        linear-gradient(180deg, #bfdff2 0%, #e4f2fb 70%);
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 40px;
    padding-top: 60px;
    padding-bottom: 40px;
    align-items: start;
}

.hero-content {
    padding-right: 20px;
}

.eyebrow {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.hero-title {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--navy);
    margin-bottom: 28px;
}

.highlight {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlight::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 6px;
    height: 14px;
    background: var(--highlight);
    opacity: 0.75;
    z-index: -1;
    border-radius: 2px;
}

.hero-desc {
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy);
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-image {
    width: 100%;
    height: 360px;
    border-radius: 4px;
    background-image: url("img/barn.jpg");
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-sm);
}

/* Estimate Form Card
   ========================================================================== */
.estimate-card {
    background: var(--navy);
    color: var(--white);
    padding: 36px 36px 32px;
    border-radius: 2px;
    position: relative;
    z-index: 2;
}

.estimate-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.estimate-sub {
    font-size: 15px;
    color: var(--white);
    margin-bottom: 22px;
}

.estimate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.field {
    position: relative;
}

.field input,
.field select {
    width: 100%;
    height: 52px;
    background: var(--navy-light);
    border: 1px solid transparent;
    color: var(--white);
    font-family: inherit;
    font-size: 15px;
    padding: 20px 16px 8px;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    appearance: none;
}

.field input:hover,
.field select:hover {
    background: #17304f;
}

.field input:focus,
.field select:focus {
    border-color: var(--blue-accent);
    background: #17304f;
}

.field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    transition: all 0.15s ease;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:valid + label {
    top: 14px;
    transform: translateY(0);
    font-size: 11px;
    color: var(--text-light);
}

.field.select .select-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 12px;
    pointer-events: none;
}

.required-flag {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: var(--red);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    line-height: 1;
}

.btn-block {
    margin-top: 14px;
    text-transform: none;
    letter-spacing: 0.2px;
    font-size: 15px;
}

.disclaimer {
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-light);
    margin-top: 18px;
}

.disclaimer a {
    color: var(--blue-accent);
    text-decoration: none;
}

.disclaimer a:hover {
    text-decoration: underline;
}

/* Leak Bar
   ========================================================================== */
.leak-bar {
    position: relative;
    background: #e4ecf2;
    margin-top: 0;
    padding: 22px 0;
}

.leak-bar-inner {
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 40px;
    align-items: center;
}

.leak-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leak-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
}

.leak-link {
    font-size: 14px;
    color: var(--navy);
    font-weight: 500;
    text-decoration: none;
}

.leak-link:hover {
    color: var(--red);
}

.leak-right {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: start;
}

.phone-icon {
    color: var(--red);
    font-size: 18px;
    transform: rotate(8deg);
}

.leak-phone {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
}

/* Protect Section
   ========================================================================== */
.protect {
    background: var(--white);
    padding: 70px 0 40px;
    text-align: center;
}

.protect-heading {
    font-size: 38px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -0.5px;
    max-width: 980px;
    margin: 0 auto;
}

.protect-heading .accent {
    color: var(--blue-accent);
}

/* Why Kauffman Builder
   ========================================================================== */
.why-roof {
    background: #f4f6f8;
    padding: 80px 0 120px;
}

.why-roof-inner {
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
    gap: 88px;
    align-items: start;
}

.why-roof-heading {
    position: sticky;
    top: 110px;
    padding-top: 10px;
}

.why-roof-heading h2 {
    font-size: 36px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--navy);
}

.why-roof-heading span {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.why-roof-heading span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 9px;
    background: var(--highlight);
    opacity: 0.8;
    z-index: -1;
}

.why-roof-cards {
    display: grid;
    gap: 54px;
    padding-bottom: 24px;
}

.why-card {
    --card-index: 1;
    --card-offset: 0px;
    position: sticky;
    top: 110px;
    z-index: var(--card-index);
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(280px, 1fr);
    min-height: 232px;
    background: var(--white);
    box-shadow: 0 22px 60px rgba(0, 41, 86, 0.08);
    transform: translateY(var(--card-offset));
}

.why-card-image {
    min-height: 232px;
    overflow: hidden;
}

.why-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.why-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 44px 56px;
}

.why-icon {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--red);
    color: var(--white);
    font-size: 14px;
    margin-bottom: 18px;
    box-shadow: 8px 8px 0 rgba(232, 108, 38, 0.14);
}

.why-card h3 {
    font-size: 25px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.4px;
    max-width: 520px;
    margin-bottom: 14px;
}

.why-card p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 580px;
}

/* Services
   ========================================================================== */
.services {
    background: var(--white);
    padding: 72px 0 84px;
}

.section-title {
    font-size: 34px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.4px;
    color: var(--navy);
    text-align: center;
    margin-bottom: 36px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 28px;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 230px;
    background: #f7f8fa;
    padding: 30px 32px;
    box-shadow: 0 10px 28px rgba(0, 41, 86, 0.04);
}

.service-card-main {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.service-visual {
    width: 118px;
    height: 118px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #26728d;
    font-size: 76px;
    position: relative;
    isolation: isolate;
}

.service-visual::before {
    content: "";
    position: absolute;
    inset: 18px 10px 8px 18px;
    background: linear-gradient(135deg, rgba(111, 214, 245, 0.45), rgba(42, 151, 182, 0.12));
    border-radius: 18px;
    filter: blur(4px);
    transform: skew(-8deg);
    z-index: -1;
}

.service-card-siding .service-visual,
.service-card-gutters .service-visual {
    color: #69cde6;
}

.service-copy h3 {
    font-size: 23px;
    line-height: 1.15;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 14px;
}

.service-copy p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
}

.service-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.service-actions.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid var(--red);
    color: var(--navy);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.service-btn:hover {
    background: var(--red);
    color: var(--white);
}

/* Service Areas
   ========================================================================== */
.service-areas {
    background: #f4f6f8;
    padding: 78px 0 88px;
}

.service-areas-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 52px;
    align-items: center;
}

.service-areas-content .eyebrow {
    margin-bottom: 14px;
}

.service-areas h2 {
    max-width: 640px;
    color: var(--navy);
    font-size: 34px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 18px;
}

.service-areas-intro {
    max-width: 680px;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 26px;
}

.service-area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
    margin-bottom: 30px;
}

.service-area-list li {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(0, 41, 86, 0.12);
    border-left: 3px solid var(--red);
    background: var(--white);
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 41, 86, 0.04);
}

.service-area-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
}

.service-area-phone {
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
}

.service-area-phone:hover {
    color: var(--red);
}

.service-areas-map {
    min-height: 390px;
    border: 8px solid var(--white);
    background: var(--white);
    box-shadow: 0 22px 54px rgba(0, 41, 86, 0.1);
    overflow: hidden;
}

.service-areas-map iframe {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
}

/* Service Pages
   ========================================================================== */
.service-page {
    background: var(--white);
}

.service-hero {
    background: linear-gradient(180deg, var(--sky-from) 0%, var(--sky-to) 100%);
    padding: 58px 0 70px;
}

.service-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    gap: 54px;
    align-items: center;
}

.service-breadcrumb {
    margin-bottom: 28px;
}

.service-hero h1 {
    color: var(--navy);
    font-size: 58px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -1.3px;
    max-width: 780px;
    margin-bottom: 24px;
}

.service-hero-content > p:not(.eyebrow) {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 720px;
}

.service-hero-actions,
.service-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 32px;
}

.service-phone-link,
.service-email-link {
    color: var(--navy);
    font-size: 18px;
    font-weight: 900;
}

.service-phone-link:hover,
.service-email-link:hover {
    color: var(--red);
}

.service-hero-image {
    min-height: 420px;
    background: var(--white);
    border: 10px solid var(--white);
    box-shadow: 0 24px 58px rgba(0, 41, 86, 0.12);
    overflow: hidden;
}

.service-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    object-fit: cover;
}

.service-highlights {
    background: var(--white);
    padding: 54px 0;
}

.service-highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-highlight-card,
.service-process-card,
.related-service-card {
    background: #f7f8fa;
    padding: 30px;
    box-shadow: 0 10px 28px rgba(0, 41, 86, 0.04);
}

.service-highlight-card h2,
.service-process-card h3,
.related-service-card h3 {
    color: var(--navy);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 12px;
}

.service-highlight-card p,
.service-process-card p,
.related-service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.service-content-section,
.service-includes,
.service-process,
.service-location-section,
.related-services {
    padding: 76px 0;
}

.service-content-section,
.service-process,
.related-services {
    background: #f4f6f8;
}

.service-two-column,
.service-location-layout,
.service-cta-inner {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 60px;
    align-items: start;
}

.service-two-column h2,
.service-section-heading h2,
.service-location-layout h2,
.service-cta h2 {
    color: var(--navy);
    font-size: 38px;
    line-height: 1.16;
    font-weight: 900;
    letter-spacing: -0.6px;
}

.service-copy-block {
    display: grid;
    gap: 18px;
}

.service-copy-block p,
.service-section-heading p,
.service-location-layout p,
.service-cta p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

.service-section-heading {
    max-width: 760px;
    margin-bottom: 34px;
}

.service-section-heading h2 {
    margin-bottom: 14px;
}

.service-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.service-check-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f7f8fa;
    padding: 18px 20px;
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.service-check-item i {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--red);
    color: var(--white);
    font-size: 12px;
}

.service-process-grid,
.related-service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-process-card span {
    display: inline-flex;
    color: var(--red);
    font-size: 15px;
    font-weight: 900;
    margin-bottom: 18px;
}

.service-location-section {
    background: var(--white);
}

.service-location-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
}

.service-location-grid li {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(0, 41, 86, 0.12);
    border-left: 3px solid var(--red);
    background: #f7f8fa;
    color: var(--navy);
    font-size: 13px;
    font-weight: 800;
}

.location-services {
    background: var(--white);
}

.location-service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.location-service-card {
    display: block;
    background: #f7f8fa;
    padding: 26px 22px;
    color: inherit;
    box-shadow: 0 10px 28px rgba(0, 41, 86, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 41, 86, 0.09);
}

.location-service-card i {
    color: var(--red);
    font-size: 26px;
    margin-bottom: 18px;
}

.location-service-card h3 {
    color: var(--navy);
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 10px;
}

.location-service-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.location-faq {
    background: var(--white);
    padding: 76px 0;
}

.location-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.location-faq-item {
    background: #f7f8fa;
    border-left: 4px solid var(--red);
    padding: 22px 24px;
    box-shadow: 0 10px 28px rgba(0, 41, 86, 0.04);
}

.location-faq-item summary {
    color: var(--navy);
    cursor: pointer;
    font-size: 17px;
    font-weight: 900;
    line-height: 1.35;
}

.location-faq-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-top: 14px;
}

.related-service-card {
    display: block;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(0, 41, 86, 0.09);
}

.related-service-card i {
    color: var(--red);
    font-size: 28px;
    margin-bottom: 20px;
}

.service-cta {
    background: var(--navy);
    color: var(--white);
    padding: 70px 0;
}

.service-cta h2,
.service-cta .eyebrow {
    color: var(--white);
}

.service-cta p {
    color: #d5deea;
    max-width: 760px;
}

.service-cta .service-phone-link,
.service-cta .service-email-link {
    color: var(--white);
}

.service-cta .service-phone-link:hover,
.service-cta .service-email-link:hover {
    color: var(--red);
}

/* Why Kauffman Builder Page
   ========================================================================== */
.why-builder-page {
    background: var(--white);
}

.why-builder-hero {
    background:
        radial-gradient(circle at 88% 18%, rgba(232, 108, 38, 0.14), transparent 34%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 72px 0 86px;
    overflow: hidden;
}

.why-builder-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 70px;
    align-items: end;
}

.why-builder-breadcrumb {
    margin-bottom: 32px;
}

.why-builder-breadcrumb,
.why-builder-breadcrumb a,
.why-builder-breadcrumb span:last-child {
    color: #d5deea;
}

.why-builder-hero .eyebrow,
.why-builder-cta .eyebrow {
    color: var(--white);
}

.why-builder-hero h1 {
    font-size: clamp(48px, 8vw, 104px);
    line-height: 0.92;
    font-weight: 900;
    letter-spacing: -3px;
    max-width: 840px;
    margin-bottom: 28px;
}

.why-builder-hero-copy > p:not(.eyebrow) {
    max-width: 760px;
    color: #d5deea;
    font-size: 18px;
    line-height: 1.75;
}

.why-builder-actions,
.why-builder-cta-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px 24px;
    margin-top: 34px;
}

.why-builder-hero .service-phone-link,
.why-builder-cta .service-phone-link,
.why-builder-cta .service-email-link {
    color: var(--white);
}

.why-builder-hero-card {
    background: var(--white);
    color: var(--navy);
    padding: 34px;
    border-top: 6px solid var(--red);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.why-builder-card-number {
    display: block;
    color: var(--red);
    font-size: 92px;
    line-height: 0.8;
    font-weight: 900;
    letter-spacing: -4px;
    margin-bottom: 22px;
}

.why-builder-hero-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.why-builder-hero-card ul {
    display: grid;
    gap: 10px;
    list-style: none;
}

.why-builder-hero-card li {
    color: var(--navy);
    font-size: 14px;
    font-weight: 900;
    padding-left: 16px;
    border-left: 3px solid var(--red);
}

.why-builder-proof {
    background: var(--red);
    color: var(--white);
    padding: 26px 0;
}

.why-builder-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.why-builder-proof span {
    display: block;
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 4px;
}

.why-builder-proof p {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    line-height: 1.5;
}

.why-builder-story,
.why-builder-difference,
.why-builder-services,
.why-builder-cta {
    padding: 84px 0;
}

.why-builder-story-layout,
.why-builder-services-layout,
.why-builder-cta-inner {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    gap: 62px;
    align-items: center;
}

.why-builder-story-image {
    min-height: 520px;
    border: 12px solid #f4f6f8;
    overflow: hidden;
}

.why-builder-story-image img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
}

.why-builder-story h2,
.why-builder-section-heading h2,
.why-builder-services h2,
.why-builder-cta h2 {
    color: var(--navy);
    font-size: 42px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.8px;
    margin-bottom: 20px;
}

.why-builder-story-copy p:not(.eyebrow),
.why-builder-services p,
.why-builder-cta p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.why-builder-difference {
    background: #f4f6f8;
}

.why-builder-section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.why-builder-difference-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.why-builder-difference-grid article {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: var(--white);
    padding: 28px;
    border-top: 4px solid var(--red);
    box-shadow: 0 12px 30px rgba(0, 41, 86, 0.06);
}

.why-builder-difference-grid span {
    color: var(--red);
    font-size: 15px;
    font-weight: 900;
    margin-bottom: auto;
}

.why-builder-difference-grid h3 {
    color: var(--navy);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
    margin-bottom: 12px;
}

.why-builder-difference-grid p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.65;
}

.why-builder-services {
    background: var(--white);
}

.why-builder-service-stack {
    display: grid;
    gap: 12px;
}

.why-builder-service-stack a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    background: #f7f8fa;
    color: var(--navy);
    padding: 16px 22px;
    border-left: 4px solid var(--red);
    font-size: 18px;
    font-weight: 900;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.why-builder-service-stack a::after {
    content: "→";
    color: var(--red);
}

.why-builder-service-stack a:hover {
    background: #fff3ec;
    transform: translateX(4px);
}

.why-builder-cta {
    background: var(--navy);
    color: var(--white);
}

.why-builder-cta h2 {
    color: var(--white);
}

.why-builder-cta p {
    color: #d5deea;
}

/* Thank You Page
   ========================================================================== */
.thank-you-page {
    background: var(--navy);
}

.thank-you-hero {
    position: relative;
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(232, 108, 38, 0.2), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(255, 255, 255, 0.12), transparent 30%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: var(--white);
    padding: 80px 0;
}

.thank-you-bg-mark {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.thank-you-bg-mark i {
    position: absolute;
    color: rgba(255, 255, 255, 0.08);
    font-size: clamp(64px, 10vw, 150px);
}

.thank-you-bg-mark i:nth-child(1) {
    top: 14%;
    left: 8%;
    transform: rotate(-18deg);
}

.thank-you-bg-mark i:nth-child(2) {
    right: 10%;
    top: 18%;
    transform: rotate(10deg);
}

.thank-you-bg-mark i:nth-child(3) {
    right: 18%;
    bottom: 8%;
    transform: rotate(-8deg);
}

.thank-you-inner {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    text-align: center;
}

.thank-you-badge {
    width: 92px;
    height: 92px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    background: var(--red);
    color: var(--white);
    font-size: 36px;
    box-shadow: 14px 14px 0 rgba(255, 255, 255, 0.1);
}

.thank-you-hero .eyebrow {
    color: var(--white);
}

.thank-you-hero h1 {
    max-width: 900px;
    margin: 0 auto 24px;
    color: var(--white);
    font-size: clamp(48px, 9vw, 102px);
    line-height: 0.95;
    font-weight: 900;
    letter-spacing: -3px;
}

.thank-you-lead {
    max-width: 720px;
    margin: 0 auto 34px;
    color: #d5deea;
    font-size: 18px;
    line-height: 1.75;
}

.thank-you-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    max-width: 950px;
    margin: 0 auto 34px;
}

.thank-you-meta div {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px;
}

.thank-you-meta span {
    display: block;
    color: var(--red);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thank-you-meta p,
.thank-you-meta a {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.thank-you-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.thank-you-link {
    min-height: 47px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.thank-you-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--red);
}

/* Contact Page
   ========================================================================== */
.contact-page {
    background: #f4f6f8;
}

.contact-hero {
    height: 310px;
    overflow: hidden;
    background: var(--navy);
}

.contact-hero img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 42%;
}

.contact-body {
    padding: 0 0 90px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(280px, 360px);
    gap: 64px;
    align-items: start;
}

.contact-form-card {
    background: var(--navy);
    color: var(--white);
    border-top: 4px solid var(--blue-accent);
    padding: 42px 44px 38px;
    margin-top: -98px;
    position: relative;
    z-index: 2;
    box-shadow: 0 14px 38px rgba(0, 41, 86, 0.08);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--text-light);
}

.breadcrumb a:hover {
    color: var(--red);
}

.breadcrumb span:last-child {
    color: var(--white);
}

.contact-form-card h1 {
    font-size: 40px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.6px;
    color: var(--white);
    margin-bottom: 12px;
}

.contact-intro {
    color: var(--white);
    font-size: 15px;
    margin-bottom: 34px;
}


.contact-estimate-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-form-row.two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.contact-field {
    position: relative;
}

.contact-field input,
.contact-field select {
    width: 100%;
    height: 48px;
    background: var(--navy-light);
    border: 1px solid transparent;
    border-radius: 0;
    color: var(--white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    padding: 0 14px;
    outline: none;
    appearance: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.contact-field input::placeholder {
    color: var(--text-light);
    opacity: 1;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field input:focus,
.contact-field select:focus {
    background: #17304f;
    border-color: var(--blue-accent);
}

.contact-field.select .select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 11px;
    pointer-events: none;
}

.contact-submit {
    margin-top: 38px;
    min-height: 48px;
    text-transform: none;
}

.contact-disclaimer {
    font-size: 10px;
    line-height: 1.55;
    color: var(--text-light);
    margin-top: 18px;
}

.contact-disclaimer a {
    color: var(--blue-accent);
}

.contact-disclaimer a:hover {
    text-decoration: underline;
}

.contact-details {
    padding-top: 54px;
    color: var(--navy);
}

.contact-details h2 {
    font-size: 30px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.4px;
    margin-bottom: 14px;
}

.contact-details > p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.contact-detail-group {
    margin-top: 22px;
}

.contact-detail-group h3 {
    font-size: 16px;
    line-height: 1.25;
    font-weight: 900;
    color: var(--navy);
    margin-bottom: 6px;
}

.contact-detail-group a {
    color: var(--navy);
    font-size: 15px;
    font-weight: 800;
}

.contact-detail-group a:hover {
    color: var(--red);
}

.contact-detail-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
}

.contact-location-select {
    min-width: 190px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 2px solid #8fd3e7;
    color: var(--navy);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
}

.contact-location-select i {
    font-size: 10px;
}

/* Footer
   ========================================================================== */
.footer {
    background:
        linear-gradient(135deg, rgba(0, 41, 86, 0.98) 0%, rgba(0, 41, 86, 0.94) 48%, rgba(18, 77, 134, 0.9) 100%),
        linear-gradient(to bottom, rgba(0, 41, 86, 0.88), rgba(0, 41, 86, 0.98)),
        url("img/barn.jpg");
    background-position: center;
    background-size: cover;
    color: var(--white);
    padding: 40px 0 24px;
    font-size: 14px;
}

.footer-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    padding: 10px 0 24px;
}

.footer-brand {
    max-width: 520px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.footer-site-logo {
    height: 100px;
}

.footer-company-bio {
    color: #b8c2d1;
    font-size: 14px;
    line-height: 1.65;
    margin-top: 16px;
    max-width: 500px;
}

.footer-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-top: 42px;
}

.footer-phone {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    white-space: nowrap;
}

.footer-cta {
    padding: 14px 22px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 2px;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr 1fr 1.9fr;
    gap: 36px;
    padding-bottom: 50px;
}

.footer-heading {
    color: var(--red);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 0.2px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col ul a {
    color: var(--white);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.footer-col ul a:hover {
    color: var(--blue-accent);
}

/* Recent Posts */
.footer-col-posts {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recent-post {
    background: var(--navy-light);
    padding: 18px 20px;
    border-radius: 2px;
    border-left: 3px solid var(--blue-accent);
}

.recent-post-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--white);
    margin-bottom: 8px;
}

.recent-post-link {
    font-size: 13px;
    color: var(--white);
    font-weight: 500;
    transition: color 0.2s ease;
}

.recent-post-link:hover {
    color: var(--blue-accent);
}

.view-blog {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    margin-top: 6px;
    transition: color 0.2s ease;
}

.view-blog:hover {
    color: var(--blue-accent);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.copyright {
    font-size: 13px;
    color: #b8c2d1;
    line-height: 1.5;
}

.copyright a {
    color: var(--blue-accent);
    margin: 0 2px;
}

.copyright a:hover {
    text-decoration: underline;
}

.social-links {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--navy-light);
    color: var(--white);
    font-size: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
    background: var(--red);
    color: var(--white);
}

/* Chat Widget
   ========================================================================== */
.chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.chat-bubble {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 10px 14px 10px 10px;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0, 41, 86, 0.15);
    max-width: 260px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-bubble.hidden {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-message p {
    font-size: 13px;
    line-height: 1.35;
    color: var(--navy);
    font-weight: 500;
}

.chat-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--red);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 24px rgba(232, 108, 38, 0.35);
    transition: background-color 0.2s ease;
}

.chat-btn:hover {
    background: var(--red-dark);
}

.chat-btn i {
    font-size: 16px;
}

/* Responsive
   ========================================================================== */
@media (max-width: 1100px) {
    .hero-inner,
    .leak-bar-inner {
        grid-template-columns: 1fr 400px;
    }

    .hero-title {
        font-size: 54px;
    }

    .main-nav ul {
        gap: 0;
        margin-left: 12px;
    }

    .main-nav a {
        padding: 10px 10px;
        font-size: 14px;
    }

    .phone-link {
        padding: 0 16px;
        font-size: 15px;
    }

    .why-roof-inner {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 44px;
    }

    .why-card {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .why-card-content {
        padding: 34px 36px;
    }

    .why-card h3 {
        font-size: 21px;
    }

    .service-card {
        padding: 26px 24px;
    }

    .service-card-main {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 20px;
    }

    .service-visual {
        width: 96px;
        height: 96px;
        font-size: 60px;
    }

    .service-areas-inner {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
        gap: 34px;
    }

    .service-areas h2 {
        font-size: 30px;
    }

    .contact-layout {
        grid-template-columns: minmax(0, 520px) minmax(260px, 320px);
        gap: 40px;
    }
}

@media (max-width: 1100px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 32px 24px;
    }

    .footer-col-posts {
        grid-column: span 3;
    }
}

@media (max-width: 900px) {
    .main-nav,
    .phone-link {
        display: none;
    }

    body.nav-open {
        overflow: hidden;
    }

    .header {
        z-index: 120;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 46px;
        height: 46px;
        border: 1px solid var(--border);
        border-radius: 4px;
        background: var(--white);
    }

    .header-actions {
        margin-left: auto;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(86vw, 380px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        box-shadow: -22px 0 48px rgba(0, 41, 86, 0.18);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        z-index: 140;
        overflow-y: auto;
        pointer-events: none;
    }

    .main-nav.open {
        transform: translateX(0);
        pointer-events: auto;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        padding: 18px 22px;
        border-bottom: 1px solid var(--border);
    }

    .mobile-nav-logo {
        width: auto;
        height: 70px;
        display: block;
        object-fit: contain;
    }

    .mobile-nav-close {
        width: 42px;
        height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        color: var(--navy);
        font-size: 20px;
        background: var(--white);
    }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        display: block;
        background: rgba(0, 41, 86, 0.55);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
        z-index: 130;
    }

    .nav-backdrop.open {
        opacity: 1;
        visibility: visible;
    }

    .main-nav ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        margin-left: 0;
        padding: 18px 22px 28px;
        gap: 4px;
    }

    .main-nav li {
        width: 100%;
    }

    .main-nav a {
        width: 100%;
        justify-content: space-between;
        padding: 14px 0;
        border-radius: 0;
        border-bottom: 1px solid #edf0f4;
        font-size: 16px;
    }

    .main-nav .dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        display: grid;
        padding: 0 0 0 16px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
    }

    .main-nav .dropdown-menu a {
        padding: 12px 0;
        color: var(--text-muted);
        font-size: 15px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        padding-top: 40px;
    }

    .hero-title {
        font-size: 44px;
    }

    .hero-content {
        padding-right: 0;
    }

    .leak-bar-inner {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .protect-heading {
        font-size: 28px;
    }

    .protect-heading br {
        display: none;
    }

    .why-roof {
        padding: 64px 0 80px;
    }

    .why-roof-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .why-roof-heading {
        position: static;
    }

    .why-roof-heading h2 {
        font-size: 32px;
    }

    .why-roof-cards {
        gap: 28px;
    }

    .why-card {
        position: relative;
        top: auto;
        transform: none;
        grid-template-columns: 1fr;
    }

    .why-card-image {
        min-height: 260px;
    }

    .services {
        padding: 58px 0 66px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-areas {
        padding: 58px 0 68px;
    }

    .service-areas-inner {
        grid-template-columns: 1fr;
    }

    .service-areas-map {
        min-height: 330px;
    }

    .service-areas-map iframe {
        min-height: 330px;
    }

    .service-hero-inner,
    .service-two-column,
    .service-location-layout,
    .service-cta-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-hero h1 {
        font-size: 44px;
    }

    .service-hero-image,
    .service-hero-image img {
        min-height: 320px;
    }

    .service-highlight-grid,
    .service-process-grid,
    .related-service-grid,
    .location-service-grid,
    .location-faq-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-content-section,
    .service-includes,
    .service-process,
    .service-location-section,
    .related-services,
    .location-faq {
        padding: 58px 0;
    }

    .why-builder-hero-inner,
    .why-builder-story-layout,
    .why-builder-services-layout,
    .why-builder-cta-inner {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .why-builder-hero {
        padding: 58px 0 68px;
    }

    .why-builder-hero-card {
        max-width: 520px;
    }

    .why-builder-proof-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .why-builder-difference-grid {
        grid-template-columns: 1fr 1fr;
    }

    .why-builder-story,
    .why-builder-difference,
    .why-builder-services,
    .why-builder-cta {
        padding: 62px 0;
    }

    .why-builder-story-image,
    .why-builder-story-image img {
        min-height: 340px;
    }

    .thank-you-meta {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .contact-hero {
        height: 240px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .contact-form-card {
        margin-top: -72px;
    }

    .contact-details {
        padding-top: 0;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .footer-actions {
        padding-top: 0;
    }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col-posts {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

@media (max-width: 540px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .estimate-card {
        padding: 24px 22px;
    }

    .estimate-title {
        font-size: 24px;
    }

    .header-cta {
        padding: 0 18px;
        font-size: 13px;
    }

    .hero-image {
        height: 240px;
    }

    .why-roof {
        padding: 48px 0 60px;
    }

    .why-card-image {
        min-height: 210px;
    }

    .why-card-content {
        padding: 30px 24px;
    }

    .why-card h3 {
        font-size: 20px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 26px;
    }

    .service-card {
        gap: 24px;
        padding: 26px 22px;
    }

    .service-card-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .service-actions.two {
        grid-template-columns: 1fr;
    }

    .service-areas h2 {
        font-size: 27px;
    }

    .service-area-list {
        gap: 7px;
        margin-bottom: 24px;
    }

    .service-area-list li {
        min-height: 31px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .service-area-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .service-areas-map,
    .service-areas-map iframe {
        min-height: 280px;
    }

    .service-hero {
        padding: 42px 0 52px;
    }

    .service-hero h1 {
        font-size: 36px;
    }

    .service-hero-content > p:not(.eyebrow) {
        font-size: 15px;
    }

    .service-hero-actions,
    .service-cta-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .service-hero-image,
    .service-hero-image img {
        min-height: 240px;
    }

    .service-highlight-grid,
    .service-check-grid,
    .service-process-grid,
    .related-service-grid,
    .location-service-grid,
    .location-faq-grid {
        grid-template-columns: 1fr;
    }

    .service-highlight-card,
    .service-process-card,
    .related-service-card {
        padding: 24px 22px;
    }

    .service-two-column h2,
    .service-section-heading h2,
    .service-location-layout h2,
    .service-cta h2 {
        font-size: 28px;
    }

    .service-content-section,
    .service-includes,
    .service-process,
    .service-location-section,
    .related-services,
    .service-cta,
    .location-faq {
        padding: 46px 0;
    }

    .why-builder-hero {
        padding: 42px 0 52px;
    }

    .why-builder-hero h1 {
        letter-spacing: -1.4px;
    }

    .why-builder-actions,
    .why-builder-cta-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .why-builder-hero-card {
        padding: 26px 22px;
    }

    .why-builder-card-number {
        font-size: 68px;
    }

    .why-builder-story h2,
    .why-builder-section-heading h2,
    .why-builder-services h2,
    .why-builder-cta h2 {
        font-size: 29px;
    }

    .why-builder-difference-grid {
        grid-template-columns: 1fr;
    }

    .why-builder-difference-grid article {
        min-height: auto;
    }

    .why-builder-story,
    .why-builder-difference,
    .why-builder-services,
    .why-builder-cta {
        padding: 46px 0;
    }

    .why-builder-story-image,
    .why-builder-story-image img {
        min-height: 260px;
    }

    .thank-you-hero {
        min-height: calc(100vh - 120px);
        padding: 52px 0;
    }

    .thank-you-hero h1 {
        letter-spacing: -1.4px;
    }

    .thank-you-lead {
        font-size: 15px;
    }

    .thank-you-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .thank-you-actions .btn,
    .thank-you-link {
        width: 100%;
    }

    .service-location-grid {
        gap: 7px;
    }

    .service-location-grid li {
        min-height: 31px;
        padding: 6px 10px;
        font-size: 12px;
    }

    .contact-body {
        padding-bottom: 60px;
    }

    .contact-form-card {
        padding: 30px 22px 28px;
    }

    .contact-form-card h1 {
        font-size: 32px;
    }

    .contact-form-row.two {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-col-posts {
        grid-column: span 1;
    }

    .footer-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .footer-cta {
        width: 100%;
    }
}
