/* ── Homepage-specific styles ─────────────────────────────────
   Loaded AFTER dashboard.css which handles reset, header, nav,
   gradient-text, button base, and scroll-behavior.
   ──────────────────────────────────────────────────────────── */

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        hsla(214, 84%, 20%, 0.05) 0%,
        hsla(0, 0%, 100%, 1) 50%,
        hsla(142, 76%, 36%, 0.05) 100%);
    padding-top: 4.5rem;
}

.hero-content {
    text-align: center;
    max-width: 64rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--green-light);
    color: var(--text);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--muted);
    margin-bottom: 3rem;
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
}

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
}

.button-hero {
    background: linear-gradient(135deg, var(--blue-dark), hsl(214, 84%, 16%));
    color: white;
}

.button-hero:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.button-outline {
    background: transparent;
    color: var(--blue-dark);
    border: 2px solid var(--blue-dark);
}

.button-outline:hover {
    background: var(--blue-dark);
    color: white;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: box-shadow 0.3s ease;
}
.feature-card:hover { box-shadow: var(--shadow); }
.feature-card svg { color: var(--blue-dark); flex-shrink: 0; }
.feature-card h3 { font-weight: 600; color: var(--text); }
.feature-card p { font-size: 0.875rem; color: var(--muted); }

@media (min-width: 640px) {
    .hero-buttons { flex-direction: row; }
}
@media (min-width: 768px) {
    .hero-title { font-size: 4rem; }
    .hero-features { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
    .hero-title { font-size: 4.5rem; }
}

/* ── Services ─────────────────────────────────────────────── */
.services {
    padding: 6rem 0;
    background: hsla(210, 40%, 96%, 0.3);
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.section-header p { font-size: 1.125rem; color: var(--muted); max-width: 48rem; margin: 0 auto; }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: linear-gradient(145deg, hsla(0, 0%, 100%, 0.9), hsl(214, 25%, 97%));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all 0.3s ease;
}
.service-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.service-icon {
    width: 3rem; height: 3rem; border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1rem; transition: transform 0.3s ease;
}
.service-card:hover .service-icon { transform: scale(1.1); }
.service-icon.target  { background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid)); }
.service-icon.chart   { background: linear-gradient(135deg, var(--green), hsl(142, 60%, 45%)); }
.service-icon.pie     { background: linear-gradient(135deg, var(--blue-mid), var(--blue-dark)); }
.service-icon.trending{ background: linear-gradient(135deg, hsl(142, 60%, 45%), var(--green)); }
.service-icon svg { color: white; }

.service-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; transition: color 0.3s; }
.service-card:hover h3 { color: var(--blue-dark); }
.service-card p { color: var(--muted); margin-bottom: 1.5rem; }
.service-card ul { list-style: none; margin-bottom: 1.5rem; }
.service-card li {
    display: flex; align-items: center; gap: 0.5rem;
    margin-bottom: 0.5rem; font-size: 0.875rem; color: var(--muted);
}
.service-card li::before {
    content: ''; width: 6px; height: 6px;
    background: var(--blue-dark); border-radius: 50%; flex-shrink: 0;
}

.service-button {
    display: flex; align-items: center; gap: 0.5rem;
    width: 100%; padding: 0.75rem; background: transparent;
    color: var(--blue-dark); border: none; border-radius: var(--radius);
    font-weight: 500; cursor: pointer; font-family: inherit; font-size: .9rem;
    transition: background 0.3s;
}
.service-button:hover { background: hsla(214, 84%, 20%, 0.1); }

.cta-section {
    background: linear-gradient(135deg, hsla(214, 84%, 20%, 0.1), hsla(142, 76%, 36%, 0.1));
    border: 1px solid var(--border); border-radius: 1rem;
    padding: 2rem; text-align: center; max-width: 64rem; margin: 0 auto;
}
.cta-section h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1rem; }
.cta-section p { color: var(--muted); margin-bottom: 1.5rem; }

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .section-header h2 { font-size: 3rem; }
}
@media (min-width: 1024px) {
    .section-header h2 { font-size: 3.5rem; }
}

/* ── About ────────────────────────────────────────────────── */
.about { padding: 6rem 0; background: white; }

.about-grid { display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: center; }
.about-content h2 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.about-content > p { font-size: 1.125rem; color: var(--muted); margin-bottom: 2rem; line-height: 1.7; }

.benefits-list { margin-bottom: 2rem; }
.benefit-item { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.benefit-item svg { color: var(--green); flex-shrink: 0; }

.mission-card {
    background: linear-gradient(135deg, hsla(214, 84%, 20%, 0.05), hsla(142, 76%, 36%, 0.05));
    border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
}
.mission-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.75rem; }
.mission-card p { color: var(--muted); }

.values-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.value-card {
    background: linear-gradient(145deg, hsla(0, 0%, 100%, 0.9), hsl(214, 25%, 97%));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; transition: all 0.3s;
}
.value-card:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }

.value-icon {
    width: 3rem; height: 3rem;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; margin-bottom: 1rem;
}
.value-icon svg { color: white; }
.value-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.value-card p { color: var(--muted); }

@media (min-width: 1024px) {
    .about-grid { grid-template-columns: 1fr 1fr; }
    .about-content h2 { font-size: 3rem; }
}

/* ── Contact ──────────────────────────────────────────────── */
.contact { padding: 6rem 0; background: hsla(210, 40%, 96%, 0.3); }

.contact-grid {
    display: grid; grid-template-columns: 1fr; gap: 2rem;
    max-width: 72rem; margin: 0 auto;
}

.form-card {
    background: linear-gradient(145deg, hsla(0, 0%, 100%, 0.9), hsl(214, 25%, 97%));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 2rem; box-shadow: var(--shadow-lg);
}
.form-card h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 0.75rem; border: 1px solid var(--border);
    border-radius: var(--radius); background: white; font-family: inherit;
    font-size: 1rem; transition: border-color 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--blue-dark); }
.form-group textarea { resize: vertical; min-height: 120px; }
.full-width { width: 100%; justify-content: center; }

.contact-info { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

.contact-card {
    background: white; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.5rem; text-align: center; transition: box-shadow 0.3s;
}
.contact-card:hover { box-shadow: var(--shadow); }

.contact-icon {
    width: 3rem; height: 3rem;
    background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
    border-radius: var(--radius); display: flex; align-items: center;
    justify-content: center; margin: 0 auto 1rem;
}
.contact-icon svg { color: white; }
.contact-card h4 { font-weight: 600; margin-bottom: 0.5rem; }
.contact-card p { color: var(--muted); }

@media (min-width: 768px) { .form-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 2fr 1fr; } }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--text); color: white; padding: 3rem 0 1rem; }

.footer-content { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo p { color: hsla(0, 0%, 100%, 0.7); margin-top: 0.5rem; }

.footer-links { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-section h4 { font-weight: 600; margin-bottom: 1rem; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.5rem; }
.footer-section a { color: hsla(0, 0%, 100%, 0.7); text-decoration: none; transition: color 0.3s; }
.footer-section a:hover { color: white; }

.footer-bottom {
    border-top: 1px solid hsla(0, 0%, 100%, 0.1); padding-top: 1rem;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    font-size: .875rem;
}
.footer-legal { display: flex; gap: 1rem; }
.footer-legal a { color: hsla(0, 0%, 100%, 0.7); text-decoration: none; font-size: 0.875rem; transition: color 0.3s; }
.footer-legal a:hover { color: white; }

@media (min-width: 768px) {
    .footer-content { grid-template-columns: 2fr 1fr; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ── Success message ──────────────────────────────────────── */
.success-message {
    position: fixed; top: 2rem; right: 2rem;
    background: var(--green); color: white;
    padding: 1rem 1.5rem; border-radius: var(--radius);
    display: none; align-items: center; gap: 0.5rem;
    box-shadow: var(--shadow-lg); z-index: 1001;
}
.success-message.show { display: flex; animation: slideIn 0.3s ease; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}
