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

/* ======================================================
   FONT DEFINITIONS
   ====================================================== */
@font-face {
    font-family: EB-Garamond;
    src: url(assets/fonts/EBGaramond-VariableFont_wght.ttf);
}

@font-face {
    font-family: Funnel-Display;
    src: url(assets/fonts/FunnelDisplay-VariableFont_wght.ttf);
    font-weight: 400;
}

/* ======================================================
   COLOR VARIABLES & ROOT SETTINGS
   ====================================================== */
:root {
    /* Colors */
    --white: #FFFBF4;
    --black: #313131;
    --primary: #CC4A09;
    --secondary: #FAD3A0;
    
    /* Transparencies & Effects */
    --button-hover: hsla(20, 92%, 42%, 0.202);
    --card-bg: hsla(38, 100%, 98%, 0.5);
    --transparent: hsla(0, 0%, 0%, 0);
    --footer-text: hsla(38, 100%, 98%, 0.8);
}

/* ======================================================
   BASE ELEMENT STYLES
   ====================================================== */
html {
    font-family: Funnel-Display;
    font-size: 16px;
    color: var(--black);
    background-color: var(--black);
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3, h4, h5, .button, .faq-home-question {
    font-family: EB-Garamond;
    color: var(--primary);
    font-weight: 500;
}

h3 {
    font-size: 28px;
}

h4 {
    font-size: 24px;
    font-weight: 400;
}

ol {
    padding-left: 30px;
}

li {
    padding: 2px 0;
    line-height: 20px;
}

/* Links and buttons */
a, button {
    text-decoration: none;
    color: var(--primary);
    transition: transform 0.3s cubic-bezier(.45,.11,.32,1.55);
}

a:hover, button:hover {
    color: var(--black);
    transform: scale(1.02);
}

a:active, button:hover {
    color: var(--black);
    transform: scale(1);
}

button {
    background: none;
    border: none;
}

.button {
    font-size: 18px;
    border: var(--black) 1px solid;
    border-radius: 100px;
    padding: 5px 20px;
    display: inline-block;
}

.button:hover {
    background-color: var(--button-hover);
    transform: scale(1.02);
}

.button:active {
    background-color: var(--button-hover);
    transform: scale(1);
}

/* Images */
img {
    transition: transform 0.5s cubic-bezier(.39,.2,.34,1);
}

img:hover {
    transform: scale(1.01);
}

img:active {
    transform: scale(1);
}

/* Forms */
select {
    background-color: var(--transparent);
    color: var(--primary);
    font-size: 14px;
    border: var(--black) 1px solid;
    border-radius: 100px;
    padding: 5px 20px;
}

/* ======================================================
   LAYOUT UTILITIES
   ====================================================== */
.content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Spacers */
.spacer {
    width: auto;
    height: 10px;
}

.spacer-20 {
    width: auto;
    height: 20px;
}

.mega-spacer {
    width: auto;
    height: 130px;
}

.h-spacer {
    width: 10px;
    height: auto;
}

.top-spacer-home {
    height: 800px;
    max-width: 100%;
}

.top-spacer {
    height: 400px;
    max-width: 100%;
}

.top-spacer-onama {
    height: 500px;
    max-width: 100%;
}

/* Visual effects */
.texture {
    background-image: url(assets/paper-texture.jpg);
    background-size: 400%;
    background-repeat: repeat;
}

.highlight {
    color: var(--primary);
}

.references {
    font-style: italic;
    opacity: 0.6;
    font-size: 14px;
}

.transY-500 {
    transform: translateY(-500px);
}

.margin-10 {
    margin: 10px 0;
}

.visually-hidden {
    display: none;
}

/* ======================================================
   HEADER & NAVIGATION
   ====================================================== */
header {
    background-image: url(assets/header-bg/header-bg.jpg);
    background-size: 400%;
    background-position: center;
    background-repeat: no-repeat;
    height: 800px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: absolute;
}

.fade {
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    mask-repeat: no-repeat;
    mask-size: cover;
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 1) 90%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
}

/* Header background variations */
.header-2-bg { background-image: url(assets/header-bg/header-2-bg.jpg); }
.header-3-bg { background-image: url(assets/header-bg/header-3-bg.jpg); }
.header-4-bg { background-image: url(assets/header-bg/header-4-bg.jpg); }
.header-5-bg { background-image: url(assets/header-bg/header-5-bg.jpg); }
.header-6-bg { background-image: url(assets/header-bg/header-6-bg.jpg); }
.header-7-bg { background-image: url(assets/header-bg/header-7-bg.jpg); }
.header-8-bg { background-image: url(assets/header-bg/header-8-bg.jpg); }
.header-9-bg { background-image: url(assets/header-bg/header-9-bg.jpg); }

/* Logo */
.logo {
    width: 100%;
    height: auto;
}

.logo-link {
    width: 95%;
    border: none;
    transition: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-link:hover {
    transform: scale(1);
    background-color: var(--transparent);
}

/* Navigation */
nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    width: 90%;
}

.main-nav {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.nav-button {
    font-family: Funnel-Display;
    font-size: 16px;
    margin: 5px;
}

.nav-button > .hamburger {
    padding: 0;
}

.nav-button.hamburger-button {
    padding: 5px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lang-btn {
    cursor: pointer;
}

/* Menu */
nav #menu {
    display: none;
}

#menu {
    width: 100%;
    z-index: 100;
}

#menu > .menu-link {
    padding: 0;
}

.menu-container > .menu-link {
    padding: 0;
}

.menu-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    height: auto;
    margin: 10px 0;
    padding: 20px;
    border: 1px solid var(--black);
    border-radius: 16px;
}

.menu-link {
    margin-bottom: 5px;
}

.menu-link:hover {
    transform: scale(1.01);
}

.menu-row {
    display: flex;
    flex-direction: row;
    line-height: 0px;
}

/* Header sections */
.header-mid {
    width: 100%;
}

.header-mid > .page-title {
    font-size: 38px;
    font-weight: 400;
    z-index: 1000;
    text-decoration: underline;
}

.header-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header-bottom > h1, 
.header-bottom > h4 {
    max-width: 90%;
    font-size: 24px;
    font-weight: 400;
}

.sec-transparent > h1, 
.sec-transparent > h4 {
    max-width: 90%;
    font-size: 24px;
    font-weight: 400;
}

nav > h1, 
nav > h4 {
    max-width: 90%;
    font-size: 24px;
    font-weight: 400;
    margin-top: 10px;
}

nav > h1 {
    font-size: 32px;
    margin-top: 20px;
}

.sec-transparent > h1 {
    font-size: 32px;
    margin-top: 20px;
}

/* Banner */
.banner {
    width: 100vw;
    height: 230px;
    background-image: url(assets/banner.png);
    background-size: cover;
    background-position: center;
}

/* ======================================================
   BACK TO TOP BUTTON
   ====================================================== */
#back-to-top {
    position: fixed;
    bottom: 5vw;
    right: 5vw;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    z-index: 1000;
    background-color: var(--card-bg);
    width: 36px;
    height: 36px;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#back-to-top > img {
    width: 16px;
    height: auto;
}

#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* ======================================================
   HERO SECTION
   ====================================================== */
.hero-container {
    height: 600px;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
    background-image: url(assets/hero-bg.jpg);
    background-size: cover;
    background-position: center;
    filter: drop-shadow(0px 5px 5px #313131);
}

.hero {
    width: 100vw;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0) 75%,
        rgba(0, 0, 0, 0.5) 100%);
}

.hero > h2 {
    color: var(--secondary);
    font-size: 32px;
    font-weight: 400;
}

/* ======================================================
   SECTION CONTAINERS
   ====================================================== */
section {
    width: 95%;
    padding: 8px;
    margin: 10px 0;
    background-color: var(--card-bg);
    border: var(--black) 1px solid;
    border-radius: 16px;
    text-align: left;
    display: flex;
    flex-direction: column;
    z-index: 10;
}

section > img {
    max-width: 100%;
    height: auto;
    border: var(--black) 1px solid;
    border-radius: 16px;
}

section > p, 
section > h3, 
section > h4, 
section > a {
    padding: 5px 0 5px 4px;
}

section > ul {
    padding-left: 10px;
    list-style: none;
}

.sec-row {
    width: 95%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sec-row > section {
    width: 100%;
}

.sec-transparent {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--transparent);
    border: 0px;
    text-align: center;
}

.sec-transparent > h4 {
    max-width: 95%;
}

.button-container{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
}

/* ======================================================
   IMAGE CONTAINERS
   ====================================================== */
.img-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--black) 1px solid;
    border-radius: 16px;
}

.gallery-img-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--black) 1px solid;
    border-radius: 8px;
}

.img-container-product {
    width: 100%;
    height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--black) 1px solid;
    border-radius: 8px;
    cursor: pointer;
}

.img-container > img, 
.gallery-img-container > img {
    width: auto;
    height: 400px;
}

.img-container-product > img {
    width: auto;
    height: 400px;
}

.img-container > .vertical-img, 
.gallery-img-container > .vertical-img, 
.img-container-product > .vertical-img {
    width: 400px;
    height: auto;
}

.enlarge-img {
    cursor: pointer;
}

/* ======================================================
   FAQ SECTIONS
   ====================================================== */
/* FAQ Home */
.faq-home-question {
    color: var(--black);
    font-size: 20px;
    padding-left: 8px;
}

.faq-home-answer {
    padding-left: 12px;
}

/* FAQ Page */
.faq-question {
    font-size: 20px;
    margin-left: 5px;
}

.shortcut {
    float: left;
    color: var(--black);
    margin-left: 10px;
    text-decoration: underline;
}

.shortcut:hover {
    color: var(--primary);
}

.faq-answer {
    margin-left: 10px;
}

/* ======================================================
   GALLERY SECTIONS
   ====================================================== */
/* Gallery Home */
.gallery-home {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.gallery-home-container {
    width: 49.6%;
    height: 40vw;
    margin: 10px 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--black) 1px solid;
    border-radius: 16px;
}

.gallery-home-container > img {
    width: auto;
    height: 40vw;
}

/* Gallery Image Modal */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background-color: rgba(17, 25, 40, 0.55);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1000;
    cursor: auto;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    border-radius: 8px;
    pointer-events: auto;
}

body.overlay-active {
    overflow: hidden;
}

/* ======================================================
   ICON STYLES
   ====================================================== */
i {
    margin-right: 5px;
}

.icon {
    display: inline-block;
    width: 14px;
    height: 14px;
}

.icon-facebook {
    background: url(assets/icons/facebook.svg) no-repeat center;
    background-size: contain;
}

.icon-facebook-white {
    background: url(assets/icons/facebook-white.svg) no-repeat center;
    background-size: contain;
}

.icon-phone {
    background: url(assets/icons/phone-call.svg) no-repeat center;
    background-size: contain;
}

.icon-phone-white {
    background: url(assets/icons/phone-call-white.svg) no-repeat center;
    background-size: contain;
}

.icon-email {
    background: url(assets/icons/envelope.svg) no-repeat center;
    background-size: contain;
}

.icon-email-white {
    background: url(assets/icons/envelope-white.svg) no-repeat center;
    background-size: contain;
}

.icon-adress {
    background: url(assets/icons/marker.svg) no-repeat center;
    background-size: contain;
}

.icon-adress-white {
    background: url(assets/icons/marker-white.svg) no-repeat center;
    background-size: contain;
}

/* ======================================================
   FOOTER STYLES
   ====================================================== */
footer {
    width: 95%;
    padding: 12px;
    margin: 10px 0;
    background-color: var(--black);
    color: var(--footer-text);
    border: var(--black) 1px solid;
    border-radius: 16px;
    filter: drop-shadow(2px 5px 5px #313131);
    text-align: left;
}

footer > h4 {
    color: var(--white);
    text-decoration: underline;
}

footer a {
    text-decoration: underline;
    margin-bottom: 5px;
}

footer a:hover {
    color: var(--white);
    transform: scale(1.02);
}

footer a:active {
    transform: scale(1);
}

.footer-links {
    display: flex;
    flex-direction: row;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    padding-right: 20px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

.footer-container > ul {
    list-style: none;
}

.footer-cc {
    float: right;
    color: var(--button-hover);
}

/* ======================================================
   CONTACT PAGE SPECIFIC
   ====================================================== */
.contact-map {
    border-radius: 16px;
    border: 1px solid var(--black);
    margin-top: 10px;
}

/* ======================================================
   RECIPE PAGE SPECIFIC
   ====================================================== */
.recepti-upute > li {
    margin-bottom: 10px;
}

.recepti-upute > li:last-child {
    margin-bottom: 0px;
}

/* ======================================================
   RESPONSIVE DESIGN
   ====================================================== */
/* Small tablets (600px and up) */
@media only screen and (min-width: 600px) {
    .logo-link, .logo {
        width: 400px;
        height: auto;
    }
    
    header, .texture {
        background-size: 300%;
    }
    
    .main-nav {
        width: 500px;
    }
    
    #menu {
        width: 500px;
    }
    
    .top-spacer {
        height: 500px;
    }
}

/* Large tablets (800px and up) */
@media only screen and (min-width: 800px) {
    header, .texture {
        background-size: 180%;
    }
    
    .hero > h2 {
        max-width: 600px;
    }
    
    .header-bottom > h1, h4 {
        max-width: 600px;
    }
    
    .sec-row {
        width: 760px;
        flex-direction: row;
    }
    
    .sec-row > section {
        width: 248px;
    }
    
    section, footer {
        width: 760px;
    }
    
    .gallery-home-container, .gallery-home-container > img {
        height: 400px;
    }
    
    .footer-container {
        display: flex;
        flex-direction: row;
        width: 87%;
    }
}

/* Desktops (1100px and up) */
@media only screen and (min-width: 1100px) {
    header, .texture {
        background-size: 140%;
    }
    
    header, .top-spacer-home {
        height: 99.5vh;
    }
    
    .hero-container {
        height: 750px;
    }
    
    section, footer, .sec-row {
        width: 1000px;
    }
    
    .sec-row > section {
        width: 328px;
    }
    
    .img-container > img {
        width: auto;
        height: 600px;
    }
    
    .gallery-home-container, .gallery-home-container > img {
        height: 500px;
    }
    
    .header-bottom > h1 {
        margin-bottom: 20px;
    }
    
    .footer-container {
        display: flex;
        flex-direction: row;
        width: 80%;
    }
}

/* Large desktops (1400px and up) */
@media only screen and (min-width: 1400px) {
    header, .texture {
        background-size: 110%;
    }
}