/* Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #0d141a;
    line-height: 1.5;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.3;
}

p {
    margin-bottom: 16px;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
}

.btn-outline:hover {
    background-color: #000;
    color: #fff;
}

.btn-solid {
    background-color: #000;
    border: 1px solid #000;
    color: #fff;
}

.btn-solid:hover {
    background-color: #1d1e20;
}

.btn-text {
    font-weight: 600;
    text-decoration: underline;
    color: #0d141a;
}

/* Top Bar */
.top-bar {
    background-color: #2C2C2C;
    color: #ffffff;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 700;
}

/* Header */
.header {
    background-color: rgba(252, 237, 243, 0.46);
    padding: 20px 0;
}

.header-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: block;
    max-width: 60%;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 16px;
    color: rgb(29, 30, 32);
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: #000;
    font-weight: 600;
}

.header-icons .cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(29, 30, 32);
}

/* Hero Section */
.hero {
    background-color: #fcedf3;
    padding: 80px 16px;
    text-align: center;
}

.hero-container {
    max-width: 1240px;
    margin: 0 auto;
}

.hero-subtitle {
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-reviews {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #d4af37;
    font-size: 24px;
}

/* Collections Section */
.collections {
    padding: 80px 16px;
}

.collections-container {
    max-width: 1240px;
    margin: 0 auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.card {
    text-align: left;
}

.card-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    margin-bottom: 24px;
    border-radius: 4px;
}

.card-body h3 {
    font-size: 24px;
}

/* Customization Section */
.customization {
    padding: 80px 16px;
    background-color: #f9f9f9;
}

.split-container {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-image img {
    width: 100%;
    border-radius: 4px;
}

.split-content .subtitle {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    color: #666;
}

.split-content h2 {
    font-size: 48px;
}

.split-content p {
    font-size: 18px;
    margin-bottom: 32px;
}

/* Stats Section */
.stats {
    padding: 80px 16px;
    background-color: #2C2C2C;
    color: #fff;
    text-align: center;
}

.stats-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 80px;
}

.stat-item h2 {
    font-size: 56px;
    margin-bottom: 8px;
}

.stat-item p {
    color: #ccc;
    font-size: 18px;
}

/* Footer */
.footer {
    padding: 80px 16px;
    background-color: #5C519A;
    color: rgba(255, 255, 255, 0.8);
}

/* white badge so the logo reads cleanly on the purple footer */
.footer-logo {
    display: inline-block;
    background: #fff;
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 22px;
}
.footer-logo img {
    display: block;
    height: 56px;
    width: auto;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand h3 {
    font-size: 24px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-brand a {
    color: #fff;
    text-decoration: underline;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links a:hover {
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero {
        padding: 40px 16px;
    }

    .hero-title {
        margin-bottom: 16px;
    }
    
    .split-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .split-content h2 {
        font-size: 32px;
    }
    
    .split-content p {
        font-size: 16px;
    }
    
    .stats {
        padding: 40px 16px;
    }

    .stats-container {
        flex-direction: column;
        gap: 30px;
    }

    .stat-item h2 {
        font-size: 40px;
    }
    
    .footer {
        padding: 40px 16px;
    }

    .footer-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
        gap: 24px;
    }
    
    .card-img {
        height: 250px;
    }
    
    .collections {
        padding: 40px 16px;
    }
}

/* Hamburger and Overlays */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: rgb(29, 30, 32);
    padding: 8px; /* Increases touch target */
}

.mobile-menu {
    position: fixed;
    top: 0; left: -100%;
    width: 300px; max-width: 80vw; height: 100vh;
    background-color: #ffffff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    padding: 60px 40px;
    box-shadow: 4px 0 25px rgba(0,0,0,0.15);
    transition: left 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
}
.mobile-menu.open {
    left: 0;
}
.mobile-menu a, .mobile-cart-btn {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 300;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-cart-btn:hover {
    color: #888;
}
.mobile-cart-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    border-top: 1px solid #eaeaea;
    padding-top: 40px;
}
.mobile-menu .close-menu-btn {
    position: absolute;
    top: 24px; right: 24px;
    background: none; border: none; font-size: 32px; 
    font-weight: 300; cursor: pointer; color: #111;
}

.cart-overlay {
    position: fixed;
    top: 0; right: -100%;
    width: 380px; max-width: 90vw; height: 100vh;
    background-color: #fff;
    z-index: 1001;
    box-shadow: -4px 0 25px rgba(0,0,0,0.15);
    transition: right 0.4s cubic-bezier(0.77, 0.2, 0.05, 1);
    padding: 40px;
}
.cart-overlay.open {
    right: 0;
}
.cart-overlay h2 { 
    margin-bottom: 24px; 
    font-size: 28px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cart-overlay .close-cart-btn {
    position: absolute;
    top: 24px; right: 24px;
    background: none; border: none; font-size: 32px; 
    font-weight: 300; cursor: pointer; color: #111;
}
.overlay-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.overlay-bg.open {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }
    .header-icons .cart-btn {
        display: none;
    }
    .mobile-menu {
        width: 85%;
        max-width: 320px;
        padding: 50px 24px;
    }
    .mobile-menu a, .mobile-cart-btn {
        font-size: 20px;
    }
    .cart-overlay {
        width: 85%;
        max-width: 380px;
        padding: 32px 24px;
    }
}


/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fadeIn 1.2s ease-out forwards;
}

.hero {
    overflow: hidden;
}

/* ===== Single-page enhancements (identity unchanged) ===== */
html {
    scroll-behavior: smooth;
}

/* offset so in-page anchors don't hide under the header */
section[id] {
    scroll-margin-top: 24px;
}

/* ===== Polish pass: hero balance, gallery sizing, mobile ===== */

/* Home hero: keep the split vertically centred and readable */
#home .split-content { align-self: center; }

/* ===== Hero image: arched editorial portrait (same identity) ===== */
.hero-visual {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin-left: auto;   /* sit toward the outer edge of the split */
}
.hero-arch {
    position: relative;
    z-index: 1;
    aspect-ratio: 3 / 4;
    border-radius: 220px 220px 20px 20px;
    overflow: hidden;
    box-shadow: 0 26px 55px rgba(0, 0, 0, 0.22);
}
.hero-arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.hero-visual:hover .hero-arch img { transform: scale(1.05); }

/* gold arched outline, offset behind for depth */
.hero-arch-frame {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 2px solid #d4af37;
    border-radius: 220px 220px 20px 20px;
    transform: translate(16px, 16px);
}
/* small gold dot accent, top-left of the arch */
.hero-visual::before {
    content: "";
    position: absolute;
    top: 18px;
    left: -14px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d4af37;
    z-index: 2;
}

/* Gallery: masonry columns — every image at its natural proportion, no cropping */
.gallery-grid {
    column-count: 4;
    column-gap: 16px;
}
.gallery-grid > div {
    break-inside: avoid;
    margin: 0 0 16px;
    width: 100%;
    aspect-ratio: auto !important;
}
.gallery-grid > div img {
    height: auto !important;
    display: block;
}
@media (max-width: 1100px) { .gallery-grid { column-count: 3; } }

/* Contact info: three across on desktop, stacked on phones */
.contact-grid { grid-template-columns: repeat(3, 1fr); }

/* ===== Factory showcase (3 behind-the-scenes photos) ===== */
.factory {
    padding: 80px 16px;
    background-color: #f9f9f9;
}
.factory-grid {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.factory-card {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}
.factory-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.factory-card:hover img { transform: scale(1.07); }
.factory-card figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 22px 20px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(to top, rgba(20, 12, 16, 0.82) 0%, rgba(20, 12, 16, 0) 100%);
}
.factory-card figcaption::before {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    background: #d4af37;
    margin-bottom: 10px;
}

/* ===== Collections: text-over-image cards (no button, no link) ===== */
.collection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.collection-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
    isolation: isolate;
}
.collection-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.collection-card:hover img { transform: scale(1.08); }

/* dark scrim so the text stays readable over any photo */
.collection-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 26px;
    background: linear-gradient(to top,
        rgba(20, 12, 16, 0.82) 0%,
        rgba(20, 12, 16, 0.45) 38%,
        rgba(20, 12, 16, 0) 68%);
    transition: background 0.4s ease;
}
.collection-card:hover .collection-overlay {
    background: linear-gradient(to top,
        rgba(20, 12, 16, 0.88) 0%,
        rgba(20, 12, 16, 0.55) 45%,
        rgba(20, 12, 16, 0.08) 80%);
}

/* gold serial number, top corner */
.collection-index {
    position: absolute;
    top: 22px;
    left: 26px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #d4af37;
}
.collection-index::after {
    content: "";
    display: inline-block;
    width: 26px;
    height: 2px;
    background: #d4af37;
    vertical-align: middle;
    margin-left: 10px;
}

.collection-text { transform: translateY(6px); }
.collection-text h3 {
    position: relative;
    color: #fff;
    font-size: 26px;
    line-height: 1.2;
    margin: 0 0 10px;
    padding-top: 16px;
}
/* gold accent bar that grows on hover */
.collection-text h3::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: #d4af37;
    transition: width 0.4s ease;
}
.collection-card:hover .collection-text h3::before { width: 72px; }

.collection-text p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    /* tighter, cleaner spacing on phones */
    .hero { padding: 32px 16px; }
    .collections { padding: 48px 16px; }
    .customization { padding: 48px 16px; }

    /* home hero: arched portrait first, centred and sensibly sized */
    #home .split-container { gap: 24px; }
    #home .split-image { order: -1; }
    .hero-visual { max-width: 300px; margin: 0 auto; }

    .card-img { height: 300px; }

    /* two masonry columns on mobile */
    .gallery-grid { column-count: 2; column-gap: 12px; }
    .gallery-grid > div { margin-bottom: 12px; }

    /* contact info cards stack into one clean column */
    .contact-grid { grid-template-columns: 1fr; }

    /* factory photos stack on phones */
    .factory-grid { grid-template-columns: 1fr; gap: 16px; }

    /* collection cards: single column, wider aspect so they aren't too tall */
    .collection-grid { grid-template-columns: 1fr; gap: 16px; }
    .collection-card { aspect-ratio: 4 / 3; }
    .collection-text h3 { font-size: 24px; }

    /* hero arch: smaller gold-frame offset so it stays on screen */
    .hero-arch-frame { transform: translate(11px, 11px); }

    .stats-container { gap: 40px; }
}
