* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #fafaf7;
    color: #222;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

html {
    scroll-behavior: smooth;
}

/* ============================
   SHARED CONTAINER + RHYTHM
   ============================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 120px 80px;
}

/* ============================
   LOGO SECTION
   ============================ */

.top-logo {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 25px 50px;
    background-color: white;
}

.top-logo img {
    height: 90px;
    justify-self: center;
    grid-column: 2;
}

.header-icons {
    display: flex;
    gap: 18px;
    justify-self: end;
    grid-column: 3;
}

.header-icons a {
    color: #222;
    font-size: 1.1rem;
    transition: 0.3s;
}

.header-icons a:hover {
    color: #648381;
}

/* ============================
   NAVIGATION
   ============================ */

.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 35px;
    padding: 24px;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background-color: white;
}

.navbar a {
    text-decoration: none;
    color: #222;
    font-size: 0.95rem;
    font-weight: bold;
    transition: 0.3s;
}

.navbar a:hover {
    color: #648381;
}

/* ============================
   HERO SECTION
   ============================ */

.hero {
    position: relative;
    height: 85vh;
    background-image: url("images/mosaic-hero.webp");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 80px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    color: white;
}

.hero-content h1 {
    font-size: 6rem;
    margin-bottom: 25px;
    line-height: 0.95;
    letter-spacing: -3px;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-buttons a {
    text-decoration: none;
    background-color: #648381;
    color: white;
    padding: 12px 22px;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.3s;
}

.hero-buttons a:hover {
    background-color: #4f6967;
}

/* ============================
   SHARED SECTION HEADING
   ============================ */

.section-heading {
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.section-label {
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: #648381;
    margin-bottom: 15px;
}

.section-heading h2 {
    font-size: 3rem;
    max-width: 600px;
    line-height: 1.1;
}

/* ============================
   UPCOMING HIKES / STORIES
   ============================ */

.upcoming-stories {
    background-color: #fafaf7;
}

.hikes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.hike-card {
    background: white;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.hike-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.14);
}

.hike-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hike-card:hover img {
    transform: scale(1.06);
}

.hike-content {
    padding: 30px;
}

.hike-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.hike-content p {
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.hike-content a {
    text-decoration: none;
    color: #648381;
    font-weight: bold;
}

/* ============================
   MIDWEEK SECTION
   ============================ */

.midweek-section {
    background-color: white;
}

.midweek-card {
    background: #f4f4ef;
    padding: 50px;
    border-radius: 12px;
    max-width: 800px;
}

.midweek-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.midweek-details {
    font-weight: bold;
    margin-bottom: 20px;
}

.midweek-content p {
    line-height: 1.9;
    margin-bottom: 20px;
}

.midweek-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

/* Preparing for a Hike — dual card layout */
.prep-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.prep-grid .midweek-card {
    max-width: 100%;
}

@media (max-width: 768px) {
    .prep-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================
   STORIES SECTION
   ============================ */

.stories-section {
    background-color: #fafaf7;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.story-card {
    background: white;
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.story-card h3 {
    margin-bottom: 20px;
    line-height: 1.3;
}

.story-card p {
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.story-card a {
    text-decoration: none;
    color: #648381;
    font-weight: bold;
}

/* ============================
   FOOTER
   ============================ */

.footer {
    background-color: #648381;
    color: rgba(255, 255, 255, 0.92);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 60px;
    padding: 80px;
}

.footer-column img {
    width: 220px;
    margin-bottom: 25px;
    border-radius: 10px;
}

.footer-column p {
    line-height: 1.9;
    margin-bottom: 15px;
    max-width: 350px;
}

.footer-column h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
}

.footer-column a {
    display: block;
    color: white;
    text-decoration: none;
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-column a:hover {
    opacity: 0.7;
}
.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 10px;
}

.footer-socials a {
    color: inherit;
    font-size: 1.3rem;
    transition: opacity 0.2s;
}

.footer-socials a:hover {
    opacity: 0.7;
}

/* ============================
   DROPDOWN NAVIGATION
   ============================ */

.dropdown {
    position: relative;
}

.dropdown-content {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    top: 100%;
    margin-top: -4px;
    padding-top: 8px;
    left: 0;
    background-color: white;
    min-width: 230px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-radius: 6px;
    overflow: hidden;
    z-index: 1000;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.dropdown-content a {
    display: block;
    padding: 14px 18px;
    color: #222;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.dropdown-content a:hover {
    background-color: #f4f4ef;
    color: #648381;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ============================
   SCROLL REVEAL
   ============================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hikes-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.hikes-grid .reveal:nth-child(3) { transition-delay: 0.2s; }
.stories-grid .reveal:nth-child(2) { transition-delay: 0.1s; }
.stories-grid .reveal:nth-child(3) { transition-delay: 0.2s; }

/* ============================
   TABLET — max-width: 1024px
   ============================ */

@media (max-width: 1024px) {
    .section-padding {
        padding: 80px 40px;
    }
    .hero {
        padding: 0 40px;
    }
    .hero-content h1 {
        font-size: 4rem;
        letter-spacing: -2px;
    }
    .footer {
        padding: 60px 40px;
        gap: 40px;
    }
    .top-logo {
        padding: 20px 40px;
    }
    .navbar {
        gap: 20px;
    }
}

/* ============================
   MOBILE — max-width: 767px
   ============================ */

@media (max-width: 767px) {
    .top-logo {
        padding: 16px 20px;
        grid-template-columns: 1fr auto 1fr;
    }
    .top-logo img {
        height: 60px;
    }
    .header-spacer {
        display: none;
    }
    .navbar {
        gap: 12px;
        padding: 14px 16px;
        padding-right: 32px;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        -webkit-mask-image: linear-gradient(to right, black 80%, transparent 100%);
        mask-image: linear-gradient(to right, black 80%, transparent 100%);
    }
    .navbar a {
        font-size: 0.85rem;
        white-space: nowrap;
    }
    .hero {
        padding: 0 20px;
        height: 75vh;
        align-items: flex-end;
        padding-bottom: 40px;
    }
    .hero-content h1 {
        font-size: 2.8rem;
        letter-spacing: -1.5px;
        margin-bottom: 16px;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .hero-buttons a {
        text-align: center;
    }
    .section-padding {
        padding: 60px 20px;
    }
    .section-heading {
        margin-bottom: 36px;
    }
    .section-heading h2 {
        font-size: 2rem;
    }
    .hikes-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .midweek-card {
        padding: 30px 20px;
    }
    .midweek-content h3 {
        font-size: 1.5rem;
    }
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer {
        grid-template-columns: 1fr;
        padding: 50px 20px;
        gap: 40px;
    }
    .footer-column img {
        width: 160px;
    }
    .dropdown:hover .dropdown-content {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}
.top-logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left,
.header-right {
    flex: 1;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header-logo-link {
    flex-shrink: 0;
}
/* Teal button */
.btn-teal {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 28px;
    background: #648381;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease;
}
.btn-teal:hover {
    background: #4e6967;
}

/* Benefit tags — text only, branded colour, no button shape */
.benefit-tag {
    color: #648381;
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.midweek-benefits {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
}

/* Trail list */
.trail-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}
.trail-list li {
    color: #648381;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 4px 0;
}

/* Hike card footer — image fills card, info sits at bottom */
.hike-card {
    position: relative;
    overflow: hidden;
}
.hike-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hike-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.75));
    padding: 24px 20px 20px;
}
.hike-card-footer h3 {
    color: #fff;
    margin: 4px 0 10px;
    font-size: 1.2rem;
}
.hike-card-footer .section-label {
    color: #f5a623;
    font-size: 0.75rem;
}
.hike-card-footer a {
    color: #fff;
    font-size: 0.85rem;
    text-decoration: underline;
}
/* Image prep cards */
.prep-card--image {
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
}

.prep-card-overlay {
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.82));
    padding: 40px 36px 36px;
}

.prep-card-overlay .section-label {
    color: #f5a623;
}

.prep-card-overlay h3 {
    color: #fff;
    margin: 8px 0 16px;
}

.prep-card-overlay .benefit-tag {
    color: #fff;
    font-weight: 500;
}

.prep-card-overlay .trail-list li {
    color: #fff;
    font-weight: 400;
}
.trail-list li {
    padding: 7px 0;
}
.prep-card-overlay .benefit-tag {
    margin-bottom: 7px;
}
.hike-card-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    padding: 60px 20px 24px;
}

.hike-card-footer .section-label {
    color: #f5a623;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.hike-card-footer h3 {
    color: #fff;
    font-size: 1.5rem;
    margin: 6px 0 12px;
}

.hike-card-footer a {
    color: #fff;
    font-size: 0.9rem;
    text-decoration: underline;
    letter-spacing: 0.04em;
}