/* =========================================
   LocalTrailMates - style.css
   Forest green / sage / cream / golden palette
   ========================================= */

/* ---------- ROOT / VARIABLES ---------- */
:root {
    --ltm-green-deep:     #1f3a0f;
    --ltm-green:          #2d5016;
    --ltm-green-mid:      #3e6b22;
    --ltm-sage:           #9cae84;
    --ltm-sage-light:     #d8e0cb;
    --ltm-cream:          #faf7f0;
    --ltm-cream-warm:     #f2ecdc;
    --ltm-gold:           #d4a93a;
    --ltm-gold-soft:      #e8c76a;
    --ltm-earth:          #8b6f47;
    --ltm-text:           #2a2a2a;
    --ltm-text-soft:      #5a5a5a;
    --ltm-border:         #dcd7c8;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--ltm-text);
    background: var(--ltm-cream);
    margin: 0;
    padding: 0;
    line-height: 1.55;
}

h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ltm-green-deep);
    line-height: 1.25;
    margin-top: 0;
}

a {
    color: var(--ltm-green);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: var(--ltm-green-deep); }

/* ---------- TOP BAR ---------- */
.ltm-topbar {
    background: var(--ltm-green-deep);
    color: var(--ltm-cream);
    font-size: 13px;
    padding: 6px 0;
}
.ltm-topbar-inner {
    max-width: 1200px;
    padding: 0 16px;
}
.ltm-topbar a {
    color: var(--ltm-cream);
    margin-left: 16px;
}
.ltm-topbar a:hover {
    color: var(--ltm-gold-soft);
}

/* ---------- HEADER ---------- */
.ltm-header {
    background: #fff;
    border-bottom: 3px solid var(--ltm-green);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: relative;
}
.ltm-header-inner {
    max-width: 1200px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ltm-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.ltm-logo img {
    height: 40px;
    width: auto;
}
.ltm-logo-text {
    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ltm-green-deep);
    letter-spacing: -0.5px;
}

.ltm-nav a {
    color: var(--ltm-text);
    padding: 8px 14px;
    margin: 0 2px;
    font-weight: 500;
    border-radius: 4px;
    display: inline-block;
}
.ltm-nav a:hover {
    background: var(--ltm-sage-light);
    color: var(--ltm-green-deep);
}
.ltm-nav a.ltm-cta {
    background: var(--ltm-green);
    color: #fff;
    margin-left: 10px;
}
.ltm-nav a.ltm-cta:hover {
    background: var(--ltm-green-deep);
    color: #fff;
}

.ltm-mobile-toggle {
    font-size: 26px;
    color: var(--ltm-green-deep);
    padding: 6px 10px;
}
.ltm-mobile-menu {
    background: var(--ltm-cream-warm);
    border-top: 1px solid var(--ltm-border);
}
.ltm-mobile-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--ltm-border);
    color: var(--ltm-text);
    font-weight: 500;
}
.ltm-mobile-menu a:hover {
    background: var(--ltm-sage-light);
}

/* ---------- FLASH ---------- */
.ltm-flash-wrap {
    max-width: 1200px;
    padding: 16px;
}

/* ---------- MAIN ---------- */
.ltm-main {
    min-height: 60vh;
}

/* ---------- BUTTONS ---------- */
.ltm-btn-primary,
.w3-button.ltm-btn-primary {
    background: var(--ltm-green);
    color: #fff !important;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    display: inline-block;
}
.ltm-btn-primary:hover,
.w3-button.ltm-btn-primary:hover {
    background: var(--ltm-green-deep);
    color: #fff !important;
}
.ltm-btn-secondary,
.w3-button.ltm-btn-secondary {
    background: var(--ltm-sage);
    color: var(--ltm-green-deep) !important;
    padding: 12px 28px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.ltm-btn-secondary:hover {
    background: var(--ltm-sage-light);
}
.ltm-btn-gold {
    background: var(--ltm-gold);
    color: var(--ltm-green-deep) !important;
    padding: 12px 28px;
    font-weight: 700;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}
.ltm-btn-gold:hover {
    background: var(--ltm-gold-soft);
}

/* ---------- HERO (full-bleed photo background) ---------- */
.ltm-hero {
    position: relative;
    overflow: hidden;
    color: var(--ltm-cream);
    background: #1a2f0c;
    /* Photo as background-image - naturally responsive, uses cover positioning */
    background-image: url('/assets/images/hikers-hero.jpg');
    background-size: cover;
    background-position: right top;
    background-repeat: no-repeat;
    padding: 100px 16px;
    min-height: 520px;
    display: flex;
    align-items: center;
}

/* Green gradient overlay - darker on left for text readability, lighter on right so photo shows through */
.ltm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(26, 47, 12, 0.82) 0%,
        rgba(31, 58, 15, 0.62) 35%,
        rgba(45, 80, 22, 0.32) 70%,
        rgba(45, 80, 22, 0.22) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Subtle texture/pattern on top of gradient */
.ltm-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/assets/images/hero-pattern.svg');
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
    z-index: 2;
}

.ltm-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
    width: 100%;
}

.ltm-hero-text {
    max-width: 620px;
    padding: 20px 0;
}

.ltm-hero h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1.12;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ltm-hero p.ltm-tagline {
    font-size: 21px;
    color: var(--ltm-sage-light);
    margin: 0 0 22px;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.ltm-hero p.ltm-subcopy {
    font-size: 16px;
    color: var(--ltm-cream);
    max-width: 580px;
    margin: 0 0 30px;
    line-height: 1.65;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.ltm-hero .ltm-hero-cta {
    margin-top: 8px;
}

/* Tablet - less aggressive photo bleed, tighter gradient */
@media (max-width: 900px) {
    .ltm-hero {
        background-position: center center;
        padding: 80px 16px;
        min-height: 480px;
    }
    .ltm-hero::before {
        background: linear-gradient(
            to bottom,
            rgba(26, 47, 12, 0.70) 0%,
            rgba(31, 58, 15, 0.55) 50%,
            rgba(45, 80, 22, 0.55) 100%
        );
    }
    .ltm-hero h1 {
        font-size: 38px;
    }
    .ltm-hero p.ltm-tagline {
        font-size: 19px;
    }
    .ltm-hero-text {
        text-align: center;
        margin: 0 auto;
    }
    .ltm-hero p.ltm-subcopy {
        margin-left: auto;
        margin-right: auto;
    }
}

/* Phone */
@media (max-width: 600px) {
    .ltm-hero {
        padding: 60px 16px;
        min-height: 440px;
    }
    .ltm-hero h1 {
        font-size: 30px;
    }
    .ltm-hero p.ltm-tagline {
        font-size: 17px;
    }
    .ltm-hero p.ltm-subcopy {
        font-size: 15px;
    }
}

/* ---------- SECTIONS ---------- */
.ltm-section {
    padding: 64px 16px;
}
.ltm-section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.ltm-section-alt {
    background: var(--ltm-cream-warm);
}
.ltm-section-dark {
    background: var(--ltm-green-deep);
    color: var(--ltm-cream);
}
.ltm-section-dark h1,
.ltm-section-dark h2,
.ltm-section-dark h3 {
    color: #fff;
}

.ltm-section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
}
.ltm-section-subtitle {
    text-align: center;
    color: var(--ltm-text-soft);
    font-size: 17px;
    margin-bottom: 44px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ---------- CARDS ---------- */
.ltm-card {
    background: #fff;
    border: 1px solid var(--ltm-border);
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 20px;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ltm-card:hover {
    box-shadow: 0 4px 16px rgba(45, 80, 22, 0.12);
    transform: translateY(-2px);
}
.ltm-card-icon {
    font-size: 38px;
    color: var(--ltm-green);
    margin-bottom: 12px;
}

/* ---------- FEATURE GRID ---------- */
.ltm-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

/* ---------- FORMS ---------- */
.ltm-form {
    background: #fff;
    border: 1px solid var(--ltm-border);
    border-radius: 8px;
    padding: 32px;
    max-width: 560px;
    margin: 0 auto;
}
.ltm-form label {
    display: block;
    font-weight: 600;
    color: var(--ltm-green-deep);
    margin-bottom: 6px;
    margin-top: 16px;
}
.ltm-form input[type="text"],
.ltm-form input[type="email"],
.ltm-form input[type="password"],
.ltm-form input[type="date"],
.ltm-form input[type="number"],
.ltm-form input[type="tel"],
.ltm-form select,
.ltm-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--ltm-border);
    border-radius: 4px;
    font-size: 15px;
    font-family: inherit;
    background: var(--ltm-cream);
    box-sizing: border-box;
}
.ltm-form input:focus,
.ltm-form select:focus,
.ltm-form textarea:focus {
    outline: none;
    border-color: var(--ltm-green);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(62, 107, 34, 0.15);
}
.ltm-form small.help {
    color: var(--ltm-text-soft);
    font-size: 13px;
    display: block;
    margin-top: 4px;
}

/* ---------- FOOTER ---------- */
.ltm-footer {
    background: var(--ltm-green-deep);
    color: var(--ltm-sage-light);
    padding: 48px 16px 24px;
    margin-top: 48px;
}
.ltm-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.ltm-footer h4 {
    color: var(--ltm-gold-soft);
    margin: 0 0 12px;
    font-size: 17px;
    font-family: Georgia, serif;
}
.ltm-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ltm-footer ul li {
    margin-bottom: 8px;
}
.ltm-footer a {
    color: var(--ltm-sage-light);
}
.ltm-footer a:hover {
    color: var(--ltm-gold-soft);
}
.ltm-footer-col {
    padding: 12px 16px;
}
.ltm-footer-bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
}
.ltm-footer-links {
    text-align: right;
}
.ltm-footer-links a {
    margin-left: 8px;
}

@media (max-width: 600px) {
    .ltm-section { padding: 44px 16px; }
    .ltm-section-title { font-size: 26px; }
    .ltm-footer-links { text-align: left; margin-top: 12px; }
}

/* ---------- BADGES / PILLS ---------- */
.ltm-pill {
    display: inline-block;
    background: var(--ltm-sage-light);
    color: var(--ltm-green-deep);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    margin-right: 4px;
}
.ltm-pill-gold {
    background: var(--ltm-gold-soft);
    color: var(--ltm-green-deep);
}
.ltm-pill-verified {
    background: var(--ltm-green);
    color: #fff;
}

/* ---------- MISC ---------- */
.ltm-muted { color: var(--ltm-text-soft); }
.ltm-divider {
    height: 1px;
    background: var(--ltm-border);
    border: none;
    margin: 32px 0;
}
/* =========================================
   PHASE 3 ADDITIONS
   Append this to the end of style.css
   ========================================= */

/* ---------- PROFILE PROGRESS STEPPER ---------- */
.ltm-profile-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--ltm-border);
    border-radius: 8px;
}
.ltm-progress-step {
    flex: 1 1 100px;
    min-width: 90px;
    text-align: center;
    padding: 10px 6px;
    border-radius: 6px;
    color: var(--ltm-text-soft);
    text-decoration: none;
    transition: all 0.15s ease;
    font-size: 13px;
    line-height: 1.3;
}
.ltm-progress-step:hover {
    background: var(--ltm-cream-warm);
    color: var(--ltm-green-deep);
}
.ltm-progress-step.active {
    background: var(--ltm-green);
    color: #fff;
}
.ltm-progress-step.past {
    background: var(--ltm-sage-light);
    color: var(--ltm-green-deep);
}
.ltm-progress-num {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    font-weight: bold;
    margin-right: 4px;
    font-size: 13px;
}
.ltm-progress-step.active .ltm-progress-num {
    background: rgba(255,255,255,0.25);
}
.ltm-progress-label {
    display: block;
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

/* ---------- CHECKBOX GRID (for days, times, trails, interests) ---------- */
.ltm-check-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 10px 0 20px;
}
.ltm-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: var(--ltm-cream);
    border: 1px solid var(--ltm-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin-top: 0 !important;
    font-weight: normal !important;
}
.ltm-check:hover {
    background: #fff;
    border-color: var(--ltm-sage);
}
.ltm-check input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}
.ltm-check input[type="checkbox"]:checked + span {
    color: var(--ltm-green-deep);
    font-weight: 600;
}
.ltm-check:has(input[type="checkbox"]:checked) {
    background: var(--ltm-sage-light);
    border-color: var(--ltm-green);
}
.ltm-check span {
    flex: 1;
    line-height: 1.4;
}
.ltm-check span strong {
    color: var(--ltm-text);
}

/* ---------- PROFILE NAV (prev/next buttons) ---------- */
.ltm-profile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--ltm-border);
    gap: 12px;
}
.ltm-profile-nav > * {
    flex: 0 0 auto;
}

/* ---------- PROFILE VIEW PAGE ---------- */
.ltm-profile-view-header {
    background: linear-gradient(135deg, var(--ltm-green-deep) 0%, var(--ltm-green) 100%);
    color: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: center;
    flex-wrap: wrap;
}
.ltm-profile-view-header h1,
.ltm-profile-view-header h2 {
    color: #fff;
    margin: 0 0 6px;
}
.ltm-profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}
.ltm-profile-avatar-placeholder {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255,255,255,0.6);
    border: 4px solid rgba(255,255,255,0.2);
}
.ltm-profile-section {
    background: #fff;
    border: 1px solid var(--ltm-border);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
}
.ltm-profile-section h3 {
    margin-top: 0;
    color: var(--ltm-green-deep);
    border-bottom: 2px solid var(--ltm-sage-light);
    padding-bottom: 8px;
}
.ltm-profile-kv {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 8px 16px;
    margin-top: 12px;
}
.ltm-profile-kv dt {
    color: var(--ltm-text-soft);
    font-weight: 600;
}
.ltm-profile-kv dd {
    margin: 0;
    color: var(--ltm-text);
}

@media (max-width: 600px) {
    .ltm-profile-progress {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .ltm-progress-step {
        flex: 0 0 auto;
        min-width: 100px;
    }
    .ltm-profile-kv {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }
    .ltm-profile-kv dt {
        margin-top: 10px;
    }
    .ltm-profile-view-header {
        flex-direction: column;
        text-align: center;
    }
}
