/* ============================================================
   Earn With Homes — Main Stylesheet v7
   ============================================================ */

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

:root {
    --navy: #1B2A4A;
    --navy-deep: #0F1B33;
    --navy-mid: #243656;
    --gold: #C8A44E;
    --gold-light: #D4B76A;
    --cream: #FAF8F4;
    --cream-dark: #F0ECE4;
    --text: #2C3E50;
    --text-light: #6B7B8D;
    --white: #FFFFFF;
    --green-subtle: #2E7D5B;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--cream);
}

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

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

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    font-family: 'Source Serif 4', Georgia, serif;
    line-height: 1.25;
    color: var(--navy);
}

h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.15rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ----- Layout ----- */
.section-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-inner--narrow {
    max-width: 720px;
}

/* ----- Header ----- */
.site-header {
    background: var(--navy-deep);
    border-bottom: 1px solid rgba(200,164,78,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.header-logo img {
    height: 44px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.2s;
}

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

/* ----- Hamburger ----- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.25s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ----- Mobile Nav ----- */
.mobile-nav {
    display: none;
    flex-direction: column;
    background: var(--navy-mid);
    padding: 1rem 1.5rem;
    gap: 0.75rem;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    color: var(--gold-light);
}

/* ----- Buttons ----- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.75rem;
    border-radius: 4px;
    font-size: 0.97rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    line-height: 1;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
    border: 2px solid var(--gold);
}

.btn-gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    text-decoration: none;
    color: var(--navy);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
    color: #fff;
}

.section-white .btn-outline,
.section-cream .btn-outline {
    color: var(--navy);
    border-color: var(--navy);
}

.section-white .btn-outline:hover,
.section-cream .btn-outline:hover {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ----- Section Label ----- */
.section-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* ----- Hero (full) ----- */
.hero {
    background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-mid) 100%);
    color: #fff;
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(200,164,78,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    color: #fff;
    margin-bottom: 1rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.72);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

.hero .btn-group {
    justify-content: center;
}

/* ----- Hero Small ----- */
.hero-sm {
    background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-mid) 100%);
    color: #fff;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-sm::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(200,164,78,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-sm h1 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    position: relative;
    z-index: 1;
}

.hero-sm .hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    max-width: 560px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ----- Section Backgrounds ----- */
.section-white {
    background: var(--white);
    padding: 4rem 1.5rem;
}

.section-cream {
    background: var(--cream);
    padding: 4rem 1.5rem;
}

.section-white h2,
.section-cream h2 {
    margin-bottom: 1.25rem;
}

/* ----- Card Grid ----- */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: var(--white);
    border-radius: 6px;
    padding: 1.75rem;
    border-left: 3px solid var(--gold);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

/* ----- Steps Grid ----- */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.step {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold);
    opacity: 0.7;
    line-height: 1;
}

.step h3 {
    margin-bottom: 0.4rem;
}

/* ----- Testimonial ----- */
.testimonial {
    background: var(--cream);
    color: var(--text);
    padding: 4rem 1.5rem;
    text-align: center;
}

.testimonial-inner {
    max-width: 760px;
    margin: 0 auto;
}

.testimonial .section-label {
    display: block;
    margin-bottom: 0.5rem;
}

.testimonial h2 {
    color: var(--navy);
    margin-bottom: 2rem;
}

.testimonial blockquote {
    font-family: 'Source Serif 4', Georgia, serif;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
    color: var(--navy);
    max-width: 640px;
    margin: 0 auto 1rem;
    font-style: italic;
    position: relative;
}

.testimonial blockquote::before {
    content: '\201C';
    font-size: 3rem;
    color: var(--gold);
    opacity: 0.4;
    line-height: 1;
    display: block;
    margin-bottom: -0.5rem;
}

.testimonial cite {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: normal;
}

/* ----- Video embed responsive ----- */
.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto 2rem;
    border-radius: 6px;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

/* ----- Bio ----- */
.bio {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

.bio-brief {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.photos {
    display: flex;
    gap: 1rem;
}

.bio-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.bio-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-text h2 {
    margin-bottom: 0.75rem;
}

/* ----- Bottom CTA ----- */
.bottom-cta {
    background: var(--navy-deep);
    color: #fff;
    padding: 4rem 1.5rem;
    text-align: center;
}

.bottom-cta h2 {
    color: #fff;
    margin-bottom: 0.5rem;
}

.bottom-cta p {
    color: rgba(255,255,255,0.72);
    margin-bottom: 0;
}

.bottom-cta .btn-group {
    justify-content: center;
}

/* ----- Deal Grid ----- */
.deal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.deal-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.deal-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.deal-card-body {
    padding: 1.25rem 1.5rem;
}

.deal-card-meta {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.deal-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.deal-card-specs {
    font-size: 0.88rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.deal-card-status {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.deal-card-status.active {
    background: rgba(46,125,91,0.1);
    color: var(--green-subtle);
}

.deal-card-status.completed {
    background: rgba(200,164,78,0.15);
    color: var(--gold);
}

.deal-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

/* ----- Blog Grid ----- */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.blog-card {
    background: var(--white);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.blog-card a {
    display: block;
    text-decoration: none;
    color: var(--text);
}

.blog-card-body {
    padding: 1.5rem;
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.blog-card h2 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--navy);
}

.blog-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold);
}

/* ----- Blog Post (article) ----- */
.post-header {
    background: linear-gradient(165deg, var(--navy-deep) 0%, var(--navy) 40%, var(--navy-mid) 100%);
    color: #fff;
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.post-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(200,164,78,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.post-header h1 {
    color: #fff;
    max-width: 760px;
    margin: 0 auto 0.75rem;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    position: relative;
    z-index: 1;
}

.post-meta {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.72);
    position: relative;
    z-index: 1;
}

.post-body {
    background: var(--white);
    padding: 3rem 1.5rem;
}

.post-body-inner {
    max-width: 720px;
    margin: 0 auto;
}

.post-body h2 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
}

.post-body h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-body ul,
.post-body ol {
    margin: 0.75rem 0 1rem 1.5rem;
}

.post-body li {
    margin-bottom: 0.4rem;
    line-height: 1.65;
}

.post-body blockquote {
    border-left: 3px solid var(--gold);
    padding: 0.75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--cream);
    border-radius: 0 4px 4px 0;
    font-style: italic;
    color: var(--text-light);
}

/* ----- Related posts ----- */
.related-posts {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--cream-dark);
}

.related-posts h2 {
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    text-align: left;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.related-post-card {
    display: block;
    padding: 1.25rem;
    background: var(--cream);
    border-radius: 4px;
    text-decoration: none;
    border-left: 3px solid var(--gold);
    transition: background 0.2s;
}

.related-post-card:hover {
    background: var(--cream-dark);
    color: var(--text);
}

.related-post-card h3 {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    color: var(--navy);
}

.related-post-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

/* ----- Centered Page (thank you) ----- */
.centered-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 4rem 1.5rem;
    background: var(--white);
}

.centered-page .section-inner {
    text-align: center;
}

.centered-page h1 {
    margin-bottom: 1rem;
}

.centered-page p {
    color: var(--text-light);
    margin-bottom: 0;
}

.centered-page .btn-group {
    justify-content: center;
}

/* ----- Footer ----- */
.site-footer {
    background: var(--navy-deep);
    border-top: 1px solid rgba(200,164,78,0.15);
    color: rgba(255,255,255,0.72);
    padding: 3rem 1.5rem 2rem;
    text-align: center;
}

.footer-logo {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.footer-desc {
    font-size: 0.9rem;
    max-width: 440px;
    margin: 0 auto 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.footer-nav {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-nav a {
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    text-decoration: none;
}

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

.footer-contact {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-contact a {
    color: rgba(255,255,255,0.72);
}

.footer-legal p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* ============================================================
   Responsive — 768px+
   ============================================================ */
@media (min-width: 768px) {

    .hamburger { display: none; }
    .mobile-nav { display: none !important; }
    nav { display: block; }

    .header-inner { height: 72px; }
    body { font-size: 1.1rem; }

    h2 { font-size: 2.4rem; margin-bottom: 1.5rem; }
    h3 { font-size: 1.4rem; }

    .hero { padding: 6rem 2rem 6.5rem; }
    .hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
    .hero-subtitle { font-size: 1.25rem; max-width: 640px; }
    .hero-sm { padding: 4.5rem 2rem; }
    .hero-sm h1 { font-size: clamp(1.75rem, 4vw, 2.6rem); }

    .section-white,
    .section-cream,
    .section-navy { padding: 5rem 2rem; }

    .nav-links a { font-size: 1.05rem; }

    .bottom-cta { padding: 5rem 2rem; }
    .bottom-cta h2 { font-size: 2rem; }

    .testimonial blockquote { font-size: 1.6rem; padding: 0 2rem; }

    .bio-photo { width: 180px; height: 180px; }
    .bio-text p { font-size: 1.1rem; }
    .bio-brief p { font-size: 1.1rem; }
    .bio-brief .photos .bio-photo { width: 150px; height: 150px; }

    .article-content { font-size: 1.1rem; line-height: 1.8; }
    .article-content h2 { font-size: 1.8rem; }
    .article-content h3 { font-size: 1.3rem; }
    .blog-card h2 { font-size: 1.5rem; }
    .blog-card p { font-size: 1.05rem; }
    .blog-card-body { padding: 2rem; }

    .footer-desc { font-size: 0.95rem; }
    .footer-nav a { font-size: 0.9rem; }

    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .step {
        flex-direction: column;
        align-items: flex-start;
    }

    .bio {
        flex-direction: row;
        gap: 3rem;
    }

    .bio-photo {
        width: 140px;
        height: 140px;
    }

    .bio-brief {
        flex-direction: row;
        gap: 2.5rem;
        align-items: center;
    }

    .deal-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .related-posts h2 {
        font-size: 1.6rem;
    }

}

/* ============================================================
   Responsive — 1024px+
   ============================================================ */
@media (min-width: 1024px) {

    .deal-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* ============================================================
   Responsive — max 767px (mobile only)
   ============================================================ */
@media (max-width: 767px) {

    .hamburger { display: flex; }
    nav { display: none; }

    .hero { padding: 3.5rem 1.25rem 3rem; }
    .section-white, .section-cream { padding: 3rem 1.25rem; }
    .testimonial { padding: 3rem 1.25rem; }
    .bottom-cta { padding: 3rem 1.25rem; }

    .btn-group { flex-direction: column; align-items: center; }
    .btn { width: 100%; max-width: 320px; text-align: center; }

}
