/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

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

/* Colors and variables */
:root {
    --cream:       #F5EFE0;
    --cream-dark:  #EDE3CC;
    --espresso:    #2C1A0E;
    --brown:       #6B3F1F;
    --brown-light: #A0673A;
    --gold:        #C49A3C;
    --warm-white:  #FAF7F2;
    --text-muted:  #8C7355;

    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans:  'DM Sans', sans-serif;
}

/* Base */
html {
    overflow-x: hidden;
    width: 100%;
    /* background-color: var(--espresso); */
}
body {
    width: 100%;
    padding-bottom: 0;
    background-color: var(--espresso);
    background-image: url('images/backgroundbeans.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    font-family: var(--font-sans);
    color: var(--espresso);
}

h1, h2, h3 {
    font-family: var(--font-serif);
}

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

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

ul {
    list-style: none;
}

/* NavBar */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 4rem;
    background: transparent;
    transition: background 0.6s ease, color 0.6s ease, box-shadow 0.6s ease;
}

nav.scrolled {
    background: rgba(245, 239, 224, 0.95);
    box-shadow: 0 2px 20px rgba(44, 26, 14, 0.1);
    backdrop-filter: blur(8px);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--cream-dark);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream-dark);
    /* opacity: 0.7; */
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1
}

/* Hero */
#hero {
    min-height: 100vh;
    background-color: var(--espresso);
    background-image: url('images/backgroundshop.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 0 6rem;
}

#hero h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 550;
    color: var(--cream-dark);
    line-height: 1.1;
    max-width: 700px;
    margin-bottom: 1.5rem;
}

#hero h1 em {
    font-style: italic;
    font-weight: 600;
    color: var(--gold);
}

#hero p {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--cream-dark);
    /* opacity: 0.7; */
    margin-bottom: 2.5rem;
}

#hero a {
    background: var(--gold);
    color: var(--espresso);
    padding: 1rem 2.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
}

#hero a:hover {
    background: var(--brown-light);
    color: var(--cream);
    transform: translateY(-2px);
}

/* Menu */
#menu {
    padding: 6rem 4rem;
    background: rgba(245, 239, 224, 0.85);
    position: relative;
    z-index: 2;
}

#menu h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--espresso);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.menu-card {
    background: var(--cream);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(44, 26, 14, 0.12);
}

.menu-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    object-position: center;
}

.menu-card h3 {
    font-size: 1.2rem;
    font-weight: 400;
}

.card-info {
    padding: 1.2rem;
}

.card-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0.5rem 0.1rem;
}

.card-price {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--brown);
}

/* About */
#about {
    border-radius: 20px 20px 0 0;
    margin-top: -30px;
    position: relative;
    z-index: 2;
    padding: 6rem 4rem;
    background: rgba(245, 239, 224, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    -webkit-border-radius: 20px 20px 0 0;
    -moz-border-radius: 20px 20px 0 0;
    -ms-border-radius: 20px 20px 0 0;
    -o-border-radius: 20px 20px 0 0;
}

#about h2 {
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: var(--espresso);
}

#about p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
    max-width: 700px;
}

/* Gallery */
#gallery {
    padding: 6rem 4rem;
    background: rgba(245, 239, 224, 0.85);
    position: relative;
    z-index: 2;
}

#gallery h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--espresso);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.4s, filter 0.4s;
}

.gallery-grid img:hover {
    transform: scale(1.02);
    filter: brightness(1.05);
}

.gallery-grid img:nth-child(2) {
    object-position: 50% 90%;
}

/* Contact */
#contact {
    padding: 6rem 4rem;
    background: rgba(245, 239, 224, 0.85);
    position: relative;
    z-index: 2;
}

#contact h2 {
    font-size: 2.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--espresso);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.contact-item h4 {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    color: var(--espresso);
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

#map {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
}

#map iframe {
    width: 500px;
    height: 500px;
    border: 0;
    display: block;
}

/* Footer */
footer{
    background: var(--espresso);
    color: var(--cream);
    text-align: center;
    padding: 2rem;
    font-size: 0.85rem;
    /*opacity: 0.9;
    */margin: 0;
    border-radius:0;
}

#about, #menu, #gallery, #contact{
    margin: 1rem 2rem;
    border-radius: 16px;
    }

/* Responsive - Mobile */
@media (max-width: 768px) {
    #about, #menu, #gallery, #contact{
    margin: 1rem;
}
    
    body {
    background-attachment: scroll;
    }

    /* Navbar */
    nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        font-size: 0.5rem;
    }

    /* Hero */
    #hero {
        padding: 0 1.5rem;
        /* min-width: 100svh; */
        background-attachment: scroll;
    }

    #hero h1 {
        font-size: clamp(1.8rem, 8vw, 3rem);
        max-width: 100%;
    }

    #hero p {
        font-size: 1rem;
        max-width: 100%;
    }

    /* About */
    #about {
        padding: 4rem 2rem;
    }

    /* Menu */
    #menu {
        padding: 4rem 1.5rem;
    }

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

    /* Gallery */
    #gallery {
        padding: 4rem 1.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .gallery-grid img {
        width: 100%;
        height: 220px;
    }

    /* Contact */
    .contact {
        padding: 4rem 1.5rem;
        width: 100%;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    #map {
        width: 100%;
        overflow: hidden;
    }

    #map iframe {
        width: 100% !important;
        height: 300px;
    }

    footer {
        margin: 0;
        border-radius: 0;
    }
}

/* ── TABLET ── */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Navbar */
    nav {
        padding: 1.2rem 2rem;
    }

    /* Hero */
    #hero {
        padding: 0 3rem;
    }

    /* Menu */
    #menu {
        padding: 5rem 2rem;
    }

    .menu-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 κάρτες αντί για 3 */
    }

    /* Gallery */
    #gallery {
        padding: 5rem 2rem;
    }

    /* Contact */
    #contact {
        padding: 5rem 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr 1fr; /* ίσες στήλες */
    }

    #map iframe {
        width: 100%;
        height: 350px;
    }

    /* About */
    #about {
        padding: 5rem 2rem;
    }

}