/* =====================================================
   ROOFING WEBSITE — PRODUCTION CSS
===================================================== */

/* =======================
   DESIGN TOKENS
======================= */
:root {
    /* PRIMARY — Deep Navy / Steel Blue */
    --primary: #1e2a3a;
    --primary-soft: #26364b;
    --primary-dark: #141d29;

    /* SECONDARY — White / Light Grey */
    --bg-white: #ffffff;
    --bg-light: #f4f6f8;
    --bg-concrete: #e5e7eb;

    /* ACCENT — CTA ONLY */
    --cta: #d97706;
    --cta-dark: #b45309;

    /* TEXT */
    --text-main: #2b2b2b;
    --text-muted: #6b7280;
    --text-light: #e5e7eb;

    /* UI */
    --radius: 10px;
    --shadow-soft: 0 15px 40px rgba(0,0,0,0.08);
    --transition: all 0.35s ease;
}

/* =======================
   RESET & BASE
======================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-white);
    color: var(--text-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* =======================
   GLOBAL LAYOUT
======================= */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: clamp(80px, 8vw, 120px) 0;
}

/* =======================
   HEADER & NAV
======================= */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 42, 58, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    z-index: 1000;
}

.main-header .container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}

.logo span {
    color: var(--cta);
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    margin-left: 32px;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--cta);
    transition: var(--transition);
}

.nav-menu a:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--cta);
    color: #fff !important;
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 700;
}
/* HEADER SCROLL STATE */
.header-scrolled {
    background: rgba(30, 42, 58, 0.98);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* =======================
   HERO SECTION
======================= */
.hero {
    height: 100vh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.video-container {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(30,42,58,0.85),
        rgba(30,42,58,0.75)
    );
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    padding: 0 20px;
    animation: heroFade 1s ease forwards;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.hero-content span {
    color: var(--cta);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 720px;
    margin: 0 auto 40px;
    color: var(--text-light);
}

/* =======================
   HERO CTA
======================= */
.btn-main,
.btn-outline {
    display: inline-block;
    padding: 16px 44px;
    margin: 8px;
    font-weight: 700;
    border-radius: 40px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-main {
    background: var(--cta);
    color: #fff;
}

.btn-main:hover {
    background: var(--cta-dark);
}

.btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline:hover {
    background: #fff;
    color: var(--primary);
}


/* =======================
   SERVICES
======================= */
.services {
    background: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 70px;
    color: var(--primary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--bg-white);
    padding: 50px 35px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
}

.service-card i {
    font-size: 3rem;
    color: var(--cta);
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-muted);
}

/* =======================
   CONTACT / FORMS
======================= */
.contact-section {
    background: var(--bg-concrete);
}

.contact-wrapper {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    border: 1px solid #d1d5db;
    font-size: 1rem;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: var(--cta);
    border: none;
    border-radius: 40px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: var(--cta-dark);
}
/* STICKY CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary);
    display: flex;
    justify-content: space-between;
    z-index: 1001;
}

.sticky-cta a {
    flex: 1;
    padding: 16px;
    text-align: center;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
}

.sticky-call {
    background: var(--primary);
}

.sticky-quote {
    background: var(--cta);
}

@media (min-width: 768px) {
    .sticky-cta {
        width: auto;
        right: 24px;
        left: auto;
        bottom: 24px;
        border-radius: 50px;
        overflow: hidden;
        box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    }

    .sticky-cta a {
        padding: 14px 22px;
    }
}


/* =======================
   WHATSAPP FLOAT
======================= */
/* .whatsapp-float {
    position: fixed;
    bottom: 26px;
    right: 26px;
    background: #25d366;
    color: #fff;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 700;
    box-shadow: 0 12px 35px rgba(0,0,0,0.35);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: translateY(-4px);
} */

/* =======================
   FOOTER
======================= */
/* BEFORE AFTER SLIDER */
.ba-container {
    position: relative;
    max-width: 900px;
    margin: auto;
    overflow: hidden;
    border-radius: var(--radius);
}

.ba-container img {
    width: 100%;
    display: block;
}

.ba-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.ba-handle {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--cta);
    cursor: ew-resize;
}
.about-section {
    background: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.trust-list {
    list-style: none;
}

.trust-list li {
    margin-bottom: 14px;
    font-weight: 600;
}

.trust-list i {
    color: var(--cta);
    margin-right: 10px;
}

footer {
    background: var(--primary-dark);
    color: #9ca3af;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}
/* =======================
   PROJECTS IMAGE GRID
======================= */
.projects {
    background: var(--bg-light);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.projects-grid img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    transition: transform 0.35s ease;
}

.projects-grid img:hover {
    transform: scale(1.03);
}

.gallery-note {
    margin-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}
/* =======================
   MOBILE MENU (HAMBURGER)
======================= */

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
}

/* Desktop */
.nav-menu {
    display: flex;
}

/* Mobile */
@media (max-width: 768px) {

    .mobile-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 40px 0;
        gap: 25px;
    }

    .nav-menu a {
        font-size: 1.3rem;
        color: #fff;
    }

    .nav-menu.active {
        display: flex;
    }
}
/* =======================
   BLOG (2 POSTS – CLEAN)
======================= */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 35px 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.1);
}

.blog-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.blog-card p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
}

.blog-link {
    font-weight: 700;
    color: var(--cta);
    text-decoration: none;
}

/* =======================
   BLOG ARTICLES (ACCORDION)
======================= */

.blog-article {
    border-bottom: 1px solid #e5e7eb;
    padding: 35px 0;
}

.article-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    position: relative;
    line-height: 1.4;
}

.article-title::after {
    content: "+";
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.6rem;
    color: var(--cta);
}

.blog-article.active .article-title::after {
    content: "–";
}

.article-content {
    display: none;
    margin-top: 22px;
}

.blog-article.active .article-content {
    display: block;
}

.article-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 18px;
}

/* =======================
   RESPONSIVE
======================= */

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-title {
        font-size: 1.4rem;
        padding-right: 30px;
    }
}


/* Responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
}


/* RESPONSIVE */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid img {
        height: 220px;
    }
}


/* =======================
   ANIMATIONS
======================= */
@keyframes heroFade {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 1024px) {
    .nav-menu a {
        margin-left: 22px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero {
        min-height: 600px;
    }

    section {
        padding: 70px 0;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.9rem;
    }

    .btn-main,
    .btn-outline {
        padding: 14px 32px;
    }

    .whatsapp-float {
        bottom: 18px;
        right: 18px;
        padding: 12px 20px;
    }
}
/* =======================
   MOBILE VIDEO FIX
======================= */

/* Ensure video always fills container */
.video-container video {
    display: block;
}

/* Mobile fallback if autoplay is blocked */
@media (max-width: 768px) {
    .video-container {
        background: url("../media/hero-poster.jpg") center / cover no-repeat;
    }
}
