/* ==========================================================================
   URFA HANDICRAFTS — Premium Design System v2
   ========================================================================== */

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

:root {
    --charcoal: #1c1b19;
    --charcoal-soft: #26241f;
    --marble: #f2eee6;
    --marble-dim: #e8e2d5;
    --stone-grey: #4a4844;
    --gold: #b8935f;
    --gold-light: #d4b483;
    --brass: #8c6f42;
    --line: rgba(184, 147, 95, 0.25);
    --success: #2f7a4f;
    --error: #b3413a;

    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    --font-label: 'Jost', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

body {
    background: var(--marble);
    color: var(--charcoal);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .container { padding: 0 20px; } }

.eyebrow {
    font-family: var(--font-label);
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; color: var(--charcoal); line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 5vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.8rem); }
p { color: var(--stone-grey); font-size: 1rem; }

::selection { background: var(--gold); color: var(--marble); }

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--charcoal); color: var(--marble);
    padding: 12px 20px; z-index: 10000;
}
.skip-link:focus { left: 10px; top: 10px; }

.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; pointer-events: none;
    border-radius: 50%; z-index: 9999; transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
}
.cursor-dot { width: 6px; height: 6px; background: var(--gold); }
.cursor-ring {
    width: 34px; height: 34px; border: 1px solid var(--gold);
    transition: width 0.25s var(--ease), height 0.25s var(--ease), border-color 0.25s ease;
}
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--charcoal); }
@media (hover: none), (pointer: coarse) { .cursor-dot, .cursor-ring { display: none; } }

.btn {
    position: relative; display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.08em;
    text-transform: uppercase; font-weight: 500; padding: 16px 34px;
    border-radius: 2px; cursor: pointer; border: 1px solid transparent;
    overflow: hidden; isolation: isolate; transition: color 0.4s var(--ease), border-color 0.4s ease;
}
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; transition: transform 0.5s var(--ease); }
.btn-primary { background: var(--charcoal); color: var(--marble); }
.btn-primary::before { background: var(--gold); transform: translateY(101%); }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary:hover { color: var(--charcoal); }
.btn-outline { border-color: var(--charcoal); color: var(--charcoal); }
.btn-outline::before { background: var(--charcoal); transform: translateY(101%); }
.btn-outline:hover::before { transform: translateY(0); }
.btn-outline:hover { color: var(--marble); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-sm { padding: 10px 20px; font-size: 0.72rem; }
.magnetic { display: inline-block; will-change: transform; }

/* ============ HEADER / STICKY NAV ============ */
header.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: 18px 0;
    background: rgba(28, 27, 25, 0.55);
    backdrop-filter: blur(6px);
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s ease;
}
header.site-header.scrolled {
    padding: 12px 0;
    background: rgba(242, 238, 230, 0.96);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--marble); text-shadow: 0 1px 4px rgba(0,0,0,0.4); transition: color 0.4s ease, text-shadow 0.4s ease; }
header.site-header.scrolled .logo { color: var(--charcoal); text-shadow: none; }
.logo span { color: var(--gold); }

/* Wordmark beside the monogram image — metallic gold shine to match the artwork */
.logo-with-text { display: flex; align-items: center; gap: 14px; }

.logo-text {
    font-family: var(--font-display);
    font-size: 2.35rem;
    font-weight: 600;
    letter-spacing: 0.015em;
    line-height: 1;
    white-space: nowrap;
    background: linear-gradient(180deg, #f3dfb0 0%, var(--gold-light) 30%, var(--gold) 60%, var(--brass) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold);
    transition: filter 0.3s ease;
}
header.site-header.scrolled .logo-text {
    filter: brightness(0.9);
}

/* "Marbles" — slightly bolder weight for a two-tier hierarchy within the same metallic finish */
.logo-text span {
    font-weight: 700;
}

@media (max-width: 480px) { .logo-text { font-size: 1.7rem; } }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
    font-family: var(--font-label); font-size: 0.85rem; letter-spacing: 0.05em;
    position: relative; padding-bottom: 4px;
    color: var(--marble);
    text-shadow: 0 1px 3px rgba(0,0,0,0.35);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}
header.site-header.scrolled .nav-links a { color: var(--charcoal); text-shadow: none; }
.nav-links a::after {
    content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
    background: var(--gold); transition: width 0.35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-search-btn { font-size: 1.05rem; color: var(--marble); transition: color 0.4s ease; }
header.site-header.scrolled .nav-search-btn { color: var(--charcoal); }

.nav-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; padding: 4px; }
.nav-toggle span { width: 26px; height: 2px; border-radius: 1px; background: #f2eee6; transition: background 0.4s ease; }
header.site-header.scrolled .nav-toggle span { background: #1c1b19; }
/* When the mobile menu is open, the toggle sits over the always-dark mobile panel — force cream bars regardless of scroll state */
.nav-toggle.open span { background: #f2eee6 !important; }

@media (max-width: 860px) {
    .nav-links {
        position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 340px);
        background: var(--charcoal); flex-direction: column; justify-content: center;
        align-items: flex-start; padding: 40px; gap: 26px;
        transform: translateX(100%); transition: transform 0.5s var(--ease);
        box-shadow: -10px 0 40px rgba(0,0,0,0.25);
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a, header.site-header.scrolled .nav-links a { color: var(--marble) !important; text-shadow: none; font-size: 1.1rem; }
    .nav-toggle { display: flex; }
    .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ============ LOGO (client artwork, background removed) ============ */
.logo-img { height: 46px; width: auto; display: block; }
/* Safety cap: if either logo file gets dropped somewhere else with no size
   class (e.g. straight into the hero), this stops it rendering at native
   resolution on any screen size — mobile or desktop. */
img[src*="urfa-marbles"] { max-width: 220px; max-height: 220px; }

/* ============ HERO ============ */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: var(--charcoal); color: var(--marble); overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 20%, rgba(184,147,95,0.14), transparent 45%),
                radial-gradient(circle at 85% 75%, rgba(184,147,95,0.10), transparent 50%);
}
.hero-vein { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; pointer-events: none; }
.hero-vein path { stroke: var(--gold); stroke-width: 1; fill: none; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: carve 3.2s var(--ease) forwards 0.4s; }
@keyframes carve { to { stroke-dashoffset: 0; } }

.hero-content { position: relative; z-index: 2; max-width: 780px; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--marble); margin: 18px 0 26px; opacity: 0; animation: riseIn 1s var(--ease) forwards 0.5s; }
.hero h1 em { color: var(--gold-light); font-style: italic; }
.hero p.lead { color: rgba(242,238,230,0.72); font-size: 1.15rem; max-width: 560px; margin-bottom: 40px; opacity: 0; animation: riseIn 1s var(--ease) forwards 0.75s; }
.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; opacity: 0; animation: riseIn 1s var(--ease) forwards 1s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.hero-scroll {
    position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    color: rgba(242,238,230,0.5); font-family: var(--font-label); font-size: 0.7rem;
    letter-spacing: 0.2em; text-transform: uppercase;
}
.hero-scroll .line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

/* ============ BREADCRUMB ============ */
.breadcrumb {
    position: relative; z-index: 2; font-family: var(--font-label); font-size: 0.8rem;
    color: rgba(242,238,230,0.5); margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb.on-light { color: var(--stone-grey); }
.breadcrumb.on-light a { color: var(--gold); }

/* ============ REVEAL ON SCROLL ============ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ============ SECTIONS ============ */
section { padding: 110px 0; position: relative; }
@media (max-width: 640px) { section { padding: 70px 0; } }
.section-head { max-width: 640px; margin-bottom: 60px; }
.section-head h2 { margin-top: 14px; }
.section-alt { background: var(--marble-dim); }
.section-dark { background: var(--charcoal); color: var(--marble); }
.section-dark p { color: rgba(242,238,230,0.7); }
.section-dark h2, .section-dark h3 { color: var(--marble); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ============ PAGE HERO (inner pages) ============ */
.page-hero { background: var(--charcoal); color: var(--marble); padding: 190px 0 90px; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(184,147,95,0.14), transparent 50%); }
.page-hero .eyebrow { color: var(--gold-light); }
.page-hero h1 { color: var(--marble); margin-top: 14px; }

/* ============ CARDS / GRID ============ */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); padding: 36px 30px; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s ease; }
.card:hover { transform: translateY(-8px); box-shadow: 0 24px 48px rgba(28,27,25,0.1); border-color: var(--gold); }
.card .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); font-weight: 500; margin-bottom: 14px; display: block; }

/* ============ PRODUCT CARD / GRID / SEARCH / FILTER ============ */
.toolbar { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.search-box { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search-box input { width: 100%; border: 1px solid var(--line); background: #fff; padding: 13px 44px 13px 16px; font-family: var(--font-body); font-size: 0.92rem; }
.search-box input:focus { outline: none; border-color: var(--gold); }
.search-box .icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); }
.filter-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-chip { font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.04em; padding: 9px 18px; border: 1px solid var(--charcoal); cursor: pointer; transition: background 0.3s ease, color 0.3s ease; background: transparent; }
.filter-chip.active, .filter-chip:hover { background: var(--charcoal); color: var(--marble); }

.product-card { position: relative; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px rgba(28,27,25,0.12); }
.product-thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--marble-dim); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product-card:hover .product-thumb img { transform: scale(1.08); }
.product-body { padding: 24px 26px 28px; }
.product-cat { font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.product-body h3 { margin: 8px 0 10px; }
.product-body p { font-size: 0.92rem; margin-bottom: 16px; }
.product-link { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 8px; color: var(--charcoal); border-bottom: 1px solid var(--charcoal); padding-bottom: 2px; transition: gap 0.3s ease, color 0.3s ease, border-color 0.3s ease; }
.product-link:hover { gap: 14px; color: var(--gold); border-color: var(--gold); }
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state .icon { font-size: 3rem; color: var(--gold); margin-bottom: 20px; }

/* ============ PRODUCT DETAIL: GALLERY + ZOOM ============ */
.pd-gallery { position: relative; }
.pd-main-image { aspect-ratio: 4/3; overflow: hidden; background: var(--marble-dim); cursor: zoom-in; position: relative; }
.pd-main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pd-main-image.zoomed img { transform: scale(1.8); cursor: zoom-out; }
.pd-thumbs { display: flex; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.pd-thumb { width: 76px; height: 76px; overflow: hidden; cursor: pointer; border: 2px solid transparent; opacity: 0.6; transition: opacity 0.3s ease, border-color 0.3s ease; }
.pd-thumb.active, .pd-thumb:hover { opacity: 1; border-color: var(--gold); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.brochure-btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-label); font-size: 0.82rem; letter-spacing: 0.05em; color: var(--charcoal); border: 1px solid var(--line); padding: 12px 22px; margin-top: 16px; transition: border-color 0.3s ease, background 0.3s ease; }
.brochure-btn:hover { border-color: var(--gold); background: var(--marble-dim); }

/* ============ CALCULATOR ============ */
.calc-box { background: var(--charcoal); color: var(--marble); padding: 52px 48px; position: relative; overflow: hidden; }
.calc-box::before { content: ''; position: absolute; top: -40%; right: -10%; width: 60%; height: 180%; background: radial-gradient(circle, rgba(184,147,95,0.12), transparent 65%); }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; position: relative; z-index: 2; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 24px; }
.field label { display: block; font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 10px; }
.field select, .field input { width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(242,238,230,0.3); color: var(--marble); font-family: var(--font-body); font-size: 1.05rem; padding: 10px 2px; transition: border-color 0.3s ease; }
.field select:focus, .field input:focus { outline: none; border-color: var(--gold); }
.field select option { background: var(--charcoal); }
.calc-result { border: 1px solid var(--line); padding: 30px 26px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; }
.calc-result .rlabel { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); }
.calc-result .rvalue { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; }
.calc-result .rnote { font-size: 0.85rem; color: rgba(242,238,230,0.6); }

/* ============ TIMELINE ============ */
.timeline { position: relative; padding-left: 44px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 46px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -44px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(184,147,95,0.15); }
.timeline-item .year { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }

/* ============ TEAM ============ */
.team-card { text-align: center; }
.team-photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; background: var(--marble-dim); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card .role { font-family: var(--font-label); font-size: 0.78rem; color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* ============ TESTIMONIALS ============ */
.testimonial-card { background: #fff; border: 1px solid var(--line); padding: 36px 32px; }
.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-quote { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; margin-bottom: 20px; color: var(--charcoal); }
.testimonial-author { font-family: var(--font-label); font-size: 0.85rem; font-weight: 500; }
.testimonial-role { font-size: 0.8rem; color: var(--stone-grey); }

/* ============ FAQ ACCORDION ============ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 22px 4px; text-align: left; font-family: var(--font-label); font-size: 1rem; font-weight: 500; color: var(--charcoal); cursor: pointer; }
.faq-question .icon { transition: transform 0.4s var(--ease); color: var(--gold); flex-shrink: 0; margin-left: 20px; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer p { padding: 0 4px 22px; font-size: 0.94rem; }

/* ============ GALLERY + LIGHTBOX ============ */
.gallery-tabs { display: flex; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.gallery-tab { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.05em; padding: 10px 22px; border: 1px solid var(--charcoal); cursor: pointer; transition: background 0.35s ease, color 0.35s ease; background: transparent; }
.gallery-tab.active, .gallery-tab:hover { background: var(--charcoal); color: var(--marble); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }
.gallery-item { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--marble-dim); cursor: pointer; }
.gallery-item img, .gallery-item video { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.1); }
.gallery-item .tag { position: absolute; bottom: 14px; left: 14px; font-family: var(--font-label); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; background: rgba(28,27,25,0.75); color: var(--marble); padding: 6px 12px; }
.gallery-item .play-badge { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(28,27,25,0.65); color: var(--marble); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: opacity 0.3s ease; }
.gallery-item[data-type="video"]:hover .play-badge { opacity: 0; }

.lightbox { position: fixed; inset: 0; background: rgba(15,14,13,0.95); z-index: 5000; display: none; align-items: center; justify-content: center; padding: 40px; }
.lightbox.open { display: flex; }
.lightbox-content { max-width: 900px; max-height: 85vh; width: 100%; position: relative; }
.lightbox-content img, .lightbox-content video { width: 100%; height: 100%; max-height: 85vh; object-fit: contain; }
.lightbox-close { position: absolute; top: -46px; right: 0; color: var(--marble); font-size: 1.6rem; background: none; border: none; cursor: pointer; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--marble); font-size: 1.8rem; background: rgba(255,255,255,0.1); width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
@media (max-width: 900px) { .lightbox-prev { left: 6px; } .lightbox-next { right: 6px; } .lightbox-content { max-width: 100%; } }

/* ============ STATS SECTION (homepage) ============ */
.stats-section { padding: 90px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.stat-block {
    text-align: center;
    padding: 0 24px;
    position: relative;
}
.stat-block + .stat-block {
    border-left: 1px solid rgba(242,238,230,0.12);
}
.stat-value {
    font-family: 'Playfair Display', var(--font-display), serif;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(180deg, #f3dfb0 0%, var(--gold-light) 35%, var(--gold) 75%, var(--brass) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--gold-light);
}
.stat-label {
    margin-top: 12px;
    font-family: var(--font-label);
    font-size: 0.74rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(242,238,230,0.65);
}
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
    .stat-block + .stat-block { border-left: 1px solid rgba(242,238,230,0.12); }
    .stat-block:nth-child(odd) { border-left: none; }
}
@media (max-width: 560px) {
    .stats-section { padding: 64px 0; }
    .stats-grid { grid-template-columns: 1fr; row-gap: 0; }
    .stat-block { border-left: none !important; padding: 30px 10px; }
    .stat-block + .stat-block { border-left: none; border-top: 1px solid rgba(242,238,230,0.12); }
    .stat-value { font-size: 2.5rem; }
}

/* ============ SKELETON LOADING ============ */
.skeleton { position: relative; overflow: hidden; background: var(--marble-dim); }
.skeleton::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent); transform: translateX(-100%); animation: shimmer 1.5s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-card { aspect-ratio: 4/3; margin-bottom: 16px; }
.skeleton-line { height: 14px; margin-bottom: 10px; width: 80%; }
.skeleton-line.short { width: 50%; }

/* ============ FORMS ============ */
.form-box { max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-grey); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; border: 1px solid var(--line); background: #fff; padding: 14px 16px; font-family: var(--font-body); font-size: 0.95rem; color: var(--charcoal); transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-error-text { color: var(--error); font-size: 0.8rem; margin-top: 6px; display: block; }
.form-group.has-error input, .form-group.has-error textarea { border-color: var(--error); }

.alert { padding: 16px 20px; margin-bottom: 24px; font-size: 0.9rem; border-left: 3px solid var(--gold); background: var(--marble-dim); }
.alert-error { border-color: var(--error); }
.alert-success { border-color: var(--success); }

/* ============ TOAST NOTIFICATIONS ============ */
.toast-stack { position: fixed; top: 24px; right: 24px; z-index: 6000; display: flex; flex-direction: column; gap: 12px; }
.toast { background: var(--charcoal); color: var(--marble); padding: 16px 22px; min-width: 260px; max-width: 340px; font-size: 0.88rem; box-shadow: 0 12px 30px rgba(0,0,0,0.25); border-left: 3px solid var(--gold); transform: translateX(120%); transition: transform 0.4s var(--ease); }
.toast.show { transform: translateX(0); }
.toast.toast-success { border-color: var(--success); }
.toast.toast-error { border-color: var(--error); }

/* ============ CONTACT INFO ============ */
.contact-info-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon { color: var(--gold); font-size: 1.3rem; margin-top: 2px; }
.map-embed { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); margin-top: 30px; background: var(--marble-dim); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ============ FLOATING ACTION BUTTONS ============ */
.fab-stack { position: fixed; bottom: 28px; right: 28px; display: flex; flex-direction: column; gap: 14px; z-index: 900; }
.fab { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--marble); font-size: 1.4rem; box-shadow: 0 10px 24px rgba(28,27,25,0.25); transition: transform 0.35s var(--ease), opacity 0.3s ease; }
.fab:hover { transform: scale(1.1); }
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--charcoal); }
.fab-top { background: var(--gold); opacity: 0; pointer-events: none; }
.fab-top.visible { opacity: 1; pointer-events: auto; }

/* ============ FOOTER ============ */
footer { background: var(--charcoal); color: rgba(242,238,230,0.7); padding: 70px 0 30px; }
.footer-logo-img { height: 110px; width: auto; margin-bottom: 8px; display: block; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(242,238,230,0.1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--marble); font-family: var(--font-label); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; margin-bottom: 18px; }
.footer-grid a, .footer-grid p { font-size: 0.9rem; }
.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a:hover { color: var(--gold-light); }
.footer-social { display: flex; gap: 14px; margin-top: 6px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(242,238,230,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: border-color 0.3s ease, color 0.3s ease; }
.footer-social a:hover { border-color: var(--gold); color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; font-size: 0.8rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: rgba(242,238,230,0.6); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============ FOOTER CREDIT (STUDIO MARK) ============ */
.footer-credit {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 22px 20px;
    font-family: var(--font-label);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    background: var(--charcoal-soft);
    border-top: 1px solid rgba(242,238,230,0.08);
}
.footer-credit .credit-label {
    color: rgba(242,238,230,0.38);
}
.footer-credit a {
    color: rgba(242,238,230,0.6);
    border-bottom: 1px solid rgba(184,147,95,0.35);
    padding-bottom: 1px;
    transition: color 0.35s ease, border-color 0.35s ease;
}
.footer-credit a:hover {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

/* ============ COOKIE CONSENT ============ */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--charcoal); color: var(--marble); padding: 20px 24px; z-index: 7000; display: none; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; box-shadow: 0 -10px 30px rgba(0,0,0,0.2); }
.cookie-banner.show { display: flex; }
.cookie-banner p { color: rgba(242,238,230,0.8); font-size: 0.88rem; max-width: 640px; }
.cookie-banner a { color: var(--gold-light); text-decoration: underline; }

/* ============ 404 PAGE ============ */
.error-page { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 20px 80px; }
.error-page .code { font-family: var(--font-display); font-size: clamp(5rem, 15vw, 9rem); color: var(--gold); line-height: 1; }

/* ============ ADMIN PANEL SHARED ============ */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 250px; background: var(--charcoal); color: var(--marble); padding: 30px 22px; flex-shrink: 0; }
.admin-sidebar .logo { color: var(--marble); font-size: 1.3rem; margin-bottom: 10px; display: block; }
.admin-sidebar .logo span { color: var(--gold); }
.admin-sidebar .admin-user { font-size: 0.78rem; color: rgba(242,238,230,0.5); margin-bottom: 30px; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 4px; font-family: var(--font-label); font-size: 0.86rem; letter-spacing: 0.02em; color: rgba(242,238,230,0.75); border-radius: 3px; transition: background 0.25s ease, color 0.25s ease; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(184,147,95,0.15); color: var(--gold-light); }
.admin-nav .section-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(242,238,230,0.35); margin: 18px 0 6px 14px; }
.admin-main { flex: 1; padding: 40px 46px; background: var(--marble-dim); min-height: 100vh; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 34px; flex-wrap: wrap; gap: 16px; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.admin-table th { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone-grey); background: var(--marble-dim); }
.admin-table tbody tr:hover { background: var(--marble-dim); }
.admin-panel-box { background: #fff; padding: 30px; border: 1px solid var(--line); margin-bottom: 30px; }
.admin-panel-box h3 { margin-bottom: 20px; }
.btn-danger { background: var(--error); color: var(--marble); }
.btn-danger::before { background: #7c2b26; }
.status-pill { display: inline-block; padding: 3px 12px; font-size: 0.72rem; border-radius: 20px; font-family: var(--font-label); }
.pill-unread { background: #ffe9c7; color: #7a5a13; }
.pill-read { background: #dcdcd5; color: #4a4844; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.stat-card { display: flex; align-items: center; gap: 18px; }
.stat-card .icon-wrap { width: 54px; height: 54px; border-radius: 8px; background: var(--marble-dim); display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.3rem; flex-shrink: 0; }
@media (max-width: 800px) {
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; padding: 18px; }
    .admin-nav { display: flex; flex-wrap: wrap; gap: 6px; }
    .admin-nav .section-label { display: none; }
    .admin-main { padding: 24px; }
}
