/* Hunza Oxidane V2 — Premium Design System */

:root {
    --cyan: #3AB2D5;
    --cyan-glow: rgba(58, 178, 213, 0.35);
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --radius: 1.25rem;
}

html:not(.dark) {
    --bg: #fafbfc;
    --bg-elevated: #ffffff;
    --bg-muted: #f1f5f9;
    --text: #0c1222;
    --text-muted: #64748b;
    --border: rgba(12, 18, 34, 0.08);
    --glass: rgba(255, 255, 255, 0.72);
    --hero-overlay: linear-gradient(180deg, rgba(250,251,252,0.3) 0%, rgba(250,251,252,0.95) 100%);
    --mesh-1: rgba(58, 178, 213, 0.12);
    --mesh-2: rgba(148, 163, 184, 0.08);
    --shadow: 0 24px 64px rgba(12, 18, 34, 0.08);
}

html.dark {
    --bg: #050508;
    --bg-elevated: #0d0d12;
    --bg-muted: #14141c;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(13, 13, 18, 0.75);
    --hero-overlay: linear-gradient(180deg, rgba(5,5,8,0.2) 0%, rgba(5,5,8,0.92) 100%);
    --mesh-1: rgba(58, 178, 213, 0.15);
    --mesh-2: rgba(58, 178, 213, 0.05);
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

html.theme-ready * {
    transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), color 0.3s ease;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
.hidden { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: min(1280px, 92vw);
    margin-inline: auto;
}

/* Mesh background */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, var(--mesh-1), transparent),
        radial-gradient(ellipse 60% 40% at 90% 20%, var(--mesh-2), transparent),
        var(--bg);
}

/* Typography */
.display {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--cyan);
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 0;
}

.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(1.4);
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.logo-pill {
    display: flex;
    align-items: center;
    padding: 0.35rem 0.85rem;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.3s var(--ease-out);
}
.logo-pill:hover { transform: scale(1.03); }
.logo-pill img { height: 1.35rem; }

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
    list-style: none;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.nav-links a {
    color: var(--text-muted);
    transition: color 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--cyan); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.theme-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.25s;
}
.theme-btn:hover {
    color: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
    transition: all 0.35s var(--ease-out);
}

.btn-primary {
    background: var(--cyan);
    color: #000;
    box-shadow: 0 8px 32px var(--cyan-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 48px var(--cyan-glow);
    background: #fff;
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    backdrop-filter: blur(8px);
}
.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.mobile-toggle {
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text);
}

.mobile-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 4vw;
    right: 4vw;
    padding: 1.5rem;
    background: var(--glass);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}
.mobile-menu a:last-child { border-bottom: none; color: var(--cyan); }

@media (min-width: 900px) {
    .nav-links { display: flex; }
    .mobile-toggle { display: none; }
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: heroZoom 20s ease-in-out infinite alternate;
}
@keyframes heroZoom {
    to { transform: scale(1.12); }
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: clamp(3.5rem, 12vw, 9rem);
    margin-bottom: 1.5rem;
}

.hero-title em {
    font-style: italic;
    color: var(--cyan);
}

.hero-desc {
    max-width: 32rem;
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--cyan);
}
.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Sections */
section { padding: 6rem 0; }

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

/* Bento grid */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.25rem;
}

.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    min-height: 280px;
    transition: transform 0.5s var(--ease-out), box-shadow 0.5s;
}
.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.bento-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out);
}
.bento-card:hover img { transform: scale(1.06); }

.bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
}

.bento-span-8 { grid-column: span 12; }
.bento-span-4 { grid-column: span 12; }
.bento-span-6 { grid-column: span 12; }

@media (min-width: 768px) {
    .bento-span-8 { grid-column: span 8; }
    .bento-span-4 { grid-column: span 4; }
    .bento-span-6 { grid-column: span 6; }
}

/* Product cards */
.products-scroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.product-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    aspect-ratio: 3/4;
    cursor: pointer;
}

.product-card.featured {
    border-color: var(--cyan);
    box-shadow: 0 0 0 1px var(--cyan), 0 24px 64px var(--cyan-glow);
}

.product-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: all 0.7s var(--ease-out);
}
.product-card:hover img {
    opacity: 0.9;
    transform: scale(1.08);
}

.product-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    color: #fff;
}

.product-badge {
    align-self: flex-start;
    padding: 0.35rem 0.75rem;
    background: var(--cyan);
    color: #000;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 999px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 2rem;
    line-height: 1.1;
}

/* Marquee */
.marquee-wrap {
    overflow: hidden;
    border-block: 1px solid var(--border);
    padding: 1.25rem 0;
    background: var(--bg-muted);
}
.marquee-track {
    display: flex;
    gap: 3rem;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--text-muted);
}
.marquee-track .accent { color: var(--cyan); }
@keyframes marquee {
    to { transform: translateX(-50%); }
}

/* CTA band */
.cta-band {
    position: relative;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
    border-radius: var(--radius);
    margin: 2rem 0;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--cyan) 0%, #1a8fad 100%);
    opacity: 0.15;
}
.cta-band .inner { position: relative; z-index: 1; }

/* Forms */
.form-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.form-field {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    color: var(--text);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.25s;
}
.form-field:focus { border-color: var(--cyan); }
.form-field::placeholder { color: var(--text-muted); opacity: 0.7; }

.form-grid { display: grid; gap: 1.25rem; }

/* Gallery masonry */
.gallery-grid {
    columns: 1;
    column-gap: 1.25rem;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}
.gallery-item img {
    width: 100%;
    transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
    content: 'View';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

@media (min-width: 640px) { .gallery-grid { columns: 2; } }
@media (min-width: 1024px) { .gallery-grid { columns: 3; } }

/* Footer */
.site-footer {
    padding: 5rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-grid h4 {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 1.25rem;
}

.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 0.65rem; }
.footer-grid a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.25s;
}
.footer-grid a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Page hero (inner pages) */
.page-hero {
    padding: 10rem 0 4rem;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
}
.page-hero p {
    max-width: 36rem;
    margin: 1.5rem auto 0;
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 0.5rem;
}
.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal.open { display: flex; }
.modal-panel {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    width: min(480px, 100%);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-muted);
}
.modal-close:hover { color: var(--cyan); }

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
    opacity: 1;
    transform: none;
}

/* Loader */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s, visibility 0.5s;
}
#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.loader-bar {
    width: 120px;
    height: 3px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}
.loader-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 40%;
    background: var(--cyan);
    animation: load 1s ease-in-out infinite;
}
@keyframes load {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

/* Contact info cards */
.info-card {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 1rem;
}
.info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--bg-muted);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    flex-shrink: 0;
}

/* Map */
.map-wrap {
    height: 24rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    filter: grayscale(1) contrast(1.1);
    opacity: 0.85;
}
html.dark .map-wrap { filter: grayscale(1) invert(1) contrast(1.1); opacity: 0.6; }

/* Prose */
.prose { max-width: 65ch; color: var(--text-muted); }
.prose p { margin-bottom: 1.25rem; }
.prose h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--text);
    margin: 2.5rem 0 1rem;
}

.split-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}
@media (min-width: 768px) {
    .split-grid { grid-template-columns: 1fr 1fr; }
}

.split-grid img {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.badge-v1 {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}
.badge-v1:hover { border-color: var(--cyan); color: var(--cyan); }
