/* 
   =========================================
   Peak Pursuits - Winter Adventures Portfolio
   Author: Alex Winters / System
   Description: Main Stylesheet
   =========================================
*/

/* --- Custom Variables --- */
:root {
    /* Colors */
    --bg-primary: #ffffff;
    /* White background */
    --bg-secondary: #f9f9f9;
    /* Off-white for sections */
    --text-primary: #111827;
    /* Dark gray for main text */
    --text-secondary: #4b5563;
    /* Medium gray for supporting text */

    /* Theme Accent Color: Substack Orange */
    --accent: #ff6719;
    --accent-hover: #e05e16;
    /* Darker orange for hover states */

    /* UI Effects */
    --glass-bg: rgba(255, 255, 255, 0.95);
    /* Light glass */
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* Smooth scrolling for anchor links */
    font-size: 16px;
}

body {
    font-family: 'Lora', serif;
    /* Good for reading long articles */
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    /* Clean sans for headings */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

ul {
    list-style: none;
}

/* --- Layout Utility Classes --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 6rem 0;
}

.bg-alt {
    background-color: var(--bg-secondary);
}

.layout-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .layout-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--accent);
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 25, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background-color: rgba(255, 103, 25, 0.1);
    transform: translateY(-2px);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: var(--transition);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.logo span {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:not(.btn):hover::after,
.nav-link:not(.btn).active::after {
    width: 100%;
}

.nav-link:not(.btn):hover,
.nav-link:not(.btn).active {
    color: var(--accent);
}

.subscribe-nav {
    padding: 0.5rem 1.5rem;
    color: #fff !important;
}

.subscribe-nav::after {
    display: none;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    height: 21px;
    width: 30px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

/* --- Mobile Menu Styles --- */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    /* Hamburger Animation */
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent);
    }

    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent);
    }
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    background-color: var(--bg-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Offset for navbar */
    border-bottom: 1px solid #eaeaea;
}

.hero-overlay {
    display: none;
    /* No overlay for light theme */
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
    padding: 0 20px;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero h1 span {
    color: var(--accent);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-subscribe {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.subscribe-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 500px;
    justify-content: center;
}

.subscribe-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.subscribe-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 103, 25, 0.1);
}

.subtext {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* --- About Section --- */
.about-text h2 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* --- Posts Section --- */
.posts-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.post-card {
    background-color: var(--bg-primary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.post-image {
    height: 220px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.post-content h3 a {
    color: var(--text-primary);
}

.post-content h3 a:hover {
    color: var(--accent);
}

.post-content p {
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--accent);
    display: inline-block;
}

.read-more:hover {
    color: var(--accent-hover);
    transform: translateX(4px);
}

/* --- Subscribe Box Section --- */
.subscribe-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.subscribe-box h2 {
    font-size: 2.5rem;
    color: var(--text-primary);
}

.subscribe-form.large {
    margin-top: 2rem;
}

.subscribe-form.large input {
    padding: 1.2rem;
}

.subscribe-form.large .btn {
    padding: 1.2rem 2rem;
}

@media (max-width: 600px) {
    .subscribe-form {
        flex-direction: column;
    }
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-secondary);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #eaeaea;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo span {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid #eaeaea;
}

.social-links a:hover {
    background-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* --- Animations (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}