/*
Theme Name: Takaful Emarat Landing Page
Description: A custom landing page theme for Takaful Emarat.
Author: Antigravity
Version: 1.0
*/

/* Foundational CSS and Tokens */
:root {
    --primary: #9C1F75;
    --primary-dark: #7A175B;
    --primary-gradient: linear-gradient(90deg, #E62272 0%, #9C1F75 100%);
    --bg-light: #F0F6FA;
    --bg-white: #FFFFFF;
    --text-main: #1D1D1F;
    --text-muted: #6E6E73;
    --border-color: #E5E5EA;
    --font-stack: 'Outfit', sans-serif;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(156, 31, 117, 0.15);
    --border-radius-lg: 24px;
    --border-radius-xl: 40px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.primary-color {
    color: var(--primary);
}

h1,
h2,
h3,
h4 {
    color: var(--text-main);
    line-height: 1.2;
    font-weight: 600;
}

p {
    color: #000;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    border: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    color: white;
    background: var(--primary-gradient);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(230, 34, 114, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.btn-small {
    padding: 10px 24px;
    font-size: 15px;
}

.btn-block {
    width: 100%;
    padding: 16px;
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 1px solid white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* Header Navbar */
.navbar {
    padding: 24px 0;
    background: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--primary);
    line-height: 1;
    text-transform: lowercase;
}

.logo h2 span {
    font-weight: 600;
}

.logo-white h2 {
    color: white;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    color: var(--primary);
    font-weight: 400;
}

.nav-links a:hover {
    opacity: 0.7;
}

.nav-cta .btn-primary {
    background: var(--primary-gradient);
    box-shadow: 0 4px 14px rgba(230, 34, 114, 0.3);
    border: none;
}

/* Hero Section */
.hero-wrapper {
    margin-top: 10px;
    margin-bottom: 80px;
    position: relative;
}

.hero-image-box {
    background: linear-gradient(to top, #9c1f75 -10%, rgba(0, 0, 0, 0.3) 40%), url('assets/hero_img.jpg') center/cover no-repeat;
    border-radius: 30px;
    padding: 60px 40px 160px;
    /* Leave space at bottom for overlapping form */
    position: relative;
    color: white;
    overflow: hidden;
    min-height: 800px;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    color: white;
    margin-bottom: 16px;
}

.hero-content .highlight {
    color: var(--primary);
    font-weight: 700;
}

.hero-content p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
}

.hero-disclaimer {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    max-width: 400px;
    line-height: 1.4;
}

/* Floating Badge */
.floating-badge {
    position: absolute;
    top: 60px;
    right: 60px;
    background: white;
    padding: 12px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: var(--shadow-md);
    z-index: 2;
    /*transform: rotate(3deg);*/
}

.badge-img {
    width: 200px;
    height: 120px;
    border-radius: 12px;
    object-fit: cover;
}

.badge-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-icon {
    background: var(--primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Overlapping Form */
.hero-form-box {
    background-color: #E2F2FF;
    border-top-left-radius: 60px;
    border-bottom-right-radius: 60px;
    padding: 60px;
    margin: -100px 40px 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 -15px 40px rgba(156, 31, 117, 0.15);
    /* primary color shadow bottom to top */
    display: flex;
    align-items: center;
    gap: 32px;
}

.form-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background-color: rgba(154, 22, 106, 0.05);
    /* very soft pink */
    border-radius: 50%;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.quote-form .btn-primary {
    background: var(--primary-gradient);
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(230, 34, 114, 0.3);
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-row>* {
    flex: 1;
}

/* Contact Form 7 Compatibility Fixes */
.wpcf7-form-control-wrap {
    display: block;
    flex: 1;
}

.quote-form br {
    display: none !important;
}

.quote-form p {
    margin: 0 !important;
    display: contents; /* Allows children of P to be direct flex children of form-row */
}

/* Ensure the form itself doesn't add unexpected spacing */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wpcf7-spinner {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

.form-input {
    flex: 1;
    padding: 18px 20px;
    border: 1px solid #D1D1D6;
    border-radius: 12px;
    font-family: inherit;
    font-size: 16px;
    color: var(--text-main);
    background: #F8F9FA;
    outline: none;
    transition: all 0.2s ease;
    width: 100%;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--bg-white);
    box-shadow: 0 0 0 4px rgba(156, 31, 117, 0.1);
}

.select-wrapper , .input-wrapper {
    flex: 1;
    position: relative;
}

.select-wrapper::after {
    content: "â–¼";
    font-size: 12px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
}

select.form-input {
    appearance: none;
    cursor: pointer;
}

.form-disclaimer {
    font-size: 12px;
    /*text-align: center;*/
    color: var(--text-muted);
    margin-top: 16px;
}

.form-disclaimer strong {
    color: var(--text-main);
}

/* Trust Section */
.trust-section {
    padding: 80px 0;
}

.section-title {
    font-size: 48px;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 16px;
    max-width: 750px;
    margin: 0 auto 60px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-card {
    background: var(--bg-light);
    border-radius: 20px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s;
}

.trust-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.trust-card h3 {
    font-size: 18px;
    margin-bottom: 12px;
}

.trust-card p {
    font-size: 14px;
}

/* Global CTA Banner */
.global-cta-section {
    padding: 40px 0;
}

.global-cta-banner {
    background: var(--primary-gradient);
    border-radius: 100px;
    padding: 40px;
    text-align: center;
}

.global-cta-banner h2 {
    color: white;
    font-size: 40px;
    margin: 0;
}

/* Key Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: linear-gradient(to bottom, #E8F0F6, #f9f6ee);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.benefit-card {
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    background: white;
    transition: box-shadow 0.3s;
}

.benefit-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.benefit-icon {
    background: var(--bg-light);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.benefit-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.benefit-card p {
    font-size: 15px;
    margin-bottom: 24px;
    min-height: 48px;
}

.benefit-list {
    list-style: none;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--text-main);
    font-weight: 500;
}

.benefit-list li span {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    border: 1px solid var(--primary);
}

/* Bottom Form Section */
.bottom-form-section {
    background: linear-gradient(to bottom, #FAFCFD, #f9f6ee);
    padding: 80px 0;
}

.badge-text-small {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: inline-block;
}

.bottom-form-text h2 {
    font-size: 48px;
    margin-bottom: 8px;
}

.bottom-form-text p {
    font-size: 20px;
    margin-bottom: 40px;
}

.bottom-form-box {
    background-color: #E2F2FF;
    border-top-left-radius: 60px;
    border-bottom-right-radius: 60px;
    padding: 40px;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* FAQ Section */
.faq-section {
    padding: 100px 24px;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.faq-image img {
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.faq-subtitle {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}

.faq-content h2 {
    font-size: 32px;
    margin-bottom: 40px;
    max-width: 500px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.accordion-item {
    border: 1px solid var(--primary);
    background-color: #E8F0F6;
    border-radius: 20px;
    padding: 10px;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.accordion-header h3 {
    font-size: 18px;
    font-weight: 500;
}

.toggle-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accordion-item.active .accordion-header {
    border-bottom: 1px solid var(--primary);
}

.accordion-item.active .toggle-btn {
    color: var(--primary);
}

.accordion-item.active h3 {
    color: var(--primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-body {
    max-height: 500px;
    opacity: 1;
    padding: 16px 0;
}

.accordion-body p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background: #8A1E65;
    /* Dark magenta */
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: end;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 40px;
    margin-bottom: 20px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.social-links {
    display: flex;
    gap: 24px;
}

.social-links a {
    color: white;
    opacity: 0.8;
}

.social-links a:hover {
    opacity: 1;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.footer-right h3 {
    color: white;
    font-size: 24px;
    font-weight: 400;
}

.footer-bottom {
    text-align: center;
    font-size: 14px;
    padding-top: 20px;
}

.footer-bottom p {
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .hero-content h1 {
        font-size: 36px;
    }

    .floating-badge {
        display: none;
        /* Hide floating badge on smaller screens */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .form-row {
        flex-direction: column;
    }

    .hero-form-box {
        margin: -60px 20px 0;
        padding: 24px;
        flex-direction: column;
    }

    .bottom-form-box {
        flex-direction: column;
    }

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

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

    .global-cta-banner h2 {
        font-size: 28px;
    }

    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(156, 31, 117, 0.3);
}

.scroll-top-btn:active {
    transform: translateY(-2px);
}