/* ==================================================================
 * Flavor Developer — Global Stylesheet
 * Mobile-first, no animations, genuine & clean.
 * ==================================================================*/

:root {
    --fd-bg: #f4f3f0;
    --fd-card: #ffffff;
    --fd-text: #1a1a17;
    --fd-text-mid: #5c5b56;
    --fd-text-light: #8e8d88;
    --fd-accent: #1b6ef5;
    --fd-accent-soft: #e8f0fe;
    --fd-accent-dark: #0f4ab5;
    --fd-accent-hover: #0f4ab5;
    --fd-border: rgba(0, 0, 0, 0.07);
    --fd-border-solid: #e5e5e2;
    --fd-success: #16a34a;
    --fd-warning: #b45309;
    --fd-error: #dc2626;
    --fd-radius: 14px;
    --fd-radius-sm: 10px;
    --fd-radius-xs: 6px;
    --fd-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 2px 8px rgba(0,0,0,0.03);
    --fd-shadow-md: 0 2px 6px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.05);
    --fd-font: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --fd-font-display: 'Fraunces', Georgia, serif;
    --fd-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--fd-font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--fd-text);
    background: var(--fd-bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4 { font-family: var(--fd-font-display); font-weight: 800; line-height: 1.25; letter-spacing: -0.02em; }

a { color: var(--fd-accent); text-decoration: none; }
a:hover { color: var(--fd-accent-dark); text-decoration: underline; }

/* Hide GP default footer since we use custom */
.site-footer .footer-widgets-container,
.site-footer .site-info { display: none !important; }


/* ==================================================================
 * BREADCRUMBS
 * ==================================================================*/
.fd-breadcrumbs {
    font-size: 13px;
    color: var(--fd-text-light);
    padding: 8px 0;
    margin-bottom: 12px;
}
.fd-breadcrumbs a { color: var(--fd-text-light); }
.fd-breadcrumbs a:hover { color: var(--fd-accent); }
.fd-breadcrumbs .sep { margin: 0 5px; color: #ccc; }
.fd-breadcrumbs [aria-current] { color: var(--fd-text); font-weight: 600; }


/* ==================================================================
 * UPDATED DATE
 * ==================================================================*/
.fd-updated-line {
    font-size: 13px;
    color: var(--fd-text-light);
    margin: 4px 0 16px;
}
.fd-updated-line time { font-weight: 600; }


/* ==================================================================
 * TABLE OF CONTENTS
 * ==================================================================*/
.fd-toc {
    background: var(--fd-card);
    border: 1px solid var(--fd-border-solid);
    border-left: 3px solid var(--fd-accent);
    border-radius: var(--fd-radius-sm);
    padding: 20px;
    margin: 20px 0;
}
.fd-toc__title {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fd-text-light);
    margin-bottom: 8px;
}
.fd-toc__list { list-style: none; margin: 0; padding: 0; }
.fd-toc__list li { padding: 6px 0; border-bottom: 1px solid var(--fd-border); }
.fd-toc__list li:last-child { border-bottom: none; }
.fd-toc__list a { color: var(--fd-text); font-weight: 600; font-size: 15px; display: block; }
.fd-toc__list a:hover { color: var(--fd-accent); text-decoration: none; }


/* ==================================================================
 * TRUST BOX (Calculator pages)
 * ==================================================================*/
.fd-trust-box {
    background: var(--fd-card);
    border: 1px solid var(--fd-border-solid);
    border-radius: var(--fd-radius-sm);
    padding: 20px;
    margin: 24px 0;
    font-size: 14px;
}
.fd-data-source { margin-bottom: 8px; }
.fd-disclaimer,
.fd-inline-disclaimer {
    background: #fef9ee;
    border: 1px solid #fde68a;
    border-radius: var(--fd-radius-xs);
    padding: 12px 16px;
    font-size: 13px;
    color: #92400e;
    margin: 12px 0;
    line-height: 1.5;
}


/* ==================================================================
 * SHORTCODE BOXES
 * ==================================================================*/
.fd-quick-ref {
    background: #f0f5ff;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--fd-accent);
    border-radius: var(--fd-radius-sm);
    padding: 20px;
    margin: 20px 0;
}
.fd-quick-ref__title { font-weight: 800; color: var(--fd-accent); margin-bottom: 6px; }
.fd-quick-ref__content { font-size: 15px; }
.fd-quick-ref__content a { font-weight: 700; }

.fd-related-tools {
    background: var(--fd-card);
    border: 1px solid var(--fd-border-solid);
    border-radius: var(--fd-radius-sm);
    padding: 20px;
    margin: 24px 0;
}
.fd-related-tools__title { font-weight: 800; margin-bottom: 8px; }
.fd-related-tools ul { list-style: none; margin: 0; padding: 0; }
.fd-related-tools li { padding: 8px 0; border-bottom: 1px solid var(--fd-border); }
.fd-related-tools li:last-child { border-bottom: none; }
.fd-related-tools a { font-weight: 600; }
.fd-related-tools a::before { content: "→ "; color: var(--fd-accent); font-weight: 800; }

.fd-next-steps { margin: 32px 0; }
.fd-next-steps__title { font-family: var(--fd-font-display); font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.fd-next-steps__grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .fd-next-steps__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .fd-next-steps__grid { grid-template-columns: repeat(3, 1fr); } }
.fd-next-steps__card {
    display: flex; flex-direction: column;
    background: var(--fd-card); border: 1px solid var(--fd-border-solid);
    border-radius: var(--fd-radius-sm); padding: 16px; text-decoration: none;
}
.fd-next-steps__card:hover { border-color: var(--fd-accent); box-shadow: var(--fd-shadow-md); text-decoration: none; }
.fd-next-steps__card-title { font-weight: 700; color: var(--fd-text); font-size: 15px; margin-bottom: 2px; }
.fd-next-steps__card-type { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--fd-accent); font-weight: 700; }


/* ==================================================================
 * FAQ SECTION
 * ==================================================================*/
.fd-faq-section, .fd-home-faq { margin: 20px 0; }

.fd-faq-item {
    border: 1px solid var(--fd-border-solid);
    border-radius: var(--fd-radius-sm);
    margin-bottom: 8px;
    overflow: hidden;
    background: var(--fd-card);
}
.fd-faq-item[open] { border-color: var(--fd-accent); }

.fd-faq-question {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    background: var(--fd-card);
}
.fd-faq-question::-webkit-details-marker { display: none; }
.fd-faq-question::after {
    content: "+"; font-size: 18px; color: var(--fd-accent); font-weight: 800;
    flex-shrink: 0; margin-left: 12px;
}
.fd-faq-item[open] .fd-faq-question::after { content: "−"; }
.fd-faq-question:hover { background: #fafaf8; }

.fd-faq-answer {
    padding: 4px 18px 18px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--fd-text-mid);
}


/* ==================================================================
 * AD SLOTS
 * ==================================================================*/
.fd-ad-slot { margin: 28px 0; text-align: center; min-height: 90px; }


/* ==================================================================
 * MOBILE BOTTOM NAVIGATION
 * ==================================================================*/
.fd-bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--fd-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0;
    padding-bottom: max(4px, env(safe-area-inset-bottom));
}
@media (min-width: 960px) { .fd-bottom-nav { display: none; } }

.fd-nav-item {
    display: flex; flex-direction: column; align-items: center; gap: 1px;
    text-decoration: none; padding: 6px 10px; min-width: 52px;
}
.fd-nav-item svg { width: 20px; height: 20px; color: var(--fd-text-light); }
.fd-nav-item span { font-size: 10px; font-weight: 600; color: var(--fd-text-light); }
.fd-nav-item.active svg { color: var(--fd-accent); }
.fd-nav-item.active span { color: var(--fd-accent); }


/* ==================================================================
 * STICKY CTA (Calculator pages, mobile only)
 * ==================================================================*/
.fd-sticky-cta {
    position: fixed;
    bottom: 56px; /* above bottom nav */
    left: 0; right: 0;
    z-index: 999;
    background: var(--fd-card);
    border-top: 1px solid var(--fd-border);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    padding: 8px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    transform: translateY(120%);
    transition: transform 0.25s ease;
}
.fd-sticky-cta.is-visible { transform: translateY(0); }
.fd-sticky-cta span { font-size: 13px; font-weight: 600; color: var(--fd-text-mid); }
.fd-sticky-cta__btn {
    background: var(--fd-accent); color: #fff !important; font-weight: 700; font-size: 13px;
    padding: 10px 20px; border-radius: var(--fd-radius-xs); text-decoration: none !important;
    white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center;
}
.fd-sticky-cta__btn:hover { background: var(--fd-accent-dark); }
@media (min-width: 960px) { .fd-sticky-cta { display: none !important; } }


/* ==================================================================
 * FOOTER
 * ==================================================================*/
.fd-footer {
    background: #1a1a17;
    color: #b5b4af;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 56px; /* above bottom nav on mobile */
}
@media (min-width: 960px) { .fd-footer { margin-bottom: 0; } }

.fd-footer a { color: #d4d3cf; text-decoration: none; }
.fd-footer a:hover { color: #fff; text-decoration: underline; }

.fd-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top section: Brand + link columns */
.fd-footer-top {
    padding: 40px 0 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 768px) {
    .fd-footer-top {
        grid-template-columns: 280px 1fr;
        gap: 48px;
    }
}

.fd-footer-brand { }

.fd-footer-logo {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none !important; margin-bottom: 12px;
}
.fd-footer-logo-icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: var(--fd-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--fd-font-display); font-weight: 800; font-size: 13px;
}
.fd-footer-logo-text {
    font-family: var(--fd-font-display); font-weight: 800; font-size: 18px;
    color: #fff; letter-spacing: -0.02em;
}

.fd-footer-tagline {
    font-size: 13px;
    color: #8e8d88;
    margin: 12px 0 16px;
    line-height: 1.5;
}

.fd-footer-trust-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--fd-radius-xs);
    padding: 8px 12px;
    font-size: 12px;
    color: #a3a29e;
    line-height: 1.4;
}
.fd-footer-trust-badge svg { flex-shrink: 0; color: var(--fd-success); }

/* Link columns */
.fd-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (min-width: 768px) {
    .fd-footer-links {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

.fd-footer-heading {
    font-family: var(--fd-font);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8e8d88;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.fd-footer-col ul { list-style: none; margin: 0; padding: 0; }
.fd-footer-col li { margin-bottom: 6px; }
.fd-footer-col a {
    font-size: 13px;
    color: #b5b4af;
    display: inline-block;
    padding: 2px 0;
}
.fd-footer-col a:hover { color: #fff; }

/* Disclaimer bar */
.fd-footer-disclaimer {
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 0;
    font-size: 12px;
    color: #6e6d69;
    line-height: 1.6;
}

/* Bottom bar */
.fd-footer-bottom {
    padding: 16px 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6e6d69;
}
.fd-footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.fd-footer-legal a { color: #6e6d69; font-size: 12px; }
.fd-footer-legal a:hover { color: #b5b4af; }


/* ==================================================================
 * SMOOTH SCROLL + ACCESSIBILITY
 * ==================================================================*/
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
:focus-visible { outline: 2px solid var(--fd-accent); outline-offset: 2px; }
