/* 1. ROOT & GLOBAL */
:root {
    --bg-dark: #121212;         /* Deep Black */
    --bg-grey: #e8e8e8;         /* High-Contrast Grey */
    --accent-krimson: #9e1b32;
    --text-light: #f4f1ea;
    --font-main: 'Inter', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
    --bg-dark: #121212;
    --bg-cream: #f4f1ea;
    --accent-krimson-dark: #7a1527;
    --text-dark: #121212;   
    --drawer-width: 350px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

html, body {
    width: 100%;
    overflow-x: hidden; /* This kills the horizontal scroll */
    position: relative;
}

/* 2. NAVIGATION */
nav {
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(10px); /* Boutique glass effect */
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-family: var(--font-code);
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--accent-krimson);
}

.nav-controls { display: flex; align-items: center; gap: 20px; }

.btn-nav {
    background-color: var(--accent-krimson);
    color: white !important;
    padding: 10px 22px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    transition: 0.3s ease;
}

.btn-nav:hover { background-color: var(--accent-krimson-dark); }

/* 3. HAMBURGER */
.hamburger {
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-light);
    transition: 0.3s cubic-bezier(0.7, 0, 0.3, 1);
}

.hamburger.is-active span:nth-child(1) { 
    transform: translateY(8.5px) rotate(45deg); background-color: var(--accent-krimson); 
}
.hamburger.is-active span:nth-child(2) { 
    opacity: 0; 
}
.hamburger.is-active span:nth-child(3) { 
    transform: translateY(-8.5px) rotate(-45deg); background-color: var(--accent-krimson); 
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.menu-close:hover {
    color: var(--accent-krimson);
}
/* 4. DRAWER MENU */
.nav-menu {
    position: fixed;
    top: 0;
    right: 0; /* Keep it anchored to the right */
    width: var(--drawer-width);
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    padding: 120px 40px;
    z-index: 2000;
    border-left: 1px solid rgba(255,255,255,0.1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    
   
    transform: translateX(100%); 
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.77, 0.2, 0.05, 1), visibility 0.5s;
}

.nav-menu.active { 
    transform: translateX(0); /* Slides it into view */
    visibility: visible;
}

.nav-menu a {
    font-size: 1.2rem;
    color: var(--text-light);
    text-decoration: none;
    margin-bottom: 25px;
    font-family: var(--font-code);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.nav-menu a:hover { color: var(--accent-krimson); padding-left: 10px; }

/* 5. HERO */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 10%;
    background: linear-gradient(rgba(18, 18, 18, 0.8), rgba(18, 18, 18, 0.8)), 
                url('assets/hero-image1.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.hero h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 20px; }

/* 6. MISSION SECTION */
#mission {
    background-color: var(--bg-cream);
    color: var(--text-dark);
    padding: 120px 10%;
    text-align: center;
}

.mission-content h4 {
    font-family: var(--font-code);
    letter-spacing: 4px;
    color: var(--accent-krimson);
    margin-bottom: 20px;
}

.mission-content h2 { font-size: 2.5rem; max-width: 800px; margin: 0 auto 30px; line-height: 1.2; }

/* 7. SERVICES */
#services {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 60px 5%;
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

.services-card {
    background: white; 
    border-left: 5px solid var(--accent-krimson); 
    border-radius: 4px;
    padding: 40px 25px;
    transition: 0.3s ease;
}

.services-card:hover { transform: translateY(-5px); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.1); }

.services-card h2 { font-family: var(--font-code); color: var(--accent-krimson); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2px; }

.services-card h3 { font-size: 1.8rem; margin: 10px 0 15px; }

/* 8. FOOTER & MOBILE */
footer { padding: 40px; text-align: center; font-size: 0.9rem; color: #666; }

.mobile-cta-bar {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    background: var(--bg-dark);
    padding: 15px;
    z-index: 900;
    border-top: 1px solid var(--accent-krimson);
}

.btn-primary {
    background: var(--accent-krimson);
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
}


#portfolio {
    padding: 100px 5%;
    background-color: var(--bg-dark);
}

/* 9. PORTFOLIO BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-tile {
    position: relative; /* Essential for background placement */
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: 0.4s ease;
}

/* Background Image Layer */
.tile-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: transform 0.6s ease;
}

/* Dark Overlay to make text pop */
.bento-tile::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(18, 18, 18, 0.95) 20%, rgba(18, 18, 18, 0.2) 100%);
    z-index: 2;
}

.tile-content {
    position: relative;
    z-index: 3; /* Keeps text above image and overlay */
}

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

.bento-tile:hover .tile-bg {
    transform: scale(1.1); /* Zoom effect */
}

.bento-tile:hover {
    border-color: var(--accent-krimson);
    transform: translateY(-5px);
}
.split-section {
    display: flex;
    min-height: 80vh;
    width: 100%;
}

.split-text {
    flex: 1;
    padding: 80px 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pillar Navigation */
.pillar-nav {
    display: flex;
    gap: 20px;
    margin: 40px 0;
}

.pillar-link {
    font-family: var(--font-code);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 15px;
    border: 1px solid transparent;
    transition: 0.3s;
    color: #888;
}

.pillar-link.active {
    border: 1px solid var(--accent-krimson);
    color: var(--accent-krimson);
}

.split-image {
    flex: 1;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.pillar-content {
    transition: opacity 0.4s ease, transform 0.4s ease;
    opacity: 1;
    transform: translateY(0);
}

.pillar-content.is-hidden {
    opacity: 0;
    transform: translateY(10px); /* The "slide" part */
}

li {
    list-style: none;
    font-size: 1.2rem;
}


/* MISSION STATEMENT */
#mission {
    padding: 120px 10%;
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Side-by-side layout */
    gap: 80px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    text-align: left; /* Boutique sites usually avoid center-aligning long text */
}

.definition-side {
    border-right: 1px solid rgba(0,0,0,0.1);
    padding-right: 80px;
}

.phonetic {
    font-family: var(--font-code);
    font-size: 1rem;
    color: var(--accent-krimson);
    font-weight: 400;
}

.integrity-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.mission-text {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.label {
    font-family: var(--font-code);
    letter-spacing: 3px;
    color: var(--accent-krimson);
    margin-bottom: 15px;
    display: block;
}



/* TESTIMONIAL SPECIFICS */
.quote-icon { 
    font-size: 5rem; 
    color: var(--accent-krimson); 
    font-family: serif; line-height: 1; 
}
.testimonial-body { 
    font-size: 1.5rem; 
    font-style: italic; 
    margin-bottom: 20px; 
    color: var(--text-dark); 
}
.testimonial-author { 
    font-family: var(--font-code); 
    text-transform: uppercase; 
    letter-spacing: 2px; font-size: 0.8rem; 
}
#testimonials{ 
    padding: 120px 10%;
    background-color: var(--bg-cream);
    color: var(--text-dark); 
}




/* FINAL CTA (The Jigsaw Pattern look) */
#contact {
    padding: 120px 10%;
    background-color: var(--bg-dark);
    text-align: center;
}

.contact-container h2 {
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input, .contact-form textarea {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 15px;
    color: white;
    font-family: var(--font-main);
    border-radius: 4px;
}

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

#contact {
    padding: 100px 5%;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}



/* Responsive Fix for Mobile */
@media (max-width: 992px) {
    .mission-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .definition-side {
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.1);
        padding-right: 0;
        padding-bottom: 40px;
    }
}

/* Responsive Fix */
@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 350px;
    }
    .bento-tile.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ==========================================
   BUTTON GLOBAL RESTYLE & CONTAINMENT
   ========================================== */

/* 1. CONTAINMENT (Main fix) */
.btn-nav, 
button[type="submit"] {
    display: inline-block; /* Essential: Allows padding to define size, prevents stretching */
    width: auto; /* Buttons only take up the space their text needs */
    max-width: 90%; /* Safety net: Button never exceeds 90% of screen width */
    margin: 10px auto; /* Centers the button if needed */
}

/* 2. BOUTIQUE DESIGN REFINEMENT */
.btn-nav,
button[type="submit"] {
    background: transparent;
    border: 2px solid var(--accent-krimson); /* The signature red edge */
    color: var(--text-light);
    font-family: var(--font-accent); /* Keep it on brand */
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem; /* Professional, understated size */
    letter-spacing: 0.15rem; /* Wide tracking for exclusivity */
    
    /* Perfect Padding & Transition */
    padding: 16px 32px; /* Sufficient visual weight */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); /* Professional animation curve */
    
    /* Fixes potential mobile text wrapping */
    white-space: nowrap; 
}

/* 3. PROFESSIONAL HOVER STATE */
.btn-nav:hover,
button[type="submit"]:hover {
    background-color: var(--accent-krimson);
    color: #fff;
    border-color: var(--accent-krimson);
    transform: translateY(-2px); /* Subtle elevation */
    box-shadow: 0 5px 15px rgba(220, 20, 60, 0.2); /* Soft crimson glow */
}

/* ==========================================
   MOBILE RESPONSIVENESS (Breakpoints)
   ========================================== */
@media (max-width: 768px) {
    /* Optional: If you want buttons to be full width on small screens *within* containment */
    
    .btn-nav, 
    button[type="submit"] {
        width: 100%;
        max-width: 400px;
        display: block; 
    }
    
}

.contact-section {
    padding: 100px 5%;
    background-color: var(--bg-dark);
    text-align: center;
}

#quote-form {
    max-width: 600px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: white;
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-krimson);
}

@media (min-width: 1024px) {
    .mobile-cta-bar { display: none; }
    .hero h1 { font-size: 5rem; }
    #services { flex-direction: row; padding: 100px 10%; }
    .services-card { flex: 1; }
}


@media (max-width: 768px) {
    .split-image {
        display: none; /* Removes the image entirely */
    }

    .split-section {
        flex-direction: column;
        min-height: auto; /* Let the text define the height */
    }

    .split-text {
        padding: 60px 10%; /* Tighter padding for mobile screens */
    }
}