[id] {
    scroll-margin-top: 80px;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #a11b05;
    --secondary-color: #e6c97d;

    --dark: #1e1e1e;
    --light: #fff8eb;

    --shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);

    --radius: 0.3rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--secondary-color);
    color: var(--dark);

    font-family:
        'Gill Sans',
        'Gill Sans MT',
        Calibri,
        'Trebuchet MS',
        sans-serif;

    overflow-x: hidden;
}

/* ================= HEADER ================= */

header {
    width: 100%;
    height: 50vh;
    

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;
    overflow: hidden;

    background:
        var(--primary-color);
}

header::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;
}

header img {
    height: 100%;
    width: auto;

    object-fit: contain;

    z-index: 2;

    transition: transform 0.4s ease;
}

header img:hover {
    transform: scale(1.03);
}

/* ================= NAV ================= */

nav {
    margin-top: auto;

    display: flex;
    flex-direction: row;

    width: 100%;

    position: sticky;
    top: 0;

    z-index: 1000;

    overflow: hidden;

    background-color: var(--primary-color);
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: space-around;

    width: 100%;

    padding: 0;
    margin: 0.5rem 0;
}

nav ul li {
    list-style: none;

    font-family:
        'Gill Sans',
        'Gill Sans MT',
        Calibri,
        'Trebuchet MS',
        sans-serif;

    font-size: 1.5rem;

    padding: 2px;
}

nav ul li a {
    color: var(--secondary-color);

    text-decoration: none;

    transition: all 0.3s ease;
}

nav ul li a:hover {
    color: rgba(255, 255, 255, 0.655);

    text-decoration: underline;
}

/* ================= SEKCJE ================= */

section {
    padding: 5rem 2rem;
}

.main-appe {
    display: flex;
    flex-direction: column;
}

.main-appe h2 {
    margin: 0 auto 3rem auto;

    font-size: 2.8rem;
    font-weight: 300;

    letter-spacing: 1px;

    color: var(--primary-color);

    position: relative;
}

.main-appe h2::after {
    content: "";

    position: absolute;

    left: 50%;
    transform: translateX(-50%);

    bottom: -12px;

    width: 80px;
    height: 3px;

    border-radius: 99px;

    background-color: var(--primary-color);
}

/* ================= ABOUT ================= */

#about article {
    width: min(100%, 1000px);

    margin: auto;

    padding: 4rem;

    background:
        rgba(255,255,255,0.18);

    backdrop-filter: blur(10px);

    border:
        1px solid rgba(255,255,255,0.2);

    border-bottom-left-radius: var(--radius);
    border-bottom-right-radius: var(--radius);

    box-shadow: var(--shadow);

    line-height: 1.8;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}
#about article h1{
    font-size: 1.8rem;
}
#about article h2{
    text-align: center;
}

#about iframe {
    width: 100%;
    height: 400px;
   
    margin: 5rem 0 0 0;
    border: 0;
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

#about{
    padding-top: 0;
}


/* ================= WINE ================= */

#wine {
    background-color: var(--primary-color);

    position: relative;
}

#wine h2 {
    color: var(--secondary-color);
}

#wine h2::after {
    background-color: var(--secondary-color);
}

#wine .container {
    width: 100%;
}

#wine .content {
    width: min(1400px, 100%);

    margin: auto;

    display: grid;
    gap: 1.5rem;

    grid-template-columns: repeat(2, 1fr);

    grid-template-areas:
        
        "left right"            
        "top top";}
/*    rozmieszcze nie w gridzie */

#wine .box {
    min-height: 450px;

    position: relative;
    overflow: hidden;

    border-radius: var(--radius);
    border: solid 3px var(--secondary-color);

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: flex-end;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.2);
}

#wine .big-box {
    min-height: 600px;
}

#wine .box:hover {
    transform: translateY(-3px);

    box-shadow:
        0 20px 40px rgba(0,0,0,0.3);
}

#wine .box::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.75),
            rgba(0,0,0,0.1)
        );
}

#wine .box article {
    position: relative;
    z-index: 2;

    width: 100%;

    padding: 2rem;

    color: white;
}

#wine .box h3 {
    margin-bottom: 1rem;

    font-size: 2rem;
    font-weight: 400;
}

#wine .box p {
    font-size: 1.1rem;
    line-height: 1.6;

    color: rgba(255,255,255,0.9);
}

/* Zdjęcia do Win */

 #wineleft /* na dole*/ { 
    grid-area: top;

    background-image:
        url(/assets/images/na-dole.jpg);
}

#winemiddle /* wina-biale*/ {
    grid-area: left;

    background-image:
        url(/assets/images/wina-biale.jpg);
}

#wineright /* wina-czerwone*/  {
    grid-area: right;

    background-image:
        url(/assets/images/wina-czerwone.jpg);
}

/* ================= FOOTER ================= */

footer {
    background-color: var(--primary-color);

    color: var(--secondary-color);

    padding: 5rem 2rem 2rem 2rem;
}

.footer-content {
    width: min(1200px, 100%);

    margin: auto;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 3rem;
}

footer h2 {
    font-size: 2rem;
    font-weight: 400;

    margin-bottom: 1.5rem;
}

footer p {
    font-size: 1.1rem;
    line-height: 1.8;
}

.footer-map iframe {
    width: 100%;
    height: 300px;

    border: 0;
    border-radius: var(--radius);
    border: solid 3px var(--secondary-color);
    box-shadow: var(--shadow);
}

.footer-copy {
    text-align: center;
    gap: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 0;
    padding-top: 2rem;

    border-top:
        1px solid rgba(255,255,255,0.15);

    opacity: 0.8;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

    #wine .content {
        grid-template-columns: 1fr;

        grid-template-areas:
            "top"
            "left"
            "right";
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    header {
        height: 60vh;
    }

    header img {
        width: 80%;
        height: auto;
    }
}

@media (max-width: 700px) {

    nav ul {
        gap: 1rem;

        padding: 1rem;

        flex-wrap: wrap;
    }

    nav ul li a {
        font-size: 1rem;
    }

    .main-appe h2 {
        font-size: 2rem;

        text-align: center;
    }

    #about article {
        padding: 2rem;
    }

    #wine .box {
        min-height: 350px;
    }

    #wine .big-box {
        min-height: 450px;
    }

    #wine .box h3 {
        font-size: 1.6rem;
    }
}