/* 
    Adco Construction & Remodeling - Premium Style System
    Theme: Radical Black, White & Construction Red
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary-red: #d32f2f;
    --accent-red: #ff3c3c;
    --bg-black: #0a0a0a;
    --surface-black: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

body.no-scroll {
    overflow: hidden;
    height: 100vh;
}

h1, h2, h3, h4, .brand-font {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 100px 5%;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Header & Navigation */
header {
    height: 75px;
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: fixed;
    top: 20px;
    left: 5%;
    right: 5%;
    margin: 0 auto;
    width: 90%;
    max-width: 1300px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    transition: var(--transition-smooth);
}

header:hover {
    background: rgba(15, 15, 15, 0.85);
    border-color: rgba(211, 47, 47, 0.5);
}

.logo img {
    height: 42px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.nav-links li a:hover {
    color: var(--primary-red);
}

.submenu-toggle {
    display: none;
}

.header-cta {
    padding: 12px 25px;
    font-size: 0.85rem;
}

.back-btn {
    display: none;
}

@media (max-width: 1100px) {
    .header-cta {
        display: none;
    }
}

/* Submenu/Dropdown */
.nav-links > li {
    position: relative;
    padding: 10px 0;
}

.submenu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 280px;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--primary-red);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 1001;
    padding: 15px 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.7);
    border-radius: 20px;
}

.nav-links li:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.submenu li a {
    padding: 12px 25px;
    font-size: 0.8rem;
    display: block;
    border-bottom: 1px solid #222;
}

.submenu li:last-child a {
    border-bottom: none;
}

.submenu li a:hover {
    background: #222;
    padding-left: 30px;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    transition: var(--transition-smooth);
}

/* Hero Section with Slideshow */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin-bottom: 20px;
    line-height: 1;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 18px 40px;
    background: var(--primary-red);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--accent-red);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

/* Service Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--surface-black);
    padding: 0;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid #333;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
}

.service-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    margin-bottom: 15px;
    color: var(--primary-red);
}

/* Testimonials */
.testimonials {
    background: #050505;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--surface-black);
    padding: 40px;
    border-left: 5px solid var(--primary-red);
}

.stars {
    color: #ffb400;
    margin-bottom: 15px;
}

/* Gallery - Home */
.gallery-home {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Contact & Map Section */
.contact-map-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--surface-black);
    padding: 50px;
    border-radius: 12px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #111;
    border: 1px solid #333;
    color: white;
    font-family: inherit;
}

.contact-form input:focus, .contact-form textarea:focus {
    border-color: var(--primary-red);
    outline: none;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    filter: invert(90%) hue-rotate(180deg);
}

/* Footer */
footer {
    padding: 80px 5% 40px;
    background: #000;
    border-top: 4px solid var(--primary-red);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.footer-bottom a {
    color: var(--primary-red);
}

@media (max-width: 968px) {
    header {
        width: 94%;
        top: 10px;
        left: 3%;
        right: 3%;
        height: 65px;
        padding: 0 20px;
        border-radius: 35px;
    }

    /* Reduce global space for mobile */
    section {
        padding: 60px 20px;
    }

    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.4rem !important; }
    p { font-size: 1rem !important; }

    .hero h1 {
        font-size: 2.5rem !important;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem !important;
    }

    nav {
        position: static;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 75px;
        left: 0;
        right: 0; /* Clear dependency on specific width */
        width: 100%;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        padding: 0 20px 30px; 
        text-align: center;
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        box-sizing: border-box;
    }
    
    .nav-links.active {
        display: flex;
    }

    /* Drill-down States */
    .back-btn {
        display: none;
        padding: 25px 20px !important;
        color: var(--primary-red);
        font-weight: 700;
        text-align: left;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        cursor: pointer;
    }

    .nav-links.drilled .back-btn {
        display: block;
    }

    .nav-links.drilled > li:not(.submenu-active):not(.back-btn) {
        display: none;
    }

    .nav-links.drilled li.submenu-active > a,
    .nav-links.drilled li.submenu-active .submenu-toggle {
        display: none;
    }

    .nav-links li {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid rgba(255,255,255,0.02);
        position: static !important; /* Ensure children aren't relative to a centered li */
    }

    .hamburger {
        display: flex;
    }

    .contact-map-wrapper {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .submenu {
        position: static !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        display: none; /* Hidden by default */
        padding: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        text-align: center; /* Center items for premium look in drill-down */
    }

    .submenu.open {
        display: block !important;
    }

    .submenu li {
        border: none;
        padding: 0;
    }

    .submenu li a {
        padding: 15px 20px;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        display: block;
    }

    .submenu-toggle {
        display: inline-block;
        margin-left: 10px;
        font-size: 0.7rem;
        cursor: pointer;
        transition: var(--transition-smooth);
        width: 32px;
        height: 32px;
        line-height: 32px;
        text-align: center;
        background: rgba(255,255,255,0.05);
        border-radius: 50%;
        vertical-align: middle;
    }

    .submenu-toggle.active {
        transform: rotate(180deg);
        color: var(--primary-red);
        background: rgba(211, 47, 47, 0.1);
    }
}

/* Process & Icon Grid */
.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.icon-box {
    text-align: center;
    padding: 40px;
    background: var(--surface-black);
    border: 1px solid #222;
    transition: var(--transition-smooth);
}

.icon-box:hover {
    border-color: var(--primary-red);
    transform: translateY(-5px);
}

.icon-box i, .icon-box .num {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
    display: block;
    font-weight: 900;
}

/* Accordion / FAQ */
.faq-container {
    max-width: 900px;
    margin: 50px auto 0;
}

.faq-item {
    background: var(--surface-black);
    margin-bottom: 15px;
    border: 1px solid #222;
}

.faq-question {
    padding: 20px 30px;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-gray);
    transition: var(--transition-smooth);
}

.faq-item.active .faq-answer {
    padding-bottom: 30px;
    max-height: 500px;
}

/* Content Blocks */
.content-block {
    display: flex;
    flex-direction: row;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.content-block:nth-child(even) {
    flex-direction: row-reverse;
}

.content-media {
    flex: 1;
}

.content-text {
    flex: 1;
}

@media (max-width: 968px) {
    .content-block {
        flex-direction: column !important;
        gap: 30px;
        text-align: center;
    }

    .content-media img {
        box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important; /* Smaller shadow on mobile */
    }
}

/* Craftsman Section Enhancements */
.content-tagline {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-red);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.benefit-list {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.benefit-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.benefit-icon {
    width: 24px;
    height: 24px;
    background: var(--primary-red);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    flex-shrink: 0;
}

.benefit-icon::after {
    content: '✓';
    color: white;
    font-size: 0.8rem;
    font-weight: 900;
}

.benefit-text h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 5px;
    font-family: 'Montserrat', sans-serif;
}

.benefit-text p {
    font-size: 0.95rem !important;
    color: var(--text-gray);
    margin-bottom: 0 !important;
}

/* Before & After Slider */
.ba-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.ba-before, .ba-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.ba-after {
    clip-path: inset(0 0 0 50%);
}

.ba-slider {
    position: absolute;
    z-index: 10;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--primary-red);
    cursor: ew-resize;
    transform: translateX(-50%);
}

/* Brand Grid */
.brand-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    opacity: 0.6;
    filter: grayscale(1);
    transition: var(--transition-smooth);
    padding: 20px 0;
}

.brand-grid:hover {
    opacity: 1;
    filter: grayscale(0);
}

.brand-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-gray);
    letter-spacing: 2px;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://s3-media0.fl.yelpcdn.com/bphoto/VnP-TU6H4ZBcKwTr9tdMFw/o.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 100px 5%;
    text-align: center;
    border-top: 4px solid var(--primary-red);
    border-bottom: 4px solid var(--primary-red);
}

.cta-banner h2 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-card {
    background: var(--surface-black);
    padding: 50px 30px;
    text-align: center;
    border: 1px solid #111;
    transition: var(--transition-smooth);
}

.team-card:hover {
    border-color: var(--primary-red);
    transform: translateY(-10px);
}

.detail-card {
    background: var(--surface-black);
    padding: 60px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    transition: var(--transition-smooth);
}

.detail-card:hover {
    border-color: rgba(211, 47, 47, 0.3);
    transform: translateY(-5px);
}

.team-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 25px;
    border: 3px solid var(--primary-red);
    object-fit: cover;
}

/* Statistics */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.stat-item p {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.8rem;
}

/* Reveal Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .cta-banner {
        padding: 60px 5%;
    }

    .cta-banner h2 {
        font-size: 2.2rem !important;
    }

    .cta-banner .btn {
        margin: 10px 0 !important;
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .stat-item h3 {
        font-size: 2.2rem;
    }

    .brand-grid {
        gap: 20px;
        justify-content: center;
    }

    .brand-logo {
        font-size: 1.1rem;
    }

    .team-card {
        padding: 30px 20px;
    }

    .testimonial-card {
        padding: 25px;
    }

    .detail-card {
        padding: 30px 20px;
        border-radius: 16px;
    }

    .detail-card > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .service-detail-img {
        grid-row: 1;
    }

    .service-detail-text {
        grid-row: 2;
    }

    .footer-content {
        text-align: center;
        gap: 30px;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}
