/* ============================================================
   Home Needs Revive — "PLANNED OUT" THEME
   Palette: Paper Cream / Navy Ink / Red Pen / Sticky Yellow
   ============================================================ */
:root {
    --paper: #F2F5FA;
    --paper-dark: #E0E8F2;
    --rule: #C6D4E5;
    --navy: #263B63;
    --navy-dark: #172744;
    --red: #3978C5;
    --red-dark: #24569A;
    --yellow: #E9BC61;
    --ink-soft: rgba(38, 59, 99, 0.68);
    --line: rgba(38, 59, 99, 0.15);
    --font-display: 'PT Serif', serif;
    --font-body: 'PT Sans', sans-serif;
    --font-hand: 'Caveat', cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--navy-dark);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    background-image: linear-gradient(var(--rule) 1px, transparent 1px);
    background-size: 100% 34px;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    color: var(--navy-dark);
    font-weight: 700;
}
::selection { background: var(--yellow); color: var(--navy-dark); }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-dark); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 10px; }

.eyebrow {
    font-family: var(--font-hand);
    font-size: 1.3rem;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .6rem;
    font-weight: 600;
    transform: rotate(-1.5deg);
}
.eyebrow i { font-size: 1rem; }

.section-pad { padding: 6.5rem 0; }
@media(max-width:768px) { .section-pad { padding: 4rem 0; } }

.container-narrow {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 1.75rem 0 3.2rem;
    position: relative;
}
@media(max-width:900px) { .container-narrow { padding-left: 1.75rem; } }
.container-narrow::before {
    content: '';
    position: absolute;
    left: 2.4rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(192, 57, 43, .35);
}
@media(max-width:900px) { .container-narrow::before { display: none; } }

.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media(max-width:768px) { .grid-2 { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field.span-2 { grid-column: 1 / -1; }

.btn-navy {
    background: var(--navy);
    color: var(--paper);
    border: none;
    border-radius: 6px;
    padding: 1rem 2.1rem;
    font-weight: 700;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    transition: all .3s ease;
    box-shadow: 0 14px 30px -12px rgba(31, 58, 95, .5);
    cursor: pointer;
}
.btn-navy:hover { background: var(--navy-dark); color: var(--yellow); transform: translateY(-2px); }

.btn-outline-red {
    background: transparent;
    color: var(--navy-dark);
    border: 1.5px solid var(--red);
    border-radius: 6px;
    padding: .95rem 2rem;
    font-weight: 700;
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    transition: all .3s ease;
    cursor: pointer;
}
.btn-outline-red:hover { background: var(--red); color: #fff; }

/* NAVBAR */
.navbar-chf {
    position: sticky; top: 0; left: 0; right: 0;
    z-index: 1500; background: var(--paper);
    border-bottom: 2px solid var(--navy);
}
.nav-inner {
    max-width: 1400px; margin: 0 auto; padding: 0 1.75rem;
    height: 80px; display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: .7rem; }
.nav-logo {
    width: 42px; height: 42px; border-radius: 8px;
    background: var(--navy); display: flex; align-items: center; justify-content: center;
    color: var(--yellow); font-size: 1.05rem; transform: rotate(-3deg);
}
.nav-brand-text { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: .2rem; }
@media(max-width:900px) { .nav-links { display: none; } }
.nav-links a {
    font-weight: 700; font-size: .85rem; color: var(--ink-soft);
    padding: .6rem 1rem; border-radius: 6px; transition: all .3s ease;
}
.nav-links a:hover { color: var(--navy-dark); background: var(--paper-dark); }

#navCheckbox { display: none; }
.nav-toggle-label {
    display: none; width: 42px; height: 42px;
    border: 1.5px solid var(--line); border-radius: 6px;
    align-items: center; justify-content: center; cursor: pointer;
}
@media(max-width:900px) { .nav-toggle-label { display: flex; } }
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: ''; display: block; width: 18px; height: 2px;
    background: var(--navy-dark); position: relative;
}
.nav-toggle-label span::before { position: absolute; top: -6px; }
.nav-toggle-label span::after { position: absolute; top: 6px; }

.mobile-menu {
    position: fixed; top: 0; right: 0; height: 100vh;
    width: min(320px, 85vw); background: var(--paper);
    z-index: 1600; box-shadow: -15px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform .4s ease;
    padding: 6.5rem 2rem 2rem; display: flex; flex-direction: column; gap: 1.4rem;
}
#navCheckbox:checked ~ .mobile-menu { transform: translateX(0); }
.mobile-menu a {
    font-family: var(--font-display); font-size: 1.35rem;
    font-weight: 700; color: var(--navy-dark);
}
.mobile-overlay {
    position: fixed; inset: 0; background: rgba(31,58,95,.4);
    z-index: 1550; opacity: 0; pointer-events: none; transition: opacity .3s ease;
}
#navCheckbox:checked ~ .mobile-overlay { opacity: 1; pointer-events: auto; }

/* HERO */
.hero { position: relative; padding: 4.5rem 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
@media(max-width:991px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-headline { font-size: clamp(2.2rem, 4.2vw, 3.5rem); line-height: 1.15; margin-bottom: 1.2rem; }
.hero-headline .hl-red { color: var(--red); }
.hero-sub { font-size: 1.04rem; color: var(--ink-soft); max-width: 500px; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.hero-badges { display: flex; gap: .7rem; flex-wrap: wrap; }

.sticky-note {
    background: var(--yellow); padding: .5rem 1rem;
    font-size: .78rem; font-weight: 700;
    box-shadow: 2px 3px 8px rgba(0,0,0,.15);
    display: inline-flex; align-items: center; gap: .5rem;
    transform: rotate(-2deg);
}
.sticky-note:nth-child(2) { transform: rotate(1.5deg); }
.sticky-note:nth-child(3) { transform: rotate(-1deg); }
.sticky-note i { color: var(--red); }

.checklist-card {
    background: #fff; border: 1.5px solid var(--line);
    border-radius: 8px; padding: 1.8rem;
    box-shadow: 4px 6px 0 rgba(31,58,95,.12); transform: rotate(1deg);
}
.checklist-card h4 {
    font-family: var(--font-hand); font-size: 1.5rem;
    color: var(--red); margin-bottom: 1rem; transform: rotate(-1deg);
}
.checklist-item {
    display: flex; align-items: center; gap: .8rem;
    padding: .6rem 0; border-bottom: 1px dashed var(--line);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-box {
    width: 20px; height: 20px; border: 2px solid var(--navy);
    border-radius: 4px; flex: none;
    display: flex; align-items: center; justify-content: center;
}
.checklist-box i { font-size: .7rem; color: var(--navy); }
.checklist-item span { font-size: .92rem; font-weight: 600; }

.hero-stats-row { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stat .num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: var(--navy); }
.hero-stat .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); font-weight: 700; }

/* ABOUT */
.about-sec { background: var(--paper-dark); }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: center; }
@media(max-width:991px) { .about-grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.tab-page {
    background: #fff; border: 1.5px solid var(--line);
    border-radius: 0 10px 10px 10px; position: relative;
    padding: 2rem; box-shadow: 4px 6px 0 rgba(31,58,95,.1);
}
.tab-flag {
    position: absolute; top: -32px; left: 0; background: var(--red);
    color: #fff; padding: .5rem 1.2rem;
    font-family: var(--font-hand); font-size: 1.1rem; border-radius: 8px 8px 0 0;
}
.tab-page .num { font-family: var(--font-display); font-size: 3rem; color: var(--navy); text-align: center; }
.tab-page .lbl { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; }

.about-copy p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 1.3rem; }
.about-info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.6rem; }
@media(max-width:576px) { .about-info-cards { grid-template-columns: 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem; transition: all .3s ease; }
.info-card:hover { background: var(--paper); }
.info-card i { color: var(--red); font-size: 1.15rem; margin-bottom: .6rem; display: block; }
.info-card h4 { font-size: .98rem; margin-bottom: .3rem; }
.info-card p { font-size: .85rem; color: var(--ink-soft); margin: 0; }

/* WHY CHOOSE */
.why-sec { background: var(--paper); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media(max-width:900px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:576px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.8rem; transition: all .3s ease; }
.why-card:hover { box-shadow: 4px 6px 0 rgba(31,58,95,.15); transform: translateY(-4px); }
.why-icon {
    width: 52px; height: 52px; border-radius: 8px;
    background: var(--navy); color: var(--yellow);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-bottom: 1.1rem;
}
.why-card h4 { font-size: 1.05rem; margin-bottom: .6rem; }
.why-card p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

/* SERVICES */
.services-sec { background: var(--paper-dark); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
@media(max-width:991px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:576px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
    background: #fff; border: 1px solid var(--line);
    border-radius: 6px; padding: 1.6rem; height: 100%;
    transition: all .3s ease; display: block; position: relative;
}
.svc-card:hover { box-shadow: 4px 6px 0 rgba(192,57,43,.25); transform: translateY(-4px); }
.svc-pin {
    position: absolute; top: -8px; left: 50%;
    transform: translateX(-50%); width: 14px; height: 14px;
    border-radius: 50%; background: var(--red);
    box-shadow: 0 2px 4px rgba(0,0,0,.3);
}
.svc-icon {
    width: 46px; height: 46px; border-radius: 8px;
    background: var(--paper); border: 1.5px solid var(--navy);
    color: var(--navy); display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; margin-bottom: 1rem;
}
.svc-card h4 { font-size: .98rem; margin-bottom: .5rem; }
.svc-desc { font-size: .83rem; color: var(--ink-soft); margin-bottom: .9rem; min-height: 56px; }
.svc-cta { font-size: .78rem; font-weight: 700; color: var(--red); display: inline-flex; align-items: center; gap: .4rem; }

/* SUBSCRIBE */
.subscribe-sec { background: var(--navy); color: var(--paper); position: relative; }
.subscribe-sec .eyebrow { color: var(--yellow); }
.subscribe-sec h2 { color: var(--paper); }
.subscribe-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 12px; padding: 3rem;
    display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: center;
}
@media(max-width:991px) { .subscribe-card { grid-template-columns: 1fr; padding: 2rem 1.4rem; } }
.subscribe-card p { color: rgba(250,246,237,.75); }
.form-control-g {
    background: rgba(250,246,237,.95);
    border: 1.5px solid transparent; border-radius: 6px;
    padding: .85rem 1.1rem; font-size: .92rem;
    width: 100%; color: var(--navy-dark); font-family: inherit;
}
.form-control-g:focus { outline: none; border-color: var(--yellow); }
.form-control-g:invalid:not(:placeholder-shown) { border-color: #e0664b; }
.form-label-g { color: rgba(250,246,237,.85); font-size: .82rem; font-weight: 700; margin-bottom: .2rem; display: block; }
.check-row { display: flex; align-items: flex-start; gap: .6rem; }
.check-row input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--yellow); flex: none; }
.check-row label { font-size: .85rem; color: rgba(250,246,237,.9); }
.unsub-link { color: var(--yellow); font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }

/* REVIEWS */
.reviews-sec { background: var(--paper); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media(max-width:991px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:576px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 1.7rem; transition: all .3s ease; }
.review-card:hover { box-shadow: 4px 6px 0 rgba(31,58,95,.15); transform: translateY(-4px); }
.review-card .stars { color: var(--red); font-size: .85rem; margin-bottom: .9rem; }
.review-card p.quote { font-family: var(--font-hand); font-size: 1.25rem; color: var(--navy-dark); margin-bottom: 1.1rem; line-height: 1.4; }
.review-person { display: flex; align-items: center; gap: .8rem; border-top: 1px dashed var(--line); padding-top: 1rem; }
.review-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--navy); color: var(--yellow);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .78rem; flex: none;
}
.review-name { font-weight: 700; font-size: .86rem; }
.review-role { font-size: .74rem; color: var(--ink-soft); }

/* FAQ */
.faq-sec { background: var(--paper-dark); }
.faq-item { border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; gap: 1rem;
    font-family: var(--font-hand); font-weight: 600;
    font-size: 1.4rem; color: var(--navy-dark);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-index { font-family: var(--font-body); color: var(--red); font-size: .85rem; margin-right: 1rem; font-weight: 700; }
.faq-toggle-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: #fff; border: 1.5px solid var(--line);
    flex: none; display: flex; align-items: center; justify-content: center; position: relative;
}
.faq-toggle-icon::before, .faq-toggle-icon::after { content: ''; position: absolute; background: var(--navy-dark); }
.faq-toggle-icon::before { width: 12px; height: 2px; }
.faq-toggle-icon::after { width: 2px; height: 12px; }
.faq-item[open] .faq-toggle-icon { background: var(--navy); }
.faq-item[open] .faq-toggle-icon::before, .faq-item[open] .faq-toggle-icon::after { background: var(--yellow); }
.faq-item[open] .faq-toggle-icon::after { transform: scaleY(0); }
.faq-answer-inner { padding: 1rem 0 0 3rem; color: var(--ink-soft); font-size: .94rem; max-width: 800px; font-family: var(--font-body); }

/* CONTACT */
.contact-sec { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3.5rem; }
@media(max-width:991px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.contact-info-item .ci-icon {
    width: 44px; height: 44px; border-radius: 8px;
    background: #fff; border: 1.5px solid var(--navy); color: var(--navy);
    display: flex; align-items: center; justify-content: center; flex: none; font-size: 1rem;
}
.contact-info-item h5 { font-family: var(--font-display); font-size: 1rem; margin-bottom: .25rem; }
.contact-info-item p { color: var(--ink-soft); font-size: .88rem; margin: 0; }
.contact-form-card {
    background: #fff; border: 1.5px solid var(--line);
    border-radius: 10px; padding: 2.2rem;
    box-shadow: 4px 6px 0 rgba(31,58,95,.1);
}
@media(max-width:576px) { .contact-form-card { padding: 1.4rem; } }
.form-control-l, select.form-control-l, textarea.form-control-l {
    background: var(--paper); border: 1.5px solid transparent; border-radius: 6px;
    padding: .85rem 1.1rem; color: var(--navy-dark);
    width: 100%; font-size: .92rem; font-family: inherit;
}
.form-control-l:focus { outline: none; border-color: var(--navy); }
.form-control-l:invalid:not(:placeholder-shown) { border-color: #e0664b; }
.form-label-l { color: var(--navy-dark); font-size: .82rem; font-weight: 700; margin-bottom: .2rem; display: block; }

/* LEGAL PAGES */
.legal-sec { background: var(--paper); }
.legal-card {
    background: #fff; border: 1.5px solid var(--line);
    border-radius: 10px; padding: 3rem;
    box-shadow: 4px 6px 0 rgba(31,58,95,.08);
}
@media(max-width:768px) { .legal-card { padding: 1.6rem; } }
.legal-hero {
    background: var(--navy); color: var(--paper);
    padding: 4rem 0 3.5rem;
    text-align: center;
}
.legal-hero h1 { color: var(--paper); font-size: clamp(2rem, 3.5vw, 3rem); }
.legal-hero .eyebrow { color: var(--yellow); justify-content: center; }
.legal-point { margin-bottom: 1.4rem; padding-bottom: 1.2rem; border-bottom: 1px dashed var(--line); }
.legal-point:last-child { border-bottom: none; }
.legal-point h6 {
    font-size: .85rem; color: var(--red);
    text-transform: uppercase; letter-spacing: .04em;
    margin-bottom: .4rem; font-weight: 700;
}
.legal-point p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* FOOTER */
.footer-sec { background: var(--navy-dark); color: rgba(250,246,237,.62); padding: 4.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2.5rem; }
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; } }
@media(max-width:480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-sec h5 { color: var(--yellow); font-size: .82rem; margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .7rem; }
.footer-links a { font-size: .87rem; transition: color .3s; }
.footer-links a:hover { color: var(--yellow); }
.footer-social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 8px;
    background: rgba(255,255,255,.06);
    display: flex; align-items: center; justify-content: center; transition: all .3s ease;
}
.footer-social a:hover { background: var(--yellow); color: var(--navy-dark); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 3.5rem; padding-top: 1.8rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: .82rem;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* SUCCESS PAGE */
.success-sec { background: var(--paper); padding: 6rem 0; }
.success-card {
    background: #fff; border: 1.5px solid var(--line);
    border-radius: 10px; padding: 3rem 2rem; text-align: center;
    box-shadow: 4px 6px 0 rgba(31,58,95,.1);
    max-width: 540px; margin: 0 auto;
}
.success-icon-wrap {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(31,58,95,.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.4rem;
}
.success-icon-wrap i { font-size: 2rem; color: var(--navy); }

/* BACK TO TOP */
#backToTop {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--red); color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 15px 35px -12px rgba(192,57,43,.6);
    z-index: 900; font-size: 1.05rem;
}
#backToTop:hover { background: var(--red-dark); }

@media(prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
    outline: 2px solid var(--navy); outline-offset: 3px;
}