/* CSS Variables */
:root {
    --color-white: #ffffff;
    --color-grey-light: #f5f5f5;
    --color-purple: #281432;
    --color-purple-dark: #150a1b;
    --color-purple-hover: #281432;
    --color-rose-gold: #c99a6b;
    --color-text: #111111;
    --color-text-light: #666666;

    /* Sackers Gothic */
    --font-serif: "SackersGothic", serif;
    --font-sans: "SackersGothic", sans-serif;

    /* Segoe Custom Font */
    --font-segoe-serif: "Montserrat", serif;
    --font-segoe-sans: "Montserrat", sans-serif;

    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}


/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

#heroVideo {
    transition: opacity 1s ease;
    opacity: 1;
}

#page-hero {
    transition: opacity 1s ease;
    opacity: 1;
}


/* =====================
    FONT FACE IMPORTS
===================== */

/* Sackers Gothic */
@font-face {
    font-family: "SackersGothic";
    src: url("fonts/sackersgothicstd-light.otf") format("opentype");
    font-weight: 300;
}

@font-face {
    font-family: "SackersGothic";
    src: url("fonts/sackersgothicstd-medium.otf") format("opentype");
    font-weight: 500;
}

@font-face {
    font-family: "SackersGothic";
    src: url("fonts/sackersgothicstd-heavy.otf") format("opentype");
    font-weight: 700;
}

/* =====================
   APPLY SEGOE FONT FOR H2 + H3
===================== */
h2,
h3,
h4 {
    font-family: var(--font-segoe-serif);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    font-family: var(--font-segoe-sans);
}

.nav {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    top: 0;
    z-index: 6000;
    /* Increased to stay above sidebar (5500) */
    /* updated */
    box-sizing: border-box;
    transition: 0.3s ease;
    color: var(--color-purple-hover);
    border-bottom: 1px solid transparent;
    /* Reserve space for border */
}

.nav-content {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Center logo properly */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 6000;
    /* Ensure it is on top layer */
}

.nav-center a {
    pointer-events: auto;
    cursor: pointer !important;
    /* Force cursor */
    display: inline-block;
    /* Ensure solid hit area */
    position: relative;
    z-index: 6001;
}

.logo {
    width: 36px;
    transition: 0.3s ease;
}

/* Left menu button */
.nav-left {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    z-index: 6000;
    /* updated */
}

/* Right contact icon */
.nav-right {
    z-index: 6000;
    /* updated */
}

.menu-icon {
    font-size: 22px;
    color: var(--color-purple-hover);
}

/* Scroll state */
.nav.scrolled {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    --webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.nav.scrolled .logo {
    width: 55px !important;
}

/* ================================
   SIDE MENU
================================ */

.side-menu {
    font-family: var(--font-segoe-sans);
    text-transform: uppercase;
    position: fixed;
    top: 0;
    left: -500px;
    width: 500px;
    /* max-width for smaller screens handled below */
    height: 100vh;
    background: var(--color-purple);
    backdrop-filter: blur(6px);
    padding: 35px 25px;
    transition: 0.35s ease;
    transition-delay: 1.2s;
    /* Wait for slower text retreat (0.6s duration + 0.5s delay) */
    color: #fff;
    z-index: 5500;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

.side-menu.active {
    left: 0;
    transition-delay: 0s;
    /* Open immediately */
}



/* List container */
.side-menu ul {
    margin-top: 100px;
    list-style: none;
    padding: 0;
    text-align: right;
    /* Align text to the right */
}

.side-menu li {
    position: relative;
    border-top: 1px dotted rgba(255, 255, 255, 0.15);
    opacity: 0;
    /* meaningful initial state for animation */
    transform: translateX(-400px);
    /* start from complete left (sidebar width is 500px) */
    transition: opacity 0.6s ease, transform 0.6s ease;
    /* Slower exit to be visible */
}

/* CLOSING Delays: Top to Bottom (First item leaves first) */
.side-menu li:nth-child(1) {
    transition-delay: 0s;
}

.side-menu li:nth-child(2) {
    transition-delay: 0.1s;
}

.side-menu li:nth-child(3) {
    transition-delay: 0.2s;
}

.side-menu li:nth-child(4) {
    transition-delay: 0.3s;
}

.side-menu li:nth-child(5) {
    transition-delay: 0.4s;
}

.side-menu li:nth-child(6) {
    transition-delay: 0.5s;
}

/* When menu is active, animate list items in */
.side-menu.active li {
    animation: fadeSlideRight 0.5s forwards ease-out;
}

/* Staggered delays - Reversed for Bottom-to-Top Flow (Entry) */
.side-menu.active li:nth-child(1) {
    animation-delay: 1.15s;
}

.side-menu.active li:nth-child(2) {
    animation-delay: 1.0s;
}

.side-menu.active li:nth-child(3) {
    animation-delay: 0.85s;
}

.side-menu.active li:nth-child(4) {
    animation-delay: 0.7s;
}

.side-menu.active li:nth-child(5) {
    animation-delay: 0.55s;
}

.side-menu.active li:nth-child(6) {
    animation-delay: 0.4s;
}

/* CLOSING ANIMATION: Rewind to Left (Right to Left) */
.side-menu.closing li {
    animation: fadeSlideOutLeft 0.5s forwards ease-in;
    transition: none;
    opacity: 1;
    transform: translateX(0);
}

.side-menu.closing li:nth-child(1) {
    animation-delay: 0s;
}

.side-menu.closing li:nth-child(2) {
    animation-delay: 0.1s;
}

.side-menu.closing li:nth-child(3) {
    animation-delay: 0.2s;
}

.side-menu.closing li:nth-child(4) {
    animation-delay: 0.3s;
}

.side-menu.closing li:nth-child(5) {
    animation-delay: 0.4s;
}

.side-menu.closing li:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes fadeSlideRight {
    0% {
        opacity: 0;
        transform: translateX(-400px);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeSlideOutLeft {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-400px);
        /* Exit to Left (Rewind) */
        /* Exit to Right */
    }
}

.side-menu li:first-child {
    border-top: none;
}

.side-menu li a {
    display: block;
    padding: 18px 0;
    font-size: 1.15rem;
    letter-spacing: 1px;
    text-decoration: none;
    color: inherit;
    opacity: 0.85;
    transition: 0.25s;
}

.side-menu li a::after {
    content: "";
    position: absolute;
    bottom: 6px;
    right: 0;
    /* Start underline from right */
    left: auto;
    width: 0%;
    height: 1px;
    background: #a582ff;
    transition: 0.3s ease;
}

.side-menu li a:hover {
    opacity: 1;
}

.side-menu li a:hover::after {
    width: 100%;
}

/* ===============================
   HAMBURGER ICON
=============================== */

.hamburger {
    width: 20px;
    height: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    color: var(--color-purple);
    /* the actual color */
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: currentColor;
    /* ← takes color from parent */
    border-radius: 10px;
    transition: 0.35s ease-in-out;
}


/* ANIMATION: HAMBURGER → X */
.menu-open .hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    color: white;
}

.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    color: white;
}


/* Menu Text */
.menu-text {
    font-family: var(--font-segoe-sans);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-purple);
    transition: 0.3s ease;
}

.menu-open .menu-text {
    color: white;
}

/* Ensure White on Open (Override Hover) */
.menu-open .nav-left .menu-text,
.menu-open .nav-left:hover .menu-text {
    color: white !important;
}

.menu-open .nav-left .hamburger span,
.menu-open .nav-left:hover .hamburger span {
    background: white !important;
    color: white !important;
}

/* Menu Hover Effects */
.nav-left:hover {
    cursor: pointer;
}

.nav-left:hover .hamburger span {
    background: #5b0088;
}

.nav-left:hover .menu-text {
    color: #5b0088;
    /* opacity: 0.6; removed */
}

/* Contact Icon Hover Effect */
.nav-right a:hover {
    color: #5b0088;
    /* opacity: 0.6; removed */
    transition: 0.3s ease;
}

.nav-right a:hover .menu-icon {
    /* Ensure icon itself changes if it inherits or is specific */
    color: #5b0088;
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 600px) {
    .side-menu {
        width: 100%;
        left: -100%;
    }
}

/* ================================
   NAVBAR OPEN STATE (Layering Fix)
================================ */
/* When menu is open, make navbar clear so sidebar shows through */
/* When menu is open, make navbar clear so sidebar shows through */
.nav.menu-open {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    box-shadow: none;
}

/* Hide Logo and Contact Icon when menu is open to avoid overlap */
.nav.menu-open .nav-center,
.nav.menu-open .nav-right {
    opacity: 1;
    /* Make visible */
    pointer-events: auto;
    /* Allow interaction */
    z-index: 6001;
    /* Above sidebar */
    transition: 0.3s ease;
}

/* Turn Logo White on Open */
/* .nav.menu-open .logo { ... } (Removed as per request) */

/* Turn Contact Icon White on Open */
/* .nav.menu-open .menu-icon { ... } (Removed as per request) */


/* ================================
   GLASS LAYER (Behind Sidebar)
================================ */
#glass-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* height set dynamically by JS to match nav */
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    z-index: 5000;
    /* Behind Sidebar (5500) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#glass-layer.active {
    opacity: 1;
}

/* DESKTOP OFFSET REMOVED: Strict Stacking (Glass < Sidebar) used instead */


/* Ensure Close Button stays visible */
.nav.menu-open .nav-left {
    z-index: 6001;
    /* ensure text is visible */
}

/* Also ensure the button text is strictly visible if hidden elsewhere */
.nav.menu-open .nav-left .menu-text {
    display: flex;
    /* or block, matching original */
    z-index: 6002;
    color: white !important;
    /* Ensure white text */
}

@media (max-width: 768px) {
    /* height handled by JS now */

    .menu-text {
        display: none !important;
        /* Force hide on mobile */
    }

    .nav.menu-open .nav-left .menu-text {
        display: none !important;
        /* Force hide close text too */
    }

    /* Hide Logo and Icon on Mobile Open -> Use Visibility to keep layout height */
    .nav.menu-open .nav-center,
    .nav.menu-open .nav-right {
        visibility: hidden !important;
        /* Hides content but keeps space */
        display: flex !important;
        /* Ensure it takes space */
    }

    .nav-center .logo {
        width: 90px;
    }
}


.rr-footer {
    background: var(--color-purple);
    color: #ccc;
    padding: 60px 40px;
    text-align: center;
    font-family: "Helvetica", sans-serif;
}

.footer-logo img {
    width: 100px;
    opacity: 0.9;
    filter: brightness(0) invert(1);
}

.footer-line {
    border: #ccc;
    border-top: 1px solid var(--color-text-light);
    margin: 40px 0;
}

/* 5 COLUMN GRID */
.footer-links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(15%, auto));
    gap: 10% 50px;
    justify-content: center;
    margin-bottom: 40px;
    text-align: left;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Links */
.footer-links a {
    color: #ccc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

/* Social Icons */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 20px;
    opacity: 0.7;
}

.footer-social .icon:hover {
    opacity: 1;
    cursor: pointer;
}



/* MOBILE/TABLET 2x2 GRID + Social Icons Last */
@media (max-width: 992px) {
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 20px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    /* Make social column take full width */
    .social-col {
        grid-column: 1 / 3;
        /* spans both columns */
        margin-top: 20px;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* VERY SMALL DEVICES (optional) */
@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .footer-col {
        padding-bottom: 20px;
        margin-bottom: 10px;
        border-bottom: 1px dotted var(--color-text-light);
    }

    /* Remove dotted for social icons */
    .social-col {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

.three-column-text {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 3rem;
}

.three-column-text .col h3 {
    font-family: var(--font-segoe-serif);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.three-column-text .col p {
    font-family: var(--font-segoe-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.raw-materials-wrapper {
    width: 100%;
}

.carousel-view-window {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.raw-materials-strip {
    display: flex;
    gap: 20px;
}

.rm-item {
    width: 300px;
    /* You can change width */
    height: 50vh;
    flex-shrink: 0;
}

.rm-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    color: var(--color-purple);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

@media (max-width: 600px) {
    .carousel-btn {
        display: none;
    }
}


.page-hero {
    position: relative;
    height: 70vh;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Overlay */
.page-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 80%);
    z-index: 1;
}

/* Text */
.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}



/* ===== MOBILE — CONVERT TO CAROUSEL ===== */
@media (max-width: 600px) {

    /* Wrapper handles touch events */
    .raw-materials-wrapper {
        overflow: hidden;
        /* No scrollbars, JS moves content */
        touch-action: pan-y;
        /* Allow vertical page scroll, we steal horizontal */
    }

    .raw-materials-strip {
        display: flex;
        gap: 20px;
        animation: none;
        /* Disabled, JS handles transform */
        width: max-content;
        /* Width is sum of items */
        overflow: hidden;
        /* No scrollbars */
        padding-bottom: 0;
        cursor: grab;
        will-change: transform;
    }

    .raw-materials-strip:active {
        cursor: grabbing;
    }

    /* Hide scrollbar */
    .raw-materials-strip::-webkit-scrollbar {
        display: none;
    }

    .rm-item {
        flex: 0 0 300px;
        height: 60vh;
        width: 300px;
    }

    .rm-item img {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* Remove scrollbar */
    .raw-materials-strip::-webkit-scrollbar {
        display: none;
    }
}

/* Tablet/Mobile Breakpoint adjusted */
@media (max-width: 600px) {
    .three-column-text {
        grid-template-columns: repeat(1, 1fr);
        /* Stack directly on mobile */
        gap: 3rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .three-column-text {
        grid-template-columns: 1fr;
    }
}

/* =========================
   RESPONSIVE DESIGN
========================= */

@media (max-width: 768px) {
    .nav {
        justify-content: space-between;
        padding: 1.5rem 6%;
    }

    .nav-menu {
        flex-direction: column;
        align-items: center;
        text-align: center;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 2rem 0;
        gap: 1.5rem;
        display: none;
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
    }

    .nav-menu.show {
        display: flex;
    }

    .nav-left,
    .nav-right {
        flex-direction: column;
        margin: 0;
        gap: 1rem;
    }

    .nav-logo {
        margin: 1rem 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-lang-item {
        display: block;
    }

    .nav-desktop-lang {
        display: none;
    }

    /* Fix logo size on mobile */
    .logo {
        width: 45px !important;
    }
}

@media (min-width: 769px) {
    .nav-lang-item {
        display: none;
    }
}



/* Hero Section */
.hero {
    height: 100vh;
    height: 100dvh;
    /* iOS fix */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}

.pages-hero {
    height: 100vh;
    height: 100dvh;
    /* iOS fix */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #ffffff;
}


.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    opacity: 0.7;
    /*
    filter: brightness(1.2);*/
    transition: opacity 0.8s ease;
}

.hero-overlay {
    /* position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;*/
    /*    backdrop-filter: blur(2px) saturate(180%);
    -webkit-backdrop-filter: blur(2px) saturate(180%);*/
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1000px;
    padding: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1.2s ease forwards 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 0.3em;
    color: var(--color-purple);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}

.hero-logo {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease forwards 0.5s;
}

.hero-subtitle-text {
    font-family: var(--font-segoe-serif);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: var(--color-text);
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease forwards 0.7s;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--color-text);
    letter-spacing: 0.02em;
}

.hero-tagline {
    font-size: 1.5rem;
    color: var(--color-text-light);
    margin-bottom: 3.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--color-purple);
    color: var(--color-white);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
    font-family: var(--font-sans);
    border: 2px solid var(--color-purple);
    font-weight: 600;
}

.btn:hover {
    background: transparent;
    color: var(--color-purple);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(106, 27, 154, 0.2);
}

/* Section Styles */
.section {
    padding: 10rem 8%;
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

.section-dark {
    background: var(--color-purple);
    color: white;
}

.section-dark .section-title,
.section-dark .section-text,
.section-dark .split-content h3,
.section-dark .split-content p {
    color: white;
}

.section-dark .section-title::after {
    background: var(--color-rose-gold);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-rose-gold);
}

.section-text {
    font-size: 1.15rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

@media (max-width: 600px) {
    .split-section {
        display: flex;
        flex-direction: column;
    }

    .split-image {
        margin-top: 12px;
    }

    /* For all sections, ensure image comes before text */
    .split-section .split-image {
        order: 1;
    }

    .split-section .split-content {
        order: 2;
    }
}

/* Signature Fragrances Section */
.carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background: var(--color-white);
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(106, 27, 154, 0.15);
}

.product-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(65, 34, 83, 0.1);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-image i {
    font-size: 4rem;
    color: var(--color-purple);
    transition: var(--transition);
}

.product-card:hover .product-image {
    background: linear-gradient(135deg, rgba(65, 34, 83, 0.05), rgba(201, 154, 107, 0.05));
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card:hover .product-image i {
    transform: scale(1.1);
}

.product-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.product-notes {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Split Section */
.split-section {
    display: grid;
    opacity: 100;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.split-image {
    width: 100%;
    height: 550px;
    background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.split-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.split-section:hover .split-image img {
    transform: scale(1.05);
}

.split-image i {
    font-size: 5rem;
    color: var(--color-purple);
}

.split-image::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(106, 27, 154, 0.05) 0%, transparent 70%);
}

.split-content h3 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.split-content p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    line-height: 1.9;
}

/* Collections Grid */
.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.collection-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.collection-bg {
    width: 100%;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.collection-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collection-bg i {
    font-size: 4rem;
    transition: var(--transition);
}

.collection-card:nth-child(1) .collection-bg i {
    color: #e91e63;
}

.collection-card:nth-child(2) .collection-bg i {
    color: #8b4513;
}

.collection-card:nth-child(3) .collection-bg i {
    color: #00bcd4;
}

.collection-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(20px);
    transition: var(--transition);
}

.collection-card:hover .collection-overlay {
    transform: translateY(0);
}

.collection-card:hover .collection-bg {
    transform: scale(1.1);
}

.collection-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.collection-desc {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Values List */
.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto;
}

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(201, 154, 107, 0.1) 0%, rgba(106, 27, 154, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-rose-gold);
    transition: var(--transition);
}

.value-icon i {
    font-size: 2.2rem;
    color: var(--color-rose-gold);
}

.value-item:hover .value-icon {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(201, 154, 107, 0.2);
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.value-text {
    color: var(--color-text-light);
    line-height: 1.8;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}



.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
    height: 600px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    height: 100%;
    transition: var(--transition);
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-image i {
    font-size: 4rem;
    color: var(--color-purple);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3), transparent);
    color: white;
    transform: translateY(calc(100% - 80px));
    transition: var(--transition);
}

.service-card:hover .service-overlay {
    transform: translateY(0);
}

.service-card:hover .service-image {
    transform: scale(1.05);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-desc {
    opacity: 1;
}

/* Process Timeline */
.timeline {
    max-width: 900px;
    margin: 4rem auto;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--color-grey-light);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
    padding-left: 0;
}

.timeline-content {
    width: 45%;
    padding: 2rem;
    background: var(--color-grey-light);
    position: relative;
}

.timeline-number {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--color-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    border: 5px solid white;
}

.timeline-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

.timeline-text {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Contact Form */
/* Contact Form */
/* Contact Form */
.contact-container {
    max-width: 1000px;
    /* Widened to fit 3 columns comfortably */
    margin: 4rem auto;
    display: flex;
    flex-direction: column;
    /* Stack vertically */
    gap: 4rem;
    /* Vertical space */
    background: transparent;
    padding: 0;
}

/* Contact Details Column */
.contact-details {
    width: 100%;
    /* Full width of container */
    background: var(--color-grey-light);
    padding: 4rem;
    border-radius: 20px;
}

.contact-details h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--color-charcoal);
    text-align: center;
    display: block;
    /* Override inline-block */
    width: 100%;
}

/* Grid for 3 columns */
.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Force 3 columns */
    gap: 2rem;
}

/* Make grid responsive on smaller screens */
@media (max-width: 600px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.contact-info-item {
    margin-bottom: 0;
    /* Remove margin since we have grid gap */
    display: flex;
    flex-direction: column;
    /* Icon top, text bottom */
    align-items: center;
    /* Center align */
    text-align: center;
    gap: 1rem;
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--color-purple);
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.contact-info-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-info-content p {
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Form Styles - adapted for column */
#contactForm {
    width: 100%;
    /* Full width of container */
    background: var(--color-grey-light);
    padding: 4rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    letter-spacing: 0.05em;
    font-family: var(--font-segoe-sans);
    /* Switch to Montserrat */
}

.form-input,
.form-select,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid transparent;
    background: white;
    font-family: var(--font-segoe-sans);
    /* Switch to Montserrat */
    font-size: 1rem;
    color: var(--color-text);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--color-purple);
}

.form-textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    max-width: 600px;
    margin: 4rem auto;
    text-align: center;
}

.contact-detail {
    margin-bottom: 1.5rem;
}

.contact-label {
    font-weight: 600;
    color: var(--color-text);
    display: block;
    margin-bottom: 0.3rem;
}

.contact-value {
    color: var(--color-text-light);
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
    }

    .split-section {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: row;
    }

    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
        padding-left: 1.5rem;
    }

    .timeline-number {
        left: 0;
    }

    .contact-container {
        padding: 0;
        gap: 2rem;
        /* Reduce gap on mobile */
    }

    #contactForm,
    .contact-details {
        padding: 2rem;
        /* Reduce padding on mobile */
    }

    #contactForm,
    .contact-details {
        padding: 2rem;
        /* Reduce padding on mobile */
    }
}

/* TABLET FONT ADJUSTMENTS */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-subtitle-text {
        font-size: 1.5rem;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.4rem;
    }

    .section-text {
        font-size: 1rem;
    }

    .split-content h3 {
        font-size: 2rem;
    }

    .service-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .service-overlay {
        padding: 1.5rem;
        transform: translateY(0);
        /* Fully open on tablet/mobile */
        background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 85%, transparent 100%);
    }

    .service-desc {
        opacity: 1;
        /* Always visible */
    }

    .value-title {
        font-size: 1.25rem;
    }

    .timeline-title {
        font-size: 1.25rem;
    }

    .collection-name {
        font-size: 1.5rem;
    }

    .contact-details h3 {
        font-size: 1.5rem;
    }

    .three-column-text .col h3 {
        font-size: 1.5rem;
    }



    .values-list.raw-values {
        grid-template-columns: 1fr;
    }
}

/* iOS / Mobile Specific Adjustments */
@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem !important;
        /* Force smaller size on mobile */
        line-height: 1.2;
    }

    .hero-subtitle-text {
        font-size: 1.2rem;
    }

    .hero-logo {
        width: 100%;
        padding: 0 10px;
    }

    .section {
        padding: 4rem 6%;
    }

    /* Fix for contact page top padding */
    #contact {
        padding-top: 12rem !important;
    }

    .form-input,
    .form-select,
    .form-textarea {
        font-size: 16px !important;
        /* Prevent zoom on focus */
    }

    /* Fix timeline overlap issues if any */
    .timeline-content {
        width: 100%;
        margin-left: 60px;
        padding: 1.5rem;
    }
}

/* Privacy Popup */
.privacy-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.privacy-popup-overlay.show {
    display: flex;
    opacity: 1;
}

.privacy-popup {
    background: var(--color-white);
    width: 90%;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 80vh;
    overflow-y: auto;
}

.privacy-popup-overlay.show .privacy-popup {
    transform: translateY(0);
}

.privacy-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--color-text-light);
    cursor: pointer;
    transition: 0.2s;
    line-height: 1;
}

.privacy-close:hover {
    color: var(--color-purple);
}

.privacy-content h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    text-align: center;
}

.privacy-content h4 {
    font-family: var(--font-segoe-serif);
    font-size: 1.1rem;
    color: var(--color-purple);
    margin: 1.5rem 0 0.5rem;
}

.privacy-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Scrollbar for popup */
.privacy-popup::-webkit-scrollbar {
    width: 6px;
}

.privacy-popup::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

/* Utility Class for Screen Readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Notification Toast - Premium Centered */
.notification-toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10000;
    min-width: 320px;
    max-width: 90%;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.notification-toast.success {
    border-top: 4px solid var(--color-purple);
    background: rgba(255, 255, 255, 0.98);
}

.notification-toast.error {
    border-top: 4px solid #d32f2f;
    background: rgba(255, 255, 255, 0.98);
}

.notification-toast.success .notification-icon {
    color: var(--color-purple);
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 10px rgba(88, 28, 135, 0.2));
    /* purple shadow */
}

.notification-toast.error .notification-icon {
    color: #d32f2f;
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 10px rgba(211, 47, 47, 0.2));
}

.notification-message {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--color-text);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.01em;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-light);
    cursor: pointer;
    line-height: 1;
    padding: 5px;
    transition: color 0.3s;
}

.notification-close:hover {
    color: var(--color-purple);
}

/* Landscape / Short Screen Fixes */
@media (max-height: 500px) {
    .hero-logo {
        max-width: 150px !important;
        width: auto !important;
        margin-bottom: 0.2rem;
    }

    .hero-content {
        padding: 0.5rem;
    }

    .nav {
        padding: 0.2rem 1rem;
    }
}

/* Fix for Contact Page Start - Tablet/Mobile Safety */
@media (max-width: 992px) {
    .contact-container {
        padding: 0;
        gap: 2rem;
        /* Reduce gap on mobile */
    }

    #contact,
    section#contact {
        padding-top: 8rem !important;
        margin-top: 0 !important;
    }
}

/* ===============================
   SPLIT SECTION STYLES (ADDED)
=============================== */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
    justify-content: space-between;
}

/* REMOVED: .split-section:nth-child(even) { flex-direction: row-reverse; } 
   Reason: HTML is already manually alternated (Content | Image), so row-reverse was flipping it back to Image | Content.
*/

.split-image,
.split-content {
    flex: 1;
    width: 50%;
}

.split-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    object-fit: cover;
}

/* Mobile Responsiveness for Split Section */
@media (max-width: 992px) {
    .split-section {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }

    /* For even sections (HTML is Content | Image), we want Image Top.
       We use order: -1 on the image wrapper to force it to be first in the column.
       This is robust regardless of HTML structure. */
    .split-image {
        order: -1;
    }

    .split-image,
    .split-content {
        width: 100%;
    }
}