/* Main Homepage Styles */

/* --- Navigation --- */
/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.4s ease;
    /* Default: White Background, Dark Text (Content Pages) */
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text-main);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* Navbar Content Layout */
.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-left,
.navbar-right {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-links {
    display: flex;
    gap: var(--space-md);
}

/* Transparent Variant (Hero Pages: Home, Heating) */
.navbar-transparent {
    background: transparent;
    color: var(--color-surface-light);
    backdrop-filter: none;
    box-shadow: none;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
    /* Inherit color from navbar */
}

.hamburger-menu .line {
    width: 24px;
    height: 2px;
    background-color: currentColor;
    display: block;
    transition: all 0.3s ease;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }

    .hamburger-menu {
        display: flex;
    }

    .navbar-content {
        padding: 0 var(--space-sm);
    }
}

/* Scrolled State: Always White/Dark */
.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
    color: var(--color-text-main) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-link {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    position: relative;
    color: inherit;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.brand-logo {
    letter-spacing: 0.2em;
    font-family: var(--font-heading);
    line-height: 0.8;
    /* Tighten height to prevent drop */
    margin-top: -4px;
    /* Optical lift */
    display: inline-block;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ... skipped lines ... */
/* --- Contact Modal & Button --- */
.btn-contact-nav {
    background-color: transparent;
    color: inherit;
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    margin-top: -2px;
    /* Optical lift */
}

.btn-contact-nav:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Remove zoom animation from video, it's motion itself */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* Darken for text readability */
}

.hero-subtitle {
    margin: var(--space-sm) 0 var(--space-lg);
    font-weight: 300;
    letter-spacing: 0.05em;
}

.text-white {
    color: var(--color-surface-light);
}

.btn-hero {
    border-color: var(--color-surface-light);
    color: var(--color-surface-light);
}

.btn-hero:hover {
    background: var(--color-surface-light);
    color: var(--color-text-main);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Categories Section --- */
.mb-lg {
    margin-bottom: var(--space-lg);
}

.mt-sm {
    margin-top: var(--space-sm);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    position: relative;
    height: 600px;
    /* Tall cards */
    overflow: hidden;
    display: block;
}

.card-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover .card-img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
}

.category-card:hover .card-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

.btn-text {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.category-card:hover .btn-text {
    border-color: currentColor;
}

/* --- Philosophy Section --- */
.max-w-lg {
    max-width: 800px;
}

.max-w-md {
    max-width: 600px;
}

.tracking-wide {
    letter-spacing: 0.2em;
}

.text-muted {
    color: var(--color-text-muted);
}

/* --- Footer --- */
.bg-dark {
    background-color: var(--color-surface-dark);
}

.grid-footer {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: var(--space-lg);
}

@media (max-width: 768px) {
    .grid-footer {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
}

.footer-link {
    font-size: 0.9rem;
    color: #999;
}

.footer-link:hover {
    color: var(--color-surface-light);
}

.border-t {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.border-b {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.newsletter-form {
    padding-bottom: var(--space-xs);
}

.focus-outline-none:focus {
    outline: none;
}

/* --- Featured Collections --- */
.bg-light {
    background-color: #F3F1ED;
}

.grid-collection {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.reverse-layout {
    grid-template-columns: 1.5fr 1fr;
}

@media (max-width: 900px) {

    .grid-collection,
    .reverse-layout {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .reverse-layout .collection-image {
        order: -1;
        /* Image first on mobile */
    }
}

.collection-image {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.img-zoom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.collection-item:hover .img-zoom {
    transform: scale(1.03);
}

/* --- Contact Modal & Button --- */
.btn-contact-nav {
    background-color: transparent;
    color: inherit;
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid currentColor;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    margin-top: -2px;
    /* Optical lift */
}

.btn-contact-nav:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* Modal Content */
.modal-content {
    background: var(--color-surface-light);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    padding: var(--space-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-overlay.open .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-muted);
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Custom Checkbox/Radio Layout */
.options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.option-item input {
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Cart Modal Styles --- */
.cart-items-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.cart-item-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #f5f5f5;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    margin-bottom: 4px;
}

.cart-item-sub {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.btn-remove {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

.btn-remove:hover {
    color: #e53e3e;
    /* Red for delete */
}

.cart-footer {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding-top: var(--space-md);
}

.empty-cart-msg {
    text-align: center;
    padding: var(--space-xl) 0;
    color: var(--color-text-muted);
}

/* --- Lightbox / Fullscreen View --- */
#lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: zoom-out;
}

#lightbox-modal.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Cursor for Discoverability */
.gallery-img:not(model-viewer) {
    cursor: zoom-in;
}

/* Expand Button */
.btn-expand {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    opacity: 0.8;
}

.btn-expand:hover {
    transform: scale(1.1);
    background: white;
    opacity: 1;
}