/*
Theme Name: Perfect Gates
Theme URI: https://perfectgates.co.uk
Author: Perfect Gates
Description: Perfect Gates master homepage theme.
Version: 2.0.0
Text Domain: perfect-gates
*/
:root {
    --navy: #12365a;
    --orange: #ff6500;
    --white: #fff;
    --ice-blue: #edf6fc;
    --grey: #666;
    --page-width: 1400px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 32px; }
body { margin: 0; background: var(--white); color: var(--navy); font-family: 'Oswald', sans-serif; font-weight: 400; text-transform: uppercase; }
h1, h2, h3, h4, h5, h6 { font-family: 'Oswald', sans-serif; line-height: 1.1; font-weight: 600; margin: 0; }
p { margin: 0; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
input, select, textarea { font: inherit; text-transform: none; }
button { font: inherit; text-transform: uppercase; }
svg { display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.page-width { width: 92%; max-width: var(--page-width); margin-inline: auto; }
.brand-display, .hero-script-text { font-family: 'Montserrat', sans-serif; font-weight: 400; font-synthesis: none; text-transform: none; }
.skip-link { position: absolute; top: -100px; left: 16px; z-index: 20; background: white; padding: 12px; }
.skip-link:focus { top: 12px; }
.site-header { position: relative; z-index: 2; padding: 8px 0; background: white; }
.site-header::after { content: ''; position: absolute; top: calc(100% - 1px); left: 0; width: 100%; height: 60px; background: url('assets/images/header-brush-edge.svg') left top / 100% 100% no-repeat; pointer-events: none; }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 90px; }
.site-logo { display: block; width: 340px; flex: 0 0 340px; margin-block: -12px; margin-right: -55px; transform: translate(-55px, 18px); position: relative; z-index: 1; }
.site-logo-image { display: block; width: 100%; height: auto; }
.main-navigation { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-evenly; gap: 12px; }
.main-navigation a { font-size: 16px; font-weight: 400; text-decoration: none; white-space: nowrap; padding-block: 8px; }
.main-navigation a:hover { color: var(--orange); }
.main-navigation a[aria-current='page'] { color: var(--orange); text-decoration: underline; text-underline-offset: 7px; }
.pg-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 11px 22px; border: 1px solid var(--orange); border-radius: 4px; background: var(--orange); color: white; text-decoration: none; font: 500 16px/1.2 'Oswald', sans-serif; text-align: center; text-transform: uppercase; }
.pg-button:hover { background: #df5700; border-color: #df5700; }
.header-book-button { flex-shrink: 0; }
.pg-button-outline { background: transparent; border-color: white; }
.pg-button-outline:hover { background: white; border-color: white; color: var(--navy); }
.pg-button-navy { color: var(--navy); border-color: var(--navy); background: transparent; }
.pg-button-navy:hover { background: var(--navy); border-color: var(--navy); color: white; }
.button-row { display: flex; flex-wrap: wrap; gap: 16px; }
.home-hero { position: relative; margin-top: -20px; padding: 100px 0 45px; min-height: 540px; display: flex; align-items: center; background: url('assets/images/hero-perfect-gates-v2.png') center / cover no-repeat; color: white; }
.hero-content { width: 52%; max-width: 620px; }
.hero-eyebrow { font-size: 14px; line-height: 1.4; margin-bottom: 16px; }
.hero-eyebrow::after { content: ''; display: inline-block; width: 32px; height: 3px; margin-left: 9px; vertical-align: middle; background: var(--orange); }
.home-hero h1 { font-size: clamp(36px, 4.5vw, 62px); letter-spacing: -.5px; }
.hero-script { width: 620px; max-width: 100%; height: auto; overflow: visible; margin: -12px 0 -20px; }
.hero-script-text { font-size: 90px; fill: white; stroke: none; letter-spacing: 0; word-spacing: 0; }
.hero-script-stroke { fill: none; stroke: var(--orange); stroke-width: 7px; stroke-linecap: round; }
.hero-description { max-width: 420px; margin: 16px 0 24px; font-size: 18px; }
.trust-strip { padding: 18px 0; background: var(--ice-blue); }
.trust-list { padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.trust-list li { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 52px; padding: 0 16px; font-size: 15px; line-height: 1.4; }
.trust-list li + li { border-left: 1px solid #afc4d5; }
.trust-list svg { width: 44px; height: 44px; flex-shrink: 0; }
.trust-list svg, .steps-list svg { fill: none; stroke: var(--navy); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.accent { stroke: var(--orange); }
.home-services { padding-block: 10px 24px; }
.service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.service-card { min-width: 0; border: 1px solid #d5e5f0; border-radius: 5px; background: linear-gradient(135deg,white 40%,#f1f8fd 100%); }
.service-media { position: relative; }
.service-media > img { display: block; width: 100%; aspect-ratio: 3/1; height: auto; object-fit: cover; border-radius: 4px 4px 0 0; clip-path: polygon(0 0,100% 0,100% 85%,0 100%); }
.service-badge { position: absolute; right: 20px; bottom: -16px; width: 84px; height: 84px; display: flex; align-items: center; justify-content: center; border: 3px solid white; border-radius: 50%; background: var(--orange); }
.service-badge svg { width: 46px; height: 46px; fill: none; stroke: white; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.service-content { padding: 10px 24px 24px; }
.service-content h2 { padding-right: 78px; margin-bottom: 10px; font-size: clamp(24px,2.5vw,32px); }
.service-content > p { font-size: 16px; line-height: 1.45; margin-bottom: 18px; }
.service-details { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 18px; align-items: end; }
.service-price { color: var(--orange); font-size: 26px; font-weight: 500; line-height: 1.3; margin-bottom: 12px; }
.service-price small { font-size: 14px; font-weight: 400; white-space: nowrap; }
.check-list { margin: 0; padding: 0; list-style: none; font-size: 13px; line-height: 1.45; }
.check-list li { position: relative; padding-left: 22px; margin-top: 5px; }
.check-list li::before { content: '\2713'; position: absolute; top: 0; left: 0; color: var(--orange); font: 700 18px/1.2 Arial,sans-serif; }
.how-section { position: relative; isolation: isolate; padding: 32px 0 44px; background: linear-gradient(110deg,#d9edfb,#cce4f5 55%,#e5f2fc); }
.how-section::before, .how-section::after { content: ''; position: absolute; left: 0; width: 100%; height: 30px; background: url('assets/images/header-brush-edge.svg') center / 100% 100% no-repeat; pointer-events: none; z-index: -1; }
.how-section::before { top: -1px; }
.how-section::after { bottom: -1px; transform: rotate(180deg); }
.section-title, .brands-section h2 { text-align: center; font-size: 32px; }
.section-title::before { content: ''; display: block; width: 46px; height: 3px; margin: 0 auto 10px; background: var(--orange); }
.section-subtitle { font-size: 15px; line-height: 1.5; margin: 8px 0 18px; text-align: center; }
.steps-list { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 32px; list-style: none; }
.steps-list li { position: relative; text-align: center; }
.step-number { display: flex; width: 30px; height: 30px; margin: 0 auto 8px; justify-content: center; align-items: center; border-radius: 50%; background: var(--orange); color: white; font-size: 17px; }
.steps-list svg { width: 52px; height: 52px; margin: 0 auto 12px; }
.steps-list h3 { font-size: 22px; margin-bottom: 8px; }
.steps-list p { font-size: 15px; max-width: 225px; margin: auto; }
.steps-list li:not(:last-child)::after { content: '\203A'; position: absolute; right: -24px; top: 38px; font: 400 44px/1 Arial,sans-serif; }
.brands-section { padding-block: 18px 22px; }
.brands-section .section-subtitle { color: #547392; }
.brand-list { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)) 1.1fr; align-items: center; list-style: none; margin: 20px 0 0; padding: 0; }
.brand-list li { padding: 0 10px; text-align: center; font-size: clamp(20px,2.5vw,34px); line-height: 1.25; font-weight: 500; }
.brand-list li + li { border-left: 1px solid #b6cbdd; }
.brand-list .brand-more { color: #547392; font-size: 16px; font-weight: 400; font-style: italic; text-transform: none; }
.booking-banner { background: url('assets/images/hero-perfect-gates-v2.png') 70% 62% / cover no-repeat; padding-block: 20px; }
.booking-inner { display: flex; justify-content: flex-end; }
.booking-panel { width: 62%; display: grid; grid-template-columns: minmax(0,1fr) 155px; align-items: center; gap: 20px; position: relative; isolation: isolate; padding: 28px 18px 28px 45px; background: white; }
.booking-panel::before { content: ''; position: absolute; z-index: -1; left: -34px; top: 0; height: 100%; width: 36px; background: white; clip-path: polygon(100% 0,100% 100%,15% 100%,40% 88%,0 91%,45% 77%,15% 78%,60% 58%,20% 62%,60% 42%,10% 43%,65% 24%,35% 25%,100% 0); }
.booking-message h2 { font-size: clamp(32px,3.7vw,50px); line-height: 1.1; transform: rotate(-4deg); transform-origin: left center; margin-bottom: 24px; }
.booking-message h2::after { content: ''; display: block; width: 82%; height: 5px; margin-top: 8px; background: var(--orange); border-radius: 50%; }
.booking-message .button-row { gap: 10px; }
.booking-message .pg-button { padding-inline: 14px; font-size: 14px; }
.banner-benefits { font-size: 14px; }
.site-footer { background: var(--navy); color: white; padding: 32px 0 18px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.site-footer h3 { font-size: 20px; margin-bottom: 10px; }
.site-footer p { color: #e3edf5; font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { border-top: 1px solid #547392; padding-top: 14px; margin-top: 24px; text-align: center; font-size: 12px; }
.page-content { padding-block: 50px; min-height: 50vh; }
.page-content h1 { margin-bottom: 24px; }
@media (min-width:1101px) and (max-width:1250px) {
    .header-inner { gap: 16px; }
    .main-navigation { gap: 8px; }
    .main-navigation a { font-size: 14px; }
    .header-book-button { padding-inline: 14px; font-size: 14px; }
}
@media (max-width:1100px) {
    .header-inner { flex-wrap: wrap; justify-content: space-between; gap: 12px; }
    .site-logo { flex-basis: 260px; width: 260px; margin: 0; transform: none; }
    .main-navigation { order: 3; width: 100%; flex-basis: 100%; flex-wrap: wrap; gap: 8px 20px; }
    .site-header::after { height: 36px; }
    .home-hero { margin-top: 0; padding-top: 65px; }
    .service-details { grid-template-columns: 1fr; align-items: start; gap: 16px; }
    .service-booking { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
    .service-price { margin: 0; }
    .booking-panel { width: 70%; grid-template-columns: minmax(0,1fr); padding: 24px; }
    .banner-benefits { display: none; }
}
@media (max-width:768px) {
    .page-width { width: 90%; }
    .site-logo { flex-basis: 200px; width: 200px; }
    .header-book-button { font-size: 14px; padding: 10px 12px; }
    .main-navigation { justify-content: center; gap: 4px 18px; }
    .main-navigation a { font-size: 14px; }
    .home-hero { min-height: 560px; padding: 65px 0 40px; background-position: 35% center; }
    .home-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg,rgba(18,54,90,.5),rgba(18,54,90,.2)); }
    .home-hero > .page-width { position: relative; }
    .hero-content { width: 100%; max-width: 520px; }
    .home-hero h1 { font-size: clamp(32px,7vw,48px); }
    .hero-eyebrow { font-size: 12px; }
    .hero-description { font-size: 17px; max-width: 370px; }
    .trust-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 0; }
    .trust-list li { justify-content: flex-start; padding-inline: 10px; gap: 10px; font-size: 14px; }
    .trust-list li:nth-child(3) { border-left: 0; }
    .trust-list svg { width: 36px; height: 36px; }
    .service-grid { grid-template-columns: 1fr; gap: 20px; }
    .service-content { padding: 12px 20px 22px; }
    .service-content h2 { font-size: 28px; }
    .service-content > p { font-size: 16px; }
    .check-list { font-size: 14px; }
    .steps-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 22px; }
    .steps-list li::after { display: none; }
    .steps-list h3 { font-size: 20px; }
    .steps-list p { font-size: 14px; }
    .brand-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px 0; }
    .brand-list li:nth-child(4) { border-left: 0; }
    .brand-list .brand-more { grid-column: 1/-1; border: 0; }
    .booking-banner { padding-top: 150px; background-position: 70% top; }
    .booking-panel { width: 100%; padding: 28px 20px; }
    .booking-message h2 { font-size: 42px; }
    .booking-panel::before { display: none; }
    .footer-inner { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width:400px) {
    .header-inner { justify-content: center; }
    .header-book-button { width: 100%; }
    .hero-eyebrow::after { display: none; }
    .button-row { gap: 12px; }
    .hero-content .pg-button { width: 100%; }
    .trust-list li { padding-inline: 6px; font-size: 12px; gap: 8px; }
    .service-badge { width: 66px; height: 66px; right: 12px; }
    .service-badge svg { width: 36px; height: 36px; }
    .service-content h2 { font-size: 25px; padding-right: 62px; }
    .booking-message h2 { font-size: 36px; }
}

/* Supplied manufacturer logos — five brands, no Ditec */
.brand-list {
    grid-template-columns: repeat(5, minmax(0, 1fr)) 0.9fr;
}
.brand-list li {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
}
.brand-list img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}
@media (max-width: 768px) {
    .brand-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .brand-list li {
        min-height: 56px;
        padding-inline: 12px;
    }
    .brand-list img {
        max-height: 48px;
    }
    .brand-list .brand-more {
        grid-column: auto;
        border-left: 1px solid #b6cbdd;
    }
}

/* Bottom booking banner — master reference proportions */
.booking-banner {
    position: relative;
    isolation: isolate;
    padding: 0;
    background: #fff;
    overflow: hidden;
}
.booking-banner::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: 0;
    width: 53%;
    background: url('assets/images/booking-gates.png') 38% center / cover no-repeat;
}
.booking-inner {
    min-height: 290px;
    align-items: stretch;
}
.booking-panel {
    width: 60%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 24px;
    align-items: center;
    padding: 32px 0 30px 32px;
    background: #fff;
}
.booking-panel::before {
    left: -70px;
    width: 72px;
    height: 100%;
    top: 0;
    clip-path: none;
    background: url('assets/images/booking-brush-edge.svg') center / 100% 100% no-repeat;
}
.booking-panel::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 0;
    width: 78%;
    height: 14px;
    background: url('assets/images/booking-orange-sweep.svg') center / 100% 100% no-repeat;
    opacity: .6;
    pointer-events: none;
}
.booking-message { min-width: 0; }
.booking-message h2 {
    position: relative;
    font-size: clamp(44px, 4.1vw, 60px);
    line-height: 1.05;
    font-weight: 400;
    letter-spacing: 0;
    margin: 0 0 24px;
    transform: rotate(-3deg);
    transform-origin: left center;
}
.booking-message h2 span {
    display: block;
    white-space: nowrap;
}
.booking-message h2 span + span {
    font-size: .8em;
    margin-top: 4px;
}
.booking-message h2::after {
    width: 91%;
    height: 17px;
    margin: 4px 0 0;
    background: url('assets/images/booking-orange-sweep.svg') center / 100% 100% no-repeat;
    border-radius: 0;
}
.booking-message .button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}
.booking-message .pg-button {
    padding: 11px 14px;
    min-height: 42px;
    font-size: 14px;
    white-space: nowrap;
}
.banner-benefits {
    display: block;
    font-size: 13px;
    line-height: 1.45;
}
.banner-benefits li {
    padding-left: 27px;
    margin: 0 0 14px;
}
.banner-benefits li:last-child { margin-bottom: 0; }
.banner-benefits li::before {
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: var(--orange);
    font: 700 12px/1 Arial, sans-serif;
}
@media (min-width: 769px) and (max-width: 1100px) {
    .booking-panel {
        width: 65%;
        grid-template-columns: minmax(0, 1fr) 125px;
        gap: 18px;
        padding-left: 18px;
    }
    .booking-message h2 { font-size: 44px; }
    .booking-message .pg-button { font-size: 13px; padding-inline: 10px; }
    .banner-benefits { font-size: 12px; }
}
@media (max-width: 768px) {
    .booking-banner { padding-top: 210px; }
    .booking-banner::before {
        width: 100%;
        height: 250px;
        bottom: auto;
        background-position: center 55%;
    }
    .booking-inner { min-height: 0; width: 100%; }
    .booking-panel {
        width: 100%;
        display: block;
        padding: 30px 6% 28px;
    }
    .booking-panel::before {
        display: block;
        top: -30px;
        left: 0;
        width: 100%;
        height: 32px;
        background-image: url('assets/images/header-brush-edge.svg');
        transform: rotate(180deg);
    }
    .booking-panel::after { display: none; }
    .booking-message h2 { font-size: clamp(38px, 7.5vw, 54px); margin-bottom: 24px; }
    .booking-message .button-row { gap: 12px; }
    .booking-message .pg-button { flex: 1 1 145px; }
    .banner-benefits {
        margin-top: 24px;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        font-size: 12px;
    }
    .banner-benefits li { margin: 0; padding-left: 25px; }
}
@media (max-width: 400px) {
    .banner-benefits { grid-template-columns: 1fr; }
    .booking-message h2 { font-size: 38px; }
}


