/* Peak Condition Website — Light, Sporty, Fresh Theme */
/* Sports & health focused design with energetic colours */

:root {
    --bg-primary: #f7f9fc;
    --bg-white: #ffffff;
    --bg-hero: linear-gradient(135deg, #e8f5e9 0%, #e3f2fd 50%, #fff3e0 100%);
    --bg-card: #ffffff;
    --bg-card-hover: #f0faf0;
    --text-primary: #1a2b3c;
    --text-secondary: #5a6b7c;
    --text-muted: #8a9bac;
    --accent-green: #2e7d32;
    --accent-green-light: #4caf50;
    --accent-blue: #1565c0;
    --accent-blue-light: #42a5f5;
    --accent-orange: #ef6c00;
    --accent-orange-light: #ff9800;
    --accent-red: #c62828;
    --accent-teal: #00897b;
    --border-color: #e0e8f0;
    --border-light: #f0f4f8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.10);
    --shadow-card: 0 2px 8px rgba(46,125,50,0.08);
    --card-radius: 16px;
    --transition: 0.25s ease;
    --font-stack: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-stack);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVIGATION ===== */
.nav {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.15rem;
}

.nav-brand img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-green);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}


/* ===== HERO ===== */
.hero {
    background: var(--bg-hero);
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
}

.hero-icon {
    width: 110px;
    height: 110px;
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.hero h1 span {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.badge-pill .emoji { font-size: 1rem; }

.app-store-link {
    display: inline-block;
    margin-top: 16px;
}

.app-store-link img {
    height: 48px;
    transition: transform var(--transition);
}

.app-store-link img:hover { transform: scale(1.05); }

.coming-soon-label {
    display: block;
    margin-top: 8px;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== CARDS GRID ===== */
.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 60px 0 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0 40px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-green-light);
    background: var(--bg-card-hover);
}

.card-icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}

.card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.55;
    flex: 1;
}

.card-tag {
    display: inline-block;
    margin-top: 12px;
    padding: 3px 12px;
    background: var(--accent-green);
    color: white;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-tag.new {
    background: var(--accent-orange);
}


/* ===== CONTENT SECTIONS (sub-pages) ===== */
.page-header {
    padding: 48px 0 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 36px;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.breadcrumb {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--accent-green);
    text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.back-link:hover { color: var(--accent-green-light); }

.content-section {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 36px 32px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-light);
}

.content-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
}

.content-section p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.content-section ul,
.content-section ol {
    color: var(--text-secondary);
    margin: 8px 0 16px 24px;
    line-height: 1.8;
}

.content-section li {
    margin-bottom: 4px;
}

.content-section li strong {
    color: var(--text-primary);
}

/* ===== FEATURE LIST ===== */
.feature-list {
    list-style: none;
    margin-left: 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.feature-list li:last-child { border-bottom: none; }

.feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
    padding-top: 2px;
}

.feature-list li div {
    flex: 1;
}

.feature-list li div strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}

/* ===== SCREENSHOTS ===== */
.screenshots-section {
    text-align: center;
    padding: 48px 0;
}

.screenshots-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.screenshot {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition);
}

.screenshot:hover { transform: translateY(-3px); }

.screenshot img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.screenshot p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}


/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 40px 0 32px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.88rem;
}

footer a {
    color: var(--accent-green);
    text-decoration: none;
}

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

footer p + p { margin-top: 6px; }

/* ===== CONTACT FORM ===== */
.contact-form {
    max-width: 600px;
    margin-top: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: var(--font-stack);
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(46,125,50,0.12);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.submit-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--accent-green);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.submit-btn:hover {
    background: var(--accent-green-light);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ===== ALERTS ===== */
.alert {
    padding: 14px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.alert-success {
    background: #e8f5e9;
    color: var(--accent-green);
    border: 1px solid #c8e6c9;
}

.alert-error {
    background: #ffebee;
    color: var(--accent-red);
    border: 1px solid #ffcdd2;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero { padding: 56px 0 44px; }
    .hero h1 { font-size: 2.2rem; }
    .hero-tagline { font-size: 1.05rem; }
    .hero-icon { width: 80px; height: 80px; border-radius: 20px; }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card { padding: 22px 20px; }

    .content-section {
        padding: 24px 20px;
    }

    .page-header h1 { font-size: 1.7rem; }
    .section-title { font-size: 1.5rem; }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .nav-links { display: none; }
    .nav-toggle { display: block; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-color);
        padding: 16px 24px;
        gap: 16px;
        box-shadow: var(--shadow-md);
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.8rem; }
    .hero-badges { flex-direction: column; align-items: center; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .container { padding: 0 16px; }
}

/* ===== HIGHLIGHT BOXES ===== */
.highlight-box {
    background: linear-gradient(135deg, #e8f5e9, #e3f2fd);
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 16px 0;
}

.highlight-box p {
    color: var(--text-primary);
    font-weight: 500;
}

/* ===== ADDITIONAL FEATURE SECTIONS ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.feature-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--accent-green-light);
    box-shadow: var(--shadow-sm);
}

.feature-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ===== ACTIVITY TAGS ===== */
.activity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.activity-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== TABLE OF CONTENTS ===== */
.toc {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius);
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.toc h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border-light);
}

.toc ol {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc-counter;
}

.toc > ol > li {
    counter-increment: toc-counter;
    margin-bottom: 6px;
}

.toc > ol > li > a::before {
    content: counter(toc-counter) ". ";
    font-weight: 600;
    color: var(--accent-green);
}

.toc a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
    display: inline-block;
    padding: 2px 0;
}

.toc a:hover {
    color: var(--accent-green);
}

.toc ol ol {
    margin-left: 20px;
    margin-top: 4px;
}

.toc ol ol li {
    margin-bottom: 3px;
}

.toc ol ol a {
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--text-muted);
}

.toc ol ol a:hover {
    color: var(--accent-green);
}
