/* ===============================
   Global styles
================================== */

/* TT Drugs Font Family */
@font-face {
    font-family: 'TT Drugs';
    src: url('../fonts/tt-drugs/TT Drugs Trial Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #31325d;
    --secondary-color: #f8d57e;
    --accent-color: #1abc9c;
    --light-bg: #f5f5f5;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --border-radius: 35px;
}

/* NAVBAR adjustments (keep or merge with existing .navbar rule) */
.navbar {
    background-color: #1d1c5e; /* keep brand navy */
    padding: 12px 0;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar .navbar-brand img {
    height: 44px; /* adjust to taste */
}

/* Nav links */
.navbar .nav-link {
    color: rgba(255,255,255,1) !important;
    margin-right: 8px;
    font-weight: 600;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #f9d66c;
}

/* Dropdown caret color */
.navbar .dropdown-toggle::after {
    color: rgba(255,255,255,0.9);
}

/* Download button already styled as .btn-download; ensure spacing */
.navbar .btn-download {
    background-color: #f9d66c;
    color: #1d1c5e;
    border-radius: 30px;
    padding: 8px 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

/* Slight elevation on scroll (optional JS-free visual when navbar is fixed) */
.navbar.scrolled {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    background-color: rgba(29,28,94,0.98);
}

/* ===== Sticky (fixed-top) option =====
   If you want the navbar to stay at top while scrolling,
   change <nav class="navbar ..."> to:
   <nav class="navbar navbar-expand-md navbar-dark fixed-top">
   ALSO: add padding-top to body equal to navbar height (approx 72px)
*/
body.has-fixed-navbar {
    padding-top: 72px; /* match navbar height to avoid content jump */
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
    .navbar .nav-link {
        padding: 8px 0;
    }
    .navbar .btn-download {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

body {
    font-family: 'TT Drugs', 'Helvetica Neue', Arial, sans-serif;
    color: #1c1c1c;
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
}

section {
    padding: 80px 0;
}

/* ===============================
   Navbar
================================== */
.navbar {
    background-color: #1d1c5e;
    padding: 20px 0;
}

.navbar-brand img {
    height: 40px;
}

.navbar .btn-download {
    background-color: #f9d66c;
    color: #1d1c5e;
    border-radius: 30px;
    font-weight: 600;
    padding: 8px 20px;
}

.navbar .btn-download i {
    margin-right: 5px;
}

/* ===============================
   Hero section
================================== */
.hero {
    background-color: #1d1c5e;
    color: #fff;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-top: 15px;
    color: #e0e0e0;
}

.hero .store-buttons {
    background-color: #ffffff;
    color: #1d1c5e;
    border-radius: 30px;
    padding: 15px 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center; /* ✅ centers content horizontally */
    text-align: center;
    width: 100%; /* ensures full width on small screens (optional redundancy) */
}

/* Image inside the button */
.hero .store-buttons img {
    height: 30px;
    margin-right: 10px;
}

.hero .phones img {
    max-width: 250px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ===============================
   Library section
================================== */
.library-section {
    background: #fff;
}

.library-section h2 {
    color: #222;
    font-weight: 700;
    margin-bottom: 25px;
}

.library-section p {
    font-size: 1rem;
    color: #555;
}

.library-feature {
    background: #FFFFFF;
    border: 1px solid #E5F4F2;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    transition: all 0.3s ease;
}

.library-feature .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 10px;
}

/* Colored icon backgrounds (same concept as BAC section) */
.library-feature .icon-circle {
    background: rgba(0, 147, 121, 0.15);
    color: rgba(0, 147, 121, 1); /* green */
}

/* Phone mockup */
.library-section .phone-wrapper {
    position: relative;
    display: inline-block;
}

.library-section .circle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    background: #fcd669;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.library-section .phone-image {
    max-width: 100%;
    position: relative;
    z-index: 2;
}

/* ============================
   BAC Section (Elmouyasser BAC)
============================ */
.bac-section {
    background: #fff;
}

.bac-section h2 {
    color: #222;
    font-weight: 700;
    margin-bottom: 25px;
}

.bac-section p {
    font-size: 1rem;
    color: #555;
}

.feature-box {
    background: #FFFFFF;
    border: 1px solid #E5F4F2;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
    font-weight: 500;
    transition: all 0.3s ease;
}

.feature-box .icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-right: 10px;
}

/* Colored icon backgrounds (same concept as BAC section) */
.feature-box .icon-circle {
    background: rgba(0, 147, 121, 0.15);
    color: rgba(0, 147, 121, 1); /* green */
}

/* Phone mockup */
.bac-section .phone-wrapper {
    position: relative;
    display: inline-block;
}

.bac-section .circle-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 240px;
    height: 240px;
    background: #fcd669;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.bac-section .phone-image {
    max-width: 100%;
    position: relative;
    z-index: 2;
}

/* ============================
   How It Works Section
============================ */
.how-it-works {
    background: #fcd669;
    padding: 80px 0;
}

.how-it-works h3 {
    font-size: 1.75rem;
    color: #222;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

.how-card {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
    text-align: center;
    padding: 40px 25px;
    transition: all 0.3s ease;
    height: 100%;
}

.how-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.how-card .icon-box {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
}

/* Specific icon colors and backgrounds (based on your design) */
.how-card .icon-box-1 {
    background: rgba(230, 57, 70, 0.15);
    color: rgba(230, 57, 70, 1); /* red icon */
}

.how-card .icon-box-2 {
    background: rgba(0, 147, 121, 0.15);
    color: rgba(0, 147, 121, 1); /* green */
}

.how-card .icon-box-3 {
    background: rgba(248, 213, 126, 0.15);
    color: rgba(248, 213, 126, 1)
}

.how-card h5 {
    font-weight: 700;
    color: #1d1c5e;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.how-card p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .how-card {
        margin-bottom: 20px;
    }
}


/* ===============================
   Testimonials
================================== */
.testimonials {
    background-color: #fff;
}

.testimonials h2 {
    font-weight: 700;
    color: #1d1c5e;
    margin-bottom: 40px;
    text-align: center;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.testimonial-card i {
    color: #f9d66c;
    margin-right: 3px;
}

/* ===============================
   Contact
================================== */
.contact-section {
    background-color: var(--light-bg);
    padding: 80px 0;
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
    border-radius: 0 0 0 100%;
    opacity: 0.1;
    z-index: 0;
}

.contact-wrapper {
    background-color: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 1;
}

.contact-info {
    padding-right: 2rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    white-space: nowrap;         /* Prevents text from wrapping */
    overflow-x: auto;            /* Enables horizontal scroll if too long */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: none;       /* Hide scrollbar for Firefox */
}

.contact-item::-webkit-scrollbar {
    display: none;               /* Hide scrollbar for Chrome/Safari */
}

.contact-item i {
    margin-right: 10px;
    flex-shrink: 0;              /* Prevents icon from shrinking */
    color: rgba(0, 147, 121, 1);
}

.contact-item span {
    display: inline-block;
}

.social-links p {
    font-weight: 700;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--light-bg);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: #f0c856;
    transform: translateY(-4px);
}

.social-icon svg {
    width: 20px;
    height: 20px;
}

.contact-form {
    padding-left: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(26, 188, 156, 0.1);
}

.btn-send {
    background-color: var(--secondary-color) !important;
    color: var(--text-dark) !important;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-send:hover {
    background-color: #f0c856 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(248, 213, 126, 0.3);
}

/* ===============================
   Footer
================================== */
footer {
    background-color: #1d1c5e;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

footer a {
    color: #f9d66c;
    margin-left: 10px;
}

footer a:hover {
    text-decoration: underline;
}

/* ===============================
   Responsive tweaks
================================== */
@media (max-width: 767px) {
    .hero {
        text-align: center;
    }

    .hero .phones {
        margin-top: 30px;
    }

    .library-section .feature-item,
    .bac-section .feature-item {
        justify-content: center;
    }

    .how-it-works .step {
        margin-bottom: 25px;
    }

    .contact-section form {
        text-align: center;
    }
}
