/* =========================================
WEATHER DEFENDER LANDING PAGE CSS
UI/UX & SEO OPTIMIZED REBRAND
=========================================
*/

/* General Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #222;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

a {
    text-decoration: none;
    color: #000;
}

/* CTA Button Styles - Unified for <a> and <button> */
.cta-button, button.cta-button {
    /* Reset default button styling */
    border: none;
    cursor: pointer;
    font-family: inherit;
    
    /* Structural Styles (original) */
    display: inline-block;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.primary-cta {
    background-color: #ffdf00; /* Weather Defender Yellow/Gold */
    color: #000;
    border: 2px solid #ffdf00;
}

.primary-cta:hover {
    background-color: #e6b300; /* Slightly darker hover */
}

.secondary-cta {
    background-color: transparent;
    color: #fff; /* For use on dark hero section */
    border: 2px solid #fff;
    margin-left: 15px;
}

.secondary-cta:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Header & Navigation */
header {
    background-color: #000;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: block;
    line-height: 0; /* Prevents extra spacing below the image */
}

.logo-image {
    max-height: 35px; /* Adjust height as needed to fit the header bar */
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: #ffdf00;
}

.nav-cta {
    padding: 8px 15px;
    font-size: 0.85rem;
}

.mobile-menu-icon {
    display: none; /* Hidden on desktop */
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.mobile-menu-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1001;
    padding-top: 60px;
    text-align: center;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-overlay ul {
    list-style: none;
    padding: 0;
}

.mobile-menu-overlay li {
    margin: 20px 0;
}

.mobile-menu-overlay a {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    padding: 10px;
}

/* Hero Section */
.hero {
    padding: 180px 0; 
    min-height: 60vh; 
    color: #fff;
    position: relative;
    overflow: hidden;
    background: url('landing.png') no-repeat center center/cover;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)); 
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto; 
    text-align: center; 
}

.hero-content h1 {
    color: #fff;
    font-size: 3.5rem;
}

.hero-content .subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    justify-content: center; 
}

/* Differentiator Section - FINAL HIGH-CONTRAST CARD REWORK */
.differentiator {
    padding: 60px 0;
    background-color: #f8f8f8; /* Background for the whole section */
    border-top: 1px solid #eee; 
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.feature {
    background-color: #000; /* Black background for card */
    padding: 30px 15px; 
    border-radius: 10px;
    border: 1px solid #333; /* Dark border */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15); /* Dark shadow for lift */
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.feature i {
    /* Refined Icon Sizing */
    font-size: 1.8rem; /* Smaller icon glyph */
    color: #000; /* Black icon */
    background-color: #ffdf00; /* High-contrast Yellow circle */
    border-radius: 50%;
    padding: 10px; /* Reduced padding for smaller circle */
    
    /* Explicitly set size for perfect circle */
    width: 50px; 
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    
    margin-bottom: 15px;
}

.feature h3 {
    color: #ffdf00; /* Yellow title for high contrast */
    font-size: 1.1rem;
    font-weight: 700; 
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature p {
    font-size: 0.9rem; 
    color: #ccc; /* Light gray text for readability on black background */
    font-weight: 400;
}

/* Product Comparison Section - Enhanced */
.product-comparison {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.product-comparison h2 {
    color: #333;
}

.comparison-intro {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 60px;
    color: #666;
}

.product-card {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product-details {
    padding: 40px;
    flex: 1;
}

.product-details h3 {
    color: #000;
    font-size: 2rem;
    margin-bottom: 10px;
}

.tagline {
    font-style: italic;
    color: #ffdf00;
    margin-bottom: 20px;
}

.product-visual {
    flex: 1;
    position: relative;
    background-color: #222; /* Darker background to make yellow seal pop */
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.seal-image {
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.diagram-callout {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    font-size: 0.9rem;
    color: #333;
    display: flex;
    justify-content: space-around;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    font-weight: 600;
}

.key-features {
    list-style: none; /* Remove default disc */
    padding-left: 0;
    margin-bottom: 30px;
}

.key-features li {
    /* Custom SVG Checkmark (yellow/gold) for list style */
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24"><path fill="%23FFC000" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>') no-repeat left center;
    padding-left: 25px;
    background-size: 16px;
    line-height: 1.8;
    margin-bottom: 5px;
    font-size: 1rem;
}

.purchase-box {
    border-top: 1px solid #eee;
    padding-top: 20px;
    text-align: right;
}

.price-start {
    font-size: 1.4rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 15px;
}

/* Reverse layout for XL card (visual on left) */
.xl-card {
    flex-direction: row-reverse;
}

.xl-card .purchase-box {
    text-align: left;
}

/* -------------------------------------- */
/* Reviews Section */
/* -------------------------------------- */
.reviews-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.reviews-section h2 {
    color: #000;
    margin-bottom: 20px;
}

.review-summary {
    margin-bottom: 50px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    display: inline-block;
}

.overall-rating {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
}

.overall-rating .score {
    color: #ffdf00;
}

.star-rating {
    font-size: 1.5rem;
    color: #ffdf00;
    margin: 10px 0;
}

.read-all-reviews {
    display: block;
    margin-top: 15px;
    color: #000;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s;
}

.read-all-reviews:hover {
    color: #ffdf00;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background-color: #fcfcfc;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.review-card h4 {
    font-size: 1.1rem;
    color: #000;
    margin-bottom: 10px;
}

.review-card p {
    font-style: italic;
    color: #555;
    margin-bottom: 15px;
}

.reviewer {
    display: block;
    font-size: 0.85rem;
    color: #999;
}

.rating-stars {
    color: #ffdf00;
    font-size: 1rem;
    margin-bottom: 10px;
}

/* -------------------------------------- */
/* Installation Guide Section */
/* -------------------------------------- */
.installation-guide {
    padding: 80px 0;
    background-color: #f0f0f0;
    text-align: center;
}

.install-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.step-card {
    padding: 20px;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #eee;
}

.step-number {
    display: inline-block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    background-color: #000;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    margin-bottom: 15px;
}

.step-card h3 {
    margin-bottom: 10px;
}

.install-diagram {
    height: 180px;
    background-color: #e0e0e0;
    margin-top: 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.install-diagram .diagram-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.tear-off-feature {
    background-color: #fff3cd; /* Alert/tip color */
    border: 1px solid #ffeeba;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
}

.tear-off-feature h4 {
    color: #856404;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.tear-off-diagram {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.fig-a, .fig-b {
    flex: 1;
    height: 180px; /* Adjusted to fit the text below */
    background-color: #e0e0e0;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    padding-bottom: 25px;
}

.fig-a .diagram-image, .fig-b .diagram-image {
    width: 100%;
    height: 150px; /* Allocated height for image */
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 5px;
}

.fig-a p, .fig-b p {
    font-size: 0.85rem;
    color: #555;
    margin: 0;
}

/* -------------------------------------- */
/* Video Section */
/* -------------------------------------- */
.video-section {
    padding: 80px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
}

.video-section h2 {
    color: #ffdf00;
}

.video-caption {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.video-placeholder {
    width: 100%;
    max-width: 800px;
    height: 450px;
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    /* For the iframe */
    overflow: hidden;
}

/* -------------------------------------- */
/* Footer */
/* -------------------------------------- */
footer {
    background-color: #1a1a1a;
    color: #ddd;
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.footer-col h4 {
    color: #ffdf00;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-col p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.made-in-britain-footer {
    color: #ffdf00;
    font-weight: 600;
    margin-top: 15px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    color: #ddd;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.footer-col a:hover {
    color: #ffdf00;
}

.copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    color: #666;
}

/* =========================================
RESPONSIVE DESIGN (Mobile First)
=========================================
*/

/* Tablet Devices (1024px and below) */
@media (max-width: 1024px) {
    .product-card {
        flex-direction: column;
        text-align: center;
    }

    .xl-card {
        flex-direction: column; /* Revert XL card for consistency on tablet */
    }

    .product-visual {
        padding: 40px;
        min-height: 300px;
    }

    .product-card .product-details {
        text-align: center;
    }
    
    .xl-card .purchase-box {
        text-align: center; /* Center CTA on tablet */
    }
    
    .product-card .purchase-box {
        text-align: center; /* Center CTA on tablet */
    }

    .key-features {
        text-align: left; /* Keep bullet points readable */
    }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .hero {
        padding: 80px 0;
        min-height: 50vh;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .secondary-cta {
        margin-left: 0;
    }

    /* Sections */
    .grid-4, .install-steps, .footer-grid, .review-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    /* Adjust feature cards for mobile stacking */
    .feature {
        padding: 20px 10px;
    }
    
    .feature i {
        padding: 10px;
        font-size: 1.5rem; /* Smaller icons on mobile */
        width: 45px; 
        height: 45px;
    }

    .video-placeholder {
        height: 250px;
    }

    .tear-off-diagram {
        flex-direction: column;
        gap: 40px;
    }
}