/* CSS By PJ Graham */

/* Import font link */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* CSS Reset */
/* 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;
}

/* Root colors, fonts and styles */

:root {
    /* colors */
    --midnight-blue: #1F2A44;
    --olive-green: #76885B;
    --champagne-gold: #E5C185;
    --linen: #F8F4EC;
    --dark-charcoal: #2B2B2B;
    --soft-white: #FAF9F6;
    /* box shadow */
    --box-shadow: #96969671;
    /* fonts */ 
    --playfair: 'Playfair Display', serif;
}

/* Global Styles (mobile first/small) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#container {
    min-width: 480px;
    margin: 0 auto;
    background-color: var(--soft-white);
    font-family: var(--playfair);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
        "head"
        "about"
        "offerings"
        "gallery"
        "foot";
}

/* Header: h1 & Navbar */
header {
    grid-area: head;
    background-color: var(--midnight-blue);
    color: var(--soft-white);
}

header > img {
    width: 40%;
    margin: 0 30%;
    padding: 20px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

header > h1 {
    font-size: 3em;
    font-weight: bold;
    text-align: center;
}

header > p {
    background-color: var(--midnight-blue);
    color: var(--soft-white);
    font-size: 1em;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

header > nav {
    background-color: var(--champagne-gold);
    color: var(--dark-charcoal);
}

nav ul {
    display: flex;
}

nav li {
    flex-grow: 1;
    text-align: center;
    padding: 0.5em;
    font-size: 20px;
    font-weight: bold;
}

nav a {
    text-decoration: none;
    color: var(--dark-charcoal);
}

/* Section 1: Intro (h2, p) */
#about > h2 {
    grid-area: about;
    font-size: 25px;
    padding-top: 3em;
    color: var(--midnight-blue);
}

h2 {
    font-size: 25px;
    padding: 15px 0 10px 20px;
    color: var(--midnight-blue);
}

p {
    font-size: 1em;
    color: var(--midnight-blue);
    font-weight: lighter;
    line-height: 1.25rem;
    padding: 0 20px 20px 20px;
}

hr {
    margin: 10px;
    border: 1px solid var(--champagne-gold);
}

/* Section 2: Grid layout for three boxes with text aligned left (h2 above grid: h3, p) */
#offerings {
    grid-area: offerings;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    color: var(--soft-white);
    line-height: 20px;
    padding: 10px;
}

#offerings > h2 {
    font-size: 25px;
    padding: 10px 0 10px 10px;
    color: var(--midnight-blue);
}

#grid-col-1, #grid-col-2, #grid-row {
    background-color: var(--olive-green);
    padding: 10px;
    border-radius: 10px;
}

#offerings h3 {
    font-size: 20px;
    font-weight: bold;
    color: var(--soft-white);
    padding: 2px;
}

#offerings p {
    color: var(--soft-white);
    padding: 5px;
    font-weight: lighter;
}

#grid-row ul {
    font-size: 14px;
    list-style-type: disc;
    list-style-position: inside;
}

/* Section 3: Card section with responsive img and caption test */
#gallery {
    grid-area: gallery;
}

#gallery-cards {
    max-width: 100%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: auto;
    gap: 2px;
}

.card {
    display: grid;
    grid-template-rows: auto auto;
    margin: 1em;
}

.card img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
}

figcaption {
    text-align: center;
    font-size: 1rem;
    font-style: italic;
    font-weight: lighter;
    padding: 1.5em;
    border-radius: 5px;
    box-shadow: 0 5px 5px var(--box-shadow);
    background-color: var(--soft-white);

}

.full-gallery {
    display: block;
    flex-wrap: nowrap;
    background-color: var(--olive-green);
    color: var(--linen);
    font-family: var(--playfair);
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    padding: 20px;
}

/* Footer */

footer {
    grid-area: foot;
    background-color: var(--midnight-blue);
    color: var(--linen);
    height: 200px;
}

#contact {
    text-align: center;
    margin: 1em auto;
    font-size: 12px;
    color: var(--soft-white);
    line-height: 2em;

    display: grid;
    grid-template-columns: 1fr;
}

#socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 5px;
}

footer a {
    color: var(--champagne-gold);
    text-decoration: none;
    font-weight: bold;
}


/* Media Queries */
/* Media query - Medium min 600px */
@media screen and (min-width: 600px) {

/* Body container */
   #container {
        max-width: 100%;
   }

/* Header and Nav */

   header > img {
    width: 30%;
    margin: 0 auto;
    padding: 20px;
   }

   header > h1 {
    font-size: 60px;
   }

   nav ul {
    margin: 0 200px;
   }

   #about {
    margin: 0 100px;
   }

   hr {
    margin: 0 100px;
   }

/* Our Offerings */

   .head-offerings {
    padding-left: 120px;
   }

   #offerings {
    display: flex;
    justify-content: flex-start;
    margin: 0 100px;
   }

   #offerings h3 {
        font-size: 30px;
        flex-wrap: wrap;
        line-height: 1.5em;
   }

   #grid-col-1, #grid-col-2 {
        flex-direction: column;
        flex: 1;
        margin: 5px;
   }

   #grid-row {
        flex: 0 1 100%;
        margin: 5px;
   }

/* Gallery cards */

   #gallery {
    padding: 10px 100px;
   }

   #gallery-cards {
    display: grid;
    grid-template-columns: 25em 25em;
    grid-template-rows: 20em;
    margin: 0 100px;
   }

   .card {
    display: flex;
    flex-direction: column;
   }

    .full-gallery {
    width: 95%;
    margin: 10px 70px;
}
}


/* Media query - Large 900px */
@media screen and (min-width: 900px) {
   /* Body container */
   #container {
    max-width: 100%;
}

/* Header and Nav */
header > img {
    width: 20%;
    margin: 0 auto;
    padding: 20px;
   }

   header > h1 {
    font-size: 4em;
   }

   nav ul {
    margin: 0 150px;
   }


/* Our Offerings */
#offerings {
    display: flex;
    justify-content: flex-start;
   }

   #offerings h3 {
        font-size: 30px;
        flex-wrap: wrap;
        line-height: 1.5em;
   }

   #grid-col-1, #grid-col-2 {
        flex-direction: column;
        flex: 1;
        margin: 5px;
   }

   #grid-row {
        flex: 0 1 100%;
        margin: 5px;
   }

   /* Gallery cards */
   #gallery-cards {
    display: grid;
    grid-template-columns: 20em 20em 20em;
    grid-template-rows: 20em;
   }

   .card {
    display: flex;
    flex-direction: column;
   }

   .card figcaption {
    padding: 1.5em;
   }

    .full-gallery {
    width: 95%;
    margin: 10px 20px 10px 20px;
}
}
/* Media query - XL 1200px */
@media screen and (min-width: 1200px) {
    #container {
        max-width: 100%;
   }

   /* Header and Nav */
header > img {
    width: 20%;
    margin: 0 auto;
    padding: 20px;
   }

   nav ul {
    margin: 0 400px;
   }

   nav a:hover {
    background-color: var(--soft-white);
    font-weight: lighter;
    transition-duration: 1s;
    padding: 5px;
    border-radius: 15px;
}

main {
    margin: 0 200px;
}

/* Our Offerings */
#offerings {
    display: flex;
    justify-content: flex-start;
   }

   #offerings h3 {
        font-size: 30px;
        flex-wrap: wrap;
        line-height: 1.5em;
   }

   #grid-col {
        flex-direction: column;
        flex: 1;
        margin: 5px;
   }

   #grid-row {
        flex: 0 1 100%;
        margin: 5px;
   }

   /* Gallery cards */
#gallery-cards {
    display: grid;
    grid-template-columns: 11.75em 11.75em 11.75em 11.75em 11.75em;
    grid-template-rows: auto;
   }

   .card {
    display: flex;
    flex-direction: column;
   }

    .full-gallery {
    width: 100%;
    margin: 10px 5px 10px 15px;
}
}

