:root {
    --bg-color: #0e0d0c;
    /* Deep Charcoal/Brown */
    --text-primary: #e6e1db;
    /* Off-white/Bone */
    --text-muted: #8c8680;
    --accent: #d4c5a9;
    /* Champagne Gold (Softer) */

    --font-display: 'Cinzel', serif;
    --font-sans: 'Manrope', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.5;
}

/* Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9000;
    opacity: 0.03;
    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");
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 9vw, 6.5rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    line-height: 1;
}

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    mix-blend-mode: exclusion;
}

.logo img {
    height: 75px;
    /* Increased from 40px */
    width: auto;
    display: block;
}

.logo {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.lang-switcher {
    position: relative;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    border: 1px solid rgba(212, 197, 169, 0.4);
    /* Softer border */
    padding: 0.8rem 2rem;
    transition: all 0.3s ease;
    background: rgba(14, 13, 12, 0.6);
    /* More transparent background */
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    min-width: 200px;
    /* Ensure consistent width */
    justify-content: center;
}

.lang-title {
    color: var(--text-muted);
}

.lang-sep {
    color: var(--accent);
    opacity: 0.5;
}

.active-lang {
    color: var(--accent);
    font-weight: 700;
}

.lang-switcher:hover {
    background: var(--accent);
    color: #0e0d0c;
    box-shadow: 0 0 20px rgba(176, 141, 85, 0.4);
}

.lang-switcher:hover .lang-dropdown {
    display: block;
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 100%;
    background: #0e0d0c;
    border: 2px solid var(--accent);
    border-top: none;
    margin-top: 0;
    z-index: 1000;
}

.lang-dropdown span {
    display: block;
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
}

.lang-dropdown span:last-child {
    border-bottom: none;
}

.lang-dropdown span:hover {
    background: var(--accent);
    color: #0e0d0c;
}

/* Language Notification Tooltip */
.lang-notification {
    position: absolute;
    top: 50%;
    right: 1rem;
    /* Start hidden "inside" */
    transform: translateY(-50%) scale(0.8);
    background: #11100f;
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    white-space: nowrap;
    z-index: -1;
}

.lang-notification.show-note {
    opacity: 1;
    visibility: visible;
    right: 115%;
    /* Slide out to the left */
    transform: translateY(-50%) scale(1);
    z-index: 10;
}

/* Click to Open Support */
.lang-switcher.open .lang-dropdown {
    display: block;
}

/* Hero */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-image-parallax {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-image-parallax .img-container {
    width: 100%;
    height: 110%;
    /* Extra height for parallax */
    position: absolute;
    top: 0;
    left: 0;
}

.hero-image-parallax img,
.hero-image-parallax video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    will-change: transform, opacity;
}

.hero-text {
    position: relative;
    z-index: 2;
    padding-left: 5vw;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding-top: 15vh;
    /* Push down to avoid logo overlap */
    /* Ensure text stands out even if image fades */
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: block;
    width: 100px;
    height: 2px;
    background-color: var(--accent);
    margin: 2rem 0;
    border: none;
    padding: 0;
}

.hero-sub {
    max-width: 650px;
    /* Widened from 300px */
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Manifesto */
.manifesto {
    padding: 15vh 5vw;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    align-items: center;
}

.text-block h2 {
    margin-bottom: 2rem;
}

.zamak-font,
.accent-font {
    font-family: var(--font-sans);
    /* Contrast with Cinzel */
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 0.05em;
    font-style: normal;
    /* Ensure it stands out if parent is italic */
    text-transform: uppercase;
}

.text-block p {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-family: var(--font-sans);
    /* Switched to sans for readability of long text */
    font-style: normal;
    line-height: 1.8;
    text-align: justify;
}

.visual-block {
    position: relative;
    height: 100%;
    /* Removed min-height hard constraint to respect image ratio */
    display: flex;
    justify-content: flex-end;
    /* Align right */
    align-items: center;
}

.manifesto-image {
    width: 100%;
    max-width: 600px;
    /* Limit width */
    height: auto;
    object-fit: contain;
    /* Blend left edge into background/text area */
    mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
    will-change: transform, opacity;
}

/* New Animation: Slide in from right */
.reveal-from-right {
    opacity: 0;
    transform: translateX(100px);
    filter: blur(10px);
    transition: all 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-from-right.active {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
}

@media (max-width: 1024px) {
    .manifesto-grid {
        grid-template-columns: 1fr;
    }

    .text-block p {
        font-size: 1rem;
    }
}

/* Showcase Grid */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 2vw;
    padding: 0 2vw;
    align-items: center;
}

.showcase-item {
    position: relative;
}

.showcase-item img {
    width: 100%;
    display: block;
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.5s;
    will-change: transform, opacity;
}

.showcase-item:hover img {
    filter: grayscale(0%) contrast(1);
}

.showcase-item.tall img {
    height: 80vh;
    object-fit: cover;
}

.showcase-item.wide img {
    aspect-ratio: 16/9;
    object-fit: cover;
}

.caption {
    margin-top: 1rem;
}

.caption h3 {
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.caption p {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-style: italic;
}

.showcase-text {
    padding: 2rem;
}

.collection-list {
    list-style: none;
    margin: 3rem 0;
}

.collection-list li {
    font-size: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    font-family: var(--font-display);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.collection-list li span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: var(--accent);
}

.link-arrow {
    color: var(--btn-text);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border: 1px solid var(--text-primary);
    padding: 1rem 2rem;
    display: inline-block;
    transition: all 0.3s;
}

.link-arrow:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}

/* Atelier & Compliance */
.atelier-section,
.compliance-section {
    padding: 15vh 5vw;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 5vw;
}

.split-text {
    flex: 1;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    display: block;
    margin-bottom: 2rem;
}

.specs-list {
    list-style: none;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.specs-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--text-muted);
}

.split-image {
    flex: 1.2;
}

.split-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Mask for Atelier Section (Image Left, Text Right) - Fade out right side */
.atelier-section .split-image img {
    mask-image: linear-gradient(to right, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 50%, transparent 100%);
}

/* Mask for Compliance Section (Text Left, Image Right) - Fade out left side and bottom */
.compliance-section .split-image img {
    mask-image: linear-gradient(to left, black 50%, transparent 100%), linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%), linear-gradient(to bottom, black 20%, transparent 100%);
    mask-composite: intersect;
    -webkit-mask-composite: source-in;

    /* Zoom in and crop left */
    transform: scale(1.3);
    transform-origin: right center;
}

/* Portfolio Section */
.portfolio-section {
    padding: 10vh 5vw;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns for 6 items (3x2) */
    gap: 1rem;
    margin-top: 3rem;
}

.portfolio-item {
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    /* Remove underline from anchor */
    display: block;
    /* Ensure it treats content as block */
}

.img-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1/1;
    /* Square images */
    margin-bottom: 1rem;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .img-wrapper img {
    transform: scale(1.1);
}

.portfolio-label {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.portfolio-item:hover .portfolio-label {
    color: var(--accent);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 on tablets */
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

/* Ethos */
.ethos-section {
    padding: 10vh 0;
    text-align: center;
    background: #11100f;
}

.text-center p {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Logistics */
.logistics-section {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-bg-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    /* Parallax */
    z-index: 0;
}

/* Hero Image/Video Blending */
.hero-image-parallax img,
.hero-image-parallax video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    will-change: transform, opacity;
    /* Blend left edge into background */
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 100%);
}

.hero-image-parallax video {
    opacity: 0.5;
    /* Darker base opacity */
    filter: brightness(0.6) contrast(1.1);
    /* Atmospheric darkening */
}

.network-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transform: scale(1.1);
    mask-image: radial-gradient(circle, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 40%, transparent 100%);
}

.overlay-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 5vw;
}

.locations-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.loc-item {
    text-align: center;
}

.loc-item h3 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.loc-item span {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
}

/* Marquee reused */
.materials {
    margin: 0;
    /* Clear margin for ethos usage */
    background: transparent;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee span {
    font-size: 1rem;
    font-weight: 400;
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Contact */
.contact {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5vw;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contact / Footer Redesign */
.contact {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 100px 0 50px;
}

.contact-split {
    display: flex;
    justify-content: center;
    /* Changed from space-between */
    align-items: center;
    /* Center vertically specifically for logo */
    gap: 8rem;
    /* Increased gap */
    margin-bottom: 4rem;
    padding: 0 5%;
    /* Bring content in from edges */
}

.contact-left {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    flex: 1;
}

.contact-item h4 {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
    line-height: 1;
}

.contact-link,
.contact-item p {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    /* Smaller than huge-link but still prominent */
    color: var(--text-primary);
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--accent);
}

.contact-item p {
    font-size: 1.2rem;
    font-family: var(--font-sans);
    color: var(--text-muted);
}

.contact-right {
    flex: 1;
    display: flex;
    justify-content: center;
    /* Center the logo horizontally in its column */
    align-items: center;
}

.footer-logo {
    max-width: 100%;
    height: auto;
    max-height: 250px;
    /* Constrain height */
    opacity: 0.8;
    transition: opacity 0.3s;
}

.footer-logo:hover {
    opacity: 1;
}

.socials {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.socials a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.socials a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    text-align: left;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .contact-split {
        flex-direction: column-reverse;
        /* Logo on top on mobile? or bottom? User didn't specify, standard stacking usually fine. Let's stick to column for now */
        gap: 3rem;
    }

    .contact-right {
        justify-content: flex-start;
        width: 100%;
    }

    .footer-logo {
        max-height: 150px;
    }
}

/* Animations/Utils */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Product Modal */
.modal {
    display: flex;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.85);
    /* Black w/ opacity */
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease, visibility 0.4s;
}

.modal.show {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

/* Staggered Text Animations */
.modal.show #modal-title {
    animation: slideUpFade 0.6s ease forwards 0.3s;
    opacity: 0;
}

.modal.show .modal-desc {
    animation: slideUpFade 0.6s ease forwards 0.4s;
    opacity: 0;
}

.modal.show .modal-cta {
    animation: slideUpFade 0.6s ease forwards 0.5s;
    opacity: 0;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content {
    background-color: #11100f;
    border: 1px solid var(--border-color);
    width: 90%;
    max-width: 1000px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 50px rgba(176, 141, 85, 0.15);
    /* Golden Glow */
}

.modal.show .modal-content {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    line-height: 1;
}

.close-btn:hover {
    color: var(--accent);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.modal-image {
    aspect-ratio: 1/1;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent);
}

.modal-desc {
    font-family: var(--font-body);
    font-size: 1.1rem;
    /* Slightly larger */
    color: var(--text-light);
    /* Brighter text */
    line-height: 1.7;
    border-left: 2px solid var(--accent);
    /* Accent border instead of dashed box */
    padding: 0 0 0 1.5rem;
    text-align: left;
    /* Better readability */
    margin-bottom: 2.5rem;
}

.modal-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 1rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.2em;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.modal-cta:hover {
    background: var(--accent);
    color: #0e0d0c;
    box-shadow: 0 0 30px rgba(176, 141, 85, 0.3);
}

@media (max-width: 768px) {
    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-info {
        padding: 2rem;
    }

    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out, visibility 0.8s;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-logo {
    width: 150px;
    height: auto;
    position: relative;
    z-index: 2;
    animation: growLogo 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.light-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, rgba(176, 141, 85, 0.2) 40%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: expandLight 2.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes growLogo {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1.5);
        opacity: 1;
    }
}

@keyframes expandLight {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
    }

    100% {
        width: 600px;
        height: 600px;
        opacity: 0.8;
    }
}

.delay-1 {
    transition-delay: 0.2s;
}

@media (max-width: 1024px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 5vh;
    }

    .hero-image-parallax {
        width: 100%;
        opacity: 0.4;
    }

    .hero-text {
        text-align: center;
    }

    .hero-meta {
        justify-content: center;
    }

    body {
        padding-bottom: 2rem;
    }
}
/* =========================================
   MOBILE OPTIMIZATION (Consolidated)
   ========================================= */

/* Global Mobile Fixes */
img,
video {
    max-width: 100%;
    height: auto;
}

@media (max-width: 768px) {

    /* Global Typography */
    h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    h2 {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    
    body {
        font-size: 15px;
    }

    /* Padding Adjustments */
    .manifesto,
    .atelier-section,
    .compliance-section,
    .portfolio-section,
    .contact {
        padding: 8vh 5vw;
    }

    /* Hero Section */
    .hero-text {
        text-align: center;
        padding-left: 0;
        padding-top: 20vh;
        /* More space for navbar */
    }

    .hero-meta {
        margin: 2rem auto;
        /* Center line */
    }

    .hero-sub {
        width: 100%;
        max-width: 90%;
        margin: 0 auto;
        font-size: 1rem;
    }

    /* Stacking Grids (Manifesto, Logistics, Showcase) */
    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .manifesto-grid .visual-block {
        order: -1;
        /* Image on top for visual impact */
        justify-content: center;
    }
    
    .manifesto-image {
        max-width: 100%;
        mask-image: none; /* Remove horizontal fade mask on mobile to avoid cut off */
        -webkit-mask-image: none;
    }

    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .showcase-item.tall img {
        height: 60vh; /* Reduce height on mobile */
    }

    .locations-grid {
        flex-direction: column;
        gap: 2rem;
    }

    /* Split Layouts (Atelier, Compliance) */
    .split-layout {
        flex-direction: column;
        gap: 3rem;
    }

    .atelier-section .split-layout {
        flex-direction: column-reverse;
        /* Image top */
    }

    .compliance-section .split-layout {
        flex-direction: column;
    }

    /* Remove heavy masking on mobile for clarity */
    .atelier-section .split-image img,
    .compliance-section .split-image img {
        mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
        transform: scale(1); /* Reset zoom */
        width: 100%;
    }

    /* Portfolio Section */
    .portfolio-grid {
        grid-template-columns: 1fr; /* Single column for big images */
        gap: 2rem;
    }
    
    .portfolio-item {
        max-width: 400px;
        margin: 0 auto;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 85vh;
        margin-top: 5vh;
    }

    .modal-body {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px; /* Fixed height for mobile modal image */
    }
    
    .modal-info {
        padding: 1.5rem;
    }

    .modal-info h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .modal-desc {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Footer / Contact */
    .contact-split {
        flex-direction: column-reverse;
        gap: 3rem;
        padding: 0;
    }

    .contact-left, .contact-right {
        width: 100%;
        text-align: center;
        align-items: center;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .footer-logo {
        max-height: 120px;
    }
    
    .socials {
        justify-content: center;
    }
}


/* =========================================
   MOBILE LANGUAGE SWITCHER (Compact)
   ========================================= */
@media (max-width: 768px) {
    .lang-switcher {
        min-width: auto;      /* Remove fixed width */
        padding: 0.5rem 1rem; /* Smaller padding */
        gap: 0;               /* Remove gap */
        border-color: rgba(212, 197, 169, 0.2); /* More subtle border */
    }

    .lang-title,
    .lang-sep {
        display: none;        /* Hide 'LANGUAGES' and '|' */
    }

    .active-lang {
        font-size: 0.9rem;    /* Adjust font size */
        margin: 0;
    }

    /* Adjust position if needed to align with logo */
    .nav-right {
        gap: 1rem;
    }
}


/* =========================================
   MOBILE CONTACT LOGO ADJUSTMENT
   ========================================= */
@media (max-width: 900px) {
    .contact-split {
        flex-direction: column; /* Change from column-reverse to column */
        /* This puts .contact-left (info) first, and .contact-right (logo) second (bottom) */
    }

    /* Animate Logo on Scroll/Load for Mobile */
    .footer-logo {
        animation: fadeInUpMobile 1.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
        opacity: 0; /* Start hidden */
        transform: translateY(30px);
    }
}

@keyframes fadeInUpMobile {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================
   CENTERING FIXES (Logo & Preloader)
   ========================================= */

/* Fix Contact Logo Centering on Mobile */
@media (max-width: 900px) {
    .contact-right {
        justify-content: center !important; /* Force center alignment */
        display: flex;
        width: 100%;
    }
    
    .footer-logo {
        margin: 0 auto; /* Ensure block-level centering if needed */
        display: block;
    }
}

/* Fix Preloader Centering */
#preloader {
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-content {
    /* Ensure content box itself is centered */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    /* Remove fixed dimensions if they cause offset, or ensure they are centered */
    width: auto; 
    height: auto;
}

.preloader-logo {
    /* Reset margins if any */
    margin: 0;
    display: block;
}

.light-glow {
    /* Ensure glow is perfectly centered behind logo */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}


/* =========================================
   STRICT PRELOADER CENTERING
   ========================================= */
#preloader {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100vw !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    top: 0;
    left: 0;
}

.preloader-content {
    /* Reset any width/height/margin that might cause offset */
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transform: none !important; /* Remove any shifts */
    top: auto !important;
    left: auto !important;
}

.preloader-logo {
    display: block !important;
    margin: 0 auto !important;
    transform-origin: center center !important;
}

.light-glow {
    /* Absolute center relative to .preloader-content */
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    margin: 0 !important;
}


/* =========================================
   ROBUST WHATSAPP BUTTON STYLES
   ========================================= */
.whatsapp-float {
    z-index: 9500 !important; /* Higher than noise (9000), lower than preloader (9999) */
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    bottom: 30px !important;
    right: 30px !important;
    background-color: #25d366 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3) !important;
}

/* Ensure Icon is Visible */
.whatsapp-icon {
    display: block !important;
    width: 35px !important;
    height: 35px !important;
    fill: #ffffff !important;
}


/* =========================================
   FINAL WHATSAPP THEME (Black & White, Floating)
   ========================================= */
.whatsapp-float {
    position: fixed !important; /* Ensure it floats relative to screen */
    bottom: 30px !important;
    right: 30px !important;
    background-color: #000000 !important; /* Black background */
    border: 1px solid rgba(255, 255, 255, 0.3) !important; /* Subtle border for contrast */
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
}

.whatsapp-float:hover {
    background-color: #222 !important;
    transform: scale(1.1);
    border-color: #fff !important;
}

.whatsapp-icon {
    fill: #ffffff !important; /* White icon */
}

/* Remove Green Pulse, Add White/Gray Glow */
@keyframes pulse-mono {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.whatsapp-float {
    animation: pulse-mono 2s infinite !important;
}


/* =========================================
   CUSTOM PNG WHATSAPP ICON (Resized)
   ========================================= */
.whatsapp-float {
    width: 80px !important;  /* Increased size */
    height: 80px !important;
    border-radius: 50% !important; /* Ensure circular */
    overflow: hidden !important; /* Clip image to circle */
    padding: 10px !important; /* Some padding for inner logo */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.whatsapp-icon {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* Maintain aspect ratio */
    fill: none !important; /* Remove SVG fill if inherited */
    display: block !important;
}


/* =========================================
   TRANSPARENT BACKGROUND FIX
   ========================================= */
.whatsapp-float {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important; /* Remove box shadow as well for true transparency */
    padding: 0 !important; /* Remove padding to let image be full size */
}

/* Optional: Add a drop shadow to the image itself so it pops against mixed backgrounds */
.whatsapp-icon {
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.4));
}


/* =========================================
   PURE IMAGE RESET (No Background at all)
   ========================================= */
.whatsapp-float {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important; /* Don't clip corners */
    box-shadow: none !important; /* No outer glow/shadow */
    overflow: visible !important;
    padding: 0 !important;
    /* Maintain positioning and size */
    width: 80px !important; 
    height: 80px !important;
    animation: none !important; /* Remove pulse if it implies a container glow */
}

.whatsapp-float:hover {
    background: none !important;
    transform: scale(1.1); /* Keep zoom effect */
}

.whatsapp-icon {
    /* Ensure image itself is clean */
    border-radius: 0 !important;
    box-shadow: none !important;
    filter: none !important; /* Remove drop-shadow if it looks like a background */
}


/* =========================================
   NUCLEAR TRANSPARENCY RESET (Final)
   ========================================= */
.whatsapp-float,
.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:active,
.whatsapp-float::before,
.whatsapp-float::after {
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    animation: none !important;
    border-radius: 0 !important;
}

/* Ensure the image is visible */
.whatsapp-float img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}


/* =========================================
   WHATSAPP GLOW & PULSE ANIMATION
   ========================================= */
@keyframes pulse-light {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); /* Gentle white glow */
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }
}

.whatsapp-float {
    animation: pulse-light 3s infinite ease-in-out !important;
    transform-origin: center center !important;
    /* Ensure no background overrides */
    background: none !important;
    box-shadow: none !important;
}


/* =========================================
   MOBILE FINAL REFINEMENTS
   ========================================= */
@media (max-width: 768px) {
    /* 1. Resize WhatsApp Icon for Mobile */
    .whatsapp-float {
        width: 60px !important;
        height: 60px !important;
        bottom: 20px !important;
        right: 20px !important;
    }

    /* 2. Fix Contact Text Centering */
    .contact-left {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
    }

    .contact-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 2rem;
    }

    .contact-title, 
    .contact-link,
    .contact-item h4,
    .contact-item p {
        text-align: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}


/* =========================================
   WHATSAPP TOOLTIP POPUP
   ========================================= */
.whatsapp-tooltip {
    position: absolute;
    right: 100%; /* Position to the left of the button */
    margin-right: 15px; /* Spacing */
    background: #fff;
    color: #000;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    white-space: nowrap;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 1;
    z-index: 9501; /* Above the button z-index if needed */
    pointer-events: none; /* Let clicks pass through if it overlaps anything */
    
    /* Animation: Wait 4.5s, then fade out over 0.5s (Total 5s visibility) */
    animation: fadeOutTooltip 0.5s ease-out 5s forwards;
}

/* Arrow for the tooltip */
.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%; /* Arrow on right side pointing to button */
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}

@keyframes fadeOutTooltip {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Mobile Adjustment for Tooltip */
@media (max-width: 768px) {
    .whatsapp-tooltip {
        font-size: 0.8rem;
        margin-right: 10px;
    }
}


/* =========================================
   PREMIUM AESTHETICS UPGRADE (tooltip & shine)
   ========================================= */

/* Gold Shine Animation for Premium Feel */
@keyframes pulse-gold {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 197, 169, 0));
    }
    50% {
        transform: scale(1.05); /* Subtle pulse */
        filter: drop-shadow(0 0 15px rgba(212, 197, 169, 0.6)); /* Champagne Gold Glow */
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(212, 197, 169, 0));
    }
}

.whatsapp-float {
    animation: pulse-gold 3s infinite ease-in-out !important;
}

/* Premium Tooltip Styling */
.whatsapp-tooltip {
    background: #0e0d0c !important; /* Deep Charcoal BG */
    color: #d4c5a9 !important;      /* Champagne Gold Text */
    border: 1px solid rgba(212, 197, 169, 0.4) !important; /* Subtle Gold Border */
    font-family: 'Cinzel', serif !important; /* Premium Display Font */
    font-size: 0.85rem !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 8px 16px !important;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5) !important;
    border-radius: 2px !important; /* Sharper corners for elegance */
}

/* Premium Arrow */
.whatsapp-tooltip::after {
    border-color: transparent transparent transparent rgba(212, 197, 169, 0.4) !important; /* Match border color */
    left: 100% !important;
    margin-left: 0 !important; /* Reset */
    border-width: 6px !important;
}

/* Inner arrow to cover border for seamless look (Optional, but keeping simple first) */


/* =========================================
   CATALOG REQUEST BUTTON
   ========================================= */
.catalog-request-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 4rem; /* Space from the grid */
    padding-bottom: 2rem;
}

.btn-catalog {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: 'Cinzel', serif; /* Premium font match */
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: #d4c5a9; /* Champagne Gold */
    border: 1px solid #d4c5a9;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.4s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-catalog:hover {
    background: #d4c5a9;
    color: #0e0d0c; /* Dark text on hover */
    box-shadow: 0 0 20px rgba(212, 197, 169, 0.3);
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .catalog-request-wrapper {
        margin-top: 3rem;
    }
    
    .btn-catalog {
        width: 80%; /* Wider responsive button */
        text-align: center;
        padding: 1rem 1rem;
    }
}


/* =========================================
   REFINED PREMIUM BUTTON STYLES
   ========================================= */
.btn-catalog {
    /* Reinforce Button Look */
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    /* Ensure it feels like a button */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
}

/* Add a subtle icon or arrow to make it actionable */
.btn-catalog::after {
    content: '›';
    margin-left: 10px;
    font-family: sans-serif; /* or a nice icon font if available */
    transition: transform 0.3s ease;
}

.btn-catalog:hover::after {
    transform: translateX(5px);
}

/* Ensure wrapper is perfectly centered */
.catalog-request-wrapper {
    text-align: center; /* Fallback */
    align-items: center;
}

/* Mobile specific positioning if needed */
@media (max-width: 768px) {
    .catalog-request-wrapper {
        order: 99; /* Force to bottom if in flex container */
        width: 100%;
        padding: 0 5%; /* Side padding */
    }
    .btn-catalog {
        width: 100%; /* Full width button on mobile for better touch */
        max-width: 300px;
    }
}


/* =========================================
   CHOICE MODAL STYLES (WhatsApp vs Email)
   ========================================= */
.choice-modal-content {
    max-width: 400px !important;
    text-align: center;
    padding: 3rem 2rem !important;
}

.choice-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 2rem;
}

.btn-choice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.05);
}

.btn-choice:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
}

.btn-whatsapp:hover {
    border-color: #25D366;
    color: #25D366;
    box-shadow: 0 0 15px rgba(37, 211, 102, 0.3);
}

.btn-email:hover {
    border-color: #d4c5a9;
    color: #d4c5a9;
    box-shadow: 0 0 15px rgba(212, 197, 169, 0.3);
}


/* FORCE REMOVE ARROW/QUESTION MARK */
.btn-catalog::after {
    content: '' !important;
    display: none !important;
}


/* FINAL OVERRIDE: Remove 'question mark' artifact */
.btn-catalog::after {
    content: none !important;
    display: none !important;
}

