/* ============================================
   UraniaFood — Shared Stylesheet
   ============================================ */

:root {
    --terra: #C26E4A;
    --terra-deep: #A35839;
    --terra-glow: #D4896A;
    --olive: #7A8C56;
    --olive-muted: #6B7B4C;
    --sand: #E5D6C0;
    --sand-light: #F0E7D9;
    --sand-pale: #F7F2EA;
    --cream: #FDFAF5;
    --ink: #28231F;
    --ink-soft: #3D3732;
    --stone: #8C8378;
    --stone-light: #B5ADA4;
    --white: #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-weight: 300;
    color: var(--ink);
    background: var(--cream);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: var(--terra);
    color: var(--cream);
}

.serif { font-family: Georgia, 'Times New Roman', serif; }

/* ===== NAV ===== */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1.4rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(253, 250, 245, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 3rem;
    box-shadow: 0 1px 0 rgba(40,35,31,0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.5s;
    color: var(--cream);
}

.nav-logo {
    height: 30px;
    width: auto;
}

nav.scrolled .nav-brand { color: var(--ink); }

.nav-center {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-center a {
    text-decoration: none;
    color: rgba(253,250,245,0.7);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    transition: color 0.3s;
    position: relative;
}

.nav-center a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0; right: 0;
    height: 1px;
    background: var(--terra);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.nav-center a:hover::after { transform: scaleX(1); }
nav.scrolled .nav-center a { color: var(--stone); }
.nav-center a:hover, nav.scrolled .nav-center a:hover { color: var(--terra); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.lang-btn {
    background: none;
    border: none;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.68rem;
    letter-spacing: 1.5px;
    font-weight: 400;
    color: rgba(253,250,245,0.5);
    cursor: pointer;
    padding: 0.35rem 0.5rem;
    transition: all 0.3s;
}

nav.scrolled .lang-btn { color: var(--stone-light); }
.lang-btn.active { color: var(--cream); font-weight: 500; }
nav.scrolled .lang-btn.active { color: var(--ink); }
.lang-sep { color: rgba(253,250,245,0.2); font-size: 0.7rem; }
nav.scrolled .lang-sep { color: var(--sand); }

/* Cart button in nav */
.nav-cart {
    position: relative;
    background: none;
    border: 1px solid rgba(253,250,245,0.3);
    color: var(--cream);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 1rem;
    transition: all 0.3s;
}

nav.scrolled .nav-cart { border-color: var(--sand); color: var(--ink); }
.nav-cart:hover { background: var(--terra); border-color: var(--terra); color: var(--cream); }

.nav-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--terra);
    color: var(--cream);
    font-size: 0.6rem;
    font-weight: 500;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.nav-cart-count.show { opacity: 1; transform: scale(1); }

/* Hamburger */
.hamburger {
    display: none;
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    position: absolute;
    left: 0; right: 0;
    height: 1.5px;
    background: var(--cream);
    transition: all 0.35s;
}

nav.scrolled .hamburger span { background: var(--ink); }
.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { top: 18px; }
.hamburger.open span:nth-child(1) { top: 9px; transform: rotate(45deg); background: var(--cream); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { top: 9px; transform: rotate(-45deg); background: var(--cream); }

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 300;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(20px);
    animation: mobileIn 0.5s forwards;
}

.mobile-menu a:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu a:nth-child(2) { animation-delay: 0.2s; }
.mobile-menu a:nth-child(3) { animation-delay: 0.3s; }
.mobile-menu a:nth-child(4) { animation-delay: 0.4s; }

@keyframes mobileIn {
    to { opacity: 1; transform: translateY(0); }
}

.mobile-lang {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    opacity: 0;
    animation: mobileIn 0.5s 0.5s forwards;
}

.mobile-lang button {
    background: none;
    border: 1px solid rgba(253,250,245,0.2);
    color: var(--cream);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.mobile-lang button.active {
    border-color: var(--terra);
    color: var(--terra);
}

/* ===== HERO ===== */
.hero {
    height: 100vh;
    height: 100dvh;
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg,
        #8B5E3C 0%, #A36740 20%, #C4704B 45%, #7A8C56 75%, #3D5A3A 100%);
}

.hero-texture {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.08;
    mix-blend-mode: overlay;
}

.hero-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(40,35,31,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--cream);
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeSlide 1s 0.3s forwards;
}

.hero-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(5rem, 14vw, 11rem);
    font-weight: 300;
    letter-spacing: 12px;
    line-height: 0.9;
    margin: 1rem 0 1.2rem;
    opacity: 0;
    animation: fadeSlide 1s 0.5s forwards;
}

.hero-line {
    width: 50px;
    height: 1px;
    background: rgba(253,250,245,0.35);
    margin: 0 auto 1.2rem;
    opacity: 0;
    animation: fadeSlide 1s 0.7s forwards;
}

.hero-tagline {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 300;
    opacity: 0;
    animation: fadeSlide 1s 0.9s forwards;
}

.hero-cta {
    display: inline-block;
    margin-top: 3rem;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    border: 1px solid rgba(253,250,245,0.3);
    padding: 1.1rem 2.8rem;
    transition: all 0.5s;
    opacity: 0;
    animation: fadeSlide 1s 1.1s forwards;
}

.hero-cta:hover {
    background: var(--cream);
    color: var(--ink);
    border-color: var(--cream);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0;
    animation: fadeSlide 1s 1.5s forwards;
}

.hero-scroll-hint span {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(253,250,245,0.4), transparent);
    margin: 0 auto;
    animation: scrollPulse 2s infinite;
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; height: 40px; }
    50% { opacity: 0.8; height: 55px; }
}

/* ===== SHARED TYPOGRAPHY ===== */
.label {
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--terra);
    margin-bottom: 1rem;
}

.heading {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 300;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.2;
    color: var(--ink);
    margin-bottom: 1.2rem;
}

/* ===== ABOUT ===== */
#about {
    background: var(--cream);
    padding: 8rem 2rem;
}

.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 5fr 6fr;
    gap: 6rem;
    align-items: center;
}

.about-image {
    position: relative;
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
}

.about-image-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, var(--terra) 0%, var(--olive-muted) 60%, var(--ink-soft) 100%);
}

.about-image-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.about-image-quote {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    padding: 3rem 2rem 2rem;
    background: linear-gradient(to top, rgba(40,35,31,0.7), transparent);
    color: var(--cream);
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.6;
}

.about-image-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 70px;
    height: 70px;
    border: 1px solid rgba(253,250,245,0.25);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--cream);
}

.badge-year { font-family: Georgia, 'Times New Roman', serif; font-size: 1.1rem; line-height: 1; }
.badge-label { font-size: 0.5rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.6; }

.about-text .body-copy {
    font-size: 0.95rem;
    color: var(--ink-soft);
    line-height: 2;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--sand);
}

.stat-num {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--terra);
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--stone);
    margin-top: 0.4rem;
}

/* ===== CONTACT ===== */
#contact {
    background: var(--ink);
    color: var(--sand-light);
    padding: 8rem 2rem;
}

.contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
}

#contact .label { color: var(--terra-glow); }
#contact .heading { color: var(--cream); }

.contact-block { margin-bottom: 2.5rem; }

.contact-block-label {
    font-size: 0.62rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--stone);
    margin-bottom: 0.6rem;
}

.contact-block-value {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--sand-light);
    line-height: 1.6;
}

.contact-block-value a {
    color: var(--sand-light);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-block-value a:hover { color: var(--terra-glow); }

.social-row {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(140,131,120,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--stone);
    text-decoration: none;
    transition: all 0.3s;
}

.social-link:hover {
    border-color: var(--terra);
    color: var(--terra-glow);
    transform: translateY(-2px);
}

.map-wrapper {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 1;
    position: relative;
    background: var(--ink-soft);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.5) brightness(0.8) contrast(1.1);
    transition: filter 0.4s;
}

.map-wrapper:hover iframe { filter: saturate(0.7) brightness(0.85); }

.map-pin {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    background: rgba(40,35,31,0.85);
    backdrop-filter: blur(10px);
    color: var(--cream);
    padding: 0.7rem 1.1rem;
    border-radius: 4px;
    font-size: 0.78rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-pin-dot {
    width: 6px;
    height: 6px;
    background: var(--terra);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ===== FOOTER ===== */
footer {
    background: var(--ink);
    padding: 2.5rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(140,131,120,0.1);
}

.footer-brand {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 4px;
    color: var(--stone);
    margin-bottom: 0.5rem;
}

.footer-copy {
    font-size: 0.68rem;
    color: rgba(140,131,120,0.5);
}

/* ===== REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.vis { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ===== LANGUAGE ===== */
[data-lang="hr"] { display: none; }
body.lang-hr [data-lang="en"] { display: none !important; }
body.lang-hr [data-lang="hr"] { display: block; }
body.lang-hr span[data-lang="hr"],
body.lang-hr a[data-lang="hr"] { display: inline; }
body.lang-hr span[data-lang="en"],
body.lang-hr a[data-lang="en"] { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    nav { padding: 1.2rem 1.5rem; }
    nav.scrolled { padding: 0.9rem 1.5rem; }
    .nav-center { display: none; }
    .hamburger { display: block; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-image { aspect-ratio: 16/10; }
}

@media (max-width: 600px) {
    #about, #contact { padding: 5rem 1.2rem; }
    .about-stats { gap: 2rem; }
    .hero-title { letter-spacing: 5px; }
}
