/* ============================================
   Template: business-visual  (DEMO skin — "Kafé Havblikk")
   Image-led café/bakeri showcase for Codecraft Web.
   Warm editorial palette + Fraunces serif headings.
   Fictional café — everything here is demo content.
   ============================================ */

:root {
    --bg-primary: #fbf7f0;
    --bg-secondary: #f3ebdd;
    --bg-card: #ffffff;
    --border: #e7ddca;
    --border-light: #d8cbb2;
    --text-primary: #2a2420;
    --text-secondary: #544b40;
    --text-muted: #8a7d6c;
    --accent: #c1614a;
    --accent-hover: #a94f3a;
    --accent-secondary: #2f5d50;
    --accent-glow: rgba(193, 97, 74, 0.10);
    --gradient-accent: linear-gradient(135deg, #c1614a, #2f5d50);
    --shadow-sm: 0 1px 3px rgba(42, 36, 32, 0.05), 0 1px 2px rgba(42, 36, 32, 0.04);
    --shadow-md: 0 16px 40px rgba(42, 36, 32, 0.12);
    --shadow-lg: 0 30px 70px rgba(42, 36, 32, 0.20);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
    --radius: 14px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    padding-bottom: 40px; /* room for the fixed demo bar */
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Placeholder images (.img-ph) — tinted, tasteful
   ============================================ */
.img-ph {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    padding: 24px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 55%),
        linear-gradient(150deg, #f6ecdb 0%, #ecd9c4 42%, #d9c3ab 100%);
    color: var(--accent-secondary);
}

.img-ph::after {
    /* subtle grain/vignette so it reads as a photo slot, not a flat box */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(130% 100% at 50% 120%, rgba(47, 93, 80, 0.16), transparent 60%);
    pointer-events: none;
}

.ph-icon {
    width: 46px;
    height: 46px;
    opacity: 0.55;
    position: relative;
    z-index: 1;
}

.ph-caption {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
    line-height: 1.4;
    max-width: 26ch;
    color: var(--text-secondary);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* ============================================
   Navigation — transparent over hero
   ============================================ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(251, 247, 240, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom-color: var(--border);
    box-shadow: 0 1px 16px rgba(42, 36, 32, 0.06);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.25rem;
    z-index: 1001;
    color: #fff;
    transition: color var(--transition);
}

/* Over the dark hero the logo text is white; once scrolled it goes dark. */
#navbar.scrolled .nav-logo { color: var(--text-primary); }

.logo-monogram {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--gradient-accent);
    color: #fff;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(193, 97, 74, 0.35);
}

.logo-text { letter-spacing: 0.01em; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    transition: color var(--transition);
    position: relative;
}

#navbar.scrolled .nav-links a { color: var(--text-secondary); }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-accent);
    transition: width var(--transition);
    border-radius: 1px;
}

.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: #fff; }
#navbar.scrolled .nav-links a:hover { color: var(--text-primary); }

.lang-toggle {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 6px;
}

#navbar.scrolled .lang-toggle {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-secondary);
}

.lang-toggle:hover { border-color: var(--accent); }
.lang-toggle .lang-flag.active { color: #ffd9cd; }
#navbar.scrolled .lang-toggle .lang-flag.active { color: var(--accent); }
.lang-divider { opacity: 0.5; font-weight: 300; }

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-hamburger span {
    display: block;
    width: 26px;
    height: 2px;
    background: #fff;
    transition: var(--transition);
    border-radius: 2px;
}

#navbar.scrolled .nav-hamburger span { background: var(--text-primary); }
.nav-hamburger.active span { background: var(--text-primary); }
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 34px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 26px rgba(193, 97, 74, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 34px rgba(193, 97, 74, 0.5);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: #fff;
    color: var(--text-primary);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ============================================
   Hero — full-bleed image
   ============================================ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 90px;
    overflow: hidden;
}

.hero-ph {
    position: absolute;
    inset: 0;
    z-index: 0;
    /* larger, richer gradient so the hero placeholder feels like a full photo */
    background:
        radial-gradient(120% 90% at 25% 15%, rgba(255, 236, 214, 0.45), transparent 55%),
        linear-gradient(160deg, #d98a5f 0%, #b6604a 38%, #6a4a44 70%, #2f5d50 100%);
    color: rgba(255, 255, 255, 0.85);
}

.hero-ph::after {
    background: radial-gradient(120% 90% at 50% 110%, rgba(20, 30, 26, 0.4), transparent 60%);
}

.hero-ph .ph-icon { width: 60px; height: 60px; opacity: 0.4; }
.hero-ph .ph-caption { color: rgba(255, 255, 255, 0.82); font-size: 1rem; }

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(42, 36, 32, 0.45) 0%, rgba(42, 36, 32, 0.20) 40%, rgba(42, 36, 32, 0.60) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 760px;
    color: #fff;
}

.hero-eyebrow {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.hero-tagline {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    max-width: 620px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.95);
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 3px; height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 20px; opacity: 0.3; }
}

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

.section-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 14px;
}

.section-head-center {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-title-center {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 18px;
}

.section-lead-center {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ============================================
   Story — image + text
   ============================================ */
#story { background: var(--bg-primary); }

.story-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 72px;
    align-items: center;
}

.story-media {
    position: relative;
}

.story-ph {
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.story-badge {
    position: absolute;
    bottom: -24px;
    right: -18px;
    background: var(--accent-secondary);
    color: #fff;
    padding: 18px 26px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.story-badge-year {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.story-badge-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.85;
    margin-top: 4px;
}

.story-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin-bottom: 22px;
}

.story-text p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: 1.02rem;
    line-height: 1.8;
}

.story-sign {
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--accent) !important;
    font-size: 1.1rem !important;
    margin-top: 6px;
}

/* ============================================
   Menu — image cards
   ============================================ */
#menu { background: var(--bg-secondary); }

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-light);
}

.menu-ph {
    aspect-ratio: 4 / 3;
}

.menu-card:hover .menu-ph .ph-icon {
    opacity: 0.7;
    transition: opacity var(--transition);
}

.menu-card-body {
    padding: 22px 24px 26px;
}

.menu-card-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.menu-card-top h3 {
    font-family: var(--font-serif);
    font-size: 1.28rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.menu-price {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.menu-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ============================================
   Gallery — masonry-ish grid
   ============================================ */
#gallery { background: var(--bg-primary); }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.gallery-item:hover .ph-icon { opacity: 0.72; transition: opacity var(--transition); }

.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

.gallery-ph {
    /* vary the tint a touch per position via nth-of-type below */
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.32), transparent 55%),
        linear-gradient(150deg, #f2e2cd 0%, #e4ccb0 45%, #cbb195 100%);
}

.gallery-item:nth-child(2) .gallery-ph {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.3), transparent 55%),
        linear-gradient(150deg, #e8d3bd 0%, #d3a98f 50%, #c1614a 130%);
}

.gallery-item:nth-child(4) .gallery-ph {
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.28), transparent 55%),
        linear-gradient(150deg, #dfe4d5 0%, #a9c0b0 55%, #2f5d50 140%);
}

/* ============================================
   Visit — hours + find us
   ============================================ */
#visit { background: var(--bg-secondary); }

.visit-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    align-items: stretch;
}

.visit-info h2 {
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.6vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
}

.visit-info > p {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 34px;
    max-width: 46ch;
}

.visit-hours {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.visit-hours h3 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hours-list { list-style: none; }

.hours-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.hours-list li:last-child { border-bottom: none; }
.hours-list li span:first-child { color: var(--text-secondary); }
.hours-list li span:last-child { font-weight: 600; color: var(--text-primary); }

.visit-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.visit-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.visit-contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.visit-contact-item a { color: var(--text-primary); font-weight: 500; transition: color var(--transition); }
.visit-contact-item a:hover { color: var(--accent); }

.visit-map { display: flex; }

.map-ph {
    aspect-ratio: auto;
    min-height: 380px;
    height: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background:
        radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, 0.3), transparent 55%),
        linear-gradient(150deg, #e8e0cf 0%, #cdd6c8 50%, #a9c0b3 100%);
}

/* ============================================
   Footer
   ============================================ */
footer {
    background: var(--text-primary);
    color: #fff;
    padding: 56px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-logo { color: #fff; }
.footer-logo .logo-text { color: #fff; }

.footer-credit {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65);
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Demo ribbon (fixed) — same as other demos
   ============================================ */
.demo-ribbon {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--gradient-accent);
    box-shadow: 0 -2px 16px rgba(42, 36, 32, 0.18);
}

.demo-ribbon a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
    opacity: 0.92;
}

.demo-ribbon a:hover { opacity: 1; }

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

@media (max-width: 900px) {
    .story-grid { grid-template-columns: 1fr; gap: 56px; }
    .story-media { max-width: 460px; }
    .story-badge { right: 16px; }
    .visit-grid { grid-template-columns: 1fr; gap: 40px; }
    .map-ph { min-height: 300px; }
}

@media (max-width: 768px) {
    section { padding: 84px 0; }

    .nav-hamburger { display: flex; }

    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 26px;
        border-left: 1px solid var(--border);
        transition: right var(--transition);
    }

    .nav-links.open { right: 0; }
    .nav-links a { color: var(--text-secondary); font-size: 1.15rem; }
    .lang-toggle { background: var(--bg-card); border-color: var(--border); color: var(--text-secondary); }
    .lang-toggle .lang-flag.active { color: var(--accent); }

    .menu-grid { grid-template-columns: 1fr; }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 300px; }

    .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
}

@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
    .gallery-wide, .gallery-tall { grid-column: auto; grid-row: auto; }
    .story-badge { position: static; margin: 20px auto 0; display: inline-block; }
}
