/*
Theme Name: Phtoll Theme
Theme URI: https://throttleandfar.com
Author: Reuben
Author URI: https://throttleandfar.com
Description: Custom dark theme for motorcycle photography and gear reviews from the Philippines. Features amber (#EAB308) and teal (#00C9A7) accents on a dark background.
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: phtoll
Tags: dark, motorcycle, photography, custom-colors, blog, two-columns, responsive-layout
*/

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

:root {
    --primary: #EAB308;
    --accent: #00C9A7;
    --dark: #0F172A;
    --dark-gray: #1E293B;
    --light-gray: #2D3F55;
    --text-gray: #CBD5E1;
    --border: #334155;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #e0e0e0;
    background: var(--dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

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

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

/* Header/Navigation */
.site-header {
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 9000;
    transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.96);
    border-bottom-color: rgba(212, 180, 74, 0.15);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

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

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0.25rem;
    align-items: center;
    margin: 0;
}

.main-navigation a {
    color: #94a3b8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    display: block;
}

.main-navigation a:hover {
    color: #f1f5f9;
    background: rgba(255,255,255,0.07);
}

.main-navigation .current-menu-item > a,
.main-navigation .current-page-ancestor > a {
    color: var(--primary);
}

.nav-cta {
    background: var(--primary) !important;
    color: #0F172A !important;
    font-weight: 700 !important;
    padding: 0.45rem 1rem !important;
    border-radius: 8px !important;
}

.nav-cta:hover {
    background: #CA8A04 !important;
    color: #0F172A !important;
}

/* Hero Section */
/* #6 — Hero: dot grid pattern overlay when no image */
.hero {
    background: linear-gradient(160deg, #1E293B 0%, #0F172A 60%, #141f35 100%);
    border-bottom: 1px solid var(--border);
    color: white;
    text-align: center;
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero:not(.hero-has-image)::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(234,179,8,0.12) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 1;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 40%, transparent 100%);
}

/* Parallax photo background */
.hero.hero-has-image {
    background-attachment: fixed;
    background-size: cover;
}

/* Fix: background-attachment:fixed is broken on iOS/mobile — disable parallax */
@media (max-width: 768px) {
    .hero.hero-has-image {
        background-attachment: scroll;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(234,179,8,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.hero h1 {
    font-size: 3.25rem;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-gray);
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.8rem 1.75rem;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
    color: #0F172A;
}

.btn-primary:hover {
    background: #CA8A04;
    color: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(234,179,8,0.35);
}

.btn-secondary {
    background: transparent;
    color: #e2e8f0;
    border: 1.5px solid rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.4);
    color: white;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

/* Phtoll app pages: full-bleed, no container, dark background */
.prt-full-page {
    width: 100%;
    background: #0a0a0a;
    min-height: calc(100vh - 64px);
}

/* Section Styling */
section {
    padding: 4rem 0;
    border-bottom: 1px solid var(--border);
}

.section-alt {
    background: var(--dark-gray);
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Card Styles */
.card {
    background: var(--dark-gray);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    contain: layout style;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.55);
    border-color: rgba(234,179,8,0.4);
}

/* #1 — Card image: aspect-ratio instead of fixed height */
.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.85rem;
    overflow: hidden;
    position: relative;
}

/* Nicer placeholder when no image */
.card-image > span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #475569;
    font-size: 0.8rem;
}

.card-image > span::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.5;
}

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

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

.card-content {
    padding: 1.5rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: white;
    font-weight: 600;
    line-height: 1.4;
}

.card-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.card-title a:hover {
    color: var(--primary);
}

.card-excerpt {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.card-link:hover {
    color: var(--accent);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: var(--light-gray);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    border: 1px solid var(--border);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
}

.about-text p {
    margin-bottom: 1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-top: 0.3rem;
}

/* Featured Photo Gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.photo-item {
    position: relative;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.photo-overlay p {
    font-size: 0.85rem;
    color: var(--accent);
}

/* Footer */
.site-footer {
    background: var(--dark-gray);
    border-top: 2px solid var(--primary);
    color: white;
    padding: 4rem 0 0;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand .footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 0.9rem;
}

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

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.footer-socials {
    display: flex;
    gap: 0.65rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    color: #64748b !important;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.footer-social-link:hover {
    background: rgba(234,179,8,0.12);
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #475569;
    margin-bottom: 1.1rem;
}

.footer-col a {
    display: block;
    color: #64748b;
    text-decoration: none;
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-col a:hover { color: white; }

.footer-bottom-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom-bar p {
    color: #334155;
    font-size: 0.8rem;
}

@media (max-width: 900px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand { grid-column: span 2; }
}

@media (max-width: 768px) {
    .site-footer { padding: 2.5rem 0 0; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem 1.25rem;
        padding: 0 1.25rem 2rem;
    }

    /* Brand spans full width on top */
    .footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 1.5rem;
        border-bottom: 1px solid var(--border);
    }

    .footer-brand p { font-size: 0.82rem; }

    .footer-col h4 { margin-bottom: 0.75rem; }
    .footer-col a  { margin-bottom: 0.45rem; font-size: 0.82rem; }

    .footer-socials { gap: 0.5rem; }
    .footer-social-link { width: 42px; height: 42px; }

    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
        padding: 1rem 1.25rem;
    }
}

/* Blog Post Styles */
.post {
    margin-bottom: 3rem;
}

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.entry-meta {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.entry-content {
    color: var(--text-gray);
    line-height: 1.85;
    font-size: 1.05rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* #2 — Article content headings with gold accent */
.entry-content h2,
.article-content h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: white;
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 3px solid var(--primary);
    line-height: 1.3;
}

.entry-content h3,
.article-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 2rem 0 0.75rem;
    padding-left: 0.85rem;
    border-left: 2px solid rgba(234,179,8,0.5);
    line-height: 1.4;
}

.entry-content h4,
.article-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e2e8f0;
    margin: 1.5rem 0 0.5rem;
}

/* #3 — Blockquote styling */
.entry-content blockquote,
.article-content blockquote {
    margin: 2rem 0;
    padding: 1.25rem 1.5rem;
    border-left: 4px solid var(--primary);
    background: rgba(234,179,8,0.06);
    border-radius: 0 10px 10px 0;
    color: #e2e8f0;
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.75;
}

.entry-content blockquote p,
.article-content blockquote p {
    margin-bottom: 0;
}

.entry-content blockquote cite,
.article-content blockquote cite {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--primary);
    font-weight: 600;
}

/* #7 — Inline code & code blocks */
.entry-content code,
.article-content code {
    background: rgba(0,201,167,0.1);
    border: 1px solid rgba(0,201,167,0.2);
    color: var(--accent);
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    font-size: 0.875em;
    font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
}

.entry-content pre,
.article-content pre {
    background: #0d1526;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.75rem 0;
}

.entry-content pre code,
.article-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.875rem;
}

/* Article lists */
.entry-content ul,
.article-content ul,
.entry-content ol,
.article-content ol {
    margin: 0 0 1.5rem 1.5rem;
    color: var(--text-gray);
}

.entry-content li,
.article-content li {
    margin-bottom: 0.4rem;
    line-height: 1.75;
}

/* #4 — Gear specs box */
.gear-specs-box {
    background: rgba(0,201,167,0.06);
    border: 1px solid rgba(0,201,167,0.25);
    border-left: 4px solid var(--accent);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0 2rem;
}

.gear-specs-box h3 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.gear-specs-box p {
    margin: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.gear-specs-box p strong {
    color: #e2e8f0;
    min-width: 60px;
    display: inline-block;
}

/* General Search Form (used in mobile menu & search page) */
.search-form {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-field {
    width: 100%;
    padding: 0.65rem 1rem;
    background: var(--light-gray);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--dark-gray);
}

.search-field::placeholder {
    color: var(--text-gray);
}

.search-submit {
    background: var(--primary);
    border: none;
    color: #0F172A;
    cursor: pointer;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

.search-submit:hover {
    background: #CA8A04;
}

.search-submit svg {
    width: 18px;
    height: 18px;
}

/* Live Search Styles */
.search-loading,
.no-results,
.search-error {
    text-align: center;
    padding: 2rem;
    background: var(--dark-gray);
    border-radius: 8px;
    margin: 2rem 0;
}

.search-results-header {
    text-align: center;
    padding: 1rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    color: var(--accent-color);
}

#live-search-results .card-grid {
    animation: fadeIn 0.3s ease-in;
}

/* ========================================
   About Phtoll Page Styles
   ======================================== */

.about-phtoll-page {
    background-color: #0F172A;
    color: #ffffff;
    min-height: 100vh;
    padding: 60px 20px;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Title */
.about-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.02em;
}

/* Content Layout */
.about-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Image Section */
.about-image-section {
    position: sticky;
    top: 100px;
}

.about-hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Text Section */
.about-text-section {
    color: #CBD5E1;
}

.about-bio p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #CBD5E1;
}

.bio-intro {
    font-size: 1.25rem;
    color: #ffffff;
}

/* Stats Section */
.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin: 60px 0;
    padding: 40px 0;
    border-top: 1px solid #334155;
    border-bottom: 1px solid #334155;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 700;
    color: #EAB308;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: #CBD5E1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Additional Info Sections */
.about-additional {
    margin-top: 40px;
}

.section-heading {
    font-size: 1.75rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 40px;
    margin-bottom: 20px;
}

.about-additional p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #CBD5E1;
}

/* CTA Buttons */
.cta-section {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background-color: #EAB308;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-button:hover {
    background-color: #A16207;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 180, 74, 0.3);
}

.cta-button-secondary {
    display: inline-block;
    padding: 16px 32px;
    background-color: transparent;
    color: #EAB308;
    text-decoration: none;
    border: 2px solid #EAB308;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.cta-button-secondary:hover {
    background-color: #EAB308;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet */
@media (max-width: 968px) {
    .about-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image-section {
        position: relative;
        top: 0;
    }
    
    .about-title {
        font-size: 2.75rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .about-phtoll-page {
        padding: 40px 20px;
    }
    
    .about-title {
        font-size: 2.25rem;
        margin-bottom: 40px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 30px;
        margin: 40px 0;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .about-bio p,
    .about-additional p {
        font-size: 1rem;
    }
    
    .bio-intro {
        font-size: 1.125rem;
    }
    
    .section-heading {
        font-size: 1.5rem;
    }
    
    .cta-section {
        flex-direction: column;
    }
    
    .cta-button,
    .cta-button-secondary {
        width: 100%;
    }
}

/* Contact Form 7 Specific Styles */
.wpcf7-form-control-wrap {
    display: block;
}

.wpcf7-not-valid-tip {
    color: #EAB308;
    font-size: 0.9rem;
    margin-top: 5px;
}

.wpcf7-response-output {
    margin: 0 0 24px;
    padding: 20px;
    border-radius: 6px;
}

.wpcf7-mail-sent-ok {
    background-color: #1a4d2e;
    border: 1px solid #27ae60;
    color: #ffffff;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #4d1a1a;
    border: 1px solid #e74c3c;
    color: #ffffff;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    /* #8 — Photo grid: 2 columns at tablet, 1 on phone */
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 3rem 1rem;
    }

    .site-content {
        padding: 2rem 1rem;
    }

    section {
        padding: 2rem 0;
    }

    /* #8 — Photo grid collapses to 1 column on phones */
    .photo-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Section Label (accent pill above headings)
   ============================================= */
.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(234,179,8,0.1);
    border: 1px solid rgba(234,179,8,0.22);
    padding: 0.28rem 0.85rem;
    border-radius: 20px;
    margin-bottom: 0.65rem;
}

/* #5 — Section header with gold accent underline */
.section-header {
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.1rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 700;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2.5rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-gray);
    font-size: 1.05rem;
    margin-top: 0.4rem;
}

/* =============================================
   Hero Entrance Animation
   ============================================= */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    animation: heroFadeUp 0.75s ease both;
}

.hero p:first-of-type {
    animation: heroFadeUp 0.75s 0.18s ease both;
}

.hero p:nth-of-type(2) {
    animation: heroFadeUp 0.75s 0.3s ease both;
}

.hero .hero-buttons {
    animation: heroFadeUp 0.75s 0.44s ease both;
}

/* =============================================
   Scroll Reveal
   ============================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   Archive Page
   ============================================= */
.archive-page { padding-bottom: 4rem; }

.archive-hero {
    background: linear-gradient(160deg, #1E293B 0%, #0F172A 60%, #141f35 100%);
    border-bottom: 1px solid rgba(234,179,8,0.2);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.archive-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(234,179,8,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.archive-hero-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.archive-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: white;
    margin: 0.5rem 0 0.75rem;
    line-height: 1.15;
}

.archive-hero-desc {
    color: var(--text-gray);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto 0.75rem;
    line-height: 1.7;
}

.archive-count {
    font-size: 0.78rem;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
}

/* ── Filter Pills ── */
.archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 2rem 0 1.5rem;
    align-items: center;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--text-gray);
    background: transparent;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    white-space: nowrap;
}

.filter-pill:hover {
    border-color: rgba(234,179,8,0.5);
    color: white;
    background: rgba(234,179,8,0.06);
}

.filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #0F172A;
}

.filter-pill.active:hover { background: #CA8A04; }

.filter-pill-count {
    background: rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 0.1rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
}

.filter-pill.active .filter-pill-count {
    background: rgba(0,0,0,0.15);
}

/* ── Pagination ── */
.archive-pagination {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.archive-pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.archive-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    background: var(--dark-gray);
}

.archive-pagination .page-numbers:hover {
    border-color: rgba(234,179,8,0.5);
    color: white;
}

.archive-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #0F172A;
}

.archive-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    cursor: default;
}

.archive-pagination .prev,
.archive-pagination .next {
    padding: 0 1.1rem;
    font-size: 0.82rem;
}

/* ── Empty state ── */
.archive-empty {
    text-align: center;
    padding: 4rem 0;
    color: var(--text-gray);
}

.archive-empty p { margin-bottom: 1.5rem; font-size: 1.05rem; }

/* Responsive */
@media (max-width: 768px) {
    .archive-hero { padding: 2.5rem 0 2rem; }
    .archive-hero-title { font-size: 1.75rem; }
    .archive-filters { gap: 0.4rem; padding: 1.5rem 0 1rem; }
    .filter-pill { font-size: 0.78rem; padding: 0.35rem 0.85rem; }
}

/* =============================================
   Back to Top Button
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #0F172A;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(234,179,8,0.3);
    transition: opacity 0.3s, transform 0.3s, background 0.2s, box-shadow 0.2s;
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    z-index: 500;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: #CA8A04;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(234,179,8,0.45);
}

/* =============================================
   View Transitions API
   ============================================= */
@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: fade-out 0.18s ease both;
}

::view-transition-new(root) {
    animation: fade-in 0.22s ease both;
}

@keyframes fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =============================================
   Scroll-Driven Animations (progressive enhancement)
   ============================================= */
@supports (animation-timeline: view()) {
    .reveal {
        opacity: 0;
        transform: translateY(28px);
        animation: reveal-scroll linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }

    .reveal.revealed {
        /* Let scroll-driven animation handle it */
    }

    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3 {
        transition-delay: 0s;
    }

    @keyframes reveal-scroll {
        from { opacity: 0; transform: translateY(28px); }
        to   { opacity: 1; transform: translateY(0); }
    }
}

/* =============================================
   Prefers Reduced Motion
   ============================================= */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .reveal-delay-1,
    .reveal-delay-2,
    .reveal-delay-3 {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    #reading-progress {
        transition: none !important;
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }
}

/* =============================================
   LIGHT THEME — Content Pages
   Applies to: single posts, archive/category,
   static inner pages, search results.
   Front page, header, footer, hero = always dark.
   ============================================= */

/* ── Page background ─────────────────────────── */
body.single,
body.archive,
body.search {
    background: #f4f6f9;
}

/* Static pages (but NOT the front page) */
body.page:not(.home):not(.front-page):not(.page-template-template-videos):not(.page-template-page-contact) {
    background: #f4f6f9;
}

/* ── Site content wrappers ───────────────────── */
body.single .site-content,
body.archive .site-content,
body.search .site-content,
body.page:not(.home):not(.front-page):not(.page-template-template-videos):not(.page-template-page-contact) .site-content {
    background: #f4f6f9;
}

/* ── Cards (archive, search) ─────────────────── */
body.archive .card,
body.search .card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

body.archive .card:hover,
body.search .card:hover {
    box-shadow: 0 10px 32px rgba(0,0,0,0.1);
    border-color: rgba(234,179,8,0.45);
}

body.archive .card-image,
body.search .card-image {
    background: #e8edf3;
}

body.archive .card-title,
body.search .card-title { color: #0f172a; }

body.archive .card-title a,
body.search .card-title a { color: #0f172a; }

body.archive .card-title a:hover,
body.search .card-title a:hover { color: var(--primary); }

body.archive .card-excerpt,
body.search .card-excerpt { color: #475569; }

body.archive .card-rating,
body.search .card-rating { color: var(--primary); }

/* ── Archive filter pills ────────────────────── */
body.archive .filter-pill {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

body.archive .filter-pill:hover {
    background: rgba(234,179,8,0.06);
    border-color: rgba(234,179,8,0.5);
    color: #0f172a;
}

body.archive .filter-pill.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #0f172a;
    font-weight: 700;
}

body.archive .filter-pill-count { background: rgba(0,0,0,0.08); }
body.archive .filter-pill.active .filter-pill-count { background: rgba(0,0,0,0.15); }

/* ── Archive pagination ──────────────────────── */
body.archive .archive-pagination { border-top-color: #e2e8f0; }

body.archive .archive-pagination .page-numbers {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

body.archive .archive-pagination .page-numbers:hover {
    border-color: rgba(234,179,8,0.5);
    color: #0f172a;
}

body.archive .archive-pagination .page-numbers.current {
    background: var(--primary);
    border-color: var(--primary);
    color: #0f172a;
}

body.archive .archive-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

body.archive .archive-empty { color: #475569; }

/* ── Static page entry content ───────────────── */
body.page:not(.home):not(.front-page):not(.page-template-template-videos):not(.page-template-page-contact) .site-content {
    background: #ffffff;
}

body.page:not(.home):not(.front-page):not(.page-template-template-videos) .entry-title { color: #0f172a; }

body.page:not(.home):not(.front-page):not(.page-template-template-videos) .entry-content {
    color: #374151;
    font-size: 1.05rem;
    line-height: 1.85;
}

body.page:not(.home):not(.front-page):not(.page-template-template-videos) .entry-content h2,
body.page:not(.home):not(.front-page):not(.page-template-template-videos) .entry-content h3,
body.page:not(.home):not(.front-page):not(.page-template-template-videos) .entry-content h4 { color: #0f172a; }

body.page:not(.home):not(.front-page):not(.page-template-template-videos) .entry-content blockquote {
    background: #fef9ec;
    border-left-color: var(--primary);
    color: #374151;
}

body.page:not(.home):not(.front-page):not(.page-template-template-videos) .entry-content code {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f766e;
}

body.page:not(.home):not(.front-page):not(.page-template-template-videos) .entry-content ul,
body.page:not(.home):not(.front-page):not(.page-template-template-videos) .entry-content ol { color: #374151; }

/* ── SINGLE POST — full light reading experience  */

body.single .site-content {
    background: #f4f6f9;
    padding-top: 2.5rem;
}

body.single .article-outer-wrap {
    background: #ffffff;
}

/* Full-width article area */
body.single .article-main {
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

/* Article body text */
body.single .article-content,
body.single .entry-content {
    color: #1e293b;
    font-size: 1.125rem;
    line-height: 1.9;
}

body.single .article-content p,
body.single .entry-content p { color: #374151; }

body.single .article-content h2,
body.single .entry-content h2 {
    color: #0f172a;
    border-bottom-color: #e2e8f0;
}

body.single .article-content h3,
body.single .entry-content h3 { color: var(--primary); }

body.single .article-content h4,
body.single .entry-content h4 { color: #1e293b; }

body.single .article-content ul,
body.single .article-content ol,
body.single .entry-content ul,
body.single .entry-content ol { color: #374151; }

body.single .article-content blockquote,
body.single .entry-content blockquote {
    background: #fef9ec;
    border-left-color: var(--primary);
    color: #374151;
}

body.single .article-content code,
body.single .entry-content code {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f766e;
}

body.single .article-content pre,
body.single .entry-content pre {
    background: #1e293b;
    border-color: #334155;
}

body.single .article-content img,
body.single .entry-content img { border-color: #e2e8f0; }

body.single .gear-specs-box {
    background: #f0fdf9;
    border-color: rgba(0,201,167,0.3);
}
body.single .gear-specs-box p { color: #374151; }
body.single .gear-specs-box strong { color: #0f172a; }

/* Share buttons */
body.single .article-share { border-bottom-color: #e2e8f0; }
body.single .share-label { color: #94a3b8; }
body.single .share-btn {
    background: #f1f5f9;
    border-color: #d1d5db;
    color: #475569;
}

/* TOC sidebar */
body.single .toc-sticky {
    background: #ffffff;
    border-color: rgba(234,179,8,0.25);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
body.single .toc-header { border-bottom-color: #e2e8f0; }
body.single #toc-list a { color: #64748b; }
body.single #toc-list a:hover,
body.single #toc-list a.active {
    color: #0f172a;
    background: rgba(234,179,8,0.07);
    border-left-color: var(--primary);
}

/* Post navigation */
body.single .post-navigation { border-top-color: #e2e8f0; }
body.single .post-navigation a {
    background: #ffffff;
    border-color: #e2e8f0;
}
body.single .post-navigation a:hover {
    border-color: rgba(234,179,8,0.4);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
body.single .post-navigation .post-title { color: #0f172a; }

/* Related posts */
body.single .related-posts { border-top-color: #e2e8f0; }
body.single .related-posts-title { color: #0f172a; }
body.single .related-post-card {
    background: #ffffff;
    border-color: #e2e8f0;
}
body.single .related-post-card:hover {
    border-color: rgba(234,179,8,0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.09);
}
body.single .related-post-image { background: #e8edf3; }
body.single .related-post-title { color: #0f172a; }

/* Comments */
body.single .comments-section-wrap { border-top-color: #e2e8f0; }
body.single .comments-area { color: #374151; }
body.single .comments-title,
body.single .comment-reply-title { color: #0f172a; }
body.single .comment-list .children { border-left-color: rgba(234,179,8,0.2); }
body.single .comment-body {
    background: #ffffff;
    border-color: #e2e8f0;
}
body.single .comment-body:hover { border-color: rgba(234,179,8,0.25); }
body.single .comment-author-avatar img { border-color: rgba(234,179,8,0.25); }
body.single .comment-author-name { color: #0f172a; }
body.single .comment-time { color: #94a3b8; }
body.single .comment-content { color: #374151; }
body.single #respond { border-top-color: #e2e8f0; }
body.single .comment-form label { color: #64748b; }
body.single .comment-form input[type="text"],
body.single .comment-form input[type="email"],
body.single .comment-form textarea {
    background: #f8fafc;
    border-color: #d1d5db;
    color: #0f172a;
}
body.single .comment-form input[type="text"]:focus,
body.single .comment-form input[type="email"]:focus,
body.single .comment-form textarea:focus {
    border-color: rgba(234,179,8,0.5);
    box-shadow: 0 0 0 3px rgba(234,179,8,0.08);
}
body.single .comment-form input::placeholder,
body.single .comment-form textarea::placeholder { color: #94a3b8; }

/* Entry footer */
body.single .entry-footer { border-top-color: #e2e8f0; }
body.single .post-categories,
body.single .post-tags { color: #475569; }
body.single .post-categories strong,
body.single .post-tags strong { color: #0f172a; }

@media (max-width: 768px) {
    body.single .article-main {
        padding: 2rem 1.25rem;
    }
}

@media (max-width: 480px) {
    body.single .article-main {
        padding: 1.5rem 1rem;
    }
}
