/* ============================================================
   Faaleoleo Theme – Homepage styles
   ============================================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f172a;
    --secondary: #7B2FBD;
    --accent: #591F8E;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

/* ── Header ─────────────────────────────────────────────── */
header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0.75rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
}

.logo-image {
    max-width: 280px;
    width: 200%;
    height: auto;
    object-fit: contain;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    margin: 0 1.5rem;
    transition: color 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
}

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

nav a.nav-current {
    color: var(--secondary);
}

.cta-button {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(123, 47, 189, 0.4);
}

.featured-read-btn {
    background: #7B2FBD;
}

.featured-read-btn:hover {
    box-shadow: 0 8px 20px rgba(123, 47, 189, 0.4);
}

/* ── Hamburger ──────────────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Sections ───────────────────────────────────────────── */
section {
    padding: 3rem 2rem;
    border-bottom: 1px solid #e2e8f0;
}

section:nth-child(odd) {
    background: white;
}

section:nth-child(even) {
    background: #f8fafc;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-dark);
}

.section-sub {
    text-align: center;
    color: #64748b;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.pricing-highlight {
    color: #7B2FBD;
    font-weight: 700;
    font-size: 1.2rem;
}

/* ── Hero ───────────────────────────────────────────────── */
section.hero {
    padding: 6rem 2rem;
    text-align: center;
    background: linear-gradient(160deg, #2D0D5C 0%, #591F8E 55%, #7B2FBD 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.secondary-button {
    border: 2px solid rgba(255, 255, 255, 0.65);
    color: white;
    background: transparent;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ── Challenge list (why section) ───────────────────────── */
.challenges-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.challenge-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #7B2FBD;
    border-radius: 0 0.75rem 0.75rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.challenge-item:hover {
    box-shadow: 0 4px 12px rgba(123, 47, 189, 0.12);
}

.challenge-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #7B2FBD;
    min-width: 2rem;
    line-height: 1;
    padding-top: 0.15rem;
}

.challenge-body h3 {
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
    font-weight: 700;
}

.challenge-body p {
    color: #475569;
    font-size: 0.95rem;
    margin: 0;
}

/* ── Feature cards ──────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(123, 47, 189, 0.15);
}

.feature-card h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: #475569;
    font-size: 0.95rem;
}

/* ── Highlight box ──────────────────────────────────────── */
.why-section {
    background: linear-gradient(135deg, rgba(89, 31, 142, 0.06), rgba(123, 47, 189, 0.06));
    border: 1px solid rgba(89, 31, 142, 0.2);
    border-radius: 1rem;
    padding: 3rem;
    margin: 2rem 0;
}

.why-section h3 {
    color: var(--secondary);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.15rem;
}

.why-section p {
    color: var(--text-dark);
}

/* ── Process steps ──────────────────────────────────────── */
.process-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    margin: 3rem 0;
}

.process-step:nth-child(even) {
    direction: rtl;
}

.process-step:nth-child(even) > * {
    direction: ltr;
}

.process-number {
    font-size: 3rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.process-step p {
    color: #475569;
}

.process-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 1rem;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ── Reliability stats ──────────────────────────────────── */
.reliability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.reliability-stat {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.reliability-stat .number {
    font-size: 2rem;
    color: var(--secondary);
    font-weight: 700;
}

.reliability-stat p {
    color: #475569;
    margin-top: 0.5rem;
}

/* ── Pricing ────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.pricing-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pricing-card.featured {
    border-color: var(--secondary);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(123, 47, 189, 0.2);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary);
}

.pricing-card .price {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-card .price-period {
    color: #64748b;
    font-size: 0.9rem;
}

.price-features {
    text-align: left;
    margin: 32px 0;
    list-style: none;
}

.price-features li {
    font-size: 18px;
    margin-bottom: 12px;
    list-style: none;
    padding-left: 28px;
    position: relative;
    color: #64748b;
    font-weight: 500;
}

.price-features li:before {
    content: "✓";
    color: var(--secondary);
    font-weight: 800;
    position: absolute;
    left: 0;
}

.pricing-card p {
    color: #64748b;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ── Add-on services ────────────────────────────────────── */
.addons-section {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(89, 31, 142, 0.1), rgba(123, 47, 189, 0.1));
    border: 2px solid rgba(89, 31, 142, 0.35);
    box-shadow: 0 8px 24px rgba(89, 31, 142, 0.12);
    border-radius: 1.25rem;
    padding: 2.5rem;
}

.addons-header {
    margin-bottom: 1.5rem;
}

.addons-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--secondary);
    font-size: 1.5rem;
    font-weight: 700;
}

.addons-header p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.addons-intro {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 1.5rem 0 0;
    color: #475569;
}

.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.addon-card {
    background: rgba(255, 255, 255, 0.75);
    padding: 1.5rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(89, 31, 142, 0.15);
    border-left: 3px solid #7B2FBD;
}

.addon-card h4 {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    color: #591F8E;
    font-size: 0.95rem;
}

.addon-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.pricing-faq-prompt {
    margin-top: 3rem;
    text-align: center;
}

.pricing-faq-prompt p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 0.75rem;
}

.pricing-faq-link {
    display: inline-block;
    color: #591F8E;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 1px solid rgba(89, 31, 142, 0.3);
    padding-bottom: 1px;
}

/* ── CTA section ────────────────────────────────────────── */
#cta {
    background: #F2E8FF;
    border: none;
}

.cta-section {
    background: linear-gradient(135deg, #591F8E, #7B2FBD);
    padding: 4rem 2rem;
    border-radius: 1rem;
    text-align: center;
    margin: 0;
}

.cta-section h2 {
    color: white;
    background: none;
    -webkit-text-fill-color: unset;
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ── Services section ───────────────────────────────────── */
.services-section {
    background: linear-gradient(135deg, rgba(89, 31, 142, 0.05), rgba(123, 47, 189, 0.05));
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2.5rem;
    margin: 2rem 0;
}

.services-section h3 {
    color: var(--secondary);
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.1rem;
}

.services-section p {
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.services-section strong {
    color: var(--text-dark);
}

/* ── Contact ────────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    text-align: center;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-item a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent);
}

.contact-item p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.contact-item input[type="email"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.contact-item input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(123, 47, 189, 0.1);
}

.contact-item .form-field {
    display: block !important;
    width: 100% !important;
}

.contact-item textarea {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 140px;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    font-size: 1rem !important;
    font-family: inherit !important;
    resize: vertical;
    margin-bottom: 1rem;
}

.contact-item textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(123, 47, 189, 0.1);
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
    background: var(--text-dark);
    border-top: 1px solid #e2e8f0;
    padding: 3rem 2rem;
    text-align: center;
    color: #94a3b8;
}

footer p {
    color: #94a3b8;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .process-step {
        grid-template-columns: 1fr;
    }

    .process-step:nth-child(even) {
        direction: ltr;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .hamburger {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem 2rem;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        z-index: 99;
    }

    nav.open {
        display: flex;
    }

    nav a {
        margin: 0;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 1rem;
    }

    nav a:last-child {
        border-bottom: none;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
}
