/*
    ============================================================================
    CyberSartoria V3 - Atelier Stylesheet
    "La Sicurezza non si installa. Si indossa."

    Architecture: Modular Luxury (Atelier Foundation)
    Precision: Millimetric
    Ref: [CS-V3-CSS-2026]
    ============================================================================
*/

/* -------------------------------------------------------------------------- */
/* 1. ARCHITECTURE HERITAGE (Variables & Design Tokens)                       */
/* "I colori dell'Atelier non sono scelti a caso. 
    L'oro per l'eccellenza, il blu per la profondità del codice."             */
/* -------------------------------------------------------------------------- */

:root {
    /* Premium Sartoria Palette */
    --gold: #C5A030;
    /* Antique Gold */
    --gold-light: #E1C16E;
    --gold-glow: rgba(197, 160, 48, 0.4);
    --navy-midnight: #050B16;
    --navy-medium: #0D1626;
    --navy-light: #162133;
    --charcoal: #121212;
    --cream: #FAF9F6;
    /* Linen/Silk White */
    --white: #FFFFFF;

    /* Typography - The Voice of Authority */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --letter-spacing-heading: -0.02em;
    --letter-spacing-body: 0.01em;

    /* Fluid Luxury Spacing */
    --space-xs: clamp(0.5rem, 1vw, 0.75rem);
    --space-sm: clamp(1rem, 2vw, 1.5rem);
    --space-md: clamp(2rem, 4vw, 3rem);
    --space-lg: clamp(3rem, 6vw, 6rem);
    --space-xl: clamp(6rem, 12vw, 12rem);

    /* Surgical Precision Effects */
    --transition-slow: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-med: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-premium: 0 40px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.08);
    --border-radius: 4px;
}

/* Theme Awareness: Dark Mode (Default) */
[data-theme="dark"] {
    --bg-main: var(--navy-midnight);
    --bg-card: var(--navy-medium);
    --bg-input: var(--navy-midnight);
    --text-main: var(--white);
    --text-dim: #A0AEC0;
    --border-color: rgba(212, 175, 55, 0.2);
    --bg-alt: rgba(10, 22, 40, 0.4);
    --menu-gradient: linear-gradient(135deg, var(--bg-main) 0%, #0A1128 100%);
}

/* Theme Awareness: Light Mode */
[data-theme="light"] {
    --bg-main: var(--cream);
    --bg-card: var(--white);
    --bg-input: transparent;
    --text-main: var(--navy-midnight);
    --text-dim: var(--charcoal);
    --border-color: rgba(212, 175, 55, 0.1);
    --bg-alt: rgba(255, 255, 255, 0.5);
    --menu-gradient: linear-gradient(135deg, var(--bg-main) 0%, #F5F5F0 100%);
}

/* -------------------------------------------------------------------------- */
/* 2. ATELIER FOUNDATION (Reset & Base Styles)                                */
/* -------------------------------------------------------------------------- */

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

/* GLOBAL LINK OVERRIDE - NO BLUE LINKS EVER */
a {
    color: var(--gold) !important;
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--gold-light) !important;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: var(--letter-spacing-heading);
    line-height: 1.1;
    color: var(--text-main);
}

/* -------------------------------------------------------------------------- */
/* 3. STRUCTURAL INTEGRITY (Layout & Common Containers)                       */
/* -------------------------------------------------------------------------- */

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

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.sub-title {
    display: block;
    color: var(--gold);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.section-desc {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-dim);
    font-size: 1.2rem;
}

/* -------------------------------------------------------------------------- */
/* 4. ATELIER NAVIGATION                                                      */
/* -------------------------------------------------------------------------- */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition-med);
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar.scrolled {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border-bottom: 2px dashed var(--gold);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-emblem {
    height: 70px;
    width: auto;
    filter: drop-shadow(0 0 10px rgba(197, 160, 48, 0.4));
    transition: var(--transition-med);
}

.brand-text {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.nav-links {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition-med);
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--gold);
}

.nav-cta {
    color: var(--gold) !important;
    font-weight: 700 !important;
    border: 1px solid var(--gold);
    padding: 0.4rem 1.25rem;
    border-radius: var(--border-radius);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    z-index: 2001;
    /* Ensure above texture-overlay */
}

.theme-toggle button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-med);
    color: var(--text-main);
}

/* -------------------------------------------------------------------------- */
/* 5. COMPONENTS OF DISTINCTION (Buttons & Badges)                            */
/* -------------------------------------------------------------------------- */

.btn-maestro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3.5rem;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, var(--gold), #A1811F);
    /* Surgical Gold Gradient */
    color: var(--navy-midnight);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transition: var(--transition-med);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-maestro::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-maestro:hover::before {
    left: 100%;
}

.btn-maestro:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.4);
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem 3.5rem;
    border: 1px solid var(--gold);
    border-radius: var(--border-radius);
    color: var(--gold);
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-med);
    background: transparent;
    font-weight: 600;
}

.btn-link:hover {
    background: rgba(197, 160, 48, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-link span {
    display: inline-block;
    transition: var(--transition-med);
    margin-left: 5px;
}

.btn-link:hover span {
    transform: translateX(10px);
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .cta-group {
        flex-direction: column;
        gap: 1.5rem;
    }

    .btn-maestro,
    .btn-link {
        width: 100%;
        padding: 1.2rem 2rem;
    }
}

.maestro-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold);
    border-radius: 50px;
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

/* -------------------------------------------------------------------------- */
/* 6. THE COLLECTIONS (Main Sections Styles)                                   */
/* -------------------------------------------------------------------------- */

/* Hero: The Entrance */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    padding-bottom: var(--space-lg);
}

.grand-entrance {
    font-size: clamp(3rem, 10vw, 6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero .accent {
    color: var(--gold);
    font-style: italic;
}

.mystery-description {
    font-size: 1.5rem;
    color: var(--text-dim);
    max-width: 700px;
    margin-bottom: 3rem;
}

/* Services: Cards & Grid */
.services {
    padding: var(--space-xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.premium-card {
    background: var(--bg-card);
    border: 1px dashed var(--gold);
    padding: var(--space-md);
    border-radius: var(--border-radius);
    transition: var(--transition-med);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--gold-light);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5), 0 0 20px var(--gold-glow);
}

.exclusivity {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 3px 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Technical DNA */
.technical-dna {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-main);
}

.dna-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1024px) {
    .dna-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .dna-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .dna-item {
        padding: 1.25rem 1rem;
    }
}

.dna-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border-left: 1px solid var(--gold);
}

.dna-label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.7;
}

/* Methodology: Steps */
.methodology {
    background: var(--bg-alt);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.step-card {
    padding: var(--space-md);
    position: relative;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    transition: var(--transition-med);
}

.step-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.2;
    position: absolute;
    top: 0;
    right: 1rem;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

/* -------------------------------------------------------------------------- */
/* 7. THE ELITE BENEFITS (Why Us & Testimonials)                              */
/* -------------------------------------------------------------------------- */

/* Benefits: Why Us */
.perche-noi {
    padding: var(--space-xl) 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.benefit-item {
    text-align: center;
    padding: var(--space-md);
    transition: var(--transition-med);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

/* Social Proof: Testimonials */
.testimonials {
    padding-bottom: var(--space-xl);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.testimonial {
    font-style: italic;
    border-left: 4px solid var(--gold);
}

.quote-author {
    text-align: right;
    color: var(--gold);
    margin-top: 1rem;
    font-weight: 600;
}

/* -------------------------------------------------------------------------- */
/* 8. FORM INTEGRITY & CALL TO ACTION                                         */
/* -------------------------------------------------------------------------- */

.cta-box {
    background: var(--bg-card);
    border: 2px solid var(--gold);
    padding: var(--space-xl) var(--space-md);
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-premium);
}

.premium-form {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    color: var(--gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    outline: none;
    transition: var(--transition-med);
}

.form-group textarea {
    border-radius: 20px;
    resize: none;
}

/* Privacy Checkbox - Custom Styling */
.privacy-check {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--gold);
    border-radius: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    text-align: left;
}

.input-error {
    border-color: #ff6b6b !important;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.2) !important;
}

.form-error-banner {
    background: rgba(255, 107, 107, 0.1);
    border-left: 4px solid #ff6b6b;
    color: #ff6b6b;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.privacy-check label {
    margin-bottom: 0 !important;
    font-size: 0.85rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    color: var(--text-main) !important;
    line-height: 1.4;
    cursor: pointer;
    flex: 1;
}

.privacy-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px !important;
    height: 24px !important;
    border: 1px solid var(--gold);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
    position: relative;
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-check input[type="checkbox"]:checked {
    background: var(--gold);
}

.privacy-check input[type="checkbox"]:checked::after {
    content: '✓';
    color: #0c0c0c;
    font-size: 16px;
    font-weight: bold;
    display: block;
}

.privacy-check a {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}

/* -------------------------------------------------------------------------- */
/* 9. VISUAL INTERACTIVITY (Animations)                                       */
/* "L'animazione è il respiro dell'Atelier. 
    Nota la fluidità dell'ago: è determinata da un'inerzia calcolata. 
    Niente è lasciato al caso, nemmeno l'attrito digitale."                   */
/* -------------------------------------------------------------------------- */

/* Texture Overlay */
.texture-overlay {
    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.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
    z-index: 9999;
}

/* Sewing Animation Base */
.sewing-canvas {
    position: fixed;
    top: 0;
    left: 15px;
    width: 60px;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.needle {
    position: absolute;
    width: 3px;
    height: 60px;
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
    border-radius: 5px;
    left: -1px;
    z-index: 6;
    box-shadow: 0 0 15px var(--gold);
    animation: needlePulse 2s infinite alternate ease-in-out;
}

@keyframes needlePulse {
    from {
        box-shadow: 0 0 10px var(--gold);
        transform: translateY(0) scale(1);
    }

    to {
        box-shadow: 0 0 25px var(--gold), 0 0 15px var(--gold-light);
        transform: translateY(0) scale(1.1);
    }
}

#sewing-path {
    stroke: var(--gold);
    stroke-width: 2;
    fill: none;
    stroke-dasharray: 15, 10;
    filter: drop-shadow(0 0 5px var(--gold));
}

/* Luxury Gold Shine */
.gold-shine {
    position: relative;
    display: inline-block;
    color: var(--gold);
}

.gold-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: luxury-shine 5s infinite;
}

@keyframes luxury-shine {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

.footer-meta a {
    color: var(--gold);
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* 12. THE FINAL TOUCH (Footer)                                               */
/* -------------------------------------------------------------------------- */

.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.footer-logo {
    height: 80px;
    width: auto;
    filter: brightness(0.9) contrast(1.1);
}

.footer-meta {
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.footer-meta a {
    color: var(--gold);
    text-decoration: none;
}

/* -------------------------------------------------------------------------- */
/* 10. ATELIER MOBILE MENU (Option B)                                         */
/* -------------------------------------------------------------------------- */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
    padding: 0.5rem;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    transition: var(--transition-med);
}

.hamburger {
    display: block;
    width: 28px;
    height: 2px;
    background: var(--gold);
    position: relative;
    transition: var(--transition-med);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gold);
    transition: var(--transition-med);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

.menu-toggle.active .hamburger {
    background: transparent;
}

.menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--menu-gradient);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    width: 100%;
    height: 100%;
    padding: var(--space-xl) var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 8vw, 2.2rem);
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.menu-emblem {
    max-height: 120px;
    width: auto;
    opacity: 0.15;
    filter: brightness(0.8) sepia(1) saturate(5) hue-rotate(10deg);
    transition: var(--transition-med);
}

[data-theme="dark"] .menu-emblem {
    filter: invert(1) brightness(0.8) sepia(1) saturate(5) hue-rotate(10deg);
}

.mobile-menu.active .menu-emblem {
    opacity: 0.25;
}

/* -------------------------------------------------------------------------- */
/* 11. DISCRETIONARY ELEMENTS & UTILITIES                                     */
/* -------------------------------------------------------------------------- */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-med);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px var(--gold-glow);
}

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 1px solid var(--gold);
    padding: 1.5rem;
    border-radius: 10px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-med);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
}

.cookie-content a {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

.cookie-content a:hover {
    color: var(--white);
    border-bottom-color: var(--white);
}

.cookie-banner.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-cookie {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    background: var(--gold);
    color: white;
    border: 1px solid var(--gold);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-med);
}

.btn-cookie.secondary {
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
}

@media (max-width: 768px) {
    .cookie-banner {
        bottom: 15px;
        left: 15px;
        right: 15px;
        padding: 1.25rem;
    }

    .cookie-actions {
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
        text-align: center;
    }
}

/* -------------------------------------------------------------------------- */
/* 14. ACCESSIBILITY - SKIP LINK                                              */
/* -------------------------------------------------------------------------- */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gold);
    color: var(--navy-midnight);
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10000;
    border-radius: 0 0 4px 0;
    transition: var(--transition-med);
}

.skip-link:focus {
    top: 0;
    box-shadow: 0 5px 15px rgba(197, 160, 48, 0.3);
}

/* -------------------------------------------------------------------------- */
/* 13. RESPONSIVE PERFECTION (Elite Standard)                                 */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .method-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        text-align: center;
        padding-top: 100px;
    }

    .grand-entrance {
        font-size: 2.8rem;
    }

    .method-steps,
    .benefits-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .sewing-canvas {
        width: 30px;
        opacity: 0.4;
    }

    .brand-emblem {
        height: 55px;
    }

    .brand-text {
        height: 35px;
    }
}

@media (max-width: 480px) {
    .brand-text {
        display: none;
    }

    .grand-entrance {
        font-size: clamp(2rem, 10vw, 2.5rem);
    }
}