/* 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: Quicksand, Arial, Helvetica, sans-serif;
	font-size: 1.1rem;
	line-height: 1.5;
    font-weight: 400;
}

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

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

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

.logo {
    width: auto;
    height: 35px;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

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

nav {
    width: 100%;
    text-align: center;
    background-color: #212D43;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 1.2rem 0;
}

nav ul li {
    padding: 0.5rem 1rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
}

#status-bar {
    width: 100%;
    background-color: #F5F5F5;
    text-align: center;
    padding: 1rem 0;
    border-bottom: 1px solid #212D43;
    font-weight: 600;
    color: #212D43;
}

#status-bar p {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
}

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

h1, h2, h3 {
    text-align: center;
    text-transform: capitalize;
    color: #212D43;
    font-weight: 700;
}

h1 {
    font-size: 2.3rem;
    font-weight: 700;
    padding-top: 2rem;
    padding-bottom: 1rem;
}

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

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

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

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

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

.welcome {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.welcome img {
    width: 100%;
    height: auto;
    padding-bottom: 3rem;
}

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

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

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

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

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

.visit img {
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.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 */
}

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

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

.about-text h2 {
    padding-top: 1.5rem;
    padding-bottom: 0.6rem;
}

.about-text p {
    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  =============================== */

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

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

.grid-1 img {
    padding-top: 1.5rem;
}

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

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

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

.cheese-section h3 {
    text-align: left;
}

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

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

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

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

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

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

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

.event-text h3 {
    text-align: left;
    padding-bottom: 0.5rem;
}

dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.3rem 2.5rem;
    align-items: start;
    padding-bottom: 2rem;
}

.event-text dt::before {
    content: "•";
    margin-right: 0.5rem;
}

/* ===============================  Contact Us  =============================== */

.contact-info {
    margin: 3rem 0;
    display: grid;
}

iframe {
	width: 100%;
	height: 400px;
    justify-content: center;
    padding-bottom: 1rem;
}

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

.contact-details h2 {
    text-align: left;
    padding-top: 1.8rem;
    font-size: 1.6rem;
}

.contact-details p {
    text-align: left;
    padding-top: 0.5rem;
}

.contact-details a {
    color: #212D43;
    text-decoration: none;
}

.contact-details dl {
    padding-top: 0.5rem;
}

/* ===============================  Error Page  =============================== */

.error-section {
    padding: 4rem 0;
    text-align: center;
}

.error-section img {
    max-width: 370px;
    width: 100%;
    height: auto;
    margin: 0 auto 2rem;
}

.error-section p {
    padding-bottom: 0.6rem;
}

.error-links {
    margin: 1rem;
}

.error-links a {
    display: block;
    background-color: #212D43;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    width: 200px;
    padding: 1rem 1rem;
    margin: 1rem auto;
}

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

footer {
    background: #212D43;
    color: #fff;
    padding: 3rem 2rem;
    display: grid;
    gap: 1.5rem;
}

footer h3 {
    color: #fff;
    font-size: 1.2rem;
    text-align: left;
    margin-bottom: 0.8rem;
}

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

footer address {
    line-height: 1.6;
}

address p {
    padding-bottom: 0.5rem;
}

footer nav ul {
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 0;
    font-weight: normal;
}

footer nav ul li {
    padding-bottom: 0.5rem;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}

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

footer dl {
    gap: 0.5rem 2rem;
    padding-bottom: 0;
}

#copyright {
    margin-top: 1rem;
    padding-top: 2.5rem;
    border-top: 1px solid #fff;
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-2 {
    padding: 2rem 5rem;
    display: grid;
    gap: 1.5rem;
}

#copyright-2 {
    grid-column: 1 / -1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

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

nav ul li a:hover {
    color: #000;
    background-color: #7BBFBE;
    padding: 1rem 1rem;
}

.visit a:hover {
    color: #000;
    background-color: #7BBFBE;
    padding: 1rem 1rem;
}

.cheese-link a:hover {
    color: #000;
    background-color: #7BBFBE;
    padding: 1rem 1rem;
}

.product-link a:hover {
    color: #000;
    background-color: #7BBFBE;
    padding: 1rem 1rem;
}

.contact-details a:hover {
    text-decoration: underline;
}

.direction:hover {
    color: #000;
    background-color: #7BBFBE;
    padding: 1rem 1rem;
}

.footer-section a:hover {
    text-decoration: underline;
    background-color:#212D43;
    color: #fff;
    padding: 0;
}

.error-links a:hover {
    color: #000;
    background-color: #7BBFBE;
}

.footer-2 a:hover {
    text-decoration: underline;
}

/* ===============================  Accessibility Page  =============================== */

.accessibility-content {
    padding-bottom: 2rem;
}

.accessibility-content h2 {
    text-align: left;
    padding-bottom: 0.5rem;
}

.accessibility-content hr {
    background-color: #AD9676;
   margin-top: 2rem;
}

.accessibility-content p {
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.accessibility-content ul {
    padding: 0.5rem 0;
}

.accessibility-content ul li {
    padding-bottom: 0.4rem;
}

.accessibility-content a {
    text-decoration: underline;
    font-weight: 600;
    color: #212D43;
}

.accessibility-content a:hover {
    background-color: #7BBFBE;
    color: #000;
}

/* ===============================  Skip to content  =============================== */

.skip-link {
    position: absolute;
    top: -44px;
    left: 0;
    background: #7BBFBE;
    color: #000;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

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

@media (min-width: 700px) {

    main {
        max-width: 85vw;
    }
    
    nav ul {
        flex-direction: row;
    }

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

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

    .about-img-1 {
        padding-top: 3.2rem;
    }

    .about-img-2 {
        padding-bottom: 3.2rem;
    }

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

    .event-img-2 {
        padding-bottom: 3.2rem;
    }

    footer {
        grid-template-columns: repeat(2, 1fr);
    }

    #copyright {
        flex-direction: row;
        justify-content: space-between;
        padding-top: 2.5rem;
    }

    .error-links a {
        width: auto;
        margin: 0 1rem;
        display: inline-block;
        padding: 1.3rem 2rem;
    }

    .footer-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    #copyright-2 {
        flex-direction: row;
        justify-content: space-between;
    }
}


@media (min-width: 1100px) {

    main {
        max-width: 75vw;
    }

    .welcome {
        grid-template-columns: 1fr 1fr;
        padding-top: 3rem;
        gap: 2rem
    }

    .welcome h1 {
        text-align: left;
    }

    .cheeses {
        grid-template-columns: repeat(4, 1fr);
    }

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

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

    .about-text h2 {
        text-align: left;
    }

    .about-img-1 {
        padding: 1.2rem 0;
    }

    .about-img-2 {
        padding: 1.2rem 0;
    }

    .grid-1 {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .event-text h2 {
        text-align: left;
    }

    .event-img-1 {
        padding: 1.2rem 0;
    }

    .event-img-2 {
        padding: 1.2rem 0;
    }

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

    .cheese-text h2 {
        text-align: left;
    }

    .contact-info {
        grid-template-columns: 3fr 2fr;
        gap: 3rem;
    }

    .contact-details h2 {
        padding-top: 0;
    }

    .contact-details p {
        padding-bottom: 1.2rem;
    }

    footer {
        grid-template-columns: repeat(3, 1fr);
        padding: 2rem 5rem;
    }

    .error-section p {
        padding-right: 3rem;
        padding-left: 3rem;
        margin: 0 5rem;
    }
}