/* 
    HARVEY'S BESPOKE - ARCHITECTURAL PLUMBING 
    Premium Edition
*/

:root {
    --midnight: #020617;
    --ice: #F8FAFC;
    --blue: #3B82F6;
    --blue-dark: #1D4ED8;
    --zinc: #71717a;
    --zinc-light: #a1a1aa;
    --white: #FFFFFF;
    
    /* Fluid Typography */
    --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
    --fs-lg: clamp(1.25rem, 1.1rem + 0.5vw, 1.75rem);
    --fs-xl: clamp(2.5rem, 2rem + 3vw, 5rem);
    --fs-huge: clamp(4rem, 3rem + 8vw, 12rem);
    
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --container-max: 1440px;
}

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

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-base);
    background-color: var(--midnight);
    color: var(--ice);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

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

.text-blue {
    color: var(--blue);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 5vw;
}

/* Loader Screen */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--midnight);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-brand .brand-main {
    font-size: 2rem;
    letter-spacing: 0.5em;
    animation: pulseLabel 2s infinite ease-in-out;
}

.loader-bar {
    width: 200px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.loader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background-color: var(--blue);
    animation: loaderMove 2s infinite cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pulseLabel {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes loaderMove {
    0% { left: -40%; }
    100% { left: 100%; }
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Navigation */
.nav-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem 0;
    mix-blend-mode: difference;
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5vw;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand-main {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.brand-sub {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    color: var(--blue);
}

.nav-desktop {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    opacity: 0.7;
}

.nav-link:hover {
    opacity: 1;
    color: var(--blue);
}

.btn-outline {
    padding: 0.8rem 2rem;
    border: 1px solid var(--ice);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.btn-outline:hover {
    background-color: var(--ice);
    color: var(--midnight);
}

/* Hero Section */
.hero-bespoke {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 10vh;
    overflow: hidden;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(100%) contrast(120%);
    z-index: -2;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--fs-huge);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.02);
    z-index: -1;
    user-select: none;
    pointer-events: none;
    white-space: nowrap;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.hero-main-content {
    max-width: 900px;
}

.hero-meta {
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--blue);
    margin-bottom: 2rem;
    display: block;
}

.hero-title {
    font-size: var(--fs-xl);
    margin-bottom: 2rem;
}

.hero-desc {
    font-size: var(--fs-lg);
    font-weight: 300;
    color: var(--zinc-light);
    max-width: 600px;
    margin-bottom: 3rem;
}

.btn-primary-bespoke {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem 3rem;
    background-color: var(--blue);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.1em;
}

.btn-primary-bespoke:hover {
    background-color: var(--blue-dark);
    gap: 3rem;
}

.btn-icon {
    width: 24px;
    height: 24px;
}

/* Section Label */
.section-label {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--blue);
    margin-bottom: 3rem;
    padding-left: 4rem;
    position: relative;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 3rem;
    height: 1px;
    background-color: var(--blue);
}

/* Bento Grid */
.section-services {
    padding: 10rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.bento-item {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.bento-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    filter: grayscale(100%);
    transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.bento-item:hover {
    border-color: var(--blue);
}

.bento-item:hover .bento-image {
    opacity: 0.25;
    transform: scale(1.05);
    filter: grayscale(0%);
}

.bg-blue {
    background-color: var(--blue);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-medium {
    grid-column: span 2;
}

.bento-small {
    grid-column: span 1;
}

.bento-wide {
    grid-column: span 2;
}

.bento-full {
    grid-column: span 4;
}

.bento-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    z-index: 1;
}

.bento-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bento-icon {
    position: absolute;
    top: 2rem;
    left: 2rem;
    width: 32px;
    height: 32px;
    color: var(--blue);
    z-index: 2;
}

.flex-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
}

.bento-icon-large {
    width: 64px;
    height: 64px;
    color: var(--blue);
    opacity: 0.2;
}

/* Spec Section */
.section-spec {
    padding: 10rem 0;
    background-color: var(--white);
    color: var(--midnight);
}

.section-spec .section-label {
    color: var(--midnight);
}

.section-spec .section-label::before {
    background-color: var(--midnight);
}

.spec-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8vw;
    align-items: start;
}

.spec-info h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.spec-info p {
    font-size: 1.2rem;
    max-width: 500px;
}

.spec-data {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #e5e7eb;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.spec-key {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.spec-val {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

/* Proof Section */
.section-proof {
    padding: 10rem 0;
}

.proof-slider {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.proof-card {
    padding: 4rem;
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--blue);
}

.proof-card p {
    font-size: 1.5rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 2rem;
}

.proof-author {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--blue);
}

/* Contact Section */
.section-contact {
    padding: 10rem 0;
    background-color: var(--midnight);
}

.contact-bespoke-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10vw;
}

.contact-map-mini {
    margin-top: 3rem;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(255, 255, 255, 0.02);
}

.massive-text {
    font-size: var(--fs-xl);
    margin-top: 2rem;
}

.contact-form-bespoke {
    padding-top: 5rem;
}

.input-group {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group label {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--blue);
    font-weight: 700;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    color: var(--ice);
    font-size: 1.2rem;
    font-family: inherit;
    width: 100%;
    transition: var(--transition-smooth);
}

.input-group input:focus {
    outline: none;
    border-bottom-color: var(--blue);
}

.btn-submit-bespoke {
    width: 100%;
    padding: 2rem;
    background-color: var(--blue);
    color: var(--white);
    border: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-submit-bespoke:hover {
    background-color: var(--white);
    color: var(--midnight);
}

/* Footer */
.footer-bespoke {
    padding: 8rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-phone {
    font-size: 2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--blue);
}

.footer-legal {
    text-align: right;
    font-size: 0.7rem;
    opacity: 0.5;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 4rem;
    height: 4rem;
    background-color: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.4);
    transition: var(--transition-smooth);
    animation: floatPulse 4s infinite ease-in-out;
}

.floating-call-btn i {
    width: 1.5rem;
    height: 1.5rem;
}

.floating-call-btn:hover {
    transform: scale(1.1);
    background-color: var(--white);
    color: var(--midnight);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.btn-tooltip {
    position: absolute;
    right: 120%;
    background-color: var(--midnight);
    color: var(--ice);
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    transition: var(--transition-smooth);
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-call-btn:hover .btn-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@keyframes floatPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Tablet */
@media (max-width: 1024px) {
    .spec-grid, .contact-bespoke-grid, .footer-grid {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .footer-legal {
        text-align: left;
    }
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger {
    width: 2rem;
    height: 1px;
    background-color: var(--ice);
    position: relative;
    transition: var(--transition-smooth);
}

.burger::before, .burger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--ice);
    left: 0;
    transition: var(--transition-smooth);
}

.burger::before { top: -8px; }
.burger::after { top: 8px; }

.mobile-toggle.active .burger { background-color: transparent; }
.mobile-toggle.active .burger::before { transform: rotate(45deg); top: 0; }
.mobile-toggle.active .burger::after { transform: rotate(-45deg); top: 0; }

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-desktop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--midnight);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transform: translateY(-100%);
        transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: 1000;
        mix-blend-mode: normal;
    }

    .nav-desktop.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 2rem;
    }

    /* Refined Mobile Spacing */
    .hero-bespoke, 
    .section-services, 
    .section-spec, 
    .section-proof, 
    .section-contact {
        padding: 5rem 0;
    }

    .hero-bespoke {
        height: auto;
        min-height: 80vh;
        text-align: center;
    }

    .hero-main-content {
        margin: 0 auto;
    }

    .hero-bg-text {
        font-size: 6rem;
        opacity: 0.01;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-desc {
        margin: 0 auto 3rem;
    }

    .hero-cta-group {
        display: flex;
        justify-content: center;
    }

    .section-label {
        padding-left: 2rem;
        margin-bottom: 2rem;
    }

    .section-label::before {
        width: 1.5rem;
    }

    .bento-icon {
        left: auto;
        right: 2rem;
    }

    .flex-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .spec-info h2, .location-info h2 {
        font-size: 2.5rem;
    }

    .location-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-container {
        height: 350px;
    }

    .proof-slider {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .proof-card {
        padding: 2rem;
    }

    .proof-card p {
        font-size: 1.2rem;
    }

    .contact-form-bespoke {
        padding-top: 2rem;
    }

    .contact-map-mini {
        height: 250px;
        margin-top: 2rem;
    }

    .massive-text {
        font-size: 3rem;
    }

    .floating-call-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .btn-tooltip {
        display: none;
    }

    .footer-grid {
        text-align: center;
    }

    .footer-phone {
        font-size: 1.5rem;
    }

    .footer-legal {
        text-align: center;
        margin-top: 2rem;
    }

    body.no-scroll {
        overflow: hidden;
    }
}
