/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}

/* ===============================  My style rules start here  =============================== */

main {
	max-width: 90vw;
    margin: 0 auto;
}

body {
	font-family: Nunito, Arial, Helvetica, sans-serif;
	font-size: 1rem;
	line-height: 1.6;
    font-weight: 400;
}

header, h1, h2, h3 {
    font-family: Nunito, Arial, Helvetica, sans-serif;
}

/* ===============================  Header  =============================== */

header {
    background: #212D43;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo {
    max-width: 60%;
    width: auto;
    height: auto;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

hr {
    width: 100%;
    border: none;
    height: 0.8px; /* Thickness of the line */
    background-color: #fff; /* Color of the line */
}

header nav ul {
    display: flex;
    gap: 20px; /* Adjust spacing between menu items */
    padding-top: 1rem;
    padding-bottom: 2rem;
    align-items: center;
}

header nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 0.9rem;
}

/* ===============================  main  =============================== */

h1, h2, h3 {
    text-align: center;
    text-transform: capitalize;
    color: #212D43;
}
h1 {
    font-size: 2.4rem;
    font-weight: 700;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

h1 + p {
    padding-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    font-weight: 600;
    padding-top: 2.2rem;
}

h3 {
    font-size: 1.3rem;
    font-weight: 500;
    padding-bottom: 0.2rem;
    padding-top: 0.4rem;
}

img {
    display: block;
    max-width: 100%;
    width: 650px;
    height: auto;
    margin: auto;
}

/* ===============================  Homepage  =============================== */

.cheeses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.5rem;
    margin: auto;
}

.cheeses img {
    padding-top: 1rem;
    padding-bottom: 0.4rem;
}

.cheeses figcaption {
    text-align: center;
    font-size: 1rem;
}

.cheeses figcaption a {
    font-weight: 400;
    text-decoration: none;
    color:#212D43;
}

.visit {
    padding-bottom: 2.2rem;
    text-align: center
}

.visit img {
    padding: 1rem 0rem;
}

.visit a {
    text-decoration: none;
    color: #212D43;
    font-weight: 500;
}

/* ===============================  About Us  =============================== */

.line {
    background-color: #AD9676; /* Color of the line */
}

.grid1 {
        grid-template-columns: 1fr 1fr; /* single-column layout */
}

.story-img {
    width: auto;
    height: auto;
    max-width: 100%;
    padding-top: 1.8rem;
}

.story-text h2 {
    padding-top: 1rem;
    padding-bottom: 0.6rem;
}

.story-text p {
    padding-bottom: 2rem;
}

.mission-text h2 {
    padding-top: 1.8rem;
    padding-bottom: 0.6rem;
}

.mission-img {
    width: auto;
    height: auto;
    max-width: 100%;
    padding-top: 0.8rem;
    padding-bottom: 2rem;
}

/* ===============================  Products  =============================== */


.cheese-link {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.cheese-link a {
    text-decoration: none;
    color: #212D43;
    font-weight: 500;
}

/* ===============================  About Us and Products  =============================== */

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 0.5rem;
    margin: auto;
    padding-bottom: 2.2rem;
}

.grid2 figcaption {
    text-align: center;
    font-size: 1rem;
}

.grid2 img {
    padding-top: 1.5rem;
}

/* ===============================  Products Inner Pages  =============================== */

.content-1 {
    grid-template-columns: 1fr 1fr; /* single-column layout */
    padding-bottom: 1.5rem;
}

.information-1 h2 {
    padding-top: 1rem;
    padding-bottom: 0.6rem;
}

em {
    font-weight: bold;
    color: #212D43;
}

.product-link {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.product-link a {
    text-decoration: none;
    color: #212D43;
    font-weight: 500;
}

/* ===============================  Events  =============================== */

.event {
    grid-template-columns: 1fr 1fr; /* single-column layout */
    padding-bottom: 2.2rem;
}

.event-img-1 {
width: auto;
height: auto;
max-width: 100%;
padding-top: 1.8rem;
}

.event-text-1 h2 {
padding-top: 1rem;
padding-bottom: 0.6rem;
}

.event-text-1 p {
padding-bottom: 2rem;
}

.event-text-2 h2 {
    padding-top: 1rem;
    padding-bottom: 0.6rem;
}

.event-img-2 {
    width: auto;
    height: auto;
    max-width: 100%;
    padding-top: 1rem;
}

/* ===============================  Visit Us  =============================== */

.location p {
    text-align: center;
}

/* Select the first p tag within the second section with class 'location' */
.location:nth-of-type(2) p:nth-of-type(1) {
    padding-top: 1rem;
}

/* Select the fourth p tag within the second section with class 'location' */
.location:nth-of-type(2) p:nth-of-type(4) {
    padding-bottom: 2.2rem;
}

iframe {
	width: 100%;
	height: 400px;
    justify-content: center;
}

#google-map {
	display: block;
	width: 100%;
	height: auto;
	max-width: 800px;
	margin: 0 auto;
}

/* ===============================  Footer  =============================== */

footer {
    background: #212D43;
    padding-top: 1rem;
}

footer a {
    text-decoration: none;
    color: #fff;
    font-weight: 400;
}

footer nav ul li {
	text-align: center;
    padding-bottom: 0.6rem;
}

footer nav ul li:nth-child(3) a {
    text-decoration: underline;
}

.copyright {
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    color: #fff;
    padding-top: 0.3rem;
    padding-bottom: 1rem;
}

/* ===============================  Links  =============================== */

header a:hover {
    color: #7BBFBE;
    text-decoration: underline;
}
footer a:hover, a:active, a:focus-visible {
    color: #7BBFBE;
    text-decoration: underline;
}

/* ===============================  Responsive  =============================== */

@media (min-width: 700px) {

    body {
        font-size: 1.1rem;
    }
    
    main {
        max-width: 85vw;
    }

    .logo {
        max-width: 80%;
    }

    header nav ul li a {
        font-size: 1.1rem;
    }

    header nav ul {
        gap: 32px;
    }

    .cheeses {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 1rem;
        margin: auto;
    }

    .grid1 {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        align-items: center;
        grid-gap: 1.5rem;
        padding: 1.5rem 0rem;
        margin: auto;
    }

    .grid2 {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 1rem;
        margin: auto;
    }

    .event {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        align-items: center;
        grid-gap: 1.5rem;
        padding: 1.5rem 0rem;
        margin: auto;
    }

    .content-1 {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Two equal columns */
        align-items: center;
        grid-gap: 1.5rem;
        padding: 1.5rem 0rem;
        margin: auto;
    }

    .copyright {
        font-size: 1.1rem;
    }
}

@media (min-width: 1200px) {
    main {
        max-width: 70vw;
    }

    header nav ul {
        gap: 40px;
    }

    .cheeses {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 1rem;
        margin: auto;
    }

    .visit img {
        max-width: 60%;
    }

    .grid1 {
        grid-gap: 2rem;
        padding: 2rem 0rem;
    }

    .grid2 {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 1rem;
        margin: auto;
    }

    .event {
        grid-gap: 2rem;
        padding: 2rem 0rem;
    }

    .event-img-1 {
        padding-top: 0.2rem;
    }

    .event-text-1 h2 {
        padding-top: 0.2rem;
    }

    .content-1 {
        grid-gap: 2rem;
        padding: 2rem 0rem;
    }
}