/* Global Styles */
:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --text-color: #374151;
    --text-light: #6b7280;
    --bg-color: #f8fafc;
    --bg-section: #e2e8f0;
    --white: #ffffff;
    --accent-color: #2c5282;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    margin-bottom: 0.5em;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    font-weight: 500;
    color: var(--primary-color);
}

nav a:hover {
    color: var(--primary-light);
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    font-weight: 500;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-dropdown-trigger::after {
    content: '▾';
    font-size: 0.75rem;
}

.nav-dropdown-trigger:hover {
    color: var(--primary-light);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    flex-direction: column;
    gap: 0;
    z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
}

.nav-dropdown-menu li {
    padding: 0;
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    color: var(--primary-color);
}

.nav-dropdown-menu a:hover {
    background: var(--bg-color);
    color: var(--primary-light);
}

/* Sections */
section {
    padding: 4rem 5%;
}

/* Hero Section - Centered */
.hero {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    background: 
        linear-gradient(rgba(248, 250, 252, 0.82), rgba(248, 250, 252, 0.88)),
        url('/images/BackgroundRafale.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-content h1 strong {
    color: var(--primary-color);
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 0;
    font-weight: 600;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Founder Section */
.founder-section {
    background-color: var(--white);
    padding: 3rem 5%;
}

.founder-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.founder-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.founder-bio h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.founder-role {
    font-weight: 400;
    color: var(--text-light);
}

.founder-bio p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.founder-linkedin {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.founder-linkedin:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .founder-content {
        flex-direction: column;
        text-align: center;
    }
    
    .founder-photo {
        width: 140px;
        height: 140px;
    }
}

/* Profile Section */
.profile-section {
    background-color: var(--bg-section);
    text-align: center;
    padding: 4rem 5%;
}

.profile-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.profile-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background-color: var(--white);
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    border: 2px solid transparent;
    overflow: hidden;
}

.profile-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-light);
}

.profile-icon {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 0;
    object-fit: cover;
    margin-bottom: 0;
}

.profile-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    padding: 1rem;
}

/* Responsive: 2x2 grid on tablet */
@media (max-width: 900px) {
    .profile-buttons {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Responsive: 1 column on mobile */
@media (max-width: 500px) {
    .profile-buttons {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 5%;
    background-color: var(--primary-color);
    color: var(--white);
    margin-top: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.contact-links a {
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid var(--white);
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.contact-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

footer p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-legal {
    margin-bottom: 1rem;
}

.footer-legal a {
    color: var(--white);
    opacity: 0.7;
    font-size: 0.85rem;
}

.footer-legal a:hover {
    opacity: 1;
}

/* Legal Page */
.legal-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 5%;
}

.legal-page h1 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.legal-page h2 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.legal-page p {
    margin-bottom: 1rem;
}

.legal-page a {
    color: var(--primary-light);
    text-decoration: underline;
}

.legal-page ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-page li {
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 4rem 5%;
    background: 
        linear-gradient(rgba(248, 250, 252, 0.85), rgba(248, 250, 252, 0.90)),
        url('/images/BackgroundRafale.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

.contact-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    max-width: 500px;
    width: 100%;
}

.contact-page h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 2rem;
}

.contact-intro {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Honeypot field - hidden from users, bots will fill it */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.85rem 1rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(44, 82, 130, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #9ca3af;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .cta-button {
    width: 100%;
    text-align: center;
    cursor: pointer;
    border: none;
    margin-top: 0.5rem;
    padding: 1rem 2rem;
}

.contact-form .cta-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-success {
    padding: 1rem;
    background-color: #d1fae5;
    color: #065f46;
    border-radius: 0;
    text-align: center;
    font-weight: 500;
}

.form-error {
    padding: 1rem;
    background-color: #fee2e2;
    color: #991b1b;
    border-radius: 0;
    text-align: center;
}

@media (max-width: 600px) {
    .contact-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .contact-page h1 {
        font-size: 1.6rem;
    }
}

/* ─── Persona Pages ──────────────────────────────────────────────── */

/* Persona Hero */
.persona-hero {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.persona-hero-content {
    flex: 1;
}

.persona-hero-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.persona-hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.5;
}

.persona-hero-image {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Challenges Section */
.challenges-section {
    padding: 4rem 5%;
    background-color: var(--bg-section);
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Challenge Card */
.challenge-card {
    background: var(--white);
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.challenge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.challenge-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.challenge-card-body {
    padding: 1.5rem;
}

.challenge-card-title {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.challenge-card-punchline {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 1rem;
    font-style: italic;
}

.challenge-card-detail {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.challenge-card-detail p {
    margin: 0;
}

/* Solution Section */
.solution-section {
    padding: 4rem 5%;
    max-width: 900px;
    margin: 0 auto;
}

.solution-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.solution-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
}

.solution-content p {
    margin-bottom: 1rem;
}

.solution-content strong {
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 4rem 5%;
    background-color: var(--bg-section);
}

.cta-section-text {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
}

.cta-section-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.cta-button-secondary:hover {
    background-color: var(--accent-color);
    color: var(--white);
}

/* Cross Profile Navigation */
.cross-profile-nav {
    text-align: center;
    padding: 3rem 5%;
}

.cross-profile-label {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.cross-profile-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cross-profile-link {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.cross-profile-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ─── Persona Responsive ─────────────────────────────────────────── */

@media (max-width: 900px) {
    .persona-hero {
        flex-direction: column;
        text-align: center;
    }

    .persona-hero-image {
        width: 200px;
        height: 200px;
    }

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

    .persona-hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 500px) {
    .persona-hero-content h1 {
        font-size: 1.6rem;
    }

    .persona-hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-section-buttons {
        flex-direction: column;
        align-items: center;
    }
}
