/* Costeva Homepage - Clean, modern, trustworthy */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --bg: #f8fafc;
    --card: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* Persistent nav: hamburger + slide-out panel */
.nav-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1002;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.2s, box-shadow 0.2s;
}
.nav-toggle:hover {
    background: #fff;
    box-shadow: var(--shadow-lg);
}
.nav-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.nav-overlay.nav-overlay-open {
    opacity: 1;
    visibility: visible;
}

.nav-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1001;
    width: 260px;
    max-width: 85vw;
    background: var(--card);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
    transform: translateX(-100%);
    transition: transform 0.25s ease-out;
    overflow: auto;
}
.nav-panel.nav-panel-open {
    transform: translateX(0);
}
.nav-panel-inner {
    padding: 72px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.nav-label {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.nav-link {
    display: block;
    padding: 12px 16px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius);
    transition: background 0.2s, color 0.2s;
}
.nav-link:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
}

.nav-group {
    margin-top: 6px;
}
.nav-group-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    border-radius: var(--radius);
    text-align: left;
}
.nav-group-toggle:hover {
    color: var(--primary);
}
.nav-group-chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    margin-left: 8px;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.nav-group-expanded .nav-group-chevron {
    transform: rotate(180deg);
}
.nav-group-content {
    display: none;
    padding-left: 12px;
}
.nav-group-expanded .nav-group-content {
    display: block;
}

.nav-sublink {
    padding: 10px 16px 10px 28px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
    padding: 24px 20px;
    background: var(--card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.header-logo {
    display: inline-block;
    line-height: 0;
}

.header-logo img {
    display: block;
    width: 148px;
    height: 52px;
    object-fit: contain;
}

/* Main */
main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px 48px;
}

/* Ad spaces – only show when real ad code is present (no blank boxes on live) */
.ad-container {
    margin: 0;
    min-height: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: var(--card);
    border-radius: var(--radius);
    padding: 12px;
}

.ad-container:has(ins.adsbygoogle) {
    display: flex;
    margin: 16px 0;
    min-height: 90px;
}

.ad-container ins.adsbygoogle {
    display: block;
}

/* Hero – banner image + overlay, two-column, typography aligned to mock */
.hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 58vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px 52px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    background-color: #0f172a;
    background-image: url(assets/hero-banner.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(30, 58, 138, 0.4) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.hero-content {
    text-align: center;
    max-width: 720px;
    flex: 1 1 400px;
}

.hero-top-line {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero h1 {
    font-size: clamp(2.35rem, 5.5vw, 3.35rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-headline-ray {
    width: 100%;
    max-width: 420px;
    height: 1px;
    margin: 14px auto 20px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 20%, rgba(255, 255, 255, 0.65) 50%, rgba(255, 255, 255, 0.4) 80%, transparent 100%);
    border-radius: 1px;
}

.hero-subtext {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 26px;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-subtext-main {
    font-weight: 600;
    font-size: 1.08rem;
}

.hero-subtext-light {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
}

.hero-tax-note {
    font-size: 0.88rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    line-height: 1.5;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-cta-btn {
    display: inline-block;
    padding: 14px 28px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary);
    background: #fff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-cta-btn:focus {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* Floating cost summary card */
.hero-card-wrap {
    flex: 0 0 auto;
}

.hero-cost-card {
    width: 280px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: hero-card-float 4s ease-in-out infinite;
}

@keyframes hero-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hero-card-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.hero-card-monthly {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.hero-card-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 0 14px;
}

.hero-card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hero-card-row:last-child {
    margin-bottom: 0;
}

.hero-card-label {
    font-size: 0.85rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}

.hero-card-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary);
}

.hero-card-row:last-child .hero-card-icon {
    color: #ca8a04;
}

.hero-card-bar {
    flex: 1;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.hero-card-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.hero-card-fill-blue {
    background: var(--primary);
}

.hero-card-fill-yellow {
    background: #ca8a04;
}

/* Hero mobile: stack vertically, auto height */
@media (max-width: 799px) {
    .hero {
        min-height: 0;
        padding: 40px 20px 44px;
    }

    .hero-top-line {
        letter-spacing: 0.14em;
        font-size: 0.82rem;
    }

    .hero h1 {
        font-size: clamp(1.9rem, 8vw, 2.5rem);
    }

    .hero-inner {
        flex-direction: column;
        gap: 32px;
    }

    .hero-content {
        order: 1;
    }

    .hero-card-wrap {
        order: 2;
    }

    .hero-cost-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Sections */
.section {
    padding: 40px 0;
    border-top: 1px solid var(--border);
}

.section-alt {
    background: rgba(37, 99, 235, 0.04);
    margin: 0 -20px;
    padding: 40px 20px;
}

@media (min-width: 700px) {
    .section-alt {
        margin: 0 calc(-50vw + 50%);
        padding: 40px max(20px, calc(50vw - 500px));
    }
}

.section-intro {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 720px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.section-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 16px;
    font-style: italic;
}

/* Section titles */
.section-heading-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.section-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, 0.12);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon svg {
    width: 22px;
    height: 22px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* Country cards */
.section-calculators {
    padding-top: 24px;
}

.calculators-section {
    padding: 16px 0 40px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

.card {
    display: block;
    background: var(--card);
    border: 2px solid rgba(37, 99, 235, 0.18);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: left;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

.card .card-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
}

.card:hover .card-link {
    color: var(--primary-hover);
}

.card.coming-soon {
    opacity: 0.85;
}

.card.coming-soon .card-link {
    color: var(--text-muted);
}

.cards-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

/* Feature list (what makes us different) – icon + text cards */
.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px 20px;
    margin: 0 0 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: var(--card);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.4;
}

.feature-item-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary);
    border-radius: 10px;
}

.feature-item-icon svg {
    width: 22px;
    height: 22px;
}

.feature-item-text {
    padding-top: 2px;
}

/* Legacy feature-grid (e.g. planned section) */
.feature-grid {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px 24px;
}

.feature-grid li {
    position: relative;
    padding-left: 24px;
    color: var(--text);
    font-size: 0.95rem;
}

.feature-grid li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Callout (weekly formula) */
.callout {
    background: var(--card);
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 20px 0;
    text-align: center;
}

.callout-formula p {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    font-family: ui-monospace, monospace;
}

/* Expense grid */
.expense-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 20px 0 0;
}

@media (min-width: 600px) {
    .expense-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .expense-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 32px;
    }
}

.expense-item {
    background: var(--card);
    border-radius: var(--radius);
    padding: 16px 20px;
    border: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.expense-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.expense-item-content {
    flex: 1;
    min-width: 0;
}

.expense-label {
    display: block;
    font-weight: 700;
    color: var(--primary);
    font-size: 1rem;
    margin-bottom: 6px;
}

.expense-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Pill list (who is it for) */
.pill-list {
    list-style: none;
    margin: 16px 0 20px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill-list li {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.95rem;
    color: var(--text);
}

/* Methodology list */
.methodology-list {
    margin: 16px 0 20px;
    padding-left: 24px;
    color: var(--text-muted);
    max-width: 640px;
}

.methodology-list li {
    margin-bottom: 10px;
    line-height: 1.5;
}

/* Disclaimer */
.disclaimer {
    background: rgba(245, 158, 11, 0.08);
    border: 2px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius);
    padding: 24px 28px;
    margin: 40px 0;
}

.disclaimer-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.disclaimer-list {
    margin: 0;
    padding-left: 22px;
    color: var(--text);
    font-size: 0.95rem;
}

.disclaimer-list li {
    margin-bottom: 6px;
}

/* CTA section */
.section-cta {
    text-align: center;
    padding: 48px 0;
}

/* Center heading (icon + title) as one unit so it doesn’t look off */
.section-cta .section-heading-wrap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-left: auto;
    margin-right: auto;
}

.section-cta .section-intro {
    margin-left: auto;
    margin-right: auto;
}

.cta-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 24px 0 16px;
}

.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.2s;
}

.cta-btn:hover {
    background: var(--primary-hover);
}

.cta-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Content sections (contact etc) */
.content-section {
    padding: 32px 0;
    border-top: 1px solid var(--border);
}

.content-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.content-section p {
    color: var(--text-muted);
    margin-bottom: 12px;
    max-width: 720px;
}

.content-section ul {
    margin: 12px 0 0 20px;
    color: var(--text-muted);
}

.content-section li {
    margin-bottom: 6px;
}

/* Disclaimer */
.disclaimer {
    background: rgba(37, 99, 235, 0.06);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin: 32px 0;
}

.disclaimer p {
    font-size: 0.9rem;
    color: var(--text);
    margin: 0;
}

/* Contact */
.contact-section {
    padding: 32px 0;
}

.contact-section a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 32px 20px;
    border-top: 2px solid rgba(37, 99, 235, 0.2);
    background: var(--card);
    margin-top: 24px;
}

.site-footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.site-footer .tagline {
    margin-top: 4px;
    color: var(--primary);
    font-weight: 500;
    opacity: 0.9;
}

.site-footer .tagline a {
    color: inherit;
}

.site-footer .tagline a:hover {
    text-decoration: underline;
}

.site-footer p.footer-keywords,
.footer-keywords {
    margin-top: 20px;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.85;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-align: center !important;
    display: block;
}
