/* CSS by Terell Patillo*/

/* Imported Fonts */
@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 Variables */
:root{
    --midnight-blue:#1F2A44;
    --olive-green:#76885B;
    --champagne-gold: #E5C185;
    --linen: #F8F4EC;
    --dark-charcoal: #2B2B2B;
    --soft-white: #FAF9F6;
}

/* Global Style */

*{
    margin:0;
    padding:0;
    line-height:2;
    font-family: playfair display;
    box-sizing: border-box;
}

body{
    background-color: var(--soft-white);
    text-align: center;
    margin: 0 auto;
}

h2{
    color:var(--mid-blue);
    font-size:32px;
}

header{
    background-color: var(--midnight-blue);
    color: var(--linen);
    padding: 2em;
}

header img{
    height: 350px;
    width: auto;
}

header h1{
    font-size:50px;
}

header p{
    font-style: italic;
}

nav {
    font-weight: bold;
    font-size: 21px;
    text-align: center; 
}

nav a{ 
    text-decoration: none;
    color: var(--midnight-blue);
    
}

nav ul{
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-around;
    list-style-type: none;
    font-size: 1em;
    background-color: var(--champagne-gold);
}

main{
    background-color: var(--soft-white);
}

#about{
    padding: 3em 2em 0 2em;
    text-align: left;
    
}

.border{
    width:89%;
    margin: 0 auto;
    border-bottom: 2px solid var(--champagne-gold);
    margin-top: 1.5em;
}

#offering{
    padding: 1em 2em 0 2em;
    text-align: left;
}

#offering div{
    display: flex;
    flex-direction: column;
    background-color: var(--olive-green);
    border-radius: 10px;
    padding: 1em;
    margin-bottom: 1em;
    color: var(--linen);
    box-shadow: 1px 1.5px 5px var(--dark-charcoal);
}

#offering h2{
    padding-bottom:0.2em;
    
}

#offering h3{
    font-size: 25px;
}

#offering ul{
    list-style-position: inside;
}

#gallery{
    text-align: left;
    padding: 0 2em 0 2em;
}

#gallery h2{
    margin-top: 1em;
}


figure{
    max-width:100%;
    margin-top: 1em;
}

figure img{
    max-width:100%;
    height:auto;
    display:block;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    
}

figcaption{
    text-align: center;
    font-style: italic;
    border: 1px solid var(--linen);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0.1px 2px 5px  -2px var(--dark-charcoal);
    padding: 0.5em;
}

#gallery p:nth-of-type(2){
    text-align: center;
    margin-top: 1em;
    background-color: var(--olive-green);
    color:var(--soft-white);
    font-weight: bold;
    border-radius: 5px;
    padding:0.5em 0 0.5em 0;
}

#border div:nth-of-type(1){
    padding-bottom: 50em;
}

footer{
    margin-top: 2em;
    background-color: var(--midnight-blue);
    color: var(--soft-white);
    padding: 5em 0 1.5em 0;

}

footer address{
    font-style: normal;
}

footer a{
    text-decoration: none;
    color: var(--soft-white);
    display: flex;
    flex-direction: column;
}

footer a:nth-last-of-type(1){
    color: var(--champagne-gold);
}

footer p{
    padding-top:2em;
    display:inline-block;
    margin: 0.1em;
    color: var(--champagne-gold);
}

/* Medium Media Query */
@media screen and (min-width: 600px){
    #offer-grid{
        display: grid;
        grid-template-columns: 0.8fr 0.8fr;
        grid-template-rows: 0.8fr 0.8fr;
        gap: 10px;
        height:100%;
    }

    #offering h3{
        font-size: 30px;
        line-height: 1.5;
    }

    #offer-grid div:nth-last-of-type(1){
        grid-column: 1/3;
    }

    .img-grid{
       display:grid;
       grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
       gap: 12px;
       align-items: stretch;
    } 

    figure{
        display:flex;
        flex-direction: column;
    }

    figure:first-of-type figcaption{
        flex-grow: 1;
    }

    .border{
        width:91.5%;
    }

}

/* Large Media Query */
@media screen and (min-width: 900px){
    main{
        margin-right: 2em;
        margin-left: 2em;
    }

    .img-grid{
        margin-top:1em;
        display:grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .border{
        width:93.5%;
    }

    figcaption{
        flex-grow: 1;
    }
}

/* X-Large Media */
@media screen and (min-width: 1200px){
    main{
        margin-right: 10em;
        margin-left: 10em;
    }

    figure{
        margin-top: 1em;
    }
    
    .img-grid{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
        grid-template-rows: 1fr;
    } 

    figcaption{
        flex-grow: 1;
    }

    .border{
        width:95%;
    }

    #offering h3{
        font-size: 28px;
        line-height: 1.5;
    }
} 