/* Core Configuration - Updated with Nunito Sans */
:root {
    --bg-main: #0b0f19;
    --bg-surface: #131a2c;
    --accent: #00ffcc;
    --accent-hover: #00d4aa;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Nunito Sans", sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* --- NAVIGATION STYLES --- */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    background: rgba(19, 26, 44, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 15px 30px;
    z-index: 9999; /* Stays above hero image and overlay */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

.brand {
    font-weight: 900;
    font-size: 20px;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.brand span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* Hamburger Toggle Button Styling */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.menu-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

/* --- MOBILE RESPONSIVE MENU --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* Shows the hamburger icon on mobile */
    }

    .nav-links {
        display: flex; /* Structure stays flex; visibility toggled below */
        position: absolute;
        top: calc(100% + 15px);
        left: 0;
        width: 100%;
        background: #131a2c; /* Solid surface for readability while open */
        border: 1px solid var(--border-color);
        border-radius: 14px;
        flex-direction: column;
        padding: 25px 0;
        gap: 10px;

        /* Closed state: hidden via opacity/visibility, not display */
        visibility: hidden;
        opacity: 0;
        transform: translateY(-15px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }

    .nav-links a {
        display: block;
        margin-left: 0;
        font-size: 18px;
        width: 100%;
        text-align: center;
        padding: 12px 0;
        color: var(--text-primary); /* High contrast link text */
    }

    /* Open state override - reveals the links */
    .nav-links.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    /* Hamburger -> Close (X) morph animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--accent);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: var(--accent);
    }
}

/* Hero Space with Integrated Image + Overlay */
.hero-showcase {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 10%;
    background-image: url('img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(11, 15, 25, 0.95) 30%, rgba(11, 15, 25, 0.6) 100%);
    z-index: 1;
}

.hero-inner {
    max-width: 750px;
    position: relative;
    z-index: 10;
}

.badge {
    display: inline-block;
    background: rgba(0, 255, 204, 0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 255, 204, 0.2);
}

.hero-inner h1 {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 25px;
}

.hero-inner p {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: var(--accent);
    color: var(--bg-main);
}

.action-btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.action-btn.secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.action-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--text-secondary);
}

/* Split About Section with Image and Call Button */
.about-grid-section {
    padding: 120px 10%;
    border-top: 1px solid var(--border-color);
}

.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.section-tag {
    display: block;
    color: var(--accent);
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.grid-content-box h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.grid-content-box p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 800;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.phone-btn:hover {
    background: var(--accent);
    color: var(--bg-main);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

/* Pure Plumbing Services Layout */
.services-block-section {
    padding: 120px 10%;
    background-color: var(--bg-surface);
}

.section-intro {
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.section-intro h2 {
    font-size: 36px;
    font-weight: 800;
}

.cards-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-block {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-block:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.block-num {
    font-size: 14px;
    color: var(--accent);
    font-weight: 800;
    margin-bottom: 20px;
}

.feature-block h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}

.feature-block p {
    color: var(--text-secondary);
}

/* Modernized Accordion */
.faqs-modern-section {
    padding: 120px 10%;
}

.modern-accordion {
    max-width: 800px;
    margin: 0 auto;
}

.acc-card {
    background: var(--bg-surface);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.acc-trigger {
    width: 100%;
    padding: 24px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trigger-icon {
    width: 20px;
    height: 20px;
    position: relative;
}

.trigger-icon::before, .trigger-icon::after {
    content: '';
    position: absolute;
    background-color: var(--text-primary);
    transition: transform 0.3s ease;
}

.trigger-icon::before {
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
}

.trigger-icon::after {
    top: 0;
    left: 9px;
    width: 2px;
    height: 20px;
}

.acc-card.open .trigger-icon::after {
    transform: rotate(90deg);
    opacity: 0;
}

.acc-card.open .trigger-icon::before {
    transform: rotate(180deg);
    background-color: var(--accent);
}

.acc-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.acc-panel p {
    padding: 0 24px 24px 24px;
    color: var(--text-secondary);
}

/* Direct Contact Hub */
.contact-hub-section {
    padding: 120px 10%;
    background: radial-gradient(circle at 20% 80%, rgba(0, 255, 204, 0.05) 0%, transparent 40%);
    border-top: 1px solid var(--border-color);
}

.hub-container {
    max-width: 1200px;
    margin: 0 auto;
}

.hub-container h2 {
    font-size: clamp(28px, 4vw, 44px);
    max-width: 700px;
    margin-bottom: 60px;
    font-weight: 800;
}

.hub-channels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.channel {
    display: flex;
    flex-direction: column;
}

.channel-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 700;
}

.channel-link {
    font-size: 24px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 800;
    transition: color 0.3s;
}

.channel-link:hover {
    color: var(--accent);
}

.channel-value {
    font-size: 24px;
    font-weight: 800;
}

/* Minimal Footer */
.minimal-footer {
    padding: 40px 10%;
    border-top: 1px solid var(--border-color);
}

.footer-wrap {
    max-width: 1200px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}