/* =========================================
   Home Page Styles (home.css)
   ========================================= */

/* ===== Hero ===== */
.home-hero {
    background: linear-gradient(135deg, #0a2a5e 0%, #1a4ba0 60%, #2563eb 100%);
    color: #fff;
    padding: 5.5rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.home-hero-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.home-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.03em;
}
.home-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.home-hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: rgba(255,255,255,0.92);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}
.home-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.home-cta-primary {
    background: #fff !important;
    color: #0a2a5e !important;
    font-weight: 800;
}
.home-cta-primary:hover {
    background: #f8fafc !important;
    transform: translateY(-2px);
}
.home-hero-trust {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* ===== Trust Bar ===== */
.trust-bar {
    background: #fff;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}
.trust-bar-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}
.trust-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.trust-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.trust-text strong {
    color: var(--gray-900);
    font-size: 0.95rem;
}
.trust-text span {
    color: var(--gray-600);
    font-size: 0.82rem;
}

/* ===== Home Service Cards ===== */
.home-services-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
}
.home-service-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
    display: flex;
    flex-direction: column;
}
.home-service-card:hover {
    box-shadow: 0 8px 28px rgba(37,99,235,0.12);
    transform: translateY(-3px);
    border-color: #93c5fd;
    color: inherit;
}
.home-service-card-featured {
    border: 2px solid var(--accent);
    background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
}
.home-service-icon {
    font-size: 2.2rem;
    margin-bottom: 0.9rem;
}
.home-service-card h3 {
    font-size: 1.15rem;
    color: var(--gray-900);
    margin-bottom: 0.6rem;
}
.home-service-card p {
    color: var(--gray-600);
    font-size: 0.93rem;
    line-height: 1.65;
    margin-bottom: 1rem;
    flex: 1;
}
.home-service-link {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.9rem;
}

/* ===== Problems Grid ===== */
.problems-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
}
.problem-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover {
    box-shadow: 0 6px 22px rgba(37,99,235,0.08);
    transform: translateY(-2px);
}
.problem-icon {
    font-size: 2.2rem;
    margin-bottom: 0.85rem;
}
.problem-card h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 0.6rem;
}
.problem-card p {
    color: var(--gray-600);
    font-size: 0.93rem;
    line-height: 1.65;
}

/* ===== Quiz ===== */
.quiz-section {
    background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
}
.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 40px rgba(10,42,94,0.08);
}
.quiz-progress {
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    margin-bottom: 2rem;
    overflow: hidden;
}
.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #60a5fa);
    border-radius: 3px;
    width: 20%;
    transition: width 0.3s ease;
}
.quiz-question {
    display: none;
}
.quiz-question.active {
    display: block;
    animation: quizFadeIn 0.35s ease;
}
@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.quiz-q-number {
    font-size: 0.82rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.quiz-question h3 {
    font-size: 1.4rem;
    color: var(--gray-900);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}
.quiz-q-hint {
    color: var(--gray-600);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.quiz-option {
    text-align: left;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    color: var(--gray-800);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.18s ease;
    font-family: inherit;
}
.quiz-option:hover {
    border-color: var(--accent);
    background: #eff6ff;
    transform: translateX(4px);
}

/* Quiz Result */
.quiz-result {
    text-align: center;
}
.quiz-score-circle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #1a4ba0);
    color: #fff;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(37,99,235,0.3);
}
.quiz-score-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}
.quiz-score-max {
    font-size: 1rem;
    opacity: 0.85;
}
.quiz-result h3 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}
.quiz-result p {
    color: var(--gray-700);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.quiz-result-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-outline-dark {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    background: transparent;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.btn-outline-dark:hover {
    background: var(--gray-100);
    border-color: var(--gray-500);
}

/* ===== Testimonial Preview ===== */
.testimonial-preview-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
}
.testimonial-preview-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem;
    box-shadow: 0 2px 12px rgba(10,42,94,0.05);
}
.testimonial-stars {
    font-size: 1.1rem;
    margin-bottom: 0.85rem;
    letter-spacing: 0.1em;
}
.testimonial-preview-card p {
    color: var(--gray-700);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.97rem;
}
.testimonial-author {
    font-weight: 700;
    color: var(--gray-900);
    font-size: 0.9rem;
}

/* ===== Contact Form Section ===== */
.contact-section {
    background: #fff;
}
.contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3.5rem;
    padding: 0 1.5rem;
    align-items: start;
}
.contact-info .section-eyebrow {
    display: block;
    margin-bottom: 0.5rem;
}
.contact-info h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: var(--gray-900);
    margin-bottom: 0.85rem;
    line-height: 1.2;
}
.contact-info > p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.75rem;
}
.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.contact-info-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.contact-info-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.contact-info-item strong {
    display: block;
    color: var(--gray-900);
    font-size: 0.92rem;
    margin-bottom: 0.15rem;
}
.contact-info-item a,
.contact-info-item span {
    color: var(--gray-600);
    font-size: 0.95rem;
    text-decoration: none;
}
.contact-info-item a:hover {
    color: var(--accent);
}

/* Form */
.contact-form {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.form-row label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
}
.form-req { color: #dc2626; }
.form-opt { color: var(--gray-500); font-weight: 400; font-size: 0.82rem; }
.form-row input,
.form-row textarea,
.form-row select {
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.97rem;
    font-family: inherit;
    background: #fff;
    color: var(--gray-900);
    transition: border-color 0.18s, box-shadow 0.18s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}
.btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
    margin-top: 0.5rem;
}
.form-disclaimer {
    font-size: 0.82rem;
    color: var(--gray-500);
    text-align: center;
    margin: 0;
}

/* ===== Apps Promo ===== */
.apps-promo-section { background: var(--gray-50); }
.apps-promo-card {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0a0f1e 0%, #111827 100%);
    border: 1px solid #1e2d45;
    border-radius: 16px;
    padding: 2.5rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.apps-promo-left h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin: 0.4rem 0 0.65rem;
    line-height: 1.2;
}
.apps-promo-left p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0;
    max-width: 480px;
}
.apps-promo-btn {
    display: inline-block;
    background: #10b981;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.85rem 1.75rem;
    border-radius: 10px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
    flex-shrink: 0;
}
.apps-promo-btn:hover { background: #059669; transform: scale(1.03); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .home-hero { padding: 3.5rem 1.25rem 3.5rem; }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .quiz-container { padding: 1.75rem 1.25rem; }
    .quiz-question h3 { font-size: 1.2rem; }
    .form-row-split { grid-template-columns: 1fr; }
    .home-hero-trust { gap: 0.85rem; font-size: 0.85rem; }
    .apps-promo-card { flex-direction: column; align-items: flex-start; }
    .apps-promo-btn { width: 100%; text-align: center; }
}
