/* =============================================================
   KAYKO KAFE — MAIN STYLESHEET
   Vintage black & gold luxury cafe theme
   ============================================================= */

/* -------------------------------------------------------------
   1. CSS VARIABLES (design tokens)
------------------------------------------------------------- */
:root {
    /* Core palette — matches the Kayko Kafe banner exactly */
    --black: #0a0a0a;
    --black-soft: #141210;
    --gold: #c9a24b;
    --gold-bright: #e8c873;
    --gold-dim: #8a6f34;
    --brown: #3c2a1e;
    --brown-light: #5a3f2b;
    --cream: #f3ead9;
    --cream-dim: #d8c9ac;

    /* Semantic tokens */
    --bg: var(--black);
    --bg-elevated: var(--black-soft);
    --text: var(--cream);
    --text-dim: var(--cream-dim);
    --accent: var(--gold);
    --accent-bright: var(--gold-bright);
    --border-color: var(--gold-dim);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Cormorant Garamond', serif;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3.5rem;
    --space-xl: 6rem;

    /* Shape */
    --radius: 14px;
    --radius-sm: 8px;

    /* Shadow */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 0 1px rgba(201, 162, 75, 0.35), 0 10px 30px rgba(0, 0, 0, 0.55);
}

/* -------------------------------------------------------------
   2. RESET & BASE
------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-bright);
    letter-spacing: 0.03em;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

/* -------------------------------------------------------------
   3. REUSABLE ELEMENTS
------------------------------------------------------------- */

/* Elegant divider with coffee bean */
.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin: var(--space-md) auto;
    max-width: 320px;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.divider-bean {
    font-size: 1.2rem;
    color: var(--accent);
}

/* Luxury button */
.btn {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1rem 2.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn--luxury {
    background: linear-gradient(135deg, var(--gold-bright), var(--gold) 55%, var(--gold-dim));
    color: var(--black);
    border: 1px solid var(--gold-bright);
    box-shadow: var(--shadow-gold);
}

.btn--luxury:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(201, 162, 75, 0.35), var(--shadow-soft);
}

.btn--small {
    padding: 0.65rem 1.75rem;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------
   4. FADE-IN ANIMATION (base — refined further in Step 6)
------------------------------------------------------------- */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

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

/* -------------------------------------------------------------
   5. HERO SECTION (index.html)
------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(201, 162, 75, 0.08), transparent 60%),
        var(--black);
    padding: var(--space-xl) var(--space-md);
    overflow: hidden;
}

.hero-content {
    max-width: 720px;
}

.hero-logo {
    width: min(100%, 560px);
    margin: 0 auto var(--space-md);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-gold);
}

.hero-tagline {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1.1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-tagline .dot {
    color: var(--gold-dim);
    margin: 0 0.35em;
}

.hero-slogan {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

/* Decorative corner ornaments */
.hero-ornament {
    position: absolute;
    width: 90px;
    height: 90px;
    border: 1px solid var(--gold-dim);
    opacity: 0.6;
    pointer-events: none;
}

.hero-ornament--top-left {
    top: 24px;
    left: 24px;
    border-right: none;
    border-bottom: none;
}

.hero-ornament--top-right {
    top: 24px;
    right: 24px;
    border-left: none;
    border-bottom: none;
}

.hero-ornament--bottom-left {
    bottom: 24px;
    left: 24px;
    border-right: none;
    border-top: none;
}

.hero-ornament--bottom-right {
    bottom: 24px;
    right: 24px;
    border-left: none;
    border-top: none;
}

/* -------------------------------------------------------------
   6. ATMOSPHERE STRIP (index.html)
------------------------------------------------------------- */
.atmosphere {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-elevated);
    border-top: 1px solid rgba(201, 162, 75, 0.15);
    border-bottom: 1px solid rgba(201, 162, 75, 0.15);
}

.atmosphere-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.4rem;
    color: var(--text-dim);
    margin-bottom: var(--space-sm);
}

.atmosphere-icons {
    color: var(--gold-dim);
    letter-spacing: var(--space-sm);
    font-size: 1.1rem;
}

/* -------------------------------------------------------------
   7. MENU HEADER (menu.html)
------------------------------------------------------------- */
.menu-header {
    text-align: center;
    padding: var(--space-lg) var(--space-md) var(--space-md);
    background:
        radial-gradient(ellipse at top, rgba(201, 162, 75, 0.08), transparent 60%),
        var(--black);
    border-bottom: 1px solid rgba(201, 162, 75, 0.2);
}

.menu-logo {
    width: min(100%, 340px);
    margin: 0 auto var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-gold);
}

.menu-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    letter-spacing: 0.12em;
}

.menu-subtitle {
    font-family: var(--font-heading);
    color: var(--text-dim);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

/* Category navigation cards */
.category-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
    max-width: 720px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1 1 160px;
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-bright);
    box-shadow: var(--shadow-gold);
}

.category-icon {
    font-size: 2rem;
}

.category-label {
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    color: var(--accent);
}

/* -------------------------------------------------------------
   8. MENU SECTIONS & ITEM CARDS (menu.html)
------------------------------------------------------------- */
.menu-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-lg) var(--space-md);
}

.menu-section {
    margin-bottom: var(--space-xl);
    scroll-margin-top: 24px; /* keeps smooth-scroll target clear of the top edge */
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: var(--space-xs);
}

.section-icon {
    font-size: 1.4rem;
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, var(--gold-dim), transparent 70%);
    margin-bottom: var(--space-md);
}

.subsection-title {
    font-family: var(--font-heading);
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 0.05em;
    margin: var(--space-md) 0 var(--space-sm);
    text-transform: uppercase;
}

/* Menu item grid — each item is a small luxury card with an image */
.menu-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-sm);
}

.menu-item {
    display: flex;
    flex-direction: column;
    background: var(--bg-elevated);
    border: 1px solid rgba(201, 162, 75, 0.25);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.menu-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-bright);
    box-shadow: var(--shadow-gold);
}

/* Item photo */
.item-photo {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-bottom: 1px solid rgba(201, 162, 75, 0.25);
}

/* Text row inside the card: name .... price */
.item-info {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
}

.item-name-block {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--text);
    white-space: nowrap;
}

.item-detail {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-style: italic;
}

.item-dots {
    flex: 1;
    border-bottom: 2px dotted var(--gold-dim);
    height: 0;
    transform: translateY(-4px);
}

.item-price {
    font-family: var(--font-heading);
    color: var(--accent-bright);
    font-weight: 700;
    white-space: nowrap;
}

/* Ingredient line for panzerotti items */
.menu-item-ingredients {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    color: var(--text-dim);
    padding: 0 0.25rem 0.5rem;
    margin-top: -0.5rem;
}

.menu-item-ingredients span {
    color: var(--accent);
}

/* Extendable / placeholder items */
.menu-list--empty {
    margin-top: var(--space-sm);
}

.menu-item--placeholder {
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    border-style: dashed;
    opacity: 0.6;
}

.menu-item--placeholder .item-name {
    font-style: italic;
    color: var(--text-dim);
}

.menu-back-link {
    text-align: center;
    margin-top: var(--space-lg);
}

/* -------------------------------------------------------------
   9. FOOTER (shared)
------------------------------------------------------------- */
.site-footer {
    background: var(--black-soft);
    border-top: 1px solid rgba(201, 162, 75, 0.25);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}

.footer-slogan {
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--text-dim);
    margin-bottom: var(--space-sm);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
    border-color: var(--accent-bright);
    background: rgba(201, 162, 75, 0.1);
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--gold-dim);
}
