/* ============================================
   ZEN-O — SHARED STYLES
   Dark Metallic Theme + Premium Mobile Menu
   ============================================ */

:root {
    --bg-primary: #0c0c10;
    --bg-secondary: #12121a;
    --bg-card: #181822;
    --bg-card-hover: #1e1e2c;
    --bg-input: #0f0f16;
    --accent-red: #c41e3a;
    --accent-red-light: #e63950;
    --accent-red-glow: rgba(196, 30, 58, 0.15);
    --accent-gold: #d4a843;
    --accent-silver: #a8a8a8;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --text-muted: #6a6a6a;
    --border: #252530;
    --border-focus: rgba(196, 30, 58, 0.4);
    --success: #22c55e;
    --error: #ef4444;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(196, 30, 58, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Dark Metallic Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255,255,255,0.008) 2px, rgba(255,255,255,0.008) 4px),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 20% 0%, rgba(196, 30, 58, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(212, 168, 67, 0.04) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 168, 168, 0.02) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: bgShift 30s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.95; }
}

/* ============================================
   NAVIGATION — DESKTOP
   ============================================ */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 4%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(12, 12, 16, 0.92);
    backdrop-filter: blur(24px) saturate(1.8);
    -webkit-backdrop-filter: blur(24px) saturate(1.8);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: padding var(--transition-normal);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    letter-spacing: -0.5px;
    z-index: 1002;
}

.logo span {
    color: var(--accent-red);
}

.logo-tagline {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-left: 0.5rem;
    opacity: 0.8;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
    padding: 0.4rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: width var(--transition-normal);
    border-radius: 2px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

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

.nav-cta {
    background: var(--accent-red);
    color: white;
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all var(--transition-normal);
    border: 2px solid var(--accent-red);
    white-space: nowrap;
}

.nav-cta:hover {
    background: transparent;
    color: var(--accent-red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(196, 30, 58, 0.25);
}

/* ============================================
   MOBILE MENU — BULLETPROOF IMPLEMENTATION
   ============================================ */

.menu-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    cursor: pointer;
    padding: 0;
    background: rgba(196, 30, 58, 0.08);
    border: 1px solid rgba(196, 30, 58, 0.2);
    border-radius: 10px;
    z-index: 1002;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(196, 30, 58, 0.15);
    border-color: rgba(196, 30, 58, 0.4);
}

.menu-toggle span {
    display: block;
    position: absolute;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle.active {
    background: rgba(196, 30, 58, 0.2);
    border-color: var(--accent-red);
}

.menu-toggle.active span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile nav overlay */
@media (max-width: 768px) {
    nav {
        padding: 0.8rem 4%;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        height: 100dvh;
        background: rgba(8, 8, 14, 0.98);
        backdrop-filter: blur(40px) saturate(2);
        -webkit-backdrop-filter: blur(40px) saturate(2);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 5rem 1.5rem 2rem;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        display: block;
        font-size: 1.2rem;
        font-weight: 600;
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(37, 37, 48, 0.6);
        color: var(--text-secondary);
        transition: all 0.25s ease;
        flex-shrink: 0;
        text-decoration: none;
    }

    .nav-links a:first-child {
        border-top: 1px solid rgba(37, 37, 48, 0.6);
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent-red-light);
        background: rgba(196, 30, 58, 0.08);
    }

    .nav-links a::after {
        display: none !important;
    }

    .nav-cta {
        display: none;
    }

    .nav-links .nav-cta-mobile {
        display: block;
        margin: 1.5rem auto 0;
        font-size: 1rem;
        padding: 0.9rem 2rem;
        border: 2px solid var(--accent-red);
        background: var(--accent-red);
        color: white;
        border-radius: 50px;
        width: fit-content;
        text-align: center;
        text-decoration: none;
        font-weight: 600;
    }

    .nav-links .nav-cta-mobile:hover {
        background: transparent;
        color: var(--accent-red-light);
    }

    section {
        padding: 3.5rem 4%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-links {
        gap: 1.2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    :root {
        --radius-lg: 16px;
        --radius-xl: 20px;
    }

    nav {
        padding: 0.7rem 3%;
    }

    .logo {
        font-size: 1.3rem;
    }

    .logo-tagline {
        display: none;
    }

    section {
        padding: 2.5rem 3%;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
        width: 100%;
        justify-content: center;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .card {
        padding: 1.8rem 1.2rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }

    .card-icon svg {
        width: 24px;
        height: 24px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 0.8rem 1rem;
        font-size: 16px;
    }

    .footer {
        padding: 2rem 3%;
    }

    .footer-links {
        gap: 1rem;
    }
}

@media (min-width: 769px) {
    .nav-links .nav-cta-mobile {
        display: none;
    }

    .menu-toggle {
        display: none !important;
    }
}

@media (min-width: 1400px) {
    section {
        max-width: 1300px;
    }
}

/* ============================================
   SECTIONS & HEADERS
   ============================================ */

section {
    padding: 5rem 4%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-header p {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.7;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-primary {
    background: var(--accent-red);
    color: white;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    border: 2px solid var(--accent-red);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(196, 30, 58, 0.2);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-red-light);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(196, 30, 58, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-normal);
    border: 2px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    white-space: nowrap;
}

.btn-secondary:hover {
    border-color: var(--accent-silver);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-large {
    padding: 1.1rem 2.8rem;
    font-size: 1.05rem;
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-red);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(196, 30, 58, 0.25);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(196, 30, 58, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(196, 30, 58, 0.15);
}

.card-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-red);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

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

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group label .required {
    color: var(--accent-red);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.9rem 1.1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all var(--transition-normal);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236a6a6a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.2rem;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-red);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.form-checkbox label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--accent-red-light);
    text-decoration: none;
}

.form-note {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   FOOTER
   ============================================ */

footer {
    border-top: 1px solid var(--border);
    padding: 3rem 4%;
    text-align: center;
    background: var(--bg-secondary);
}

.footer-logo {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.footer-logo span {
    color: var(--accent-red);
}

.footer-fullname {
    color: var(--text-muted);
    font-size: 0.72rem;
    font-style: italic;
    margin-bottom: 0.8rem;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition-normal);
    padding: 0.3rem 0;
}

.footer-links a:hover {
    color: var(--accent-red-light);
}

.footer-email {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-email a {
    color: var(--accent-red-light);
    text-decoration: none;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-bottom a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-normal);
}

.footer-bottom a:hover {
    color: var(--accent-red-light);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) {
    .card:hover { transform: none; }
    .btn-primary:hover, .btn-secondary:hover { transform: none; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ============================================
   FORM MESSAGES
   ============================================ */

.form-message {
    display: none;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: var(--success);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: var(--error);
}

/* ============================================
   LOADING STATES
   ============================================ */

.form-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-loading.active {
    display: inline-flex;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--accent-red);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   IMAGES
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.image-container:hover img {
    transform: scale(1.05);
}
