/* =========================================================
   WILDLY WANDERING
   MAIN WEBSITE STYLESHEET
========================================================= */


/* =========================
   GLOBAL
========================= */

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

:root {
    --background: #F4F4F6;
    --green: #285C3A;
    --dark-green: #183B2A;
    --black: #000000;
    --white: #FFFFFF;
    --light-grey: #E5E5E7;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
}

a {
    transition: 0.2s ease;
}


/* =========================
   HEADER
========================= */

header {
    background: var(--background);
    border-bottom: 1px solid var(--light-grey);
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 22px 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    width: 180px;
    height: auto;
    display: block;
}


/* =========================
   NAVIGATION
========================= */

nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

nav a {
    color: var(--black);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

nav a:hover {
    color: var(--green);
}


/* =========================
   HOMEPAGE HERO
========================= */

.hero {
    width: 100%;
    padding: 0;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 650px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
}

.hero-overlay {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: var(--white);
}

.hero-small-title {
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.hero-overlay h1 {
    font-size: clamp(55px, 8vw, 100px);
    line-height: 0.98;
    letter-spacing: -3px;
    margin-bottom: 30px;
    color: var(--white);
}

.hero-overlay .hero-text {
    max-width: 600px;
    margin: 0 auto 35px;
    font-size: 19px;
    color: var(--white);
}

.hero-button {
    display: inline-block;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    padding: 14px 28px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.hero-button:hover {
    background: var(--dark-green);
}


/* =========================
   SECTION HEADINGS
========================= */

.section-heading {
    max-width: 1300px;
    margin: 0 auto 55px;
}

.section-heading p,
.section-label {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-size: 42px;
    line-height: 1.1;
}


/* =========================
   HOMEPAGE FEATURED
========================= */

.featured {
    background: var(--white);
    padding: 110px 35px 120px;
}


/* THIS KEEPS THE THREE CARDS IN A ROW */

.article-grid {

    width: 100%;
    max-width: 1400px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 30px;

}

.article-card {
    background: var(--white);
    min-width: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.article-image {
    height: 260px;
    background: #dfe3df;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.article-content {
    padding: 25px;
}

.article-content span {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content h3 {
    font-size: 25px;
    line-height: 1.2;
    margin: 10px 0 14px;
}

.article-content h3 a {
    color: var(--black);
    text-decoration: none;
}

.article-content h3 a:hover {
    color: var(--green);
}

.article-content p {
    font-size: 15px;
    margin-bottom: 18px;
}

.article-content a {
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
}

.article-content a:hover {
    text-decoration: underline;
}


/* =========================
   HOMEPAGE INTRO
========================= */

.intro {
    padding: 110px 35px;
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.intro h2 {
    font-size: clamp(40px, 6vw, 65px);
    line-height: 1.05;
    margin-bottom: 25px;
}

.intro p:not(.section-label) {
    max-width: 600px;
    margin: 0 auto 25px;
    font-size: 17px;
}

.text-link {
    color: var(--green);
    text-decoration: none;
    font-weight: 700;
}

.text-link:hover {
    text-decoration: underline;
}


/* =========================
   GENERAL PAGE HERO
========================= */

.page-hero {
    text-align: center;
    padding: 100px 25px 70px;
}

.page-hero h1 {
    font-size: clamp(55px, 8vw, 90px);
    line-height: 0.98;
    letter-spacing: -3px;
    margin: 10px 0 20px;
}

.page-hero > p:last-child {
    font-size: 19px;
    max-width: 600px;
    margin: 0 auto;
}


/* =========================
   ABOUT PAGE
========================= */

.about-content {
    background: var(--white);
    padding: 90px 35px 110px;
}

.about-image {
    max-width: 1100px;
    height: 500px;
    margin: 0 auto 80px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.about-text {
    max-width: 850px;
    margin: 0 auto;
}

.about-text h2 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.1;
    margin-bottom: 30px;
}

.about-text p:not(.section-label) {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 22px;
}

.about-values {
    padding: 90px 35px;
}

.value-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.value-card {
    background: var(--white);
    padding: 35px 30px;
    border-top: 4px solid var(--green);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.value-card h3 {
    font-size: 23px;
    margin-bottom: 12px;
}

.value-card p {
    font-size: 15px;
    line-height: 1.7;
}


/* =========================
   BLOG PAGE
========================= */

.blog-categories {
    background: var(--white);
    padding: 70px 35px 90px;
}

.category-grid {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.category-card {
    background: var(--background);
    color: var(--black);
    text-decoration: none;
    padding: 35px 30px;
    height: 190px;
    flex: 0 0 calc(25% - 15px);
    border-top: 4px solid var(--green);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.category-card h3 {
    font-size: 25px;
    line-height: 1.2;
    margin-bottom: 12px;
    min-height: 60px;
}

.category-card p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.blog-latest {
    padding: 90px 35px;
}


/* =========================
   BLOG CATEGORY PAGES
========================= */

.category-hero {
    text-align: center;
    padding: 100px 25px 80px;
}

.category-hero h1 {
    font-size: clamp(50px, 7vw, 85px);
    line-height: 1;
    margin: 10px 0 20px;
}

.category-hero > p:last-child {
    max-width: 650px;
    margin: 0 auto;
    font-size: 19px;
}

.category-articles {
    background: var(--white);
    padding: 90px 35px;
}


/* =========================
   CONTACT PAGE
========================= */

.contact-section {
    background: var(--white);
    padding: 90px 35px;
}

.contact-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(38px, 5vw, 55px);
    line-height: 1.1;
    margin: 10px 0 25px;
}

.contact-info p:not(.section-label) {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-form {
    background: var(--background);
    padding: 35px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 7px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d1d1d4;
    background: var(--white);
    padding: 13px 14px;
    margin-bottom: 22px;
    font-family: inherit;
    font-size: 15px;
    color: var(--black);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--green);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    border: none;
    background: var(--green);
    color: var(--white);
    padding: 14px 25px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.contact-form button:hover {
    background: var(--dark-green);
}


/* =========================
   FOOTER
========================= */

footer {
    background: var(--dark-green);
    color: var(--white);
    padding: 55px 35px 25px;
}

.footer-container {
    max-width: 1300px;
    margin: 0 auto 45px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
}

.footer-container strong {
    font-size: 20px;
}

.footer-container p {
    margin-top: 5px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
}

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

.copyright {
    max-width: 1300px;
    margin: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.7;
}


/* =========================
   MOBILE
========================= */

@media (max-width: 1000px) {

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

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


@media (max-width: 800px) {

    .header-container {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav a {
        font-size: 14px;
    }

    .hero-image {
        height: 550px;
    }

    .hero-overlay h1 {
        letter-spacing: -2px;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-section {
        padding: 65px 20px;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}


@media (max-width: 700px) {

    .article-grid {
        grid-template-columns: 1fr;
    }

    .article-image {
        height: 230px;
    }
}


@media (max-width: 600px) {

    .page-hero {
        padding: 70px 20px 60px;
    }

    .about-content,
    .about-values {
        padding: 65px 20px;
    }

    .value-grid {
        grid-template-columns: 1fr;
    }

    .blog-categories,
    .blog-latest {
        padding: 65px 20px;
    }

    .category-grid {
    display: flex;
    flex-direction: column;
}

    .category-card {
        min-height: auto;
    }

    .category-hero {
        padding: 70px 20px 60px;
    }

    .category-articles {
        padding: 65px 20px;
    }

    .contact-section {
        padding: 65px 20px;
    }
}

.article-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.article-image-link .article-image {
    transition: transform 0.2s ease;
}

.article-image-link:hover .article-image {
    transform: scale(1.02);
}

/* =========================
   BLOG FEATURE IMAGE
========================= */

.blog-image {
    max-width: 1100px;
    height: 380px;
    margin: 0 auto 70px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================
   CONTACT FEATURE IMAGE
========================= */

.contact-image {
    max-width: 1100px;
    height: 380px;
    margin: 0 auto 80px;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}