/*
 * Main stylesheet for the KYC Verification landing page.
 * This file defines the colour palette, typography and layout
 * to create a modern, professional look that is also responsive
 * and accessible. Use semantic HTML elements and descriptive
 * class names in conjunction with these styles for best SEO practices.
 */

/* Root variables for easy theming */
:root {
    --primary-colour: #0d47a1;
    --secondary-colour: #1976d2;
    --accent-colour: #64b5f6;
    --text-colour: #333;
    --background-light: #f5f5f5;
    --card-background: #ffffff;
    --shadow-colour: rgba(0, 0, 0, 0.05);
}

/* Global resets */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-colour);
    background-color: #fff;
    overflow-x: hidden;
}

/* Hero section with background overlay */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    position: relative;
}

/* Navigation bar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-colour);
}

/* Hero content */
.hero-content h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 50px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: var(--secondary-colour);
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    box-shadow: 0 8px 15px rgba(25, 118, 210, 0.2);
}

.cta-button:hover {
    background-color: var(--primary-colour);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(13, 71, 161, 0.25);
}

/* Sections */
.section {
    padding: 90px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section.light {
    background-color: var(--background-light);
}

.section h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--primary-colour);
}

/* Steps, benefits and FAQ layout */
.steps, .benefits, .faq {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.step, .benefit, .question {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 280px;
    background-color: var(--card-background);
    padding: 30px 25px 35px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-colour);
    position: relative;
    overflow: hidden;
}

/* accent bar on top of cards */
.step::before, .benefit::before, .question::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary-colour);
}

/* Icon styles */
.step .icon, .benefit .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-colour);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(25, 118, 210, 0.25);
}

/* Increase separation between heading and text inside cards */
.step h3, .benefit h3, .question h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-colour);
    font-weight: 600;
}

.step p, .benefit p, .question p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

/* The duplicate card styles have been removed to avoid overriding the primary definitions above. */

/* Footer */
footer {
    background-color: var(--primary-colour);
    color: #fff;
    text-align: center;
    padding: 25px 20px;
    font-size: 0.9rem;
}

/* Responsive styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }
    .steps, .benefits, .faq {
        flex-direction: column;
    }
    .step, .benefit, .question {
        flex: 1 1 100%;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1rem;
    }
}