/* ==========================================================================
   Trailhead Management — Stylesheet
   Colors extracted from logo:
     --orange:    #CB6B35  (warm mountain accent)
     --green:     #8B9E56  (sage/olive)
     --slate:     #4A6369  (dark teal — primary text)
   ========================================================================== */

:root {
    --orange: #CB6B35;
    --orange-light: #D4833F;
    --orange-dark: #B55E2D;
    --green: #8B9E56;
    --green-light: #9DAE6E;
    --green-dark: #77894A;
    --slate: #4A6369;
    --slate-light: #5E7A81;
    --slate-dark: #3A5055;

    --white: #FFFFFF;
    --off-white: #EDF1F4;
    --warm-gray: #E2E7EC;
    --mid-gray: #B0ADA6;
    --text: #3A3A3A;
    --text-light: #6B6B6B;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;

    --container: 1140px;
    --header-height: 80px;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);
    --transition: 0.3s ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text);
    line-height: 1.7;
    font-size: 16px;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Container */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}
.btn--primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}
.btn--primary:hover {
    background: var(--orange-dark);
    border-color: var(--orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(203,107,53,0.3);
}
.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
}
.btn--white {
    background: var(--white);
    color: var(--orange);
    border-color: var(--white);
}
.btn--white:hover {
    background: var(--off-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}
.btn--full { width: 100%; }

/* Section Titles */
.section__title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 12px;
}
.section__subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 560px;
    margin-bottom: 48px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background: transparent;
    transition: all var(--transition);
}
.header--scrolled {
    background: rgba(255,255,255,0.97);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}
.header__logo img {
    height: 44px;
    width: auto;
}
.header__nav {
    display: flex;
    gap: 36px;
}
.nav__link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--white);
    transition: color var(--transition);
    position: relative;
}
.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width var(--transition);
}
.nav__link:hover::after {
    width: 100%;
}
.header--scrolled .nav__link {
    color: var(--slate);
}
.header--scrolled .nav__link:hover {
    color: var(--orange);
}
.header__cta {
    font-size: 0.9rem;
    padding: 10px 24px;
}

/* Mobile menu toggle */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.header__menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
}
.header--scrolled .header__menu-toggle span {
    background: var(--slate);
}
.header__menu-toggle.is-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.header__menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
}
.header__menu-toggle.is-open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        url('../images/Hero2.jpeg') center/cover no-repeat;
    overflow: hidden;
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 100%);
    pointer-events: none;
}
.hero__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 120px 0 80px;
}
.hero__title {
    font-family: var(--font-heading);
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}
.hero__subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 600px;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Value Props
   ========================================================================== */
.value-props {
    padding: 80px 0;
    background: var(--white);
    margin-top: -40px;
    position: relative;
    z-index: 2;
}
.value-props__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.value-prop {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--off-white);
    transition: transform var(--transition), box-shadow var(--transition);
}
.value-prop:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.value-prop__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--warm-gray);
    color: var(--orange);
    margin-bottom: 20px;
}
.value-prop__title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--slate);
    margin-bottom: 10px;
}
.value-prop__text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services {
    padding: 100px 0;
    background: var(--off-white);
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.service-card__number {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--warm-gray);
    margin-bottom: 16px;
    line-height: 1;
}
.service-card__title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--slate);
    margin-bottom: 12px;
}
.service-card__text {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================================
   About
   ========================================================================== */
.about {
    padding: 100px 0;
    background: var(--white);
}
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about__image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.about__lead {
    font-size: 1.3rem;
    color: var(--slate);
    font-weight: 500;
    margin-bottom: 24px;
    line-height: 1.6;
}
.about p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.about__highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--warm-gray);
}
.about__highlight-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--orange);
    margin-bottom: 6px;
}
.about__highlight-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--slate);
}

/* ==========================================================================
   CTA Banner
   ========================================================================== */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--slate-dark) 0%, var(--slate) 100%);
    text-align: center;
}
.cta-banner__title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--white);
    margin-bottom: 12px;
}
.cta-banner__text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact {
    padding: 100px 0;
    background: var(--off-white);
}
.contact__inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}
.form__group {
    margin-bottom: 20px;
}
.form__label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 6px;
}
.form__input {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--mid-gray);
    border-radius: var(--radius);
    background: var(--white);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(203,107,53,0.12);
}
.form__textarea {
    resize: vertical;
    min-height: 120px;
}
.contact__info {
    padding-top: 8px;
}
.contact__info-block {
    margin-bottom: 32px;
}
.contact__info-block h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--slate);
    margin-bottom: 8px;
}
.contact__info-block a {
    color: var(--orange);
    font-weight: 500;
    transition: color var(--transition);
}
.contact__info-block a:hover {
    color: var(--orange-dark);
}
.contact__info-block p {
    color: var(--text-light);
    line-height: 1.7;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: var(--slate-dark);
    color: rgba(255,255,255,0.7);
    padding-top: 60px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
}
.footer__logo {
    height: 36px;
    width: auto;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}
.footer__tagline {
    font-size: 0.95rem;
    max-width: 280px;
}
.footer__links h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}
.footer__links a {
    display: block;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    padding: 4px 0;
    transition: color var(--transition);
}
.footer__links a:hover {
    color: var(--orange-light);
}
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .hero__title { font-size: 2.6rem; }
    .section__title { font-size: 2rem; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .about__inner { grid-template-columns: 1fr; }
    .contact__inner { grid-template-columns: 1fr; gap: 40px; }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .value-props__grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 640px) {
    .header__nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        transition: transform var(--transition);
    }
    .header__nav.is-open {
        transform: translateY(0);
    }
    .header__nav .nav__link {
        color: var(--slate);
        font-size: 1.1rem;
    }
    .header__cta { display: none; }
    .header__menu-toggle { display: flex; }

    .hero { min-height: 90vh; }
    .hero__title { font-size: 2rem; }
    .hero__subtitle { font-size: 1.05rem; }
    .hero__inner { padding: 100px 0 60px; }
    .hero__actions { flex-direction: column; }
    .hero__actions .btn { width: 100%; }

    .services__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; gap: 28px; }

    .section__title { font-size: 1.75rem; }
    .cta-banner__title { font-size: 1.6rem; }

    .value-props { margin-top: 0; padding: 60px 0; }
    .services { padding: 60px 0; }
    .about { padding: 60px 0; }
    .contact { padding: 60px 0; }
}
