/* ==========================================================================
   Vivnix Demo Websites — shared stylesheet
   Each demo sets a theme class on <body> that overrides the colour tokens.
   ========================================================================== */

:root {
    --brand: #0f766e;
    --brand-dark: #134e4a;
    --accent: #f59e0b;
    --bg: #ffffff;
    --bg-soft: #f8fafc;
    --text: #0f172a;
    --muted: #475569;
    --radius: 14px;
    --font-head: 'Poppins', 'Segoe UI', sans-serif;
}

.theme-restaurant { --brand: #b91c1c; --brand-dark: #7f1d1d; --accent: #f59e0b; --bg-soft: #fff7ed; }
.theme-clinic { --brand: #0369a1; --brand-dark: #0c4a6e; --accent: #10b981; --bg-soft: #f0f9ff; }
.theme-brass { --brand: #a16207; --brand-dark: #1c1917; --accent: #eab308; --bg-soft: #fafaf9; }
.theme-boutique { --brand: #be185d; --brand-dark: #500724; --accent: #f472b6; --bg-soft: #fdf2f8; }
.theme-gym { --brand: #c2593f; --brand-dark: #7a2f1e; --accent: #eed9c4; --bg-soft: #fdf6f0; }
.theme-jewellery { --brand: #b8860b; --brand-dark: #0b0b0e; --accent: #e9c46a; --bg-soft: #faf7ef; }

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-head); color: var(--text); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }

/* Vivnix demo ribbon */
.demo-ribbon { background: #0f172a; color: #e2e8f0; font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-ribbon a { color: #34d399; font-weight: 700; margin-left: 8px; }

/* Header */
.d-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid #e2e8f0; }
.d-header-inner { max-width: 1140px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.d-logo { font-weight: 800; font-size: 22px; color: var(--brand-dark); text-decoration: none; }
.d-logo span { color: var(--brand); }
.d-nav { display: flex; gap: 22px; }
.d-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.d-nav a:hover { color: var(--brand); }
.d-menu-btn { display: none; background: none; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 20px; padding: 4px 10px; cursor: pointer; }

/* Buttons */
.d-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 15px; font-family: inherit; }
.d-btn-primary { background: var(--brand); color: #fff; }
.d-btn-primary:hover { background: var(--brand-dark); }
.d-btn-ghost { border-color: #fff; color: #fff; }
.d-btn-wa { background: #25d366; color: #fff; }

/* Hero */
.d-hero { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%); color: #fff; padding: 90px 16px 80px; }
.d-hero-inner { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.d-hero h1 { font-size: clamp(30px, 5vw, 50px); font-weight: 800; }
.d-hero p { font-size: 18px; opacity: 0.92; max-width: 560px; }
.d-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.d-hero-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; border: 4px solid rgba(255, 255, 255, 0.25); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.d-badge { display: inline-block; background: var(--accent); color: var(--brand-dark); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }

/* Sections */
.d-section { padding: 70px 16px; }
.d-section.alt { background: var(--bg-soft); }
.d-inner { max-width: 1140px; margin: 0 auto; }
.d-title { text-align: center; font-size: clamp(26px, 4vw, 36px); color: var(--brand-dark); }
.d-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

.d-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.d-card { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 24px; box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05); }
.d-card-icon { font-size: 36px; margin-bottom: 10px; }
.d-card-img { width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 233 / 148; object-fit: cover; margin: -24px -24px 16px; border-radius: var(--radius) var(--radius) 0 0; }
.d-card p { color: var(--muted); margin: 0; }
.d-price { font-weight: 800; color: var(--brand); font-size: 18px; margin-top: 10px; }

/* Menu / product list */
.d-list { list-style: none; margin: 0; padding: 0; }
.d-list li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #cbd5e1; }
.d-list li strong { color: var(--text); }
.d-list li span { color: var(--brand); font-weight: 700; white-space: nowrap; }

/* Filter tabs (boutique / brass) */
.d-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 28px; }
.d-tab { background: #fff; border: 1.5px solid #e2e8f0; border-radius: 999px; padding: 8px 18px; font-weight: 600; cursor: pointer; font-family: inherit; }
.d-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.d-card.is-hidden { display: none; }

/* Scrolling price ticker */
.d-ticker { background: var(--brand-dark); color: #fff; padding: 14px 0 16px; overflow: hidden; }
.d-ticker-top { max-width: 1140px; margin: 0 auto 10px; padding: 0 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.d-ticker-title { font-size: 16px; margin: 0; display: flex; align-items: center; gap: 8px; }
.d-ticker-meta { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.d-ticker-btn { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 8px; width: 34px; height: 30px; cursor: pointer; font-size: 12px; }
.d-pulse { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: d-pulse 1.8s infinite; }
@keyframes d-pulse { 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.d-ticker-viewport { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.d-ticker-list { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: d-ticker 32s linear infinite; }
.d-ticker-list li { display: flex; align-items: baseline; gap: 10px; padding: 6px 28px; border-right: 1px solid rgba(255, 255, 255, 0.15); white-space: nowrap; font-size: 15px; }
.d-ticker-list li span { opacity: 0.85; }
.d-ticker-list li strong { color: var(--accent); font-size: 17px; }
/* Moves left to right: starts shifted by one copy of the list and slides back to 0 */
@keyframes d-ticker { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.d-ticker.is-paused .d-ticker-list, .d-ticker.is-hidden-tab .d-ticker-list, .d-ticker-viewport:hover .d-ticker-list, .d-ticker:focus-within .d-ticker-list { animation-play-state: paused; }
/* Reduced-motion users (incl. Windows "Animation effects" off): scroll slower instead of stopping;
   the pause button stays available */
@media (prefers-reduced-motion: reduce) {
    .d-ticker-list { animation-duration: 60s; }
    .d-pulse { animation: none; }
}
@media (max-width: 768px) {
    .d-ticker-list li { padding: 6px 18px; font-size: 14px; }
    .d-ticker-list li strong { font-size: 15px; }
}

/* People, reviews, map, FAQ */
.d-hours { max-width: 480px; margin: 0 auto 24px; }
.d-person { text-align: center; }
.d-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 4px solid var(--bg-soft); }
.d-review { margin: 0; }
.d-stars { color: #f59e0b; letter-spacing: 2px; font-size: 18px; }
.d-review blockquote { margin: 10px 0 14px; color: var(--text); font-size: 15px; line-height: 1.6; }
.d-review figcaption { color: var(--muted); font-size: 13px; font-weight: 600; }
.d-map { border-radius: var(--radius); overflow: hidden; border: 1px solid #e2e8f0; aspect-ratio: 16 / 7; }
.d-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.d-narrow { max-width: 760px; }
.d-faq { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; }
.d-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary::after { content: "+"; color: var(--brand); font-size: 20px; line-height: 1; }
.d-faq[open] summary::after { content: "−"; }
.d-faq p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Stats strip */
.d-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; text-align: center; }
.d-stat strong { display: block; font-size: 34px; color: var(--brand); }
.d-stat span { color: var(--muted); font-size: 14px; }

/* Form */
.d-form { display: grid; gap: 14px; max-width: 560px; margin: 0 auto; }
.d-form label { font-weight: 600; font-size: 14px; }
.d-form input, .d-form select, .d-form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-family: inherit; font-size: 15px; }
.d-form textarea { min-height: 100px; resize: vertical; }
.d-form-note { font-size: 13px; color: var(--muted); text-align: center; }

/* Footer */
.d-footer { background: var(--brand-dark); color: #e2e8f0; padding: 40px 16px; text-align: center; font-size: 14px; }
.d-footer a { color: #fff; }

/* Floating WhatsApp */
.d-wa-float { position: fixed; right: 20px; bottom: 20px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 26px; text-decoration: none; box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); z-index: 60; }

@media (max-width: 768px) {
    .d-menu-btn { display: block; }
    .d-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 16px; border-bottom: 1px solid #e2e8f0; }
    .d-nav.open { display: flex; }
    .d-hero { padding: 60px 16px; }
    .d-hero-inner { grid-template-columns: 1fr; text-align: center; }
    .d-hero p { margin: 0 auto; }
    .d-hero-actions { justify-content: center; }
    .d-hero-img { max-width: 420px; margin: 0 auto; }
}
