:root {
    /* Color Palette */
    --primary-blue: #002B5C;
    /* Replacing primary-green */
    --primary-orange: #F37021;
    --orange-hover: #D95D16;
    --bg-light: #FFF9F0;
    --bg-white: #ffffff;
    --text-main: #002B5C;
    /* Updated to dark navy for better branding cohesion */
    --text-muted: #666666;
    --border-color: #dddddd;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing & Layout */
    --container-max: 1366px;
    --container-padding: 2rem;
    --section-padding: 5rem 0;

    /* Effects */
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-blue);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 142, 52, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-orange);
    color: var(--primary-orange);
}

.btn-outline:hover {
    background-color: var(--primary-orange);
    color: #fff;
}

/* Header & Navigation */
.main-header {
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}

.logo h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-list a {
    font-weight: 600;
    font-size: 1rem;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-orange);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-contact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.cta-icon {
    font-size: 1.8rem;
    color: var(--primary-blue);
}

.cta-text {
    display: flex;
    flex-direction: column;
}

.cta-small {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.cta-phone {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-orange);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Hero Section */
.hero {
    display: flex;
    min-height: calc(100vh - 90px);
}

.hero-content {
    flex: 1;
    background-color: var(--primary-blue);
    color: white;
    padding: var(--container-padding);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    margin-bottom: 2.5rem;
}

.hero-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero-features i {
    color: var(--primary-orange);
    margin-top: 5px;
}

.hero-image {
    flex: 1;
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
}

/* Trust Bar */
.trust-bar {
    background-color: #000;
    color: white;
    padding: 2rem 0;
}

.trust-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.trust-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.trust-rating {
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.stars {
    color: var(--primary-orange);
    font-size: 1.2rem;
}

/* Services Section */
.services {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    padding: 2rem;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-blue);
    position: relative;
}

.service-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-icon-wrapper.icon-contain img {
    object-fit: contain;
    padding: 10px;
    background-color: var(--primary-orange);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* About Section */
.about {
    padding: var(--section-padding);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary-blue);
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background-color: var(--primary-blue);
    color: white;
}

.testimonials .section-title {
    color: white;
}

.testimonial-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.testimonial-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-height: 250px;
}

.testimonial-card {
    background: white;
    color: var(--text-main);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease-in-out;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
    /* ensures the container height adapts to active card */
}

.testimonial-card.prev {
    transform: translateX(-100%);
}

.testimonial-card .stars {
    color: var(--primary-orange);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.review-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.reviewer h4 {
    color: var(--primary-blue);
    margin-bottom: 0.2rem;
}

.review-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-orange);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-orange);
    width: 25px;
    border-radius: 10px;
}

/* Pricing Section */
.pricing {
    padding: var(--section-padding);
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.price-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
}

.price-header {
    background-color: var(--primary-blue);
    color: white;
    padding: 2rem;
    text-align: center;
}

.price-header.popular {
    background-color: var(--primary-orange);
}

.price-header h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.price-body {
    padding: 2rem;
}

.price-list {
    margin-bottom: 2rem;
}

.price-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
}

.price-list li:last-child {
    border-bottom: none;
}

/* Quote Form Section */
.quote-section {
    padding: var(--section-padding);
}

.quote-container {
    background-color: var(--primary-orange);
    border-radius: 10px;
    padding: 3rem;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--box-shadow);
}

.quote-container h2 {
    color: white;
    text-align: center;
}

.quote-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.quote-form textarea {
    grid-column: span 2;
    resize: vertical;
    min-height: 100px;
}

.quote-form .btn {
    width: 100%;
    background-color: var(--primary-blue);
    color: white;
    font-size: 1.1rem;
}

.quote-form .btn:hover {
    background-color: #154522;
}

/* Footer Section */
.main-footer {
    background-color: var(--primary-blue);
    color: white;
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a:hover {
    color: var(--primary-orange);
}

.contact-list i {
    width: 25px;
    color: var(--primary-orange);
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.legal-links a {
    margin-left: 1.5rem;
    font-size: 0.9rem;
    color: #ccc;
}

.legal-links a:hover {
    color: white;
}

/* =========================================================================
   RESPONSIVE DESIGN 
   (1920x1080 - Handled by max-width: 1366px container)
   ========================================================================= */

/* Large Desktop / Laptop (max 1366px) */
@media (max-width: 1366px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Tablets (max 1024px) */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
    }

    .hero-image {
        min-height: 400px;
    }

    .hero-content {
        padding: 4rem var(--container-padding);
    }
}

/* Small Tablets / Large Phones (max 768px) */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        /* Hide default nav for mobile */
        position: absolute;
        top: 90px;
        left: 0;
        width: 100%;
        background-color: var(--bg-white);
        flex-direction: column;
        gap: 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-list a {
        display: block;
        padding: 1rem 2rem;
    }

    .cta-contact {
        display: none;
        /* Hide phone in header to save space */
    }

    .mobile-menu-btn {
        display: block;
    }

    .trust-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .quote-form .form-grid {
        grid-template-columns: 1fr;
    }

    .quote-form textarea {
        grid-column: 1;
    }
}

/* Mobile Devices (360px - 414px) */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .footer-bottom-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .legal-links a {
        margin: 0 0.5rem;
        display: inline-block;
        margin-top: 0.5rem;
    }
}

/* Logo Styling */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    height: 60px;
    /* Adjust based on preference */
    width: auto;
    object-fit: contain;
}