/* 
   SORELLA GEMS | Luxury Jewellery Design System
   Color Palette: Cream (#F8F5F0), Beige (#E8DFD4), Gold (#C6A972)
   Typography: Cinzel (Headings), Poppins (Body)
*/

:root {
    --primary: #F8F5F0;
    --secondary: #E8DFD4;
    --accent: #C6A972;
    --text: #2B2B2B;
    --text-muted: #666666;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition-lux: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);

    /* Luxury Spacing Tokens */
    --space-section: 180px;
    --space-container: 100px;
    --space-header-top: 180px;
    --space-header-bottom: 100px;

    /* Mobile Spacing */
    --m-space-section: 80px;
    --m-space-container: 25px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Ensures header never covers section titles */
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .logo {
    font-family: 'Cinzel', serif;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

p {
    font-weight: 300;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-lux);
    cursor: pointer;
}

a:hover {
    color: var(--accent);
}

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

section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    padding-top: 20px; /* Internal buffer */
}

.section-header h2 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: 12px; /* Increased for elite editorial feel */
}

/* --- Shared Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 40px 80px; /* Refined top buffer */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

nav.scrolled {
    padding: 15px 80px;
    background: rgba(248, 245, 240, 0.98);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 1px;
    background: var(--text);
    transition: var(--transition-lux);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Mobile Nav Overlay --- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-lux);
    padding: 40px;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li {
    margin-bottom: 30px;
}

.mobile-nav-links a {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 26px;
    letter-spacing: 8px;
    text-decoration: none;
    color: #2B2B2B !important;
    text-transform: uppercase;
    transition: color 0.3s;
    line-height: 1; /* Reset baseline */
    margin: 0;
    padding: 0;
}

/* Right-aligned Navigation Group */
.nav-container {
    display: flex;
    align-items: center;
    gap: 50px;
    margin: 0;
    padding: 0;
}

.nav-links {
    display: flex;
    gap: 35px;
    align-items: center;
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
}

.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
}

.header-icons svg {
    width: 18px;
    height: 18px;
    fill: #2B2B2B;
    cursor: pointer;
    transition: var(--transition-lux);
}

.header-icons svg:hover {
    fill: var(--accent);
    transform: translateY(-2px);
}

.nav-links a {
    text-decoration: none;
    color: #2B2B2B !important;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    transition: all 0.3s;
    line-height: 1;
}

.nav-links a:hover {
    color: var(--primary) !important;
}

.header-icons {
    display: flex;
    gap: 25px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.header-icons svg {
    width: 18px;
    height: 18px;
    fill: #2B2B2B;
    cursor: pointer;
    transition: opacity 0.3s;
    display: block; /* Remove baseline spacing */
}

.header-icons svg:hover {
    opacity: 0.6;
}

.header-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
    transition: var(--transition-lux);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition-lux);
    transform: translateX(-50%);
}

.nav-links a:hover::after, 
.nav-links a.active::after {
    width: 100%;
}

/* --- Buttons Restore --- */
.btn {
    padding: 16px 40px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 10px;
    font-weight: 600;
    transition: var(--transition-lux);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
}

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

.btn-primary:hover {
    background: var(--accent);
    color: var(--white) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Elite Call to Action Button */
.cta-button {
    background: var(--accent);
    color: var(--white) !important;
    padding: 14px 30px;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: var(--transition-lux);
    border: 1px solid var(--accent);
    display: inline-block;
}

.cta-button:hover {
    background: transparent;
    color: var(--accent) !important;
    box-shadow: 0 10px 30px rgba(198, 169, 114, 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-5px);
}

/* --- Hero Redesign Fix --- */
.hero {
    height: 100vh;
    background: var(--primary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-content {
    width: 50%;
    padding-left: var(--space-container);
    z-index: 2;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Ensure children align left */
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('luxury_jewellery_hero_1777521936202.png');
    background-size: cover;
    background-position: center;
    mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 60%, rgba(0,0,0,0));
}

.hero-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--accent);
    margin-bottom: 25px;
    text-align: left;
}

.hero-divider {
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 35px 0;
    position: relative;
}

.hero-divider::after {
    content: '◇';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background: var(--primary);
    padding-right: 15px;
    font-size: 10px;
    color: var(--accent);
}

.hero-description {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    max-width: 400px;
    margin: 0 0 50px 0;
    color: var(--text-muted);
    text-align: left;
}

/* Trust Bar */
.trust-bar {
    position: absolute;
    bottom: 60px;
    left: var(--space-container);
    display: flex;
    gap: 60px;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(0,0,0,0.1);
}

.trust-icon {
    width: 24px;
    fill: var(--accent);
}

.trust-text {
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.4;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
}

/* --- Dynamic Components --- */
.filter-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 60px;
}

.filter-btn {
    background: transparent;
    border: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px 0;
    transition: var(--transition-lux);
    position: relative;
}

.filter-btn.active, .filter-btn:hover {
    color: var(--accent);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: var(--transition-lux);
}

.filter-btn.active::after {
    width: 100%;
}

/* Modal System */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-lux);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--primary);
    width: 90%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    transform: translateY(30px);
    transition: var(--transition-lux);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
}

/* Floating Elements */
.dynamic-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: var(--white);
    padding: 5px 12px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 120px;
}

.section-header h2 {
    font-size: 48px;
    margin-bottom: 30px;
    position: relative;
    letter-spacing: 6px; /* Increased for luxury feel */
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--accent);
    margin: 35px auto 0; /* More space around the divider */
}

.section-header p {
    font-size: 16px;
    font-style: italic;
    font-family: 'Playfair Display', serif;
    margin-top: 35px;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    background: var(--white);
    padding: 120px 0 60px;
    border-top: 1px solid var(--secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 36px;
    margin-bottom: 30px;
    display: block;
}

.footer-links h4 {
    margin-bottom: 30px;
    font-size: 14px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 15px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition-lux);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 10px;
}

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--primary);
    text-align: center;
    font-size: 11px;
    color: #999;
    letter-spacing: 2px;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsiveness --- */
/* --- Responsiveness Overhaul --- */

@media (max-width: 1200px) {
    .container { padding: 0 60px; }
    .hero-content h1 { font-size: 72px; }
}

@media (max-width: 1024px) {
    :root {
        --space-section: 120px;
    }
    
    .hero-content { width: 70%; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    nav { padding: 25px 40px; }
    nav.scrolled { padding: 15px 40px; }
}

@media (max-width: 768px) {
    :root {
        --space-container: 25px !important;
        --space-section: 80px !important;
    }

    section { padding: var(--space-section) 0 !important; }

    .menu-toggle { display: flex !important; }
    .nav-links, .cta-button { display: none !important; }
    
    .container { padding: 0 var(--space-container) !important; overflow: visible !important; }

    /* Fix Reveal for Mobile */
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .reveal.active {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Hero Responsive */
    .hero {
        height: auto !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 100px !important;
        padding-bottom: 40px !important;
        background: var(--primary) !important;
    }

    .hero-content {
        width: 100% !important;
        padding: 0 var(--space-container) !important;
        text-align: center !important;
        align-items: center !important;
        position: relative !important;
        z-index: 10 !important;
        order: 2 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .hero-content h1 {
        font-size: 38px !important;
        text-align: center !important;
        margin-bottom: 20px !important;
        letter-spacing: 1px !important;
        opacity: 1 !important;
        transform: none !important;
        line-height: 1.2 !important;
    }

    .hero-visual {
        position: relative !important;
        width: 100% !important;
        height: 300px !important;
        order: 1 !important;
        mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent) !important;
        -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent) !important;
        margin-bottom: 30px !important;
        top: 0 !important;
        right: 0 !important;
        display: block !important;
        background-position: center !important;
    }

    .hero-divider {
        margin: 25px auto !important;
    }

    .hero-description {
        margin: 0 auto 40px !important;
        text-align: center !important;
    }

    .hero-btns {
        flex-direction: column !important;
        width: 100% !important;
        gap: 15px !important;
    }

    .btn { width: 100% !important; }

    /* Grid & Flex Stacking */
    .preview-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .preview-card {
        height: 400px !important;
    }

    .preview-overlay {
        padding: 30px !important;
    }

    .preview-info h3 {
        font-size: 24px !important;
    }

    .section-header h2 {
        font-size: 28px !important;
        letter-spacing: 4px !important;
    }

    /* Sustainability / Flex Sections */
    section .container > div[style*="flex"] {
        flex-direction: column !important;
        gap: 40px !important;
    }

    section .container > div[style*="flex"] > div {
        width: 100% !important;
        flex: none !important;
    }

    /* Modal System Mobile */
    .modal-content {
        grid-template-columns: 1fr !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }

    .modal-content > div:first-child {
        height: 250px !important;
    }

    .modal-content > div:last-child {
        padding: 30px !important;
    }

    /* Collections Mobile */
    .collection-row {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .collection-visual {
        width: 100% !important;
        height: 350px !important;
        flex: none !important;
    }

    .collection-text {
        flex: none !important;
    }

    .collection-text h2 {
        font-size: 28px !important;
    }

    /* About Timeline Fix */
    .chapter {
        padding: 60px 0 !important;
        min-height: auto !important;
        position: relative !important;
        display: block !important;
    }

    .chapter-year {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        font-size: 48px !important;
        margin-bottom: 20px !important;
        opacity: 0.3 !important;
        display: block !important;
    }

    .chapter-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
    }

    .chapter-card {
        padding: 30px !important;
        border-left: 3px solid var(--accent) !important;
        background: var(--white) !important;
        width: 100% !important;
    }

    .chapter-img {
        height: 300px !important;
        width: 100% !important;
    }

    /* Contact Page Mobile */
    header .container[style*="grid-template-columns: 1fr 1.2fr"] {
        grid-template-columns: 1fr !important;
        padding-top: 100px !important;
    }

    header .container > div:first-child {
        padding: 40px 0 !important;
        border-left: none !important;
        border-top: 1px solid var(--accent) !important;
    }

    header .container h1 {
        font-size: 42px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center !important;
        gap: 40px !important;
    }

    .footer-info p {
        margin: 0 auto !important;
    }

    .trust-bar-v2 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        margin-top: 40px !important;
    }

    .trust-bar-v2 > div {
        justify-content: center !important;
    }

    /* Additional Fixes for Horizontal Overflow */
    .hero-content h1 {
        word-wrap: break-word;
        max-width: 100%;
        font-size: 36px !important;
        letter-spacing: 2px !important;
    }

    .trust-bar-v2 {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
        margin-top: 40px !important;
        padding-left: 0 !important;
        width: 100% !important;
    }

    .trust-bar-v2 > div {
        justify-content: center !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 15px;
    }

    .trust-bar-v2 > div:last-child {
        border-bottom: none;
    }

    .mobile-nav {
        background: rgba(248, 245, 240, 0.98) !important;
        backdrop-filter: blur(20px);
    }

    .mobile-nav-links a {
        font-size: 20px !important;
        letter-spacing: 3px !important;
    }

    .container {
        width: 100% !important;
        padding: 0 var(--m-space-container) !important;
        overflow: hidden;
    }

    /* Ensure flex gaps don't cause overflow */
    div[style*="display: flex"] {
        flex-wrap: wrap !important;
    }

    /* Utility classes for mobile stacking */
    .mobile-stack {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .mobile-full-width {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }

    .mobile-no-padding {
        padding: 0 !important;
    }

    .mobile-center-text {
        text-align: center !important;
    }

    .mobile-hide {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 42px; }
    .section-header h2 { font-size: 24px; letter-spacing: 2px; }
    .logo { font-size: 20px; letter-spacing: 4px; }
}
