/* --- CORE ENVIRONMENT VARIABLES & INITIALIZATION --- */
:root {
    /* Hot Pink & Dark Charcoal Accent Palette */
    --color-primary: #e6007e;         /* Vibrant Hot Pink */
    --color-primary-dark: #b80064;    /* Dark Hot Pink Hover State */
    --color-secondary: #ff66b2;      /* Soft Accent Pink */
    --color-dark: #121212;            /* Deep Black Base */
    --color-dark-surface: #1e1e1e;    /* Dark Card Surface */
    --color-light: #f8f9fa;           /* Off-White Light Background */
    --color-white: #ffffff;
    --color-border: #2e2e2e;          /* Border Accent */
    --color-text-dark: #121212;
    --color-text-muted: #b0b0b0;

    /* Dynamic Typography Tokens */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Global Layout Constraints */
    --container-max-width: 1200px;
}

/* --- ACCESSIBLE SKIP-TO-CONTENT LINK --- */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 10px;
    background: var(--color-primary, #e6007e);
    color: #ffffff;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 99999;
    transition: top 0.2s ease-in-out;
}

.skip-to-content:focus {
    top: 0;
    outline: 2px solid #ffffff;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    color: var(--color-dark);
    background-color: var(--color-white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

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

/* --- BUTTONS & CONTROLS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-secondary:hover {
    background-color: var(--color-white);
    color: var(--color-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.15rem;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand-wrapper {
    display: flex;
    align-items: center;
}

.brand-logo {
    display: inline-block;
    text-decoration: none;
}

.header-logo-img {
    height: 65px;
    width: auto;
    max-width: 100%;
    display: block;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.brand-logo:hover .header-logo-img {
    transform: scale(1.03);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--color-primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-phone {
    text-decoration: none;
    color: var(--color-dark);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- HARDWARE-ACCELERATED ANIMATIONS & STAGGER DELAYS --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

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

/* Column Staggering Delays for Grid Rows */
.delay-1,
:nth-child(3n+2).scroll-reveal {
    transition-delay: 0.15s;
}

.delay-2,
:nth-child(3n+3).scroll-reveal {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* --- HERO SECTION --- */
.hero-section {
    background: linear-gradient(rgba(18, 18, 18, 0.85), rgba(18, 18, 18, 0.85)), 
                url("../img/bg-hero-rustic-cherry-kitchen.webp") center/cover no-repeat;
    color: var(--color-white);
    padding: 120px 0;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    margin-bottom: 15px;
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    margin-bottom: 30px;
    color: #e0e0e0;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* --- SECTION COMMON LAYOUT --- */
.page-section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    color: var(--color-dark);
    margin-bottom: 15px;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 40px;
    color: #555555;
    font-size: 1.05rem;
}

/* --- OUR STORY SECTION --- */
.story-section-bg {
    background: linear-gradient(rgba(12, 12, 12, 0.92), rgba(12, 12, 12, 0.92)), 
                url('../img/bg-hero-white-oak-kitchen.webp') center/cover fixed;
    color: var(--color-white);
}

.story-section-bg .section-title {
    color: var(--color-white);
}

.story-section-bg .section-subtitle {
    color: #d0d0d0;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.story-card.dark-card {
    background-color: var(--color-dark-surface);
    color: #ffffff;
    padding: 35px;
    border-left: 4px solid var(--color-primary);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.story-card.dark-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.story-card.dark-card p {
    color: #f0f0f0;
    font-size: 1rem;
    line-height: 1.7;
}

.story-banner {
    margin-top: 10px;
}

.story-banner blockquote {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #ffffff;
    font-style: italic;
    position: relative;
}

.brand-quote-icon {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-right: 8px;
}

/* --- INTERACTIVE 9-TILE PORTFOLIO GRID --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.portfolio-tile {
    position: relative;
    aspect-ratio: 4 / 3;
    background-color: var(--color-dark-surface);
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.portfolio-tile-inner {
    width: 100%;
    height: 100%;
}

.portfolio-tile-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-tile:hover .portfolio-tile-inner img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 18, 18, 0.88);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-tile:hover .portfolio-overlay,
.portfolio-tile:focus-within .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.25rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.portfolio-overlay .view-btn {
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-weight: 600;
}

/* --- SERVICES MATRIX --- */
.bg-light {
    background-color: var(--color-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.ui-content-card {
    padding: 35px 30px;
    background: var(--color-white);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ui-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.ui-content-card h3 {
    color: var(--color-dark);
    margin-bottom: 15px;
    font-size: 1.25rem;
    border-bottom: 3px solid var(--color-primary);
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ui-content-card h3 i {
    color: var(--color-primary);
}

.ui-content-card p {
    color: #444444;
}

/* --- CLIENT REVIEWS --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.review-card {
    background: var(--color-light);
    padding: 30px;
    border-top: 4px solid var(--color-primary);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-card blockquote {
    font-style: italic;
    color: #333333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.review-author {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--color-primary);
}

/* --- CONTACT SECTION --- */
.contact-section-bg {
    background: linear-gradient(rgba(18, 18, 18, 0.94), rgba(18, 18, 18, 0.94)), 
                url('../img/bg-hero-red-oak-kitchen.webp') center/cover fixed;
    color: var(--color-white);
    text-align: center;
}

.contact-section-bg .section-title {
    color: var(--color-white);
}

.contact-section-bg .section-subtitle {
    color: #d0d0d0;
}

.contact-direct-box {
    max-width: 700px;
    margin: 0 auto;
    background: var(--color-dark-surface);
    padding: 45px 30px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-phone-highlight {
    margin: 25px 0 35px;
}

.contact-phone-link {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--color-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: color 0.2s ease;
}

.contact-phone-link:hover {
    color: var(--color-primary);
}

.contact-phone-subtext {
    color: #b0b0b0;
    margin-top: 8px;
    font-size: 0.95rem;
}

.contact-details-secondary {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    border-top: 1px solid var(--color-border);
    padding-top: 25px;
    margin-top: 25px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 1rem;
}

.contact-detail-item i {
    color: var(--color-primary);
}

.contact-detail-item a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail-item a:hover {
    color: var(--color-primary);
}

.tagline-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.tagline-badge {
    background: rgba(230, 0, 126, 0.15);
    border: 1px solid var(--color-primary);
    color: var(--color-white);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-style: italic;
}

/* --- FOOTER LAYOUT & CONTRAST --- */
.site-footer {
    background-color: var(--color-dark, #121212) !important;
    color: #ffffff !important;
    padding-top: 60px;
    clear: both;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-col h3, 
.footer-col h4 {
    color: var(--color-primary, #e6007e) !important;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.footer-col p,
.footer-col .tagline,
.footer-col .location {
    color: #e0e0e0 !important;
    margin-bottom: 10px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-primary, #e6007e) !important;
}

.footer-col .action-link {
    color: #ffffff !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.footer-col .action-link i {
    color: var(--color-primary, #e6007e);
}

.footer-bottom {
    background-color: #000000 !important;
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #888888 !important;
    border-top: 1px solid #222222;
}

/* --- LIGHTBOX MODAL --- */
.lightbox-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    background: #121212;
    margin-bottom: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.is-active {
    visibility: visible;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.lightbox-content {
    position: relative;
    background: #1e1e1e;
    color: #ffffff;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    z-index: 10000;
    border-radius: 6px;
    border: 1px solid #333333;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

.lightbox-image-placeholder {
    height: 250px;
    background: #121212;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--color-primary, #e6007e);
    margin-bottom: 20px;
    border-radius: 4px;
}











/* --- MOBILE NAVIGATION TOGGLE BUTTON (Hidden on Desktop) --- */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--color-dark, #121212);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    color: var(--color-primary, #e6007e);
}

/* --- MOBILE RESPONSIVE BREAKPOINTS --- */


/* --- CLEAN MOBILE HEADER CSS --- */
@media (max-width: 850px) {
    /* Main Header Flex Container */
    .header-inner {
        display: flex !important;
        flex-direction: row !important; /* Forces side-by-side top row */
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    /* Brand Logo Wrapper (Left) */
    .brand-wrapper {
        flex: 0 1 auto !important;
        max-width: calc(100% - 60px) !important;
    }

    .header-logo-img {
        max-height: 48px !important;
        width: auto !important;
    }

    /* Hamburger Toggle Button (Right) */
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 2 !important;
        margin: 0 !important;
        padding: 6px !important;
        font-size: 1.6rem;
        flex-shrink: 0 !important;
    }

    /* Action Buttons Row (Below Top Bar) */
    .header-actions {
        width: 100% !important;
        order: 3 !important;
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 8px;
        padding-top: 10px;
        border-top: 1px dashed var(--color-border, #eeeeee);
    }

    /* Slide-Down Navigation Menu */
    .main-nav {
        display: none;
        width: 100% !important;
        order: 4 !important;
        background-color: var(--color-white, #ffffff);
        border-top: 1px solid var(--color-border, #eeeeee);
        padding: 15px 0 10px;
        margin-top: 10px;
    }

    .main-nav.is-open {
        display: block !important;
        animation: slideDownMenu 0.3s ease forwards;
    }

    .nav-list {
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
    }

    .nav-link {
        font-size: 1.1rem;
        padding: 6px 0;
    }

    /* Stack Footer Columns Vertically */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
        text-align: left;
    }

    .footer-col {
        width: 100% !important;
    }
}

/* Clear out the old conflicting 600px header flex-direction override */
@media (max-width: 600px) {
    .header-inner {
        flex-direction: row !important;
    }
}



@media (max-width: 480px) {
    .header-logo-img {
        height: 48px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .contact-phone-link {
        font-size: 1.6rem;
    }
}

/* Keyframe for Smooth Mobile Menu Dropdown */
@keyframes slideDownMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}











/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 992px) {
    .portfolio-grid,
    .services-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .story-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .portfolio-grid,
    .services-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }



    .nav-list {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-cta-group {
        flex-direction: column;
    }
}