@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
    --orange: #ff6500;
    --orange2: #ff7a14;
    --blue: #1fa8ff;
    --blue2: #47baff;
    --navy: #111922;
    --navy2: #080b0f;
    --ink: #f3f7fb;
    --paper: #10151b;
    --panel: #151c23;
    --panel2: #1a222b;
    --line: #2a3540;
    --muted: #aab6c2;
    --white: #fff;
    --shadow: 0 14px 35px rgba(0, 0, 0, .34);
    --radius: 8px;
    --max: 1180px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    color: var(--ink);
    background: #0b0d10;
    line-height: 1.5
}

img {
    display: block;
    max-width: 100%
}

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

button,
input,
textarea,
select {
    font: inherit
}

.container {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto
}

.eyebrow {
    margin: 0 0 4px;
    color: var(--orange);
    font-size: .82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em
}

.section-title {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.55rem);
    line-height: 1.05;
    font-weight: 900
}

.section-title:after {
    content: "";
    display: block;
    width: 58px;
    height: 4px;
    background: var(--orange);
    margin-top: 12px
}

.section-copy {
    color: var(--muted);
    max-width: 680px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    border-radius: 11px;
    padding: 14px 25px;
    font-weight: 800;
    transition: .2s
}

.btn:hover {
    transform: translateY(-2px)
}

.btn-orange {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 9px 24px rgba(255, 101, 0, .26)
}

.btn-outline {
    border-color: #fff;
    color: #fff
}

.btn-white {
    background: #fff;
    color: #0b0d10
}

.topbar {
    height: 74px;
    display: flex;
    align-items: center;
    background: rgba(8, 11, 15, .98);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    z-index: 10
}

.nav {
    display: grid;
    grid-template-columns: 225px 1fr auto;
    align-items: center;
    gap: 28px
}

.logo img {
    width: 190px;
    height: auto
}

.navlinks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    font-size: .9rem;
    font-weight: 600
}

.navlinks a {
    position: relative
}

.navlinks a.active:after,
.navlinks a:hover:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 3px;
    background: var(--orange)
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 18px
}

.phone {
    display: flex;
    gap: 9px;
    align-items: center;
    font-size: .78rem
}

.phone strong {
    display: block;
    font-size: .92rem;
    color: var(--blue)
}

.phone-icon {
    color: var(--orange);
    font-size: 1.25rem
}

.menu-btn {
    display: none;
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    color: var(--blue)
}

.hero {
    min-height: 430px;
    display: grid;
    align-items: center;
    background: linear-gradient(90deg, rgba(6, 10, 14, .97) 0%, rgba(6, 10, 14, .92) 34%, rgba(9, 18, 25, .58) 62%, rgba(9, 18, 25, .28) 100%), url('../images/optimized/leicester-nottingham-roofing-hero.webp') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    color: #fff
}

.hero-inner {
    padding: 58px 0;
    position: relative;
    z-index: 2
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5.35rem);
    line-height: .9;
    margin: 8px 0 18px;
    max-width: 650px;
    font-weight: 900;
    letter-spacing: -.04em
}

.hero h1 span {
    color: var(--orange)
}

.hero p {
    max-width: 490px;
    margin: 0 0 26px
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.trust-strip {
    background: #11161c;
    border-bottom: 1px solid var(--line)
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}

.trust-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    padding: 20px 24px;
    border-right: 1px solid var(--line)
}

.trust-item:last-child {
    border-right: 0
}

.trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue);
    color: var(--orange);
    font-size: 1.25rem
}

.trust-item h3 {
    font-size: .9rem;
    margin: 0 0 2px
}

.trust-item p {
    font-size: .77rem;
    color: var(--muted);
    margin: 0
}

section {
    padding: 58px 0
}

.services-preview {
    background: radial-gradient(circle at 92% 25%, rgba(255, 101, 0, .16), transparent 18%), linear-gradient(180deg, #0d1116, #11171d)
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px
}

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

.service-card {
    background: var(--panel);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center
}

.service-card img {
    width: 100%;
    height: 145px;
    object-fit: cover
}

.icon-badge {
    width: 50px;
    height: 50px;
    margin: -25px auto 8px;
    border-radius: 50%;
    background: var(--orange);
    border: 4px solid var(--panel);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    position: relative
}

.service-card h3 {
    font-size: .93rem;
    margin: 0 10px 5px
}

.service-card p {
    font-size: .75rem;
    color: var(--muted);
    margin: 0 12px 11px;
    min-height: 38px
}

.text-link {
    display: inline-block;
    color: var(--orange);
    font-weight: 800;
    font-size: .72rem;
    margin: 0 0 15px
}

.why {
    padding: 0;
    background: var(--navy2)
}

.why-wrap {
    width: min(var(--max), calc(100% - 40px));
    margin-inline: auto;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-height: 340px;
    overflow: hidden
}

.why-copy {
    padding: 42px 46px 42px 0;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center
}

.why-copy .section-title {
    font-size: 2.1rem
}

.why-copy .section-title:after {
    display: none
}

.why-copy p {
    font-size: .88rem;
    max-width: 520px
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-top: 6px;
    font-size: .78rem
}

.check {
    display: flex;
    gap: 9px;
    align-items: center
}

.check b {
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    background: var(--orange);
    border-radius: 50%;
    color: #fff
}

.why-image {
    position: relative;
    min-height: 340px;
    background: url('../images/optimized/rezteck-roofing-team-inspection.webp') center/cover no-repeat
}

.why-image:before {
    content: "";
    position: absolute;
    left: -70px;
    top: -70px;
    width: 100px;
    height: 500px;
    background: var(--orange);
    transform: rotate(-14deg);
    border-left: 0
}

.why-image:after {
    content: "";
    position: absolute;
    left: -105px;
    top: -65px;
    width: 85px;
    height: 480px;
    background: var(--navy2);
    transform: rotate(-14deg)
}

.projects {
    background: radial-gradient(circle at 6% 70%, rgba(31, 168, 255, .10), transparent 22%), linear-gradient(180deg, #10151b, #0c1014)
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px
}

.project-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .28)
}

.project-card img {
    width: 100%;
    height: 190px;
    object-fit: cover
}

.tag {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: var(--orange);
    color: #fff;
    padding: 7px 12px;
    border-radius: 5px;
    font-size: .68rem;
    font-weight: 800
}

.reviews-home {
    background: #0f1419;
    padding: 44px 0
}

.review-wrap {
    display: grid;
    grid-template-columns: 1.35fr .6fr;
    gap: 60px;
    align-items: center
}

.quote-card {
    display: grid;
    grid-template-columns: 35px 1fr 35px;
    align-items: center;
    gap: 15px;
    margin-top: 18px
}

.circle-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 0;
    background: var(--blue);
    color: #fff
}

.quote {
    font-style: italic;
    color: #c0cad4;
    font-size: .9rem
}

.quote strong {
    display: block;
    color: #e8eef4;
    font-style: normal;
    font-size: .78rem;
    margin-top: 5px
}

.rating-box {
    background: var(--panel);
    border-radius: 6px;
    text-align: center;
    padding: 25px
}

.stars {
    color: var(--orange);
    font-size: 1.35rem;
    letter-spacing: 3px
}

.rating-box strong {
    font-size: .8rem
}

.cta-band {
    background: linear-gradient(90deg, var(--orange), #ff5a00);
    color: #fff;
    padding: 18px 0
}

.cta-inner {
    display: grid;
    grid-template-columns: 1.1fr .5fr .45fr;
    gap: 24px;
    align-items: center
}

.cta-inner h2 {
    font-size: 1.3rem;
    margin: 0
}

.cta-inner p {
    font-size: .78rem;
    margin: 2px 0 0
}

.cta-inner .btn {
    padding: 12px 18px
}

.footer {
    background: #06080b;
    color: #fff;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.25fr .8fr .9fr .6fr;
    gap: 34px;
    padding: 36px 0;
}

.footer-logo img {
    width: 255px;
    height: auto;
    object-fit: contain;
}

.footer h3 {
    font-size: .84rem;
    margin: 0 0 12px;
}

.footer a,
.footer p {
    display: block;
    font-size: .72rem;
    color: #c7d1db;
    margin: 8px 0;
}

.footer .accent {
    color: var(--orange);
}

.footer .facebook-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 8px 0;
    color: #c7d1db;
    font-size: .72rem;
}

.footer .facebook-link img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer .facebook-link span {
    margin: 0;
    line-height: 1;
}

.footer .facebook-link:hover {
    color: var(--blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .11);
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: .65rem;
    color: #aeb9c4;
}

.footer-bottom-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.page-hero {
    background: linear-gradient(90deg, rgba(6, 10, 14, .97), rgba(8, 20, 29, .78)), url('../images/optimized/leicester-nottingham-roofing-hero.webp') center 45%/cover no-repeat;
    color: #fff;
    padding: 72px 0
}

.page-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 0
}

.page-hero p {
    max-width: 650px
}

.content-section {
    background: #0b0d10
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px;
    align-items: center
}

.panel {
    background: var(--panel);
    border-radius: 10px;
    padding: 30px
}

.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.info-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .22)
}

.info-card h3 {
    margin-top: 0
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.review-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
    background: var(--panel);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .22)
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 35px
}

.contact-list {
    display: grid;
    gap: 14px
}

.contact-box {
    padding: 18px;
    border-radius: 8px;
    background: var(--panel)
}

.contact-form {
    display: grid;
    gap: 14px
}

.field {
    display: grid;
    gap: 6px
}

.field label {
    font-size: .8rem;
    font-weight: 800
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px;
    background: #0f151b;
    color: var(--ink)
}

.field textarea {
    min-height: 140px;
    resize: vertical
}

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

.hp {
    position: absolute;
    left: -9999px
}

.smallprint {
    font-size: .7rem;
    color: var(--muted)
}

.success {
    display: none;
    padding: 12px;
    border-radius: 6px;
    background: #102418;
    color: #8ee6a9
}

.legal {
    max-width: 850px
}

.legal h2 {
    margin-top: 32px
}

@media(max-width:980px) {
    .nav {
        grid-template-columns: 190px 1fr auto
    }

    .navlinks {
        gap: 17px
    }

    .phone {
        display: none
    }

    .service-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .trust-item:nth-child(2) {
        border-right: 0
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .why-wrap {
        grid-template-columns: 1fr
    }

    .why-copy {
        padding: 38px
    }

    .why-image {
        min-height: 270px
    }

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

    .cta-inner {
        grid-template-columns: 1fr 1fr
    }

    .cta-inner>:first-child {
        grid-column: 1/-1
    }

    .cards-3,
    .review-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:760px) {

    .container,
    .why-wrap {
        width: min(100% - 28px, var(--max))
    }

    .topbar {
        height: 66px
    }

    .nav {
        grid-template-columns: 1fr auto
    }

    .logo img {
        width: 160px;
        height: auto
    }

    .navlinks,
    .nav-cta {
        display: none
    }

    .menu-btn {
        display: block
    }

    .nav.open .navlinks {
        display: flex;
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        background: #0b0f14;
        flex-direction: column;
        padding: 22px;
        box-shadow: var(--shadow)
    }

    .hero {
        min-height: 510px;
        background: linear-gradient(rgba(6, 10, 14, .91), rgba(6, 10, 14, .91)), url('../images/optimized/leicester-nottingham-roofing-hero.webp') center/cover
    }

    .hero:after {
        display: none
    }

    .hero h1 {
        font-size: 3.25rem
    }

    .trust-grid {
        grid-template-columns: 1fr
    }

    .trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .service-grid,
    .project-grid,
    .cards-3,
    .review-grid {
        grid-template-columns: 1fr
    }

    .section-head {
        align-items: start;
        flex-direction: column
    }

    .service-card img {
        height: 200px
    }

    .why-copy {
        padding: 35px 18px
    }

    .checks {
        grid-template-columns: 1fr
    }

    .why-image:before,
    .why-image:after {
        display: none
    }

    .review-wrap,
    .two-col,
    .contact-grid {
        grid-template-columns: 1fr
    }

    .cta-inner {
        grid-template-columns: 1fr
    }

    .cta-inner>:first-child {
        grid-column: auto
    }

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

    .footer-bottom {
        flex-direction: column
    }

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

/* Dark REZTECK palette refinements */
.topbar,
.navlinks {
    color: #eef5fb
}

.navlinks a {
    color: #dce7f0
}

.navlinks a:hover,
.navlinks a.active {
    color: #fff
}

.phone {
    color: #d5e0e9
}

.menu-btn {
    color: var(--blue)
}

.service-card h3,
.trust-item h3,
.info-card h3,
.review-card strong,
.contact-box strong,
.legal h2,
.panel h3 {
    color: #f6f9fc
}

.service-card p,
.trust-item p,
.section-copy,
.smallprint,
.content-section p,
.info-card p,
.review-card p,
.contact-box,
.legal p {
    color: var(--muted)
}

.field input::placeholder,
.field textarea::placeholder {
    color: #778592
}

.field select option {
    background: #0f151b;
    color: #f3f7fb
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid rgba(31, 168, 255, .35);
    border-color: var(--blue)
}

.text-link,
.phone strong {
    color: var(--blue)
}

.circle-arrow {
    background: var(--blue);
    color: #061018
}

.trust-icon {
    background: var(--blue);
    color: #07121a
}

.section-title:after {
    background: var(--orange)
}

.footer-logo img {
    filter: none
}

.footer a:hover,
.footer-bottom a:hover {
    color: var(--blue)
}

/* Stronger section separation + light content cards */
.trust-strip {
    background: #0a0e13;
    border-bottom: 1px solid #25313d;
}

.services-preview {
    background: radial-gradient(circle at 92% 25%, rgba(255, 101, 0, .12), transparent 20%),
        linear-gradient(180deg, #1a2530 0%, #151e27 100%);
    border-top: 1px solid #2a3947;
    border-bottom: 1px solid #253440;
}

.why {
    background: #07090c;
    border-top: 1px solid #151b22;
    border-bottom: 1px solid #1b232c;
}

.projects {
    background: radial-gradient(circle at 6% 70%, rgba(31, 168, 255, .12), transparent 24%),
        linear-gradient(180deg, #101820 0%, #0b1016 100%);
    border-top: 1px solid #22303b;
    border-bottom: 1px solid #1d2933;
}

.reviews-home {
    background: #1a242e;
    border-top: 1px solid #2b3a47;
    border-bottom: 1px solid #263540;
}

.content-section {
    background: #0c1117;
    border-top: 1px solid #1d2832;
}

.service-card,
.info-card,
.review-card,
.contact-box,
.rating-box,
.panel {
    background: #eef3f7;
    border-color: #d4dde5;
    color: #15212b;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
}

.icon-badge {
    border-color: #eef3f7;
}

.service-card h3,
.info-card h3,
.review-card strong,
.contact-box strong,
.panel h3,
.rating-box strong,
.panel .field label {
    color: #12202b;
}

.service-card p,
.info-card p,
.review-card p,
.contact-box,
.panel p,
.panel .smallprint,
.rating-box p {
    color: #566674;
}

.contact-box a,
.panel a:not(.btn) {
    color: #0d76b8;
}

.field input,
.field textarea,
.field select {
    background: #ffffff;
    color: #17222c;
    border-color: #c6d0d9;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #7b8995;
}

.field select option {
    background: #fff;
    color: #17222c;
}

.quote {
    color: #d8e1e9;
}

.quote strong {
    color: #ffffff;
}

.page-hero {
    background: linear-gradient(90deg, rgba(6, 10, 14, .78) 0%, rgba(8, 20, 29, .58) 48%, rgba(8, 20, 29, .30) 100%),
        url('../images/optimized/leicester-nottingham-roofing-hero.webp') center 45%/cover no-repeat;
}

@media(max-width:760px) {
    .page-hero {
        background: linear-gradient(rgba(6, 10, 14, .70), rgba(6, 10, 14, .70)),
            url('../images/optimized/leicester-nottingham-roofing-hero.webp') center 45%/cover no-repeat;
    }
}

/* Slate raised surfaces */
.service-card,
.info-card,
.review-card,
.contact-box,
.rating-box,
.panel {
    background: #263442;
    border: 1px solid #3a4a59;
    color: #f2f6f9;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, .20),
        0 12px 28px rgba(0, 0, 0, .28);
}

.service-card,
.info-card,
.review-card,
.contact-box,
.rating-box {
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.service-card:hover,
.info-card:hover,
.review-card:hover,
.contact-box:hover,
.rating-box:hover {
    transform: translateY(-2px);
    border-color: #506579;
    box-shadow:
        0 3px 7px rgba(0, 0, 0, .22),
        0 16px 34px rgba(0, 0, 0, .32);
}

.icon-badge {
    border-color: #263442;
}

.service-card h3,
.info-card h3,
.review-card strong,
.contact-box strong,
.panel h3,
.rating-box strong,
.panel .field label {
    color: #f2f6f9;
}

.service-card p,
.info-card p,
.review-card p,
.contact-box,
.panel p,
.panel .smallprint,
.rating-box p {
    color: #b8c4ce;
}

.contact-box a,
.panel a:not(.btn) {
    color: var(--blue2);
}

.field input,
.field textarea,
.field select {
    background: #1d2833;
    color: #f2f6f9;
    border-color: #46596b;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #91a0ad;
}

.field select option {
    background: #1d2833;
    color: #f2f6f9;
}

/* Remove decorative overlay from Why Choose REZTECK image */
.why-image::before,
.why-image::after {
    display: none !important;
}

/* Homepage refinements: darker reviews section + raised Why Choose image */
.reviews-home {
    background: #07090c;
    border-top: 1px solid #151b22;
    border-bottom: 1px solid #1b232c;
}

.why-image {
    border: 1px solid #3a4a59;
    border-radius: 8px;
    box-shadow:
        0 3px 7px rgba(0, 0, 0, .22),
        0 16px 34px rgba(0, 0, 0, .32);
    overflow: hidden;
    margin: 18px 0;
}

@media(max-width:980px) {
    .why-image {
        margin: 0 0 24px;
    }
}


/* Latest content refinements: testimonial cards, service imagery and brighter inner heroes */
.home-testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.home-testimonial-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
}

.home-testimonial-card .stars {
    margin-bottom: 10px;
}

.home-testimonial-card p {
    flex: 1;
    margin: 0 0 18px;
}

.service-detail-card {
    padding: 0;
    overflow: hidden;
}

.service-detail-card img {
    width: 100%;
    height: 185px;
    object-fit: cover;
}

.service-detail-copy {
    padding: 22px 24px 24px;
}

.service-detail-copy h3 {
    margin: 0 0 9px;
}

.service-detail-copy p {
    margin: 0;
}

/* Inline page-specific images remain in HTML; this controls their shared positioning. */
.page-hero {
    background-position: center 45%;
    background-size: cover;
    background-repeat: no-repeat;
}

@media(max-width:760px) {
    .home-testimonial-grid {
        grid-template-columns: 1fr;
    }

    .page-hero {
        background-position: center;
    }
}


/* --- Rezteck production / local SEO structure --- */
:root {
    --surface-raised: #263442;
    --surface-raised-2: #2d3d4d;
    --input-dark: #1d2833;
    --surface-border: #3a4a59;
}

.inline-link {
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-note,
.legal-note,
.review-note {
    font-size: .68rem;
    color: #9dabb8;
}

/* Home hero and page-specific inner hero images */
.hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .90) 0%, rgba(6, 10, 14, .78) 36%, rgba(9, 18, 25, .38) 66%, rgba(9, 18, 25, .16) 100%), url('../images/optimized/leicester-nottingham-roofing-hero.webp');
}

.page-hero {
    position: relative;
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78) 0%, rgba(6, 10, 14, .58) 48%, rgba(8, 20, 29, .24) 100%), url('../images/optimized/leicester-nottingham-roofing-hero.webp');
}

.page-about .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .22)), url('../images/optimized/about-rezteck-roofing.webp');
}

.page-services .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .22)), url('../images/optimized/roofing-services-leicester-nottingham.webp');
}

.page-projects .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .20)), url('../images/optimized/roofing-projects-leicester-nottingham.webp');
}

.page-reviews .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .22)), url('../images/optimized/rezteck-customer-reviews.webp');
}

.page-contact .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .20)), url('../images/optimized/contact-rezteck-roofers.webp');
}

.page-service-detail .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .20)), url('../images/optimized/roofing-services-leicester-nottingham.webp');
}

.page-roof-repairs .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .20)), url('../images/optimized/roof-repairs-leicester-nottingham.webp');
}

.page-new-roofs .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .20)), url('../images/optimized/new-roof-installation-leicester-nottingham.webp');
}

.page-flat-roofing .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .20)), url('../images/optimized/flat-roofing-leicester-nottingham.webp');
}

.page-guttering-fascias .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .20)), url('../images/optimized/guttering-fascias-soffits-leicester-nottingham.webp');
}

.page-chimney-work .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .20)), url('../images/optimized/chimney-repairs-leicester-nottingham.webp');
}

.page-emergency-repairs .page-hero {
    background-image: linear-gradient(90deg, rgba(6, 10, 14, .78), rgba(8, 20, 29, .20)), url('../images/optimized/emergency-roof-repairs-leicester-nottingham.webp');
}

/* Accessible service dropdown with image previews */
.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    color: #dce7f0;
    padding: 4px 0;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary span {
    color: var(--orange);
    margin-left: 3px;
}

.nav-dropdown.current summary,
.nav-dropdown summary:hover {
    color: #fff;
}

.nav-dropdown.current summary:after,
.nav-dropdown[open] summary:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 3px;
    background: var(--orange);
}

.nav-dropdown-menu {
    position: absolute;
    z-index: 50;
    top: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 510px;
    padding: 12px;
    background: #10171e;
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
    display: none;
}

.nav-dropdown-menu a {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 7px;
    color: #eef5fb;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
    background: #263442;
}

.nav-dropdown-menu a.active {
    position: relative;
    background: rgba(255, 101, 0, .08);
}

.nav-dropdown-menu a.active::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 3px;
    height: 3px;
    border-radius: 2px;
    background: var(--orange);
}

.nav-dropdown-menu img {
    width: 58px;
    height: 46px;
    object-fit: cover;
    border-radius: 5px;
}

.nav-dropdown-menu .all-services {
    grid-column: 1/-1;
    grid-template-columns: 1fr;
    background: rgba(31, 168, 255, .08);
    color: var(--blue);
    font-weight: 800;
}

/* Breadcrumbs */
.breadcrumbs {
    margin: 0 0 18px;
    font-size: .72rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    color: #d4dde5;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 7px;
    color: var(--orange);
}

.breadcrumbs a:hover {
    color: var(--blue);
}

/* Heading hierarchy in trust strip */
.trust-item h2 {
    font-size: .9rem;
    margin: 0 0 2px;
}

/* Six service cards */
.service-grid-six {
    grid-template-columns: repeat(3, 1fr);
}

.service-card img {
    aspect-ratio: 4 / 3;
    height: auto;
    object-fit: cover;
}

/* Services hub */
.service-hub-grid {
    margin-top: 28px;
}

.service-hub-card {
    padding: 0;
    overflow: hidden;
}

.service-hub-card>img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.service-hub-content {
    padding: 22px;
}

.service-hub-content h2 {
    font-size: 1.05rem;
    margin: 0 0 8px;
}

.value-cards {
    margin-top: 25px;
}

/* Service detail pages */
.service-detail-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 44px;
    align-items: start;
}

.service-list {
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    margin: 24px 0;
}

.service-list li {
    position: relative;
    padding-left: 30px;
}

.service-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.service-feature-image {
    margin: 0;
    background: var(--surface-raised);
    border: 1px solid var(--surface-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 18px 35px rgba(0, 0, 0, .32), 0 3px 8px rgba(0, 0, 0, .22);
}

.service-feature-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.service-feature-image figcaption {
    padding: 12px 15px;
    color: var(--muted);
    font-size: .72rem;
}

.related-links {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 24px;
}

.related-service-card {
    overflow: hidden;
    border-radius: 8px;
    background: var(--surface-raised);
    border: 1px solid var(--surface-border);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .24);
}

.related-service-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.related-service-card span {
    display: block;
    padding: 12px;
    font-size: .76rem;
    font-weight: 800;
    color: #1fa8ff;
}

.related-service-card:hover {
    transform: translateY(-2px);
}

/* Projects */
.project-grid-page {
    margin-top: 24px;
}

.project-guidance {
    margin-top: 28px;
}

.project-card img {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
}

/* Reviews */
.placeholder-review {
    border-style: dashed;
}

.placeholder-review .stars {
    opacity: .45;
}

.review-guidance {
    margin-top: 28px;
}

/* Contact */
.contact-box small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
}

.form-error {
    padding: 12px;
    border-radius: 6px;
    background: #3a1717;
    color: #ffbaba;
}

.success.visible {
    display: block;
}

.consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: start;
}

/* 404 */
.not-found {
    min-height: 62vh;
    display: grid;
    align-items: center;
    background: linear-gradient(90deg, rgba(6, 10, 14, .92), rgba(8, 20, 29, .48)), url('../images/optimized/leicester-nottingham-roofing-hero.webp') center/cover no-repeat;
}

.not-found h1 {
    font-size: clamp(2.3rem, 5vw, 4rem);
    max-width: 760px;
}

@media(max-width:1100px) {
    .related-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media(max-width:980px) {
    .service-grid-six {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .nav-dropdown-menu {
        left: auto;
        right: -140px;
        transform: none;
    }
}

@media(max-width:760px) {
    .nav.open .navlinks {
        align-items: stretch;
    }

    .nav-dropdown summary {
        padding: 7px 0;
        text-align: center;
    }

    .nav-dropdown.current summary:after,
    .nav-dropdown[open] summary:after {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        grid-template-columns: 1fr;
        margin-top: 8px;
        box-shadow: none;
        background: #131b23;
    }

    .nav-dropdown-menu .all-services {
        grid-column: auto;
    }

    .nav-dropdown-menu a {
        grid-template-columns: 48px 1fr;
        text-align: left;
    }

    .nav-dropdown-menu img {
        width: 48px;
        height: 38px;
    }

    .service-grid-six,
    .related-links {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 56px 0;
        background-position: center;
    }

    .hero {
        background-image: linear-gradient(rgba(6, 10, 14, .78), rgba(6, 10, 14, .78)), url('../images/optimized/leicester-nottingham-roofing-hero.webp');
    }

    .cta-inner .btn {
        width: 100%;
    }
}


/* Local-development and image sizing corrections */
.service-grid-six .service-card img,
.service-card img {
    width: 100%;
    height: 165px;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
}

.why-wrap {
    min-height: 300px;
    align-items: center;
}

.why-image {
    min-height: 290px;
    height: 290px;
    background-size: cover;
    background-position: center;
}

.footer-logo img {
    display: block;
    width: min(220px, 100%);
    height: auto !important;
    max-height: 105px;
    object-fit: contain;
    object-position: left center;
}

@media (max-width: 760px) {

    .service-grid-six .service-card img,
    .service-card img {
        height: 190px;
    }

    .why-image {
        min-height: 235px;
        height: 235px;
    }

    .footer-logo img {
        width: 200px;
        max-height: 96px;
    }
}

/* Mobile navigation cleanup */
@media (max-width: 760px) {
    .topbar {
        height: 72px;
    }

    .nav {
        grid-template-columns: 1fr auto;
        gap: 16px;
    }

    .logo img {
        width: 160px;
        height: auto;
        object-fit: contain;
    }

    .menu-btn {
        display: block;
        padding: 8px 0 8px 12px;
        line-height: 1;
        cursor: pointer;
    }

    .nav.open .navlinks {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        width: 100%;
        background: #0b0f14;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px 14px 16px;
        border-top: 1px solid rgba(255,255,255,.07);
        box-shadow: 0 16px 30px rgba(0,0,0,.38);
    }

    .nav.open .navlinks > a,
    .nav.open .navlinks > .nav-dropdown > summary {
        width: 100%;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 10px;
        margin: 0;
        text-align: left;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }

    .nav.open .navlinks > a.active:after,
    .nav.open .navlinks > a:hover:after {
        left: 10px;
        right: 10px;
        bottom: 0;
        height: 2px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown summary {
        text-align: left;
    }

    .nav-dropdown summary span {
        margin-left: 8px;
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        margin: 0;
        padding: 8px 0 10px;
        transform: none;
        grid-template-columns: 1fr;
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        gap: 4px;
    }

    .nav-dropdown-menu a {
        grid-template-columns: 52px 1fr;
        min-height: 54px;
        padding: 7px 10px 7px 18px;
        border-radius: 6px;
        text-align: left;
    }

    .nav-dropdown-menu img {
        width: 52px;
        height: 40px;
        object-fit: cover;
    }

    .nav-dropdown-menu .all-services {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 10px 18px;
    }
}


/* Shared CTA contact actions */
.cta-inner {
    grid-template-columns: minmax(260px, .8fr) minmax(0, 1.7fr);
}

.cta-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(210px, 1fr));
    gap: 10px;
}

.cta-actions .btn {
    width: 100%;
    min-width: 0;
    white-space: nowrap;
}

@media(max-width:980px) {
    .cta-inner {
        grid-template-columns: 1fr;
    }

    .cta-inner > :first-child {
        grid-column: auto;
    }
}

@media(max-width:760px) {
    .cta-actions {
        grid-template-columns: 1fr;
    }

    .cta-actions .btn {
        white-space: normal;
    }
}

/* Shared testimonial empty state */
.testimonial-empty {
    max-width: 720px;
    padding: 26px 28px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
}

.testimonial-empty h3 {
    margin: 0 0 8px;
    color: var(--ink);
}

.testimonial-empty p {
    margin: 0;
    color: var(--muted);
}


/* Centre the homepage testimonial empty state only.
   As soon as featured testimonials exist, the reviews-empty class is not rendered
   and the original left-aligned testimonial layout is used automatically. */
.reviews-home.reviews-empty .section-head {
    display: block;
    text-align: center;
}

.reviews-home.reviews-empty .section-head > div {
    width: 100%;
}

.reviews-home.reviews-empty .section-copy {
    margin-left: auto;
    margin-right: auto;
}

.reviews-home.reviews-empty .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.reviews-home.reviews-empty .testimonial-empty {
    margin: 40px auto 0;
    text-align: center;
}


/* Dedicated reviews page: centre only while there are no testimonials */
.page-reviews .reviews-empty .section-head {
    display: block;
    text-align: center;
}

.page-reviews .reviews-empty .section-head > div {
    width: 100%;
}

.page-reviews .reviews-empty .section-copy {
    margin-left: auto;
    margin-right: auto;
}

.page-reviews .reviews-empty .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.page-reviews .reviews-empty .testimonial-empty {
    max-width: 770px;
    margin: 40px auto 0;
    text-align: center;
}

/* Contact form sizing refinements */
.page-contact .contact-grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
}

.page-contact .contact-form {
    width: 100%;
    max-width: 620px;
    justify-self: end;
    gap: 11px;
}

.page-contact .contact-form.panel {
    padding: 24px;
}

.page-contact .contact-form .form-row {
    gap: 11px;
}

.page-contact .contact-form .field {
    gap: 5px;
}

.page-contact .contact-form .field input,
.page-contact .contact-form .field textarea,
.page-contact .contact-form .field select {
    padding: 10px 11px;
}

.page-contact .contact-form .field textarea {
    min-height: 115px;
}

@media(max-width:760px) {
    .page-contact .contact-form {
        max-width: none;
        justify-self: stretch;
    }

    .page-contact .contact-form.panel {
        padding: 20px;
    }
}

/* Contact page mobile layout fix */
@media (max-width: 760px) {
    .page-contact .contact-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .page-contact .contact-grid > aside {
        width: 100%;
        min-width: 0;
    }

    .page-contact .contact-form {
        width: 100%;
        max-width: none;
        justify-self: stretch;
    }

    .page-contact .contact-form.panel {
        padding: 20px;
    }

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

    .page-contact .contact-box {
        width: 100%;
    }

    .page-contact .consent {
        grid-template-columns: 20px minmax(0, 1fr);
        gap: 10px;
    }

    .page-contact .consent input {
        margin-top: 3px;
    }
}

@media (max-width: 760px) {
    .page-emergency-repairs img {
        object-position: 65% center;
    }
}
