@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&display=swap');

/* ==========================================================================
   Cover in Spain — design system
   Palette and class names preserved from the original; this file refines
   typography, depth, spacing, accent usage and interaction.
   ========================================================================== */

:root {
    /* Mediterranean teal (sea) + warm amber (sun) — the original brand, refined */
    --cis-primary: #1d4e89;
    --cis-primary-dark: #123462;
    --cis-accent: #d9673a;
    --cis-accent-dark: #a84a22;
    --cis-accent-soft: #fbece4;

    --cis-ink: #0f1d33;      /* headings */
    --cis-text: #29364a;     /* body */
    --cis-muted: #5b6779;    /* secondary text */

    --cis-bg-soft: #f4f7fb;
    --cis-border: #e2e8f1;

    --cis-shadow-sm: 0 1px 2px rgba(18, 52, 98, .04), 0 2px 8px rgba(18, 52, 98, .04);
    --cis-shadow-md: 0 6px 16px rgba(18, 52, 98, .06), 0 18px 40px rgba(18, 52, 98, .07);

    --cis-radius: 14px;
    --cis-radius-sm: 10px;

    --cis-display: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
    --cis-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--cis-text);
    font-family: var(--cis-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    width: 100%;
}

h1, h2, h3 {
    color: var(--cis-ink);
    letter-spacing: -0.01em;
}

/* --------------------------------------------------------------- Header / nav */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1020;
}

.site-header .navbar {
    backdrop-filter: saturate(1.4) blur(6px);
    background: rgba(255, 255, 255, .9) !important;
    border-bottom: 1px solid var(--cis-border) !important;
}

.navbar-brand {
    color: var(--cis-primary-dark) !important;
    font-family: var(--cis-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 500;
    color: var(--cis-text);
    position: relative;
}

/* animated underline on hover / active page */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: .5rem;
    right: .5rem;
    bottom: .35rem;
    height: 2px;
    background: var(--cis-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus { color: var(--cis-primary-dark); }

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-nav .nav-link.active { color: var(--cis-primary-dark); font-weight: 600; }

/* the CTA button in the nav should not show the underline */
.navbar-nav .nav-link.btn::after { display: none; }

/* --------------------------------------------------------------- Buttons */

.btn {
    border-radius: var(--cis-radius-sm);
    font-weight: 600;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

.btn-lg { padding: .7rem 1.4rem; }

.btn-primary {
    background-color: var(--cis-primary);
    border-color: var(--cis-primary);
    box-shadow: 0 4px 12px rgba(27, 107, 115, .25);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--cis-primary-dark);
    border-color: var(--cis-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(27, 107, 115, .32);
}

.btn-outline-primary {
    color: var(--cis-primary-dark);
    border-color: var(--cis-primary);
    background: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--cis-primary);
    border-color: var(--cis-primary);
    color: #fff;
    transform: translateY(-1px);
}

/* light button used on dark CTA band */
.cta-band .btn-light {
    color: var(--cis-primary-dark);
    font-weight: 700;
}
.cta-band .btn-light:hover,
.cta-band .btn-light:focus { transform: translateY(-1px); }

/* --------------------------------------------------------------- Eyebrow label */

.eyebrow,
.hero .text-uppercase {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: var(--cis-body);
    font-size: .8rem !important;
    font-weight: 700 !important;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cis-accent-dark) !important;
    margin-bottom: 1rem !important;
}

.eyebrow::before,
.hero .text-uppercase::before {
    content: "";
    width: 1.75rem;
    height: 2px;
    background: var(--cis-accent);
}

/* --------------------------------------------------------------- Hero */

.hero {
    position: relative;
    background:
        radial-gradient(120% 120% at 85% -10%, rgba(217, 103, 58, .10) 0%, rgba(217, 103, 58, 0) 45%),
        linear-gradient(160deg, #eef3fa 0%, #ffffff 60%);
    padding: 5.5rem 0 5rem;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 1px;
    background: var(--cis-border);
}

.hero h1 {
    font-family: var(--cis-display);
    font-size: clamp(2.3rem, 5vw, 3.85rem);
    line-height: 1.04;
    font-weight: 800;
    color: var(--cis-primary-dark);
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.hero .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--cis-muted);
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    margin-top: 2rem;
}

/* Optional hero side panel — see preview / markup snippet */
.hero-panel {
    background: #fff;
    border: 1px solid var(--cis-border);
    border-radius: var(--cis-radius);
    box-shadow: var(--cis-shadow-md);
    padding: 1.6rem 1.6rem 1.4rem;
}

.hero-panel h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cis-ink);
    margin-bottom: 1rem;
}

.hero-panel .hero-panel-foot {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--cis-border);
    font-size: .9rem;
    color: var(--cis-muted);
}

/* --------------------------------------------------------------- Sections */

.content-section { padding: 4.5rem 0; }

.content-section-soft {
    background: var(--cis-bg-soft);
    padding: 4.5rem 0;
}

.section-heading {
    max-width: 44rem;
    margin-bottom: 2.5rem;
}

.section-heading h2 {
    font-family: var(--cis-display);
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: var(--cis-primary-dark);
    letter-spacing: -0.02em;
}

.section-heading p { color: var(--cis-muted); font-size: 1.1rem; }

/* prose headings inside content columns */
.content-section h2,
.content-section-soft h2 {
    font-family: var(--cis-display);
    font-weight: 700;
    color: var(--cis-primary-dark);
}

/* --------------------------------------------------------------- Cards */

.service-card {
    height: 100%;
    border: 1px solid var(--cis-border);
    border-radius: var(--cis-radius);
    padding: 1.6rem;
    background: #fff;
    box-shadow: var(--cis-shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

/* lift only the cards that link somewhere */
.service-card:has(a):hover {
    transform: translateY(-3px);
    box-shadow: var(--cis-shadow-md);
    border-color: #d2dceb;
}

.service-card h3 {
    font-family: var(--cis-display);
    font-size: 1.2rem;
    color: var(--cis-primary-dark);
    font-weight: 700;
    margin-bottom: .6rem;
}

.service-card p { color: var(--cis-muted); }

.service-card > a {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    margin-top: .4rem;
    font-weight: 600;
    color: var(--cis-primary);
    text-decoration: none;
}

.service-card > a::after {
    content: "→";
    transition: transform .15s ease;
}

.service-card > a:hover { color: var(--cis-primary-dark); }
.service-card > a:hover::after { transform: translateX(3px); }

/* --------------------------------------------------------------- Numbered steps
   Add class "step-card" alongside "service-card" on the three
   "How it works" cards, and "step-grid" on their row, to turn them
   into a numbered sequence. */

.step-grid { counter-reset: step; }

/* number sits inline in a left gutter, beside the title */
.step-card h3 {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.step-card h3::before {
    counter-increment: step;
    content: counter(step);
    flex: 0 0 auto;
    width: 1.9rem;
    height: 1.9rem;
    margin-top: -0.1rem;          /* optically centre on the first line of the title */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--cis-accent-soft);
    color: var(--cis-accent-dark);
    font-family: var(--cis-display);
    font-weight: 800;
    font-size: .95rem;
}

/* align the body copy under the title text, clearing the gutter */
.step-card p { padding-left: 2.65rem; }

/* --------------------------------------------------------------- Check list */

.check-list { list-style: none; padding-left: 0; margin-bottom: 0; }

.check-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: .85rem;
    line-height: 1.5;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: .05em;
    width: 1.35rem;
    height: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(27, 107, 115, .1);
    color: var(--cis-primary);
    font-size: .8rem;
    font-weight: 800;
}

/* --------------------------------------------------------------- Notice box */

.notice-box {
    border: 1px solid #f2d3c3;
    border-left: 4px solid var(--cis-accent);
    background: var(--cis-accent-soft);
    padding: 1.1rem 1.35rem;
    border-radius: var(--cis-radius-sm);
    color: #6e3418;
}

.notice-box strong { color: #552612; }

/* --------------------------------------------------------------- CTA band */

.cta-band {
    background:
        radial-gradient(110% 140% at 90% 10%, rgba(217, 103, 58, .22) 0%, rgba(217, 103, 58, 0) 50%),
        var(--cis-primary-dark);
    color: #fff;
    padding: 3.75rem 0;
}

.cta-band h2 {
    font-family: var(--cis-display);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.cta-band p { color: rgba(255, 255, 255, .85); font-size: 1.1rem; }

/* --------------------------------------------------------------- Forms */

.insurance-form { max-width: 44rem; }

.form-control, .form-select {
    border-radius: var(--cis-radius-sm);
    border-color: var(--cis-border);
    padding: .65rem .85rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--cis-primary);
    box-shadow: 0 0 0 .2rem rgba(27, 107, 115, .15);
}

/* --------------------------------------------------------------- Footer
   Normal document flow. The body is a flex column, so the footer sits at the
   bottom on short pages without position: fixed. (See _Layout.cshtml.css.) */

.footer {
    background: #0d1a2e;
    color: rgba(255, 255, 255, .72);
    padding: 3rem 0 2rem;
}

.footer a { color: #fff; }

.footer-brand strong {
    font-family: var(--cis-display);
    font-size: 1.15rem;
    color: #fff;
}

.footer-brand p {
    margin: .45rem 0 0;
    max-width: 22rem;
    color: rgba(255, 255, 255, .65);
}

.footer-heading {
    font-family: var(--cis-body);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
    margin-bottom: .9rem;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li { margin-bottom: .55rem; }

.footer-nav a {
    color: rgba(255, 255, 255, .82);
    text-decoration: none;
}

.footer-nav a:hover,
.footer-nav a:focus { color: #fff; text-decoration: underline; }

.footer-base {
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .55);
}

/* --------------------------------------------------------------- A11y / motion */

a:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
    outline: 3px solid rgba(217, 103, 58, .55);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
}

@media (max-width: 991.98px) {
    .hero { padding: 3.5rem 0 3rem; }
    .content-section, .content-section-soft { padding: 3rem 0; }
}

/* --------------------------------------------------------------- Calculator */

.calc-card {
    background: #fff;
    border: 1px solid var(--cis-border);
    border-radius: var(--cis-radius);
    box-shadow: var(--cis-shadow-md);
    padding: 1.75rem;
}

.calc-card h2 { font-size: 1.35rem; }

.calc-results table { width: 100%; }

.calc-results td {
    padding: .55rem 0;
    border-bottom: 1px solid var(--cis-border);
    vertical-align: top;
}

.calc-results td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.calc-results .calc-total td {
    font-weight: 700;
    color: var(--cis-ink);
    border-bottom: 0;
    padding-top: .9rem;
    font-size: 1.1rem;
}

.calc-results .calc-note { display: block; font-size: .85rem; color: var(--cis-muted); }

.fx-highlight {
    background: var(--cis-accent-soft);
    border: 1px solid #f2d3c3;
    border-radius: var(--cis-radius-sm);
    padding: 1.1rem 1.25rem;
    margin-top: 1.25rem;
}

.fx-highlight strong { color: var(--cis-accent-dark); }

/* --------------------------------------------------------------- Guide pages */

.guide-body h2 { margin-top: 2.5rem; }
.guide-body h3 { margin-top: 1.5rem; font-size: 1.2rem; }

.step-list { counter-reset: step; list-style: none; padding-left: 0; }

.step-list > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 1.5rem 3.25rem;
}

.step-list > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    background: var(--cis-primary);
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-list > li h3 { margin-top: .2rem; }

.toc-card ul { padding-left: 1.1rem; margin-bottom: 0; }
.toc-card li { margin-bottom: .4rem; }

.disclosure { font-size: .9rem; color: var(--cis-muted); }
