/* ── DESIGN TOKENS ── */
:root {
    --teal: #1a3a4a;
    --teal-light: #2a5a6a;
    --teal-lighter: #e8f0f2;
    --coral: #b85a52;
    --coral-hover: #a44d46;
    --warm-white: #faf8f5;
    --warm-gray: #f3f0ec;
    --text-dark: #1a2a2a;
    --text-medium: #4a5a5a;
    --text-light: #5a6a6a;
    --gold: #c8a45a;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* ── BASE RESET & BODY ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--text-dark);
    background: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── ACCESSIBILITY ── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--teal);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
}
.skip-link:focus {
    position: fixed;
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
    overflow: visible;
}
*:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
    border-radius: 4px;
}
nav .nav-cta:focus-visible {
    outline-color: var(--teal);
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--coral);
    z-index: 200;
    transition: width 0.1s linear;
}
section[id] {
    scroll-margin-top: 80px;
}

/* ── NAV ── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s;
}
nav.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.nav-logo img {
    height: 48px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text-medium);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.2s;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}
.nav-links a:hover {
    color: var(--teal);
}
.nav-links a.active {
    color: var(--teal);
    font-weight: 600;
}
.nav-cta {
    background: var(--coral) !important;
    color: white !important;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    font-size: 0.8rem !important;
    transition: background 0.2s !important;
}
.nav-cta:hover {
    background: var(--coral-hover) !important;
}
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}
.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--teal);
    margin: 5px 0;
    transition: 0.3s;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 1rem 2.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    letter-spacing: 0.03em;
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--coral);
    color: white;
}
.btn-primary:hover {
    background: var(--coral-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(212, 114, 106, 0.4);
}
.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}
.btn-outline {
    background: transparent;
    color: var(--coral);
    border: 2px solid var(--coral);
}
.btn-outline:hover {
    background: var(--coral);
    color: white;
}

/* ── SECTION DEFAULTS ── */
section {
    padding: 5rem 2rem;
}
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 0.75rem;
}
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 600px;
    line-height: 1.7;
}

/* ── CTA BAND ── */
.cta-band {
    background: var(--coral);
    padding: 2.5rem 2rem;
    text-align: center;
}
.cta-band-teal {
    background: var(--teal);
}
.cta-band-text {
    color: white;
    font-size: 1.15rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.cta-band .btn-primary {
    background: white;
    color: var(--coral);
    font-weight: 600;
}
.cta-band .btn-primary:hover {
    background: var(--warm-white);
    transform: translateY(-1px);
}
.cta-band-teal .btn-primary {
    background: var(--coral);
    color: white;
}
.cta-band-teal .btn-primary:hover {
    background: var(--coral-hover);
}

/* ── FINAL CTA ── */
.final-cta {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    color: white;
    text-align: center;
    padding: 6rem 2rem;
}
.final-cta .section-title {
    color: white;
    max-width: 700px;
    margin: 0 auto 1rem;
}
.final-cta p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 550px;
    margin: 0 auto 2.5rem;
}
.final-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.final-cta-risk-reversal {
    font-style: italic;
    font-size: 0.95rem !important;
    color: rgba(255, 255, 255, 0.78) !important;
    margin-bottom: 1rem !important;
}
.urgency-badge-dark {
    background: rgba(200, 164, 90, 0.2);
    border-color: rgba(200, 164, 90, 0.5);
    color: var(--gold);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
    border: 1px solid;
    letter-spacing: 0.02em;
}
.urgency-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ── FOOTER ── */
footer {
    background: var(--teal);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 2rem;
}
.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}
.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
}
.footer-links a:hover {
    color: white;
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    justify-content: center;
}
.footer-social a:hover {
    color: white;
}
.footer-email {
    width: 100%;
    text-align: center;
}
.footer-email a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}
.footer-email a:hover {
    color: white;
}
.footer-copy {
    width: 100%;
    text-align: center;
    padding-top: 2rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

/* ── SCROLL REVEAL ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-child {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal-child.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── STICKY MOBILE CTA ── */
.sticky-mobile-cta {
    display: none;
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.sticky-mobile-cta.visible {
    opacity: 1;
    pointer-events: auto;
}
.sticky-mobile-cta a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--coral);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(212, 114, 106, 0.5), 0 2px 8px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.02em;
    min-height: 44px;
}
.sticky-mobile-cta a:hover {
    background: var(--coral-hover);
}

/* ── BLOG HERO ── */
.blog-hero {
    padding: 10rem 2rem 4rem;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    color: white;
    text-align: center;
}
.blog-hero .section-label {
    color: rgba(255, 255, 255, 0.7);
}
.blog-hero .section-title {
    color: white;
    font-size: 2.8rem;
}
.blog-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ── BLOG LISTING GRID ── */
.blog-listing {
    background: var(--warm-white);
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

/* ── BLOG CARDS ── */
.blog-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}
.blog-card .blog-card-title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}
.blog-card-featured {
    grid-column: 1 / -1;
}
.blog-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 0.5rem;
}
.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}
.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}
.blog-card-title a {
    color: inherit;
    text-decoration: none;
}
.blog-card-title a:hover {
    color: var(--coral);
}
.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.7;
    flex: 1;
}
.blog-card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--coral);
    text-decoration: none;
    letter-spacing: 0.03em;
    min-height: 44px;
}
.blog-card-link:hover {
    text-decoration: underline;
}

/* ── ARTICLE HEADER ── */
.article-header {
    padding: 10rem 2rem 3rem;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    color: white;
}
.article-header .section-inner {
    max-width: 720px;
}
.article-header .section-label {
    color: rgba(255, 255, 255, 0.7);
}
.article-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    flex-wrap: wrap;
}

/* ── BREADCRUMB ── */
.breadcrumb {
    font-size: 0.8rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.6);
}
.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}
.breadcrumb span {
    color: rgba(255, 255, 255, 0.75);
}

/* ── ARTICLE CONTENT ── */
.article-body {
    background: var(--warm-white);
}
.article-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 2rem;
}
.article-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--teal);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}
.article-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--teal);
    margin: 2rem 0 0.75rem;
    line-height: 1.4;
}
.article-content p {
    font-size: 1.05rem;
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}
.article-content p strong {
    color: var(--teal);
}
.article-content blockquote {
    background: white;
    border-left: 4px solid var(--coral);
    padding: 1.5rem 2rem;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 2rem 0;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--teal);
    line-height: 1.6;
}
.article-content ul,
.article-content ol {
    margin: 1.5rem 0;
    padding-left: 0;
    list-style: none;
}
.article-content ul li,
.article-content ol li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1.02rem;
    color: var(--text-medium);
    line-height: 1.7;
}
.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--coral);
}
.article-content ol {
    counter-reset: article-ol;
}
.article-content ol li {
    counter-increment: article-ol;
}
.article-content ol li::before {
    content: counter(article-ol) '.';
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--coral);
}
.article-content a {
    color: var(--coral);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover {
    color: var(--coral-hover);
}
.article-content img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

/* ── ARTICLE INLINE CTA BAND ── */
.article-cta-band {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    text-align: center;
    margin: 3rem 0;
}
.article-cta-band p {
    color: white !important;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.15rem !important;
    margin-bottom: 1.5rem !important;
}
.article-cta-band .btn-primary {
    background: var(--coral);
    color: white;
}

/* ── AUTHOR BIO ── */
.author-bio-section {
    background: var(--warm-white);
    padding: 0 2rem 3rem;
}
.author-bio {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.author-bio img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.author-bio strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: var(--teal);
    display: block;
    margin-bottom: 0.25rem;
}
.author-bio p {
    font-size: 0.9rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin: 0;
}

/* ── TESTIMONIAL CALLOUT (inline in articles) ── */
.testimonial-callout {
    max-width: 720px;
    margin: 3rem auto;
    background: var(--warm-gray);
    border-left: 4px solid var(--coral);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 2rem 2.5rem;
}
.testimonial-callout blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--teal);
    line-height: 1.7;
    margin: 0 0 1rem;
    padding: 0;
    border: none;
    background: none;
}
.testimonial-callout .testimonial-attribution {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-medium);
}
.testimonial-callout .testimonial-attribution strong {
    color: var(--teal);
}
@media (max-width: 768px) {
    .testimonial-callout {
        padding: 1.5rem;
        margin: 2rem 0;
    }
    .testimonial-callout blockquote {
        font-size: 1rem;
    }
}

/* ── LISTING PAGE TESTIMONIAL ── */
.listing-testimonial {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    border-radius: var(--radius-md);
    padding: 2.5rem 3rem;
    margin: 2rem 0;
    text-align: center;
}
.listing-testimonial blockquote {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
    margin: 0 0 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.listing-testimonial .testimonial-attribution {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}
.listing-testimonial .testimonial-attribution strong {
    color: var(--gold);
}
@media (max-width: 768px) {
    .listing-testimonial {
        padding: 2rem 1.5rem;
    }
    .listing-testimonial blockquote {
        font-size: 1rem;
    }
}

/* ── QUIZ CTA ── */
.quiz-cta {
    background: var(--warm-gray);
    text-align: center;
    padding: 4rem 2rem;
}
.quiz-cta .section-inner {
    max-width: 720px;
}

/* ── RELATED POSTS ── */
.related-posts {
    background: var(--warm-white);
}
.related-posts .blog-grid {
    margin-top: 2rem;
}

/* ── RESPONSIVE (1024px) ── */
@media (max-width: 1024px) {
    .blog-card-featured {
        grid-template-columns: 1fr;
    }
}

/* ── RESPONSIVE (768px) ── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 1.5rem 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 1rem;
    }
    section {
        padding: 3.5rem 1.5rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .cta-band {
        padding: 2rem 1.5rem;
    }
    .cta-band-text {
        font-size: 1rem;
    }
    .sticky-mobile-cta {
        display: block;
    }
    .blog-hero {
        padding: 8rem 1.5rem 3rem;
    }
    .blog-hero .section-title {
        font-size: 1.6rem;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-card-featured {
        grid-template-columns: 1fr;
    }
    .article-header {
        padding: 8rem 1.5rem 2rem;
    }
    .article-title {
        font-size: 1.8rem;
    }
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
}

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .reveal-child {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .scroll-progress {
        transition: none;
    }
    .btn-primary {
        transition: none;
    }
    .sticky-mobile-cta {
        transition: none;
    }
}
