/* Import fonts */
@import url('https://fonts.cdnfonts.com/css/apple-garamond');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #F7F4EE;
    font-family: 'Apple Garamond', serif;
    color: #2C2E33;
    line-height: 1.6;
}

/* Header styling */
header > div:first-child {
    background-color: #2C2E33;
    color: #F7F4EE;
    text-align: center;
    padding: 1rem;
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

/* Hero section */
#hero {
    width: 100%;
    margin: 0;
    padding: 0;
}

#hero img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Navigation */
nav {
    background-color: #C37B47;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav div:first-child img {
    height: 40px;
}

nav div:last-child {
    background-color: transparent;
}

nav a {
    color: #F7F4EE;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    transition: color 0.3s ease;
    background-color: transparent;
}

nav a:hover {
    color: #A7D129;
}

/* Intro section */
#intro {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

#intro .text {
    flex: 1;
}

#intro .text h1 {
    font-size: 2.5rem;
    color: #2C2E33;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

#intro .text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2C2E33;
}

#intro .image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

#intro .image img {
    width: 100%;
    height: auto;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Gear section */
#gear {
    background-color: #2C2E33;
    padding: 4rem 3rem;
    margin: 3rem 0;
}

#gear h2 {
    color: #F7F4EE;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    grid-column: 1 / -1;
}

#gear > div {
    background-color: #F7F4EE;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gear > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#gear h3 {
    color: #C37B47;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

#gear p {
    color: #2C2E33;
    font-size: 1.1rem;
    line-height: 1.6;
}

#gear {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Safety section */
#safety {
    background-image: url('images/safety.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 6rem 3rem;
    margin: 3rem 0;
}

#safety::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(247, 244, 238, 0.3);
}

#safety h2 {
    position: relative;
    color: #2C2E33;
    text-align: center;
    font-size: 2.5rem;
    z-index: 1;
}

#safety p {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 1.1rem;
    color: #2C2E33;
}

/* Respect section */
#respect {
    background-image: url('images/respect.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    padding: 6rem 3rem;
    margin: 3rem 0;
}

#respect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(247, 244, 238, 0.3);
}

#respect h2 {
    position: relative;
    color: #2C2E33;
    text-align: center;
    font-size: 2.5rem;
    z-index: 1;
}

#respect p {
    position: relative;
    z-index: 1;
    text-align: center;
    font-size: 1.1rem;
    color: #2C2E33;
}

/*gear page*/

/*
colors:
black #2C2E33 
brown #C37B47 
lime green #A7D129 
forest green #7B991E 
cream #F7F4EE 
*/
#gear_page{
    text-align: left;
    display: grid;
    grid-template-rows: auto auto auto;
    grid-row-gap: 50px;
    margin-left: 10px;
}
#gear_page section {
    margin: 0;
    margin-bottom: 70px;
    margin-top: 50px;
    justify-items: center;
    align-items:flex-start;
}
#gear_page #ascension, #gear_page #descension {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
    grid-template-rows: 100px 1fr;
}
#ascension {
    height: 725px;
}
#ascension li, #ascension dt {
    margin-left: 40px;
}

#ascension dt {
    font-size: 1.1em;
    margin-top: 5px;
}

#descension {
    height: 400px;
    margin-bottom: 30px;
}
#descension img, #knots img {
    border-radius: 5px;
    border: solid 4px #C37B47;
}
#gear_page h2 {
    font-size: 3em;
    text-align: left;
    grid-row: 1/2;
    display: flex;
    flex-wrap: wrap;
    display: flex;
    align-self: center;
}
#gear_page p {
    grid-row: 1/2;
    grid-column: 2/5;
    text-align: left;
    align-self: center;
    font-size: 1.5em;
}

.image_and_list {
    grid-row: 2/3;

}
.preference {
    grid-column: 5/6;
    grid-row: 1/3;
    color: #F7F4EE;
    margin-right: 15px;

}
.preference h3 {
    padding-top: 30px;
}
.preference p {
    font-size: 1.5em;
    height: 270px;
    padding-left: 10px;
    padding-right: 10px;
    
}
.preference p, .preference h3{
    background-color: #2C2E33;
    padding-left: 50px;
    padding-right: 50px;
}

#gear_page img {
    width: 150px;
    display: flex;
    text-align: center;
    justify-self: center;
    
}
#gear_page h4 {
    text-align: center;
    padding-top: 10px;
    font-size: 1.5em;
    margin-bottom: 10px;

}
#gear_page h3 {
    text-align: center;
    padding-bottom: 10px;
    font-size: 2em;

}
#big_banner p {
    height: 340px;
}
#knots {

    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 2fr;
    grid-template-rows: 100px 225px 1fr;
}
#double-fishermans {
    grid-column: 1/2;
    grid-row: 3/4;
}
#bowline {
    grid-column: 2/3;
    grid-row: 3/4;
}
#barrel {
    grid-column: 3/4;
    grid-row: 3/4;
}
.triangle-down {
    width: 0;
    height: 0;
    border-left: 251px solid transparent;
    border-right: 251px solid transparent;
    border-top: 80px solid #2C2E33 ;
}

/* Safety & Respect Page Styles */
.content-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 3rem;
}

.content-section h2 {
    font-size: 3rem;
    color: #2C2E33;
    margin-bottom: 3rem;
    text-align: center;
}

.section-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 3rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.subsection {
    margin-bottom: 3rem;
}

.subsection h3 {
    font-size: 2rem;
    color: #C37B47;
    margin-bottom: 1rem;
}

.subsection p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2C2E33;
    margin-bottom: 1rem;
}

.subsection ul {
    margin-left: 2rem;
    margin-top: 1rem;
}

.subsection li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #2C2E33;
    margin-bottom: 0.5rem;
}

.subsection strong {
    color: #7B991E;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #C37B47, transparent);
    margin: 4rem 0;
}


/* Footer */
footer {
    background-color: #2C2E33;
    color: #F7F4EE;
    padding: 3rem 2rem 1rem;
    text-align: center;
}

footer p {
    background-color: transparent;
    color: #F7F4EE;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

footer strong {
    background-color: transparent;
    color: #A7D129;
}

footer a {
    background-color: transparent;
    color: #C37B47;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #A7D129;
}

footer small {
    background-color: transparent;
    color: #F7F4EE;
    display: block;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #C37B47;
}

footer #year {
    background-color: transparent;
}


@media (max-width: 768px) {
    #intro {
        flex-direction: column;
        padding: 2rem 1.5rem;
    }
    
    #intro .text h1 {
        font-size: 2rem;
    }
    
    #gear {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    #hero img {
        height: 250px;
    }
}

