/* Modaysan — Custom Luxury Styles */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --ink-950: #0f1012;
    --ink-900: #1a1c20;
    --ink-800: #22252a;
    --ink-700: #2d3138;
    --ink-600: #3a3f47;
    --gold:    #d4af37;
    --gold-lt: #e8c84f;
    --gold-dk: #b8960f;
    --cream:   #f0ebe0;
    --muted:   #8a8a8a;
}

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

html { scroll-behavior: smooth; }

body {
    background: var(--ink-950);
    color: var(--cream);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ─── Typography ─── */
h1, h2, h3, h4, .font-serif { font-family: 'Cormorant Garamond', Georgia, serif; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 300; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 400; }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); font-weight: 400; }

.text-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ─── Buttons ─── */
.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dk));
    color: var(--ink-950);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-lt), var(--gold));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.35);
}
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: 1px solid var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-outline:hover {
    background: rgba(212,175,55,0.08);
    transform: translateY(-2px);
}

/* ─── Cards ─── */
.card-luxury {
    background: var(--ink-800);
    border: 1px solid var(--ink-700);
    border-left: 2px solid var(--gold);
    transition: transform 0.35s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.card-luxury:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.15);
}

.card-product {
    background: var(--ink-800);
    border: 1px solid var(--ink-700);
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.card-product:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.card-product:hover .card-product-img {
    transform: scale(1.05);
}
.card-product-img {
    transition: transform 0.5s ease;
}

/* ─── Gold divider ─── */
.gold-divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1.5rem auto;
}
.gold-divider-left {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 1.25rem 0;
}

/* ─── Navbar ─── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15,16,18,0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212,175,55,0.12);
    transition: background 0.3s ease;
}
.nav-link {
    color: rgba(240,235,224,0.75);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.2s ease;
    padding: 0.25rem 0;
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--gold);
}
.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

/* ─── Hero Split ─── */
.hero-panel {
    position: relative;
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s ease;
}
.hero-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}
.hero-panel:hover::before { transform: scale(1.04); }
.hero-panel-overlay {
    position: absolute;
    inset: 0;
    transition: opacity 0.3s ease;
}
.hero-panel:hover .hero-panel-overlay { opacity: 0.5; }

/* ─── Homepage stat cards ─── */
.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-top: 1px solid rgba(212,175,55,0.3);
}
.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--gold);
    line-height: 1;
}

/* ─── Section labels ─── */
.section-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ─── About test grid ─── */
.test-card {
    background: var(--ink-800);
    border: 1px solid var(--ink-700);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.test-card:hover {
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-4px);
}
.test-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 50%;
    color: var(--gold);
}

/* ─── Product detail gallery ─── */
.gallery-thumb {
    cursor: pointer;
    aspect-ratio: 1;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.6;
}
.gallery-thumb.active, .gallery-thumb:hover {
    border-color: var(--gold);
    opacity: 1;
}

/* ─── Specs table ─── */
.specs-table tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.specs-table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--ink-700); font-size: 0.9rem; }
.specs-table td:first-child { color: var(--muted); font-weight: 500; width: 40%; }

/* ─── Quote modal ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}
.modal-box {
    background: var(--ink-800);
    border: 1px solid var(--ink-700);
    border-top: 2px solid var(--gold);
    max-width: 560px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}
.modal-overlay.open .modal-box { transform: translateY(0); }

/* ─── Contact form ─── */
.form-input {
    width: 100%;
    background: var(--ink-900);
    border: 1px solid var(--ink-700);
    color: var(--cream);
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s ease;
}
.form-input:focus { border-color: var(--gold); }
.form-input::placeholder { color: var(--muted); }
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

/* ─── Mobile menu ─── */
#mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--ink-900);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
}
#mobile-menu.open { display: flex; }
.mobile-nav-link {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.2s ease;
}
.mobile-nav-link:hover { color: var(--gold); }

/* ─── Footer ─── */
footer {
    background: var(--ink-900);
    border-top: 1px solid var(--ink-700);
}
.footer-link {
    color: var(--muted);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-link:hover { color: var(--gold); }

/* ─── Reference grid ─── */
.ref-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--ink-800);
    cursor: pointer;
}
.ref-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ref-card:hover .ref-card-overlay { opacity: 1; }
.ref-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.ref-card:hover img { transform: scale(1.06); }

/* ─── Admin panel (separate scope) ─── */
.admin-body {
    background: #13151a;
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}
.admin-sidebar {
    width: 240px;
    background: #1a1c20;
    border-right: 1px solid #2d3138;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
}
.admin-content { margin-left: 240px; }
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: #8a8a8a;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease;
    border-left: 2px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
    color: var(--gold);
    background: rgba(212,175,55,0.06);
    border-left-color: var(--gold);
}
.admin-card {
    background: #1a1c20;
    border: 1px solid #2d3138;
    padding: 1.5rem;
}
.admin-input {
    width: 100%;
    background: #13151a;
    border: 1px solid #2d3138;
    color: #f0ebe0;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s ease;
    font-family: 'Inter', sans-serif;
}
.admin-input:focus { border-color: var(--gold); }
.admin-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8a8a8a;
    margin-bottom: 0.5rem;
}
.admin-btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}
.admin-btn-gold {
    background: var(--gold);
    color: #0f1012;
}
.admin-btn-gold:hover { background: var(--gold-lt); }
.admin-btn-danger {
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
}
.admin-btn-danger:hover { background: rgba(239,68,68,0.1); }
.badge-unread {
    background: var(--gold);
    color: #0f1012;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}
@media (max-width: 768px) {
    .admin-sidebar { position: static; width: 100%; min-height: auto; }
    .admin-content { margin-left: 0; }
}

/* ─── WhatsApp floating button ─── */
#wa-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 150;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45), 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-decoration: none;
    animation: waPulse 3s ease-in-out infinite;
}
#wa-float:hover {
    transform: scale(1.12) translateY(-2px);
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.65), 0 4px 12px rgba(0,0,0,0.3);
    animation: none;
}
@keyframes waPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.3); }
    50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.7),  0 2px 8px rgba(0,0,0,0.3); }
}

/* ─── Shimmer button ─── */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}
.btn-shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
    transform: skewX(-20deg);
    animation: shimmer 3.8s ease infinite;
    pointer-events: none;
}
@keyframes shimmer {
    0%   { left: -100%; }
    55%  { left: 140%; }
    100% { left: 140%; }
}

/* ─── Glowing gold CTA button ─── */
.btn-glow-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--gold), var(--gold-dk));
    color: var(--ink-950);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(212,175,55,0.4), 0 0 40px rgba(212,175,55,0.15);
    animation: goldPulse 2.8s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.btn-glow-gold:hover {
    background: linear-gradient(135deg, var(--gold-lt), var(--gold));
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(212,175,55,0.65), 0 0 70px rgba(212,175,55,0.28);
    animation: none;
}
@keyframes goldPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(212,175,55,0.4), 0 0 40px rgba(212,175,55,0.15); }
    50%       { box-shadow: 0 0 38px rgba(212,175,55,0.7), 0 0 75px rgba(212,175,55,0.3); }
}

/* ─── Masterwork card ─── */
.card-masterwork {
    position: relative;
    background: var(--ink-800);
    border: 1px solid var(--ink-700);
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.card-masterwork:hover {
    transform: translateY(-8px);
    border-color: rgba(212,175,55,0.42);
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,175,55,0.1);
}

/* ─── Gold detail line (slides in on hover) ─── */
.gold-detail-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.45s ease;
    z-index: 2;
}
.card-masterwork:hover .gold-detail-line {
    transform: scaleX(1);
}

/* ─── Masterwork image ─── */
.masterwork-img {
    transition: transform 0.65s ease, filter 0.65s ease;
    filter: brightness(0.88);
}
.card-masterwork:hover .masterwork-img {
    transform: scale(1.07);
    filter: brightness(1);
}

/* ─── Products grid ─── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* ─── Product card wrapper (animated entrance) ─── */
.product-card-wrap {
    animation: cardFadeIn 0.6s ease forwards;
    opacity: 0;
}
@keyframes cardFadeIn {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Scroll bounce arrow ─── */
@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
    50%       { transform: translateX(-50%) translateY(9px); opacity: 0.4; }
}

/* ─── Vertical product gallery ─── */
.vertical-gallery-wrap {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 0.75rem;
    align-items: start;
}
.vertical-thumbs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212,175,55,0.3) transparent;
}
.vertical-thumbs::-webkit-scrollbar { width: 3px; }
.vertical-thumbs::-webkit-scrollbar-track { background: transparent; }
.vertical-thumbs::-webkit-scrollbar-thumb { background: rgba(212,175,55,0.3); }
.gallery-thumb-v {
    width: 76px;
    height: 58px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, opacity 0.2s ease;
    opacity: 0.55;
    flex-shrink: 0;
    display: block;
}
.gallery-thumb-v.active,
.gallery-thumb-v:hover {
    border-color: var(--gold);
    opacity: 1;
}

/* ─── Premium test cards (about page) ─── */
.test-card-premium {
    background: var(--ink-800);
    border: 1px solid var(--ink-700);
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease;
}
.test-card-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}
.test-card-premium:hover {
    border-color: rgba(212,175,55,0.3);
    transform: translateY(-5px);
    box-shadow: 0 18px 44px rgba(0,0,0,0.5);
}
.test-card-premium:hover::after {
    transform: scaleX(1);
}
.test-icon-lg {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(212,175,55,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

/* ─── Responsive two-column layout ─── */
@media (max-width: 768px) {
    .responsive-two-col {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .vertical-gallery-wrap {
        grid-template-columns: 60px 1fr;
        gap: 0.5rem;
    }
    .gallery-thumb-v {
        width: 60px;
        height: 46px;
    }
    .vertical-thumbs {
        max-height: 360px;
    }
}
