/* ============================================================
   DAMIA CATERING — Design system
   Display: Fraunces (bakery-elegant serif) / Body: Inter
   Signature: gold foil "mühür" seal + dashed ticket edges
   ============================================================ */

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

:root {
    --paper: #FBF3E6;
    --paper-2: #F2E4CC;
    --paper-3: #EAD9B8;
    --ink: #2A1B12;
    --ink-soft: #5B4636;
    --choco: #2A160E;
    --choco-2: #3B2115;
    --berry: #9C2B3C;
    --berry-deep: #7A1F2C;
    --gold: #C79A46;
    --gold-light: #E7C878;
    --white: #FFFFFF;

    --shadow-sm: 0 4px 16px rgba(42, 22, 14, 0.10);
    --shadow-md: 0 14px 40px rgba(42, 22, 14, 0.16);
    --shadow-lg: 0 24px 64px rgba(42, 22, 14, 0.22);

    /* Glassmorphism surfaces — light glass keeps dark ink text (safe contrast),
       dark glass keeps light paper text (safe contrast). Never mix the two. */
    --glass-light: rgba(255, 255, 255, 0.62);
    --glass-light-strong: rgba(255, 255, 255, 0.8);
    --glass-light-border: rgba(255, 255, 255, 0.65);
    --glass-dark: rgba(30, 16, 10, 0.62);
    --glass-dark-strong: rgba(30, 16, 10, 0.88);
    --glass-dark-border: rgba(231, 200, 120, 0.3);
    --glass-blur: blur(18px) saturate(160%);
    --glass-blur-soft: blur(12px) saturate(140%);

    /* Motion tokens — snappy, consistent easing across the whole site */
    --ease: cubic-bezier(.4, 0, .2, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
    --dur-fast: 0.18s;
    --dur: 0.28s;
    --dur-slow: 0.5s;

    --radius-lg: 26px;
    --radius-md: 16px;
    --radius-sm: 10px;

    --container: 1180px;
}

* { 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.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--paper);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    font-size: 1rem;
}

/* Ambient color blobs — fixed, blurred, low-opacity. Purely decorative;
   they give the glass panels something soft to catch as they blur. */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
}
body::before {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -140px;
    background: radial-gradient(circle, rgba(156, 43, 60, 0.28), transparent 70%);
}
body::after {
    width: 460px;
    height: 460px;
    bottom: -140px;
    left: -120px;
    background: radial-gradient(circle, rgba(199, 154, 70, 0.30), transparent 70%);
}

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

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

a { color: var(--berry); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--berry-deep); }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--ink);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2em, 5vw, 3.4em); }
h2 { font-size: clamp(1.8em, 3.4vw, 2.5em); }
h3 { font-size: clamp(1.2em, 2.2vw, 1.5em); }

p { margin-bottom: 15px; color: var(--ink-soft); font-weight: 400; }

/* Eyebrow label — small caps signpost used above section titles */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--berry);
    margin-bottom: 14px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 2px;
    background: var(--gold);
    display: inline-block;
}

/* ============ Animations ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(26px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes headerDrop {
    from { opacity: 0; transform: translateX(-50%) translateY(-24px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}
@keyframes sealSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
}
[data-reveal].is-visible {
    animation: fadeInUp 0.5s var(--ease-out) forwards;
}

/* ============ Buttons ============ */
.btn, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    will-change: transform;
}

.btn {
    background: var(--berry);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn:hover {
    background: var(--berry-deep);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.btn:active { transform: translateY(-1px) scale(0.98); }

.btn-secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn-secondary:hover {
    background: var(--ink);
    color: var(--paper);
    transform: translateY(-3px);
}
.btn-secondary:active { transform: translateY(-1px) scale(0.98); }

/* ============ Header / Nav ============ */
header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1100px;
    z-index: 1000;
    animation: headerDrop 0.5s var(--ease-out);
    transition: top var(--dur) var(--ease);
    will-change: top;
}

header nav {
    background: var(--glass-dark-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-dark-border);
    border-radius: 999px;
    padding: 12px 12px 12px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
    position: relative;
}

.logo {
    font-family: 'Fraunces', serif;
    font-size: 1.25em;
    font-weight: 700;
    color: var(--paper);
    letter-spacing: 0.04em;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo img {
    height: 54px;
    width: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}
.logo-text {
    display: inline-block;
    font-size: 0.95em;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--paper);
}
.logo span { color: var(--gold-light); }

.footer-logo-block {
    margin: 0 auto 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.footer-logo {
    height: 42px;
    width: auto;
    display: block;
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.24);
}
@media (max-width: 860px) {
    .logo img { height: 44px; }
    .footer-logo { height: 34px; }
}

header nav ul {
    list-style: none;
    display: flex;
    gap: 4px;
    align-items: center;
}

header nav ul li a {
    color: rgba(251, 243, 230, 0.86);
    font-weight: 500;
    font-size: 0.92em;
    padding: 10px 16px;
    border-radius: 999px;
    display: inline-block;
    transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

header nav ul li a:hover {
    color: var(--choco);
    background: var(--gold-light);
}

header nav ul li a.active-link {
    color: var(--choco);
    background: var(--gold-light);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(251, 243, 230, 0.1);
    border: 1px solid rgba(231, 200, 120, 0.3);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-out);
}
.nav-toggle:hover { background: rgba(251, 243, 230, 0.18); }
.nav-toggle:active { transform: scale(0.92); }
.nav-toggle span {
    position: absolute;
    top: 20px;
    left: 11px;
    width: 20px;
    height: 2px;
    background: var(--paper);
    transition: background 0.2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--paper);
    transition: transform 0.28s var(--ease), top 0.28s var(--ease), background 0.2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.active span { background: transparent; }
.nav-toggle.active span::before { top: 0; transform: rotate(45deg); background: var(--gold-light); }
.nav-toggle.active span::after { top: 0; transform: rotate(-45deg); background: var(--gold-light); }

/* ============ Hero ============ */
.hero {
    margin-top: 130px;
    position: relative;
    height: 640px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    animation: fadeIn 1s ease;
}

.hero-slider { position: absolute; inset: 0; }

.slider-item { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease-out); }
.slider-item.active { opacity: 1; }
.slider-item img { width: 100%; height: 100%; object-fit: cover; }

.slider-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20,10,6,0.35) 0%, rgba(20,10,6,0.28) 45%, rgba(20,10,6,0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    padding: 44px 56px;
    max-width: 780px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-content .eyebrow { color: var(--gold-light); justify-content: center; }
.hero-content .eyebrow::before, .hero-content .eyebrow::after { background: var(--gold-light); }

.hero-content h1 {
    font-size: clamp(2.3em, 6vw, 4em);
    margin-bottom: 18px;
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

.hero-content p {
    font-size: clamp(1.05em, 2vw, 1.35em);
    margin-bottom: 32px;
    color: rgba(255,255,255,0.94);
    font-weight: 400;
}

.slider-controls {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: width var(--dur) var(--ease-out), background var(--dur-fast) var(--ease);
    border: none;
}
.slider-dot.active { background: var(--gold-light); width: 26px; border-radius: 6px; }

/* ============ Signature seal badge ============ */
.seal {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 28%, var(--gold-light), var(--gold) 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.28);
    border: 2px solid rgba(255,255,255,0.5);
    flex-shrink: 0;
}
.seal span {
    font-family: 'Fraunces', serif;
    font-weight: 700;
    font-size: 1.6em;
    color: var(--choco);
}

/* ============ Section basics ============ */
section { position: relative; }

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

/* ============ About Short ============ */
.about-short {
    padding: 90px 0;
    text-align: center;
    background: var(--glass-light-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-light-border);
    border-radius: var(--radius-lg);
    margin: 90px 20px;
    position: relative;
    box-shadow: var(--shadow-md);
}

.about-short .container { max-width: 760px; }
.about-short h2 { margin-bottom: 22px; }
.about-short p { font-size: 1.1em; margin: 0 auto 34px auto; }

/* ============ Products preview / grid ============ */
.products-preview { padding: 100px 0; text-align: center; }
.products-preview h2 { margin-bottom: 14px; }
.products-preview > .container > p { max-width: 560px; margin: 0 auto 50px auto; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    text-align: left;
}

.product-item {
    background: var(--glass-light);
    backdrop-filter: var(--glass-blur-soft);
    -webkit-backdrop-filter: var(--glass-blur-soft);
    border: 1px solid var(--glass-light-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    position: relative;
    will-change: transform;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
    background: var(--glass-light-strong);
}

.product-item img { width: 100%; height: 230px; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.product-item:hover img { transform: scale(1.07); }

.product-item h3 {
    font-size: 1.2em;
    margin: 0;
    padding: 20px 22px 22px;
    color: var(--ink);
}

/* Feature cards on about/services (no image) */
.product-item.feature-item {
    padding: 34px 26px;
    text-align: center;
    cursor: default;
}
.product-item.feature-item:hover { transform: translateY(-6px); }
.product-item.feature-item h3 { padding: 0 0 10px 0; }
.product-item.feature-item p { margin-bottom: 0; font-size: 0.95em; }

/* ============ Page hero (inner pages) ============ */
.page-hero {
    margin-top: 130px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-left: 20px;
    margin-right: 20px;
    animation: fadeIn 0.9s ease;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(28,14,9,0.82), rgba(28,14,9,0.55));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--gold-light); justify-content: center; }
.page-hero .eyebrow::before { background: var(--gold-light); }
.page-hero h1 { font-size: clamp(2em, 5vw, 3em); color: var(--white); margin-bottom: 10px; }
.page-hero p { font-size: 1.15em; color: rgba(255,255,255,0.92); font-weight: 400; margin-bottom: 0; }

/* ============ Services list ============ */
.services-list { padding: 100px 0; }

.services-list .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-item {
    background: var(--glass-light);
    backdrop-filter: var(--glass-blur-soft);
    -webkit-backdrop-filter: var(--glass-blur-soft);
    border: 1px solid var(--glass-light-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    padding-bottom: 30px;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
    box-shadow: var(--shadow-sm);
    will-change: transform;
}

.service-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--gold); background: var(--glass-light-strong); }
.service-item img { width: 100%; height: 210px; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.service-item:hover img { transform: scale(1.06); }
.service-item h3 { font-size: 1.35em; margin: 22px 26px 12px; color: var(--ink); }
.service-item p { padding: 0 26px; font-size: 0.96em; margin-bottom: 0; }

/* ============ About content ============ */
.about-content { padding: 100px 0; }

.about-content .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
}

.about-text { flex: 1 1 420px; min-width: 300px; }
.about-text h2 { margin-bottom: 20px; }
.about-text h3 { font-size: 1.35em; margin-top: 28px; margin-bottom: 12px; color: var(--berry); }
.about-text p { font-size: 1.02em; margin-bottom: 16px; }

.about-image { flex: 1 1 380px; min-width: 280px; position: relative; }
.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about-image::after {
    content: '';
    position: absolute;
    top: 20px; left: 20px;
    width: 100%; height: 100%;
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    z-index: -1;
}

/* ============ Products full page ============ */
.products-full { padding: 100px 0; }

.products-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 30px;
}

.product-full-item {
    background: var(--glass-light);
    backdrop-filter: var(--glass-blur-soft);
    -webkit-backdrop-filter: var(--glass-blur-soft);
    border: 1px solid var(--glass-light-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    will-change: transform;
}

.product-full-item:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--gold); background: var(--glass-light-strong); }
.product-full-item img { width: 100%; height: 240px; object-fit: contain; object-position: center; background: linear-gradient(135deg, rgba(255,247,240,0.95), rgba(245,232,215,0.95)); padding: 12px; box-sizing: border-box; transition: transform var(--dur-slow) var(--ease-out); }
.product-full-item:hover img { transform: scale(1.04); }
.product-full-item-content { padding: 22px 24px; }
.product-full-item h3 { font-size: 1.25em; margin-bottom: 8px; color: var(--ink); }
.product-full-item p { font-size: 0.94em; margin-bottom: 0; }

/* ============ Blog ============ */
.blog-posts { padding: 100px 0; }

.blog-post {
    background: var(--glass-light-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-light-border);
    padding: 46px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 36px;
}

.blog-post h2 { font-size: 1.9em; margin-bottom: 12px; }
.blog-post .post-meta {
    color: var(--berry);
    font-size: 0.88em;
    margin-bottom: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.blog-post p { font-size: 1.02em; margin-bottom: 15px; line-height: 1.8; }
.blog-post h3 { font-size: 1.4em; margin-top: 30px; margin-bottom: 14px; color: var(--berry); }
.blog-post h4 { font-size: 1.15em; margin-top: 20px; margin-bottom: 10px; color: var(--ink); }
.blog-post ul, .blog-post ol { margin-left: 26px; margin-bottom: 15px; }
.blog-post li { margin-bottom: 10px; color: var(--ink-soft); }

.recipe-section {
    background: var(--glass-light);
    backdrop-filter: var(--glass-blur-soft);
    -webkit-backdrop-filter: var(--glass-blur-soft);
    border-left: 4px solid var(--gold);
    padding: 22px 26px;
    margin: 26px 0;
    border-radius: var(--radius-sm);
}
.recipe-section h4 { margin-top: 0; color: var(--berry); }
.recipe-section p:last-child, .recipe-section li:last-child { margin-bottom: 0; }

/* ============ Contact ============ */
.contact-content { padding: 100px 0; }

.contact-content .container {
    display: flex;
    flex-wrap: wrap;
    gap: 34px;
    justify-content: center;
    align-items: stretch;
}

.contact-info {
    background: var(--glass-light-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-light-border);
    padding: 46px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    flex: 1 1 380px;
    min-width: 290px;
}

.contact-info h2 { font-size: 1.7em; margin-bottom: 22px; }
.contact-info > p { margin-bottom: 15px; font-size: 1em; }
.contact-info strong { color: var(--berry); font-weight: 700; }

.contact-details {
    background: var(--glass-light);
    backdrop-filter: var(--glass-blur-soft);
    -webkit-backdrop-filter: var(--glass-blur-soft);
    border: 1px solid var(--glass-light-border);
    padding: 26px;
    border-radius: var(--radius-md);
    margin-top: 24px;
}
.contact-details p { margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.contact-details p:last-child { margin-bottom: 0; }

.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: var(--choco);
    color: var(--paper);
    border-radius: 50%;
    transition: transform var(--dur) var(--ease-out), background var(--dur-fast) var(--ease);
    border: none;
}
.social-links a:hover { background: var(--berry); transform: translateY(-4px); color: var(--white); }
.social-links svg { width: 18px; height: 18px; fill: currentColor; }

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(18, 140, 126, 0.3);
    transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
    animation: floatPulse 2.4s ease-in-out infinite;
}
.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 16px 36px rgba(18, 140, 126, 0.35);
}
.whatsapp-float svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}
.whatsapp-pulse {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.35);
    animation: pulseRing 1.7s ease-out infinite;
}
@keyframes floatPulse {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
@keyframes pulseRing {
    0% { transform: scale(0.9); opacity: 0.8; }
    100% { transform: scale(1.25); opacity: 0; }
}

/* ============ Footer ============ */
footer {
    background: var(--glass-dark-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-dark-border);
    color: var(--paper);
    padding: 80px 0 26px 0;
    margin-top: 100px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--berry), var(--gold));
}

footer .container {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Center footer text and align section content */
.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.footer-section ul { padding: 0; margin: 0; }
.footer-section ul li a { justify-content: center; }
.footer-bottom p { text-align: center; }

.footer-section h3 {
    color: var(--gold-light);
    font-size: 1.2em;
    margin-bottom: 20px;
}

.footer-section p { color: rgba(251, 243, 230, 0.82); font-size: 0.95em; margin-bottom: 10px; }
.footer-section a { color: rgba(251, 243, 230, 0.82); }
.footer-section a:hover { color: var(--gold-light); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 10px; }
.footer-section ul li a { display: inline-flex; align-items: center; gap: 8px; }

.footer-bottom {
    border-top: 1px solid rgba(251, 243, 230, 0.15);
    padding-top: 28px;
    text-align: center;
    color: rgba(251, 243, 230, 0.72);
    position: relative;
    z-index: 1;
    font-size: 0.9em;
}
.footer-bottom p { margin-bottom: 0; color: inherit; }

/* Powered by berinai badge (fixed bottom-right) */
.footer-badge {
    position: fixed;
    right: 16px;
    bottom: 12px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    background: rgba(22,18,16,0.92);
    color: #F6D9B9;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
    font-size: 12px;
    z-index: 1400;
}
/* Desktop badge image: fix height, preserve aspect ratio to avoid distortion */
.footer-badge .berinai-logo { height: 22px; width: auto; border-radius: 6px; object-fit: contain; display: block; }
.footer-badge .powered-text { font-weight: 600; color: #F6D9B9; letter-spacing: 0.02em; }

/* Small, low-contrast version label */
.footer-version {
    position: fixed;
    right: 18px;
    bottom: 44px;
    font-size: 11px;
    color: rgba(255,255,255,0.16);
    z-index: 1400;
    pointer-events: none;
    font-weight: 700;
}

/* Hide inline berinai by default; show only on small screens */
.footer-berinai-inline { display: none; }

@media (max-width: 860px) {
    .footer-badge { right: 18px; bottom: 18px; }
    .footer-version { right: 18px; bottom: 50px; }
}

/* Mobile: show inline berinai under address, hide fixed badge */
@media (max-width: 860px) {
    .footer-badge { display: none; }
    .footer-version { position: static; color: rgba(255,255,255,0.16); display: block; margin-top: 8px; }
    /* Mobile: force inline berinai onto its own row under the address */
    .footer-berinai-inline { display: block; margin-top: 10px; width: 100%; text-align: left; }
    /* make the inline link look like the desktop badge (pill) and center it under the address */
    .footer-berinai-inline .berinai-inline-link {
        display: inline-flex;
        gap: 8px;
        align-items: center;
        background: rgba(22,18,16,0.92);
        color: #F6D9B9;
        padding: 6px 10px;
        border-radius: 999px;
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 6px 18px rgba(0,0,0,0.18);
        font-size: 0.95em;
        white-space: nowrap;
    }
    .footer-berinai-inline { text-align: center; }
    .footer-berinai-inline .berinai-logo-inline { height: 18px; width: auto; border-radius: 6px; object-fit: contain; display: inline-block; vertical-align: middle; }
    .footer-berinai-inline .powered-text-inline { display: inline-block; font-weight: 600; color: #F6D9B9; }
    /* Ensure address paragraph has enough spacing so the badge sits clearly below */
    .footer-section p { margin-bottom: 6px; }
}

/* ============ Modal ============ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 10, 6, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--dur) var(--ease), background var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(20, 10, 6, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-card {
    width: min(92vw, 640px);
    max-height: 90vh;
    overflow-y: auto;
    background: var(--glass-light-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-light-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 26px;
    color: var(--ink);
    position: relative;
    transform: scale(0.94) translateY(12px);
    opacity: 0;
    transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: none;
    background: var(--choco);
    color: var(--paper);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 2;
}
.modal-close { transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease-out); }
.modal-close:hover { background: var(--berry); transform: scale(1.08); }

.modal-image { width: 100%; max-height: 420px; object-fit: contain; object-position: center; border-radius: var(--radius-md); margin-bottom: 18px; background: linear-gradient(135deg, rgba(255,247,240,0.95), rgba(245,232,215,0.95)); padding: 10px; box-sizing: border-box; }
.modal-title { font-size: 1.5rem; margin-bottom: 10px; color: var(--ink); }
.modal-description { font-size: 0.98rem; color: var(--ink-soft); line-height: 1.7; margin-bottom: 0; }
.modal-pill {
    display: inline-block;
    margin-top: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--paper-2);
    color: var(--berry);
    font-size: 0.88rem;
    font-weight: 700;
}

/* ============ Skip link ============ */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    background: var(--choco);
    color: var(--paper);
    padding: 12px 20px;
    z-index: 3000;
    border-radius: 0 0 10px 0;
}
.skip-link:focus {
    left: 0;
    top: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
    header { width: 94%; top: 14px; }

    header nav { padding: 10px 10px 10px 20px; }

    .nav-toggle { display: block; }

    header nav ul {
        position: absolute;
        top: calc(100% + 12px);
        left: 0;
        right: 0;
        background: var(--glass-dark-strong);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        border: 1px solid var(--glass-dark-border);
        border-radius: 22px;
        flex-direction: column;
        gap: 4px;
        padding: 14px;
        box-shadow: var(--shadow-lg);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top center;
        transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
        pointer-events: none;
    }

    header nav ul.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }

    header nav ul li { width: 100%; }
    header nav ul li a { display: block; text-align: center; padding: 12px; }
    header nav ul li { transition: transform var(--dur-fast) var(--ease-out); }

    .logo { font-size: 1.08em; }

    .hero { margin-top: 100px; height: 520px; border-radius: var(--radius-md); }
    .page-hero { margin-top: 100px; height: 260px; margin-left: 12px; margin-right: 12px; }

    .about-short { margin: 60px 12px; padding: 60px 24px; }

    .about-content .container,
    .contact-content .container { flex-direction: column; }
    .about-image { order: -1; }
    .about-image::after { display: none; }

    footer .container { grid-template-columns: 1fr; gap: 34px; }

    .blog-post { padding: 30px 22px; }
    .contact-info { padding: 32px 26px; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }

    header { width: 95%; top: 10px; }
    header nav { padding: 8px 8px 8px 16px; }
    .logo { font-size: 0.98em; letter-spacing: 0.02em; }

    .hero { margin-top: 92px; height: 460px; }
    .hero-content { padding: 10px 16px; }
    .hero-content h1 { font-size: 1.9em; }
    .hero-content p { font-size: 1em; }

    .page-hero { height: 220px; }

    .about-short { padding: 46px 18px; margin: 44px 10px; }
    .products-preview, .services-list, .about-content, .products-full, .blog-posts, .contact-content { padding: 64px 0; }

    .blog-post { padding: 24px 16px; }
    .recipe-section { padding: 16px; }

    .seal { width: 60px; height: 60px; }
    .seal span { font-size: 1.3em; }
}
