/*
 * TempCover — Dayinsure-Inspired Theme
 * Layout: narrow hero + trust badges, sidebar+grid features,
 *         horizontal timeline, full-width testimonial, FAQ, gradient CTA.
 * ──────────────────────────────────────────────────────────── */

/* ── Override variables ──────────────────────────── */
:root {
    --tc-primary: #00A5E1;
    --tc-primary-light: #33B5E8;
    --tc-primary-dark: #0090C5;
    --tc-secondary: #003287;
    --tc-accent: #96DCE6;
    --tc-accent-light: #B0E7EF;

    --tc-dark: #001F54;
    --tc-gray-900: #0A2540;
    --tc-gray-800: #1A3556;
    --tc-gray-700: #2D4A6C;
    --tc-gray-600: #4A6584;
    --tc-gray-500: #6B8099;
    --tc-gray-400: #94A7B8;
    --tc-gray-300: #B8C7D4;
    --tc-gray-200: #D6E0E8;
    --tc-gray-100: #EDF1F5;
    --tc-gray-50: #F5F8FA;

    --tc-shadow-primary: 0 4px 14px rgba(0, 165, 225, 0.25);
    --tc-shadow-primary-lg: 0 8px 25px rgba(0, 165, 225, 0.35);

    --tc-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── Global overrides ────────────────────────────── */
body.theme-dayinsure {
    background: var(--tc-gray-50);
    color: var(--tc-gray-900);
}

/* ── Header — white/light with blue accents ──────── */
body.theme-dayinsure .tc-header {
    background: #fff;
    border-bottom: 1px solid var(--tc-gray-200);
    box-shadow: 0 1px 8px rgba(0, 50, 135, 0.06);
}

body.theme-dayinsure .tc-header__brand-name {
    color: var(--tc-secondary);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
}

body.theme-dayinsure .tc-header__menu a {
    color: var(--tc-gray-700);
    font-weight: 500;
}

body.theme-dayinsure .tc-header__menu a:hover {
    color: var(--tc-primary);
}

body.theme-dayinsure .tc-header__cta {
    background: var(--tc-primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 10px 24px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 10px rgba(0, 165, 225, 0.3);
}

body.theme-dayinsure .tc-header__cta:hover {
    background: var(--tc-primary-dark) !important;
    box-shadow: 0 4px 16px rgba(0, 165, 225, 0.4);
}

/* Mobile toggle */
body.theme-dayinsure .tc-header__toggle span {
    background: var(--tc-secondary);
}

/* ── Buttons ─────────────────────────────────────── */
.di-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.2;
}

.di-btn--primary {
    background: var(--tc-primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 165, 225, 0.3);
}

.di-btn--primary:hover {
    background: var(--tc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 165, 225, 0.4);
    color: #fff;
}

.di-btn--outline {
    background: transparent;
    color: var(--tc-secondary);
    border: 2px solid var(--tc-secondary);
}

.di-btn--outline:hover {
    background: var(--tc-secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── Section labels ──────────────────────────────── */
.di-section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--tc-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.di-section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--tc-primary);
    border-radius: 1px;
}

.di-section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    color: var(--tc-secondary);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 0 0 16px;
}

.di-section-subtitle {
    font-size: 17px;
    color: var(--tc-gray-500);
    font-weight: 400;
    max-width: 560px;
    line-height: 1.6;
    margin: 0 0 48px;
}

/* ── Hero (narrow centered) ──────────────────────── */
.di-hero {
    position: relative;
    background: linear-gradient(170deg, #EDF6FC 0%, #F5FBFF 40%, #fff 100%);
    overflow: hidden;
    padding: 120px 24px 60px;
    text-align: center;
    color: var(--tc-gray-900);
}

.di-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 60%, rgba(150, 220, 230, 0.25) 0%, rgba(0, 165, 225, 0.08) 40%, transparent 70%);
    pointer-events: none;
}

.di-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
}

.di-hero__title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 0 0 20px;
    color: var(--tc-secondary);
}

.di-hero__title span {
    display: block;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-dark), var(--tc-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.di-hero__subtitle {
    font-size: 17px;
    font-weight: 400;
    color: var(--tc-gray-600);
    max-width: 520px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

.di-hero__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ── Trust badges row ────────────────────────────── */
.di-trust-badges {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--tc-gray-200);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.di-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--tc-gray-200);
    border-radius: 100px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--tc-gray-700);
    white-space: nowrap;
    box-shadow: 0 1px 4px rgba(0, 50, 135, 0.04);
}

.di-trust-badge svg {
    color: var(--tc-primary);
    flex-shrink: 0;
}

/* ── Features (sidebar + 2-col grid) ─────────────── */
.di-features {
    padding: 100px 24px;
    background: #fff;
}

.di-features__inner {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 64px;
    align-items: start;
}

.di-features__sidebar {
    position: sticky;
    top: 100px;
}

.di-features__sidebar-text {
    font-size: 16px;
    color: var(--tc-gray-600);
    line-height: 1.65;
    margin: 0 0 28px;
}

.di-features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.di-feature-card {
    background: var(--tc-gray-50);
    border: 1px solid var(--tc-gray-200);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.di-feature-card:hover {
    border-color: rgba(0, 165, 225, 0.3);
    box-shadow: 0 8px 28px rgba(0, 50, 135, 0.08);
    transform: translateY(-4px);
}

.di-feature-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 165, 225, 0.08), rgba(150, 220, 230, 0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--tc-primary);
}

.di-feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--tc-secondary);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.di-feature-card p {
    font-size: 15px;
    color: var(--tc-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ── Timeline (horizontal numbered with chevrons) ── */
.di-timeline-section {
    padding: 100px 24px;
    background: var(--tc-secondary);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.di-timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(0, 165, 225, 0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 50%, rgba(150, 220, 230, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.di-timeline-section__inner {
    max-width: 1120px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.di-timeline-section__header {
    text-align: center;
    margin-bottom: 60px;
}

.di-timeline-section__header .di-section-label {
    color: var(--tc-accent);
    justify-content: center;
}

.di-timeline-section__header .di-section-label::before {
    background: var(--tc-accent);
}

.di-timeline-section__header .di-section-title {
    color: #fff;
}

.di-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.di-timeline__step {
    flex: 1;
    max-width: 240px;
    text-align: center;
    padding: 0 16px;
}

.di-timeline__number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-accent));
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(0, 165, 225, 0.3);
}

.di-timeline__step h3 {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.di-timeline__step p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.55;
    margin: 0;
}

.di-timeline__chevron {
    display: flex;
    align-items: center;
    padding-top: 16px;
    color: var(--tc-accent);
    flex-shrink: 0;
}

/* ── Testimonial banner (full-width blockquote) ──── */
.di-testimonial-banner {
    padding: 100px 24px;
    background: var(--tc-gray-50);
    text-align: center;
}

.di-testimonial-banner__inner {
    max-width: 800px;
    margin: 0 auto;
}

.di-testimonial-banner__stars {
    color: #F59E0B;
    font-size: 24px;
    letter-spacing: 4px;
    margin-bottom: 28px;
}

.di-testimonial-banner__quote {
    margin: 0 0 32px;
    padding: 0;
    border: none;
}

.di-testimonial-banner__quote p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--tc-gray-700);
    line-height: 1.7;
    font-style: italic;
    margin: 0;
}

.di-testimonial-banner__author {
    font-size: 18px;
    font-weight: 800;
    color: var(--tc-secondary);
}

.di-testimonial-banner__role {
    font-size: 14px;
    color: var(--tc-gray-500);
    margin-top: 4px;
}

/* ── FAQ (centered accordion) ────────────────────── */
.di-faq {
    padding: 100px 24px;
    background: #fff;
}

.di-faq__inner {
    max-width: 720px;
    margin: 0 auto;
}

.di-faq__header {
    text-align: center;
    margin-bottom: 48px;
}

.di-faq__header .di-section-label {
    justify-content: center;
}

.di-faq__header .di-section-title {
    text-align: center;
}

.di-faq__header .di-section-subtitle {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.di-faq__item {
    border-bottom: 1px solid var(--tc-gray-200);
}

.di-faq__item:first-child {
    border-top: 1px solid var(--tc-gray-200);
}

.di-faq__question {
    padding: 20px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--tc-secondary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.di-faq__question::-webkit-details-marker { display: none; }

.di-faq__question::after {
    content: '+';
    font-size: 22px;
    font-weight: 400;
    color: var(--tc-primary);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.di-faq__item[open] .di-faq__question::after {
    content: '\2212';
}

.di-faq__answer {
    padding: 0 0 20px;
}

.di-faq__answer p {
    font-size: 15px;
    color: var(--tc-gray-600);
    line-height: 1.65;
    margin: 0;
}

/* ── CTA (gradient) ──────────────────────────────── */
.di-cta {
    padding: 100px 24px;
    background: linear-gradient(135deg, var(--tc-primary), var(--tc-primary-dark), var(--tc-secondary));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.di-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.di-cta__inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.di-cta__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.di-cta__subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 36px;
    line-height: 1.6;
}

.di-cta .di-btn--primary {
    background: #fff;
    color: var(--tc-secondary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.di-cta .di-btn--primary:hover {
    background: var(--tc-gray-50);
    color: var(--tc-secondary);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

/* ── Footer ──────────────────────────────────────── */
body.theme-dayinsure .tc-footer {
    background: var(--tc-secondary);
    color: rgba(255, 255, 255, 0.55);
    border-top: 1px solid rgba(0, 165, 225, 0.2);
}

body.theme-dayinsure .tc-footer__brand {
    color: #fff;
}

body.theme-dayinsure .tc-footer__col h4 {
    color: rgba(255, 255, 255, 0.85);
}

body.theme-dayinsure .tc-footer__col a {
    color: rgba(255, 255, 255, 0.5);
}

body.theme-dayinsure .tc-footer__col a:hover {
    color: var(--tc-accent);
}

body.theme-dayinsure .tc-footer__bottom {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.35);
}

body.theme-dayinsure .tc-footer__fca,
body.theme-dayinsure .tc-footer__reg {
    color: rgba(255, 255, 255, 0.3);
}

/* ── Buttons — global override ───────────────────── */
body.theme-dayinsure .tc-btn--primary {
    background: var(--tc-primary);
    box-shadow: var(--tc-shadow-primary);
    border-radius: 8px;
}

body.theme-dayinsure .tc-btn--primary:hover {
    background: var(--tc-primary-dark);
    box-shadow: var(--tc-shadow-primary-lg);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .di-features__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .di-features__sidebar {
        position: static;
        text-align: center;
    }
    .di-features__sidebar .di-section-label { justify-content: center; }
    .di-features__sidebar .di-section-title { text-align: center; }
    .di-features__sidebar-text { max-width: 560px; margin-left: auto; margin-right: auto; }
    .di-timeline { flex-wrap: wrap; gap: 16px; }
    .di-timeline__chevron { display: none; }
    .di-timeline__step { max-width: 45%; flex: 0 0 45%; }
}

@media (max-width: 768px) {
    .di-hero { padding: 90px 20px 50px; }
    .di-hero__title { font-size: clamp(1.8rem, 6vw, 2.6rem); }
    .di-hero__subtitle { font-size: 16px; }
    .di-features { padding: 60px 20px; }
    .di-timeline-section { padding: 80px 20px; }
    .di-testimonial-banner { padding: 80px 20px; }
    .di-cta { padding: 80px 20px; }
    .di-faq { padding: 80px 20px; }
    .di-trust-badges { gap: 8px; }
}

@media (max-width: 600px) {
    .di-features__grid { grid-template-columns: 1fr; }
    .di-timeline__step { max-width: 100%; flex: 0 0 100%; }
    .di-hero { padding: 70px 16px 40px; }
    .di-hero__actions { flex-direction: column; align-items: center; }
    .di-btn { width: 100%; max-width: 320px; }
    .di-feature-card { padding: 24px; }
    .di-section-title { font-size: clamp(1.5rem, 5vw, 2rem); }
    .di-trust-badge { padding: 8px 14px; font-size: 12px; }
}

@media (max-width: 480px) {
    .di-trust-badges { gap: 6px; }
    .di-timeline__number { width: 44px; height: 44px; font-size: 20px; }
    .di-testimonial-banner__quote p { font-size: 1rem; }
}
