@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,700;1,400;1,700&display=swap');

:root {
    --bg: #ffffff;
    --text: #1a1a1a;
    --text-dim: #555555;
    --accent: #c5a059;
    --navy: #0a1128;
    --border: rgba(0,0,0,0.1);
    --font-main: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --cubic: cubic-bezier(0.23, 1, 0.32, 1);
    --radius: 24px;
}

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

/* Cursor only on Desktop */
@media (hover: hover) and (pointer: fine) {
    * { cursor: none; }
}

/* Custom Scrollbar Mechanics */
::-webkit-scrollbar {
    width: 12px !important;
}

::-webkit-scrollbar-track {
    background: #fdfdfd !important;
}

::-webkit-scrollbar-thumb {
    background: var(--accent) !important;
    border-radius: 6px !important;
    border: 3px solid #fdfdfd !important;
}

::-webkit-scrollbar-thumb:hover {
    background: #b08e4d !important;
}

/* Firefox Synchronization */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) #fdfdfd;
}

html {
    font-size: 16px;
    scroll-behavior: auto !important;
}

body {
    background: #fdfdfd;
    color: var(--text);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(0,0,0,0.02) 1px, transparent 0);
    background-size: 40px 40px;
    touch-action: pan-y; /* Ensure vertical scroll is prioritized */
    -webkit-overflow-scrolling: touch; /* Legacy Safari acceleration */
}

/* Journey Progress Indicator (GPU Accelerated) */
#scroll-progress {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 3px;
    background: var(--accent);
    z-index: 10001;
    transform-origin: left;
    transform: scaleX(0);
    will-change: transform;
    pointer-events: none;
}

/* Texture Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* Custom Cursor */
#cursor {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s var(--cubic);
}

#cursor-follower {
    width: 35px;
    height: 35px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    top: 0; left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
}

/* Navigation */
nav {
    position: fixed;
    top: 0; width: 100%; z-index: 1000;
    padding: 2.5rem 0;
    transition: all 0.5s var(--cubic);
}

nav.scrolled {
    padding: 1.2rem 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0; /* Safari Fix: Prevent crushing */
}

.logo-img {
    height: 70px;
    min-height: 70px; /* Safari Fix: Explicit anchor */
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

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

.nav-toggle span {
    width: 30px !important;
    height: 2px;
    background: var(--text);
    transition: all 0.3s var(--cubic);
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 600;
    transition: var(--cubic);
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 6rem;
    padding: 8rem 0 2rem 0;
}

.hero-visual {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
}

.hero-visual img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1s var(--cubic);
}

.hero-visual:hover img {
    transform: scale(1.02);
}

/* Content Sections */
section {
    padding: 5rem 0;
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    width: 100%;
}

.section-label::before,
.section-label::after {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--accent);
    opacity: 0.3;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

/* Boutique Cards */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 3rem;
    transition: all 0.6s var(--cubic);
    text-decoration: none;
    color: var(--text);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-dim);
    line-height: 1.7;
}

/* Executive Button (Boutique Gold) */
.btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background: var(--accent);
    color: var(--navy);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-size: 0.75rem;
    text-decoration: none;
    transition: all 0.5s var(--cubic);
    margin-top: 3rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    border: none;
}

.btn:hover {
    background: var(--accent-dark);
    color: var(--navy);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.15);
}

/* Secondary Button Style */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--navy);
}

/* Reveal Animations (High-End Refinement) */
.reveal {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Social Icons */
.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s var(--cubic);
    color: var(--text-dim);
    text-decoration: none;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--navy);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.2);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1.5rem;
    background: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

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

/* Responsive Architecture */
@media (max-width: 1024px) {
    .nav-content { 
        justify-content: center !important; 
        position: relative;
    }
    
    .logo-wrapper { margin: 0 auto !important; }
    
    .nav-toggle { 
        position: absolute; 
        right: 0; 
        top: 50%; 
        transform: translateY(-50%); 
        display: flex;
    }

    html, body {
        overflow-x: hidden !important;
        scroll-behavior: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    * { box-sizing: border-box; }
    
    /* Force all grids to stack on mobile */
    .grid-container,
    .split-section,
    .contact-grid,
    [style*="display: grid"] { 
        grid-template-columns: 1fr !important; 
        gap: 3rem !important; 
        width: 100% !important;
    }

    .container { padding: 0 3rem; }
    .bg-glow { display: none !important; } /* Disable heavy GPU blur on mobile */
    
    .reveal {
        will-change: transform, opacity;
    }
    
    .nav-toggle { display: flex; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 25, 47, 0.98); /* Deep Navy with slight transparency */
        backdrop-filter: blur(15px); /* Boutique glass effect */
        flex-direction: column;
        justify-content: center;
        align-items: center !important;
        gap: 2rem;
        transition: all 0.6s var(--cubic);
        z-index: 1000;
        padding: 2rem;
        visibility: hidden;
    }

    .nav-links::before {
        content: "MENU";
        position: absolute;
        top: 4rem;
        font-size: 0.8rem;
        letter-spacing: 0.5em;
        color: var(--accent);
        font-weight: 900;
        opacity: 0.5;
    }

    .nav-links.active { 
        right: 0; 
        visibility: visible;
    }

    .nav-links a {
        font-family: var(--font-serif);
        font-size: 2.2rem !important;
        font-weight: 700;
        color: #ffffff !important;
        text-transform: none;
        letter-spacing: -0.02em;
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.5s var(--cubic);
        position: relative;
        width: 80%; /* Structured width for separators */
        text-align: center;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 215, 0, 0.15); /* Boutique Separator */
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

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

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered entry for links */
    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.5s; }
    .nav-links.active a:nth-child(6) { transition-delay: 0.6s; }

    .nav-toggle span {
        width: 30px !important;
        background: var(--text); /* Ensure contrast */
    }

    .nav-toggle.open span {
        background: var(--accent); /* Turn gold when open */
    }

    .hero { grid-template-columns: 1fr !important; gap: 4rem; text-align: center; padding-top: 10rem; }
    .hero-content { 
        display: flex; 
        flex-direction: column; 
        align-items: center !important; 
        text-align: center !important; 
        width: 100% !important;
        margin: 0 auto !important;
    }
    .hero-visual { order: -1; width: 100% !important; margin: 0 auto !important; }
    .hero-title { 
        font-size: 2.8rem !important; /* Refined for absolute fit */
        white-space: normal !important; 
        line-height: 1.1; 
        text-align: center !important; 
        width: 100% !important;
        margin: 0 auto !important;
        word-break: break-word;
    }
    .hero-subtitle { 
        text-align: center !important; 
        margin: 2rem auto !important; 
        max-width: 100% !important; 
        width: 100% !important;
    }
    
    .grid-container { grid-template-columns: 1fr !important; }
    .split-section { grid-template-columns: 1fr !important; gap: 3rem !important; text-align: center !important; }
    .split-section > div { 
        display: flex; 
        flex-direction: column; 
        align-items: center !important; 
        text-align: center !important; 
        width: 100% !important;
        margin: 0 auto !important;
    }

    .card { 
        padding: 3rem !important; 
        text-align: center !important; 
        display: flex;
        flex-direction: column;
        align-items: center !important;
    }

    .card div[style*="max-width: 800px"],
    .card div[style*="max-width: 600px"] {
        max-width: 100% !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    .split-section h2, 
    .split-section h3,
    .card p {
        text-align: center !important;
        width: 100% !important;
        font-size: 1.1rem !important; /* Prevent cut-off for large quotes */
    }

    .card h2, .card h3 {
        text-align: center !important;
        width: 100% !important;
    }
    
    .hero-content div[style*="display: flex"] { 
        flex-direction: column !important; 
        width: 100% !important;
        gap: 1.5rem !important;
        margin-top: 3rem !important;
    }

    .hero-content .btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .section-label { 
        width: 100% !important;
        margin: 0 auto 1.5rem auto !important; 
        justify-content: center !important;
    }
    
    .section-label::before,
    .section-label::after {
        display: block !important;
    }
    
    .logo-img { height: 55px !important; width: auto !important; margin: 0 auto !important; }
    
    .contact-grid { grid-template-columns: 1fr !important; gap: 4rem !important; }
    .contact-form { padding: 2rem !important; }
    
    /* Site-Wide 100% Centering & Spacing Lockdown */
    main, section, .container, .grid-container, .split-section {
        text-align: center !important;
    }

    .card {
        padding: 1.5rem !important;
        text-align: center !important;
    }

    h1, h2, h3, h4, p, li, .section-title, .section-label { 
        text-align: center !important; 
        margin-left: auto !important;
        margin-right: auto !important;
        width: 100% !important;
        overflow-wrap: break-word !important;
        word-wrap: break-word !important;
    }

    h2 { font-size: 1.8rem !important; }
    h3 { font-size: 1.5rem !important; }
    .section-title { font-size: 2rem !important; }
    
    .grid-container > *, .split-section > *, .contact-grid > *, 
    [style*="display: grid"] > *, div[style*="border-left"], div[style*="border-bottom"] {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
    }
    
    .grid-container p, .grid-container h3, .grid-container h4 {
        width: 100% !important;
    }

    /* Footer & Contact Centering */
    footer p, footer h4, 
    .contact-grid h1, .contact-grid h2, .contact-grid h3, .contact-grid h4, .contact-grid p,
    .contact-hub h1, .contact-hub h2, .contact-hub h3, .contact-hub h4, .contact-hub p { 
        text-align: center !important; 
        margin: 0 auto !important; 
        width: 100% !important;
    }
    
    .social-links { justify-content: center !important; }
    footer .nav-links { 
        position: static !important; 
        width: 100% !important; 
        height: auto !important; 
        background: transparent !important; 
        box-shadow: none !important; 
        flex-direction: column !important; 
        padding: 0 !important;
        align-items: center !important;
        display: flex !important;
        right: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    footer .nav-links a {
        padding: 0.5rem 0 !important;
        width: 100% !important;
        text-align: center !important;
        border: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    /* Force Footer Grid Children to Center */
    footer .container > div:first-child > div {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Footer Bottom Bar Centering */
    footer div[style*="justify-content: space-between"] {
        flex-direction: column !important;
        gap: 2rem !important;
        text-align: center !important;
        justify-content: center !important;
    }

    footer div[style*="justify-content: space-between"] p {
        text-align: center !important;
        margin-bottom: 1rem;
    }

    footer .container {
        padding: 3rem 0 2rem 0 !important; /* Refined for tight flow */
    }

    footer div[style*="margin-bottom: 6rem"] {
        margin-bottom: 3rem !important;
    }
}

@media (max-width: 768px) {
    .hero-title { font-size: 3rem !important; }
    .card { padding: 2rem; }
}
