/* ===========================================
   BuyHerePayHereNotes.com - Wall Street Classic Design
   Navy & Gold Color Scheme - Robert Hicks Rebrand
   =========================================== */

/* CSS Variables */
:root {
    --navy-dark: #0f1c2e;
    --navy-medium: #152a45;
    --navy-light: #1a3a5c;
    --gold: #c9a962;
    --gold-light: #d4bc7a;
    --gold-muted: #b89b4a;
    --cream: #f5f3ee;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-light: #faf9f7;
    --bg-section: #f8f6f1;

    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --max-width: 1200px;
    --header-height: 100px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy-dark);
}

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

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

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

/* ===========================================
   HEADER
   =========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--navy-dark);
    z-index: 1000;
    border-bottom: 1px solid rgba(201, 169, 98, 0.3);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 85px;
    width: auto;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.main-nav a {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.nav-cta {
    color: var(--gold);
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger-bar {
    width: 25px;
    height: 2px;
    background-color: var(--gold);
    transition: var(--transition);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--navy-dark);
    border-top: 1px solid rgba(201, 169, 98, 0.2);
    list-style: none;
    padding: 20px 0;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 169, 98, 0.5) transparent;
}

.mobile-nav::-webkit-scrollbar {
    width: 6px;
}

.mobile-nav::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-nav::-webkit-scrollbar-thumb {
    background: rgba(201, 169, 98, 0.5);
    border-radius: 3px;
}

.mobile-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(201, 169, 98, 0.7);
}

.mobile-nav.active {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    display: block;
    color: var(--white);
    padding: 15px 24px;
    font-size: 1rem;
}

.mobile-nav a:hover {
    background-color: var(--navy-medium);
    color: var(--gold);
}

/* ===========================================
   HERO SECTION - Split Layout
   =========================================== */
.hero-split {
    display: flex;
    min-height: 100vh;
    margin-top: var(--header-height);
}

.hero-left {
    flex: 1;
    background-color: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    position: relative;
}

.hero-content {
    max-width: 500px;
}

.hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--white);
    margin-bottom: 24px;
    line-height: 1.15;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-divider {
    width: 6px;
    background: linear-gradient(180deg, var(--gold-muted) 0%, var(--gold) 50%, var(--gold-muted) 100%);
    flex-shrink: 0;
}

.hero-right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-right img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--navy-dark) 0%, transparent 30%);
}

/* ===========================================
   CTA BUTTON
   =========================================== */
.cta-button {
    display: inline-block;
    background-color: var(--gold);
    color: var(--navy-dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 16px 32px;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.3);
}

.cta-button:hover {
    background-color: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 98, 0.4);
}

/* ===========================================
   BENEFITS / WHY SELL SECTION
   =========================================== */
.benefits {
    background-color: var(--bg-light);
    padding: 100px 0;
}

.robert-intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.robert-photo {
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(15, 28, 46, 0.15);
    border: 4px solid var(--gold);
}

.robert-intro-text {
    max-width: 500px;
}

.robert-intro-text h2 {
    text-align: left;
    margin-bottom: 16px;
}

.robert-tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.benefits h2 {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 60px;
    color: var(--navy-dark);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.benefit-item {
    text-align: center;
    padding: 30px 20px;
}

.icon-gold {
    color: var(--gold);
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
}

.icon-gold svg {
    stroke: var(--gold);
}

.benefit-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--navy-dark);
}

.benefit-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===========================================
   PROCESS SECTION
   =========================================== */
.process {
    background-color: var(--navy-dark);
    padding: 100px 0;
}

.process h2 {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.5rem);
    color: var(--white);
    margin-bottom: 60px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number-large {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 400;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 20px;
}

.step h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ===========================================
   UPLOAD SECTION
   =========================================== */
.upload-section {
    background-color: var(--bg-section);
    padding: 100px 0;
}

.upload-section h2 {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 16px;
    color: var(--navy-dark);
}

.upload-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1rem;
}

.upload-area {
    background: var(--white);
    border: 2px dashed var(--text-light);
    border-radius: 8px;
    padding: 60px 40px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 24px;
    cursor: pointer;
    transition: var(--transition);
}

.upload-area:hover,
.upload-area:focus {
    border-color: var(--gold);
    background-color: rgba(201, 169, 98, 0.05);
}

.upload-icon {
    color: var(--text-light);
    margin-bottom: 16px;
}

.upload-icon svg {
    stroke: var(--text-light);
}

.upload-area:hover .upload-icon svg {
    stroke: var(--gold);
}

.upload-content span {
    color: var(--text-muted);
    font-size: 1rem;
}

.upload-link {
    color: var(--gold);
    font-weight: 500;
    text-decoration: underline;
}

.upload-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.upload-note a {
    color: var(--gold);
    text-decoration: underline;
}

.upload-note a:hover {
    color: var(--gold-light);
}

/* ===========================================
   FAQ SECTION
   =========================================== */
.faq-section {
    background-color: var(--white);
    padding: 100px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 50px;
    color: var(--navy-dark);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--navy-dark);
    font-weight: 600;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
    background-color: var(--navy-dark);
    padding: 60px 0 40px;
    border-top: 4px solid var(--gold);
}

.footer-content {
    text-align: center;
}

.footer-contact {
    margin-bottom: 30px;
}

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.footer-name {
    color: var(--white) !important;
    font-weight: 600;
    font-size: 1.05rem !important;
}

.footer-contact a {
    color: var(--gold);
}

.footer-contact a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

.footer-links {
    margin-bottom: 24px;
}

.footer-links a {
    color: var(--text-light);
    margin: 0 16px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    color: var(--text-light);
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ===========================================
   MODAL
   =========================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 28, 46, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 4px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-top: 5px solid var(--gold);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.close-modal:hover {
    color: var(--navy-dark);
}

.modal-header {
    margin-bottom: 24px;
    padding: 16px;
    background: rgba(201, 169, 98, 0.1);
    border: 1px solid rgba(201, 169, 98, 0.3);
    border-radius: 4px;
}

.modal-badge {
    font-weight: 700;
    color: var(--gold-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.modal-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 98, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.checkbox-group {
    margin-top: 20px;
}

.checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--gold);
}

.checkbox-group a {
    color: var(--gold);
    text-decoration: underline;
}

.required {
    color: #dc2626;
}

.modal-content .cta-button {
    width: 100%;
    margin-top: 24px;
}

.template-link {
    text-align: center;
    margin-top: 16px;
}

.template-link a {
    color: var(--gold);
    font-size: 0.9rem;
    text-decoration: underline;
}

/* ===========================================
   PAGE HERO (for interior pages)
   =========================================== */
.page-hero {
    background-color: var(--navy-dark);
    padding: 140px 0 60px;
    text-align: center;
    margin-top: var(--header-height);
}

.page-hero h1 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}

.page-hero p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===========================================
   CONTENT SECTIONS (for interior pages)
   =========================================== */
.content-section {
    padding: 80px 0;
}

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

.content-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.content-section h3 {
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.content-section a {
    color: var(--gold);
}

.content-section a:hover {
    color: var(--gold-light);
}

/* Info Cards */
.info-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.info-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.info-card ul {
    color: var(--text-muted);
    line-height: 1.8;
    padding-left: 1.25rem;
}

/* Highlight Box */
.highlight-box {
    background: rgba(201, 169, 98, 0.1);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.highlight-box h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.highlight-box p {
    color: var(--text-dark);
    margin: 0;
}

/* ===========================================
   UTILITIES
   =========================================== */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

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

/* ===========================================
   BLOG POST STYLING
   =========================================== */
.blog-post-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
    padding-top: calc(var(--header-height) + 60px);
    background: var(--white);
}

.blog-post-main h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--navy-dark);
    margin-bottom: 24px;
    line-height: 1.3;
}

.blog-post-main h2 {
    font-size: 1.5rem;
    color: var(--navy-dark);
    margin: 40px 0 16px;
}

.blog-post-main h3 {
    font-size: 1.2rem;
    color: var(--navy-dark);
    margin: 30px 0 12px;
}

.blog-post-main p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}

.blog-post-main ul,
.blog-post-main ol {
    color: var(--text-muted);
    line-height: 1.8;
    margin: 16px 0 16px 24px;
}

.blog-post-main li {
    margin-bottom: 8px;
}

.blog-post-main a {
    color: var(--gold);
    text-decoration: underline;
}

.blog-post-main a:hover {
    color: var(--gold-light);
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 900px) {
    /* Header */
    .header-container {
        justify-content: space-between;
    }

    .main-nav {
        display: none;
    }

    nav {
        display: flex;
        align-items: center;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    /* Hero Split - Stack */
    .hero-split {
        flex-direction: column;
        min-height: auto;
    }

    .hero-left {
        padding: 80px 24px;
        order: 1;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-divider {
        width: 100%;
        height: 6px;
        order: 2;
    }

    .hero-right {
        height: 50vh;
        min-height: 300px;
        order: 3;
    }

    .hero-right::before {
        background: linear-gradient(180deg, var(--navy-dark) 0%, transparent 40%);
    }

    /* Benefits */
    .robert-intro {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .robert-intro-text h2 {
        text-align: center;
    }

    .robert-photo {
        width: 200px;
        height: auto;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .step-number-large {
        font-size: 4rem;
    }
}

@media (max-width: 600px) {
    :root {
        --header-height: 80px;
    }

    .hero-left {
        padding: 60px 20px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .benefits,
    .process,
    .upload-section,
    .faq-section {
        padding: 60px 0;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .modal-content {
        padding: 24px;
    }
}
