/* CSS Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CSS Variables */
:root {
    --main-font: 'Exo 2', sans-serif;
    --main-color: #bfaf82;
    --bg-color: black;
    --border-color: #bfaf82;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --padding: 30px;
    --transition-time: 0.3s;
}

/* Remove browser-specific styling on autofill */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus,
textarea:-webkit-autofill, textarea:-webkit-autofill:hover, textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #FFD700;
    -webkit-box-shadow: 0 0 0px 1000px #000 inset;
    transition: background-color var(--transition-time) ease;
    background-color: transparent;
    background-clip: content-box;
}

body {
    font-family: var(--main-font);
    text-align: center;
    color: var(--main-color);
    line-height: 1.6;
    background: url('../imgs/Background_1.webp') top no-repeat, url('../imgs/Background_2.webp') repeat-y;
    background-color: var(--bg-color);
    background-size: 100%;
    font-size: 1.4rem;
}

h1, h2, h3, h4, p {
    margin-bottom: 1.5rem;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 1.8rem; text-shadow: 0 0 8px rgba(191,175,130,0.4), 1px 1px 0 rgba(0,0,0,0.8); }
h3 { font-size: 1.8rem; text-shadow: 0 0 8px rgba(191,175,130,0.4), 1px 1px 0 rgba(0,0,0,0.8); }
h4, p { font-size: 1.4rem; }

ul, ol {
    list-style-type: none;
}

.wrapper {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    background: rgba(0, 0, 0, 0.5);
}

.border-style {
    border: double 6px var(--border-color);
    border-radius: 20px;
    margin: 40px 0;
    padding: 1.5rem;
    box-shadow: 0 0 15px rgba(191,175,130,0.1);
}

header {
    padding: 20px 0;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.logo img {
    max-width: 100%;
    height: auto;
}

.nav-menu {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    justify-content: center;
    margin: 10px 0;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a, a:not(.cta-quote), .btn, .service-item .icon {
    font-size: 2rem;
    text-decoration: none;
    color: #bfaf82;
    transition: transform var(--transition-time);
    display: inline-block;
    text-shadow: 0 0 8px #8B0000;
}

nav ul li a {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
}

nav ul li a:hover, a:not(.cta-quote):hover, .btn:hover, .service-item .icon:hover {
    transform: scale(1.2);
}

/* ============================================
   INLINE SVG ICONS — replacing Font Awesome
   ============================================ */

.svg-icon {
    display: inline-block;
    width: 1.6rem;
    height: 1.6rem;
    vertical-align: middle;
    fill: var(--main-color);
    filter: drop-shadow(0 0 4px rgba(191,175,130,0.6));
    margin-right: 0.3rem;
    flex-shrink: 0;
}

.svg-icon-social {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    vertical-align: middle;
    fill: var(--main-color);
    margin-right: 0.3rem;
}

/* ============================================
   TRUST STRIP
   ============================================ */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 2rem;
    background: transparent;
    color: var(--main-color);
    padding: 1.2rem 1.5rem;
    font-family: var(--main-font);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-align: center;
}

.trust-strip span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-size: 1.2rem;
}

/* ============================================
   GET A FREE QUOTE BUTTON
   — explicit !important overrides to beat the
     global "a" compound selector rule
   ============================================ */
a.cta-quote {
    display: inline-block !important;
    margin-top: 1.2rem !important;
    padding: 0.8rem 2.2rem !important;
    background: rgba(0, 0, 0, 0.7) !important;
    color: var(--main-color) !important;
    font-family: var(--main-font) !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    border: double 6px var(--border-color) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    text-shadow: none !important;
    transition: transform var(--transition-time), color var(--transition-time) !important;
}

a.cta-quote:hover {
    color: #FFD700 !important;
    transform: scale(1.1) !important;
    text-shadow: none !important;
}

/* ============================================
   REVIEWS
   ============================================ */
.review-item {
    width: 75%;
    padding: 10px;
    margin: 30px auto;
    border: double 2px var(--border-color);
    border-radius: 10px;
    background: url('../imgs/Background_triangles.webp');
    color: #bea767;
    font-size: 1.4rem;
}

/* Load More Button */
#loadMore {
    background-image: url('../imgs/Button_Rectangle_LoadMore.webp');
    background-size: cover;
    background-position: center;
    width: 66%;
    max-width: 200px;
    min-width: 120px;
    min-height: 60px;
    height: auto;
    border: none;
    cursor: pointer;
    margin: 20px auto;
}

/* Leave Review Button */
.button_leavereview {
    display: block;
    background-image: url('../imgs/Button_Rectangle_LeaveReview.webp');
    background-size: cover;
    background-position: center;
    width: 66%;
    max-width: 200px;
    min-width: 120px;
    min-height: 60px;
    height: auto;
    border: none;
    cursor: pointer;
    margin: 20px auto;
}

.button_leavereview img {
    display: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.menu-toggle {
    display: none;
    justify-content: center;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--main-color);
    width: 100%;
    font-size: 2rem;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    text-align: center;
    padding: var(--padding);
    position: relative;
}

.hero-content {
    position: relative;
}

.hero-content a > img:not(#img_gassafe):not(.btn-rectangle) {
    max-width: 100%;
    height: auto;
    padding: var(--padding) 0;
    animation: ring 1.5s infinite linear;
}

.titles img {
    width: auto;
    height: auto;
    max-width: 100%;
}

.icon {
    padding: 5px 0 var(--padding);
    animation: spin 5s linear;
    animation-fill-mode: forwards;
    transition: transform var(--transition-time), opacity 0.5s;
    object-fit: contain;
    width: auto;
    max-width: 200px;
    max-height: 200px;
    display: block;
    margin: 0 auto;
}

.icon:hover {
    transform: scale(1.2);
    animation: none;
    opacity: 0.8;
}

.service-item .icon:hover {
    transform: scale(1.05);
    animation: none;
    opacity: 0.8;
}

/* Gas Safe Badge - prominent size */
a:has(#img_gassafe) {
    position: absolute !important;
    bottom: 20px;
    right: 20px;
    display: block;
    transition: transform var(--transition-time);
}

a:has(#img_gassafe):hover {
    transform: scale(1.2);
}

#img_gassafe {
    width: 140px !important;
    height: auto;
    display: block;
}

/* ============================================
   GENERAL SECTIONS
   ============================================ */
.section {
    padding: var(--padding);
    margin: 40px 0;
}

.phone-contact,
.phone-number {
    font-size: 2.5rem;
    color: var(--main-color);
    font-weight: bold;
}

.email-address {
    display: inline-block;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-all;
    hyphens: auto;
    white-space: normal;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
    padding: var(--padding) 0;
}

.service-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service-item {
    border: double 6px var(--border-color);
    border-radius: 20px;
    flex: 1 1 calc(45% - 20px);
    padding: var(--padding);
    text-align: center;
    margin: 10px;
    min-width: 200px;
}

.service-item h3 {
    font-size: 2.2rem;
}

.service-item h2 {
    font-size: 1.8rem;
}

/* ============================================
   ABOUT / BADGES
   ============================================ */
.badge {
    width: 40%;
    max-width: 100%;
    height: auto;
    padding: var(--padding) 0;
    display: block;
    margin: 0 auto;
}

.badge-hero {
    width: 60%;
    max-width: 100%;
    height: auto;
    padding: var(--padding) 0;
    display: block;
    margin: 0 auto;
}

/* ============================================
   PROCESS STAGES — expandable steps
   ============================================ */
.process-stage {
    border: double 6px var(--border-color);
    border-radius: 20px;
    margin: 20px 10px;
    overflow: hidden;
}

.process-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background var(--transition-time);
    text-align: left;
}

.process-header:hover {
    background: rgba(191, 175, 130, 0.1);
}

.process-number {
    position: relative;
    min-width: 50px;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.process-number img {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 0;
    left: 0;
    animation: none !important;
}

.process-number-text {
    position: relative;
    z-index: 1;
    font-family: var(--main-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: #bfaf82;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8), -1px -1px 1px rgba(255,255,255,0.1);
    line-height: 1;
}

.process-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: block;
    animation: none;
}

.process-summary {
    flex: 1;
    text-align: left;
}

.process-header .process-summary h3 {
    margin-bottom: 0.3rem;
    text-shadow: 0 0 8px rgba(191,175,130,0.4), 1px 1px 0 rgba(0,0,0,0.8);
}

.compliance-warning h2 {
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255,215,0,0.5), 1px 1px 0 rgba(0,0,0,0.8);
}

.process-summary p {
    margin-bottom: 0;
    font-size: 1.2rem;
    color: var(--main-color);
    opacity: 0.8;
}

.process-toggle {
    font-size: 1.4rem;
    color: var(--main-color);
    transition: transform var(--transition-time);
    min-width: 30px;
    text-align: center;
}

.process-toggle.open {
    transform: rotate(180deg);
}

.process-detail {
    display: none;
    padding: 1rem 2rem 1.5rem;
    border-top: 1px solid rgba(191, 175, 130, 0.3);
    text-align: center;
}

.process-detail.open {
    display: block;
}

.process-list {
    list-style: none;
    padding: 0;
    margin: 1rem auto 1.5rem;
    max-width: 650px;
    text-align: left;
}

.process-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(191, 175, 130, 0.2);
    font-size: 1.4rem;
}

.process-list li:last-child {
    border-bottom: none;
}

/* Installation guide diagrams */
.guide-diagram {
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto;
    display: block;
    border: double 6px var(--border-color);
    border-radius: 10px;
    filter: brightness(0.95) contrast(1.05);
}

/* Two column layout for must/must not sections */
.guide-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.guide-col {
    flex: 1 1 calc(50% - 1rem);
    min-width: 250px;
    padding: 1rem;
    border: 1px solid rgba(191, 175, 130, 0.3);
    border-radius: 10px;
}

.guide-col h3 {
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .guide-col {
        flex: 1 1 100%;
    }
}

/* Manufacturer compliance warning box */
.compliance-warning {
    border-color: #8B0000 !important;
    background: rgba(139, 0, 0, 0.15);
    padding-bottom: 2rem;
}

.compliance-warning h2 {
    color: #FFD700;
}

/* Included as standard list — centred, larger text */
.included-list {
    list-style: none;
    padding: 0;
    margin: 1rem auto 1.5rem;
    max-width: 700px;
    text-align: left;
}

.included-list li {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid rgba(191, 175, 130, 0.3);
    font-size: 1.4rem;
    line-height: 1.5;
}

.included-list li:last-child {
    border-bottom: none;
}

/* Highlighted trust statement — larger than body, not a heading */
.highlight {
    font-size: 1.6rem;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
}
/* Pricing icon — green pound sign in service boxes */
.icon-pricing {
    width: 90px;
    height: auto;
    display: block;
    margin: 0.5rem auto;
    animation: none;
}

.service-list-3col .service-item {
    flex: 1 1 calc(30% - 20px);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Rectangle button — no spin animation, scales on hover */
.btn-rectangle {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto 0;
    cursor: pointer;
}

.hero-content a > img.btn-rectangle {
    animation: none;
    padding: 0;
    max-width: 280px;
}

a:has(.btn-rectangle) {
    display: inline-block;
    transition: transform var(--transition-time);
}

a:has(.btn-rectangle):hover {
    transform: scale(1.1);
}

/* ============================================
   WHATSAPP LINK
   ============================================ */
a.whatsapp-link,
a.whatsapp-link:hover {
    color: #25D366 !important;
    text-shadow: none !important;
    transform: none !important;
    font-size: inherit !important;
    font-weight: 600;
    text-decoration: none;
    display: inline !important;
}

a.whatsapp-link:hover {
    text-decoration: underline !important;
}

/* WhatsApp in hero — inherits h2 sizing but stays green */
h2 a.whatsapp-link {
    font-size: inherit;
}

.blog-placeholder {
    color: #888;
    font-style: italic;
    padding: 1rem;
}

/* ============================================
   CONTACT FORM
   ============================================ */
#contact .border-style form input,
#contact .border-style form textarea {
    width: 80%;
    max-width: 500px;
    padding: 10px;
    margin: 10px;
    border: double 2px var(--border-color);
    border-radius: 10px;
    background: url('../imgs/Background_triangles.webp');
    color: #bea767;
    transition: background-color var(--transition-time) ease;
    font-size: 1.4rem;
}

#contact .border-style form input:focus,
#contact .border-style form textarea:focus {
    outline: none;
    color: #FFD700;
    background: rgba(150, 0, 0, 0.5);
}

#contact .border-style form button {
    background: none;
    background-image: url('../imgs/Button_Rectangle_Send.webp');
    background-size: contain;
    background-repeat: no-repeat;
    width: 200px;
    height: 60px;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 60px;
    text-align: center;
    margin: 20px auto;
}

#contact .border-style .file-upload-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 80%;
    max-width: 500px;
    margin: 10px auto;
    border: double 2px var(--border-color);
    border-radius: 10px;
    padding: 10px;
    background: url('../imgs/Background_triangles.webp');
    position: relative;
}

#file-upload {
    flex-grow: 1;
    opacity: 0;
    position: absolute;
    left: 0;
    height: 100%;
    cursor: pointer;
    z-index: 1;
}

.upload-button-icon {
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
}

.upload-button-icon img {
    width: 120px;
    height: auto;
    transition: transform 0.2s ease;
    margin-right: 10px;
}

.upload-button-icon img:hover {
    transform: scale(1.1);
}

/* ============================================
   POPUP
   ============================================ */
.popup-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: #800000;
    box-shadow: 0 2px 10px var(--shadow-color);
    border: double 2px var(--border-color);
    border-radius: 10px;
    z-index: 1000;
}

.popup-message.success,
.popup-message.error {
    border: double 2px var(--border-color);
    border-radius: 10px;
}

.popup-message button {
    background-color: var(--main-color);
    border: none;
    cursor: pointer;
    padding: 10px 20px;
    color: #800000;
    margin-top: 10px;
    border: double 2px var(--border-color);
    border-radius: 10px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: rgba(0, 0, 0, 0.5);
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-style: normal !important;
}

.socials a {
    margin: 0 10px;
    font-size: 24px;
    color: var(--main-color);
}

.icon_link {
    margin: 10px;
    border: double 2px var(--border-color);
    border-radius: 10px;
    width: 100px;
    height: auto;
}

.bottom {
    display: flex;
    margin-top: 10px;
    justify-content: center;
    align-items: center;
}

.btn img {
    margin: 30px;
    width: auto;
    height: 64px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes ring {
    from { transform: rotate3d(0, 0, 1, 0); }
    20%, 32%, 44%, 56%, 68% { transform: rotate3d(0, 0, 1, 0); }
    23%, 35%, 47%, 59%, 71% { transform: rotate3d(0, 0, 1, 15deg); }
    26%, 38%, 50%, 62%, 74% { transform: rotate3d(0, 0, 1, 0); }
    29%, 41%, 53%, 65%, 77% { transform: rotate3d(0, 0, 1, -15deg); }
    80% { transform: rotate3d(0, 0, 1, 0); }
}

@keyframes spin {
    0% { transform: rotateY(0deg); }
    3% { transform: rotateY(360deg); }
    6% { transform: rotateY(0deg); }
    12% { transform: rotateY(360deg); }
    25% { transform: rotateY(0deg); }
    50% { transform: rotateY(360deg); }
    100% { transform: rotateY(0deg); }
}

/* ============================================
   RESPONSIVE - TABLET (up to 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .wrapper {
        width: 95%;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 1.8rem; }

    /* Gas Safe stays absolute but slightly smaller on tablet */
    a:has(#img_gassafe) {
        width: 120px !important;
    }
}

/* ============================================
   RESPONSIVE - MOBILE (up to 600px)
   ============================================ */
@media (max-width: 600px) {
    .wrapper {
        width: 100%;
        padding: 10px;
    }

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.9rem; }
    h3 { font-size: 1.6rem; }
    h4, p { font-size: 1.3rem; }

    .titles {
        padding: 0 10px;
    }

    .titles img {
        width: 66%;
        max-width: 100%;
        height: auto;
    }

    .service-list {
        flex-direction: column;
    }

    .service-item {
        flex: 1 1 100%;
        margin: 10px 0;
    }

    header {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .menu-toggle {
        display: block;
    }

    .badge {
        width: 60%;
        padding: var(--padding) 0;
    }

    .hamburger-icon {
        display: inline-block;
        width: 30px;
        height: 2px;
        background-color: var(--main-color);
        position: relative;
    }

    .hamburger-icon::before,
    .hamburger-icon::after {
        content: '';
        display: block;
        width: 30px;
        height: 2px;
        background-color: var(--main-color);
        position: absolute;
    }

    .hamburger-icon::before {
        top: -10px;
    }

    .hamburger-icon::after {
        top: 10px;
    }

    .nav-menu ul {
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: var(--bg-color);
        width: 100%;
        top: 100%;
        left: 0;
        box-shadow: 0px 4px 8px var(--shadow-color);
    }

    .nav-menu ul.show {
        display: flex;
        border: double 2px var(--border-color);
        border-radius: 10px;
    }

    /* Gas Safe repositions to inline on mobile so it doesn't overlap content */
    a:has(#img_gassafe) {
        position: relative !important;
        bottom: auto;
        right: auto;
        margin: 20px auto 0;
    }

    #img_gassafe {
        width: 120px !important;
        height: auto;
        margin: 0 auto;
    }

    .trust-strip {
        font-size: 1rem;
        gap: 0.4rem 1rem;
    }

    a.cta-quote {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .bottom {
        flex-direction: column;
    }
}
/* ============================================
   MOBILE — Process steps stacked layout
   ============================================ */
@media (max-width: 600px) {
    .process-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .process-summary {
        text-align: center;
    }

    .process-header .process-summary h3 {
        text-align: center;
    }
}