/* ==========================================================================
   Shared template-demo styles
   Each demo page sets a theme class on <body>: theme-clothing, theme-food,
   theme-business — these define the accent colors used below.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&family=Poppins:wght@400;500;600;700&family=Sora:wght@600;700;800&display=swap');

:root {
    --demo-radius: 20px;
    --demo-shadow: 0 25px 60px rgba(0, 0, 0, 0.14);
    --body-font: 'Inter', 'Segoe UI', Tahoma, sans-serif;
}

body.theme-clothing {
    --accent: #c9a876;
    --accent-dark: #a9845a;
    --bg: #fafaf8;
    --bg-alt: #111111;
    --text: #17171a;
    --text-muted: #6b6b6f;
    --heading-font: 'Playfair Display', Georgia, serif;
}

body.theme-food {
    --accent: #ff6b35;
    --accent-dark: #e6551f;
    --bg: #fffaf5;
    --bg-alt: #2a1a12;
    --text: #241512;
    --text-muted: #7a6258;
    --heading-font: 'Poppins', 'Segoe UI', sans-serif;
}

body.theme-business {
    --accent: #f5a623;
    --accent-dark: #d88f14;
    --bg: #f6f8fb;
    --bg-alt: #0f1b33;
    --text: #101828;
    --text-muted: #5b6478;
    --heading-font: 'Sora', 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    padding-top: 108px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Demo ribbon */
.demo-ribbon {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--bg-alt);
    color: #ffffff;
    padding: 0.65rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
    font-size: 0.9rem;
}

.demo-ribbon a {
    color: #ffffff;
    background: var(--accent);
    padding: 0.4rem 1.1rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.demo-ribbon a:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Header */
.demo-header {
    position: fixed;
    top: 44px;
    left: 0;
    right: 0;
    z-index: 1050;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.demo-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.demo-logo {
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.demo-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.demo-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.demo-links a:hover {
    color: var(--accent-dark);
}

.demo-links .demo-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
}

.demo-links .demo-cta:hover {
    color: #fff;
    opacity: 0.9;
}

/* Section basics */
section {
    padding: 100px 0;
}

.eyebrow {
    display: block;
    text-align: center;
    color: var(--accent-dark);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

.demo-title {
    font-family: var(--heading-font);
    text-align: center;
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.demo-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

/* Hero */
.demo-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 40px;
    color: #ffffff;
    background-color: var(--bg-alt);
    background-size: cover;
    background-position: center;
}

.demo-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.4) 100%);
}

.demo-hero-content {
    position: relative;
    z-index: 1;
    max-width: 650px;
    animation: demoFadeInUp 0.9s ease both;
}

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

.demo-hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.demo-hero h1 {
    font-family: var(--heading-font);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.demo-hero p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.demo-btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.demo-btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.demo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.demo-btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    margin-left: 1rem;
}

.demo-btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Grid cards (products / menu / services) */
.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.demo-card {
    background: #ffffff;
    border-radius: var(--demo-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.demo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--demo-shadow);
}

.demo-card-media {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.6s ease;
}

.demo-card:hover .demo-card-media {
    transform: scale(1.07);
}

.demo-card-price {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.demo-card-media-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18) 0%, transparent 55%),
        linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.demo-card-media-icon span {
    font-size: 3.5rem;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.demo-card-body {
    padding: 1.5rem;
}

.demo-card-body h3 {
    font-family: var(--heading-font);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.demo-card-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.demo-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 0.5rem;
}

/* Alternating section background */
.section-alt {
    background: var(--bg-alt);
    color: #ffffff;
}

.section-alt .demo-title,
.section-alt .eyebrow {
    color: #ffffff;
}

.section-alt .demo-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

/* About / split layout */
.demo-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.demo-split-media {
    flex: 1;
    min-height: 380px;
    border-radius: var(--demo-radius);
    background-size: cover;
    background-position: center;
    box-shadow: var(--demo-shadow);
}

.demo-split-content {
    flex: 1;
}

.demo-split-content h2 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.demo-split-content p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.section-alt .demo-split-content p {
    color: rgba(255, 255, 255, 0.75);
}

/* Feature list (used by business template) */
.demo-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.demo-feature {
    background: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: var(--demo-radius);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.demo-feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
}

.demo-feature h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.demo-feature p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Testimonial */
.demo-testimonial {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.demo-testimonial p.quote {
    font-size: 1.4rem;
    font-style: italic;
    font-family: var(--heading-font);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.demo-testimonial .stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.demo-testimonial .author {
    font-weight: 700;
    color: var(--text-muted);
}

/* Info strip (hours / location / order info) */
.demo-info-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.demo-info-strip div h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.demo-info-strip div p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

/* Final CTA */
.demo-final-cta {
    text-align: center;
    padding: 6rem 2rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: #ffffff;
    border-radius: var(--demo-radius);
    margin: 0 2rem;
}

.demo-final-cta h2 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.demo-final-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.demo-final-cta .demo-btn-primary {
    background: #ffffff;
    color: var(--accent-dark);
}

/* Footer */
.demo-footer {
    background: var(--bg-alt);
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2.5rem 2rem;
    font-size: 0.9rem;
}

.demo-footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 900px) {
    .demo-grid,
    .demo-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .demo-split {
        flex-direction: column;
    }

    .demo-info-strip {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 700px) {
    body {
        padding-top: 130px;
    }

    .demo-header {
        top: 64px;
    }

    .demo-links {
        display: none;
    }

    .demo-hero h1 {
        font-size: 2.2rem;
    }

    .demo-hero p {
        font-size: 1rem;
    }

    .demo-title {
        font-size: 2rem;
    }

    .demo-grid,
    .demo-feature-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 70px 0;
    }

    .demo-btn-outline {
        margin-left: 0;
        margin-top: 0.75rem;
        display: inline-block;
    }

    .demo-final-cta {
        margin: 0 1rem;
        padding: 3.5rem 1.5rem;
    }
}
