/* --- VARIABLES --- */
:root {
    --navy: #35364C;
    --navy-dark: #282838;
    --orange: #F29C76;
    --orange-hover: #e88b62;
    --orange-light: #fff5f1;
    --light-bg: #F9FAFB;
    --white: #ffffff;
    --text-grey: #4b5563;
    --text-light: #64748b;
    --border: #e5e7eb;
    --green: #22c55e;
}

/* --- RESET & GLOBAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--navy);
    background-color: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 800;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

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

.bg-dark {
    background-color: var(--navy);
    color: var(--white);
}

.text-orange {
    color: var(--orange);
}

/* --- TYPOGRAPHY UTILS --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-grey);
}

.sub-heading {
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

/* --- NAVBAR --- */
.navbar {
    background: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo-img {
    height: 45px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--navy);
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* --- BUTTONS --- */
.btn-primary {
    background: var(--orange);
    color: var(--navy);
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-block;
    border: 2px solid var(--orange);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(242, 156, 118, 0.35);
}

.btn-secondary {
    color: var(--navy);
    font-weight: 700;
    margin-left: 20px;
    padding: 14px 24px;
    border: 2px solid var(--navy);
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary i {
    margin-left: 6px;
    transition: transform 0.3s;
}

.btn-secondary:hover i {
    transform: translateX(4px);
}

/* --- HERO --- */
.hero {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f1 60%, #fde8db 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.badge {
    background: rgba(242, 156, 118, 0.2);
    color: #d35400;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 25px;
    color: var(--navy);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-grey);
    margin-bottom: 40px;
    max-width: 90%;
}

/* --- HERO CHART CARD --- */
.hero-chart-card {
    background: var(--white);
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(53, 54, 76, 0.12);
    border: 1px solid var(--border);
    max-width: 400px;
    margin: 0 auto;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
}

.chart-badge {
    background: rgba(34, 197, 94, 0.12);
    color: var(--green);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    display: inline-block;
    animation: livePulse 1.5s infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-chart-svg {
    width: 100%;
    display: block;
    margin-bottom: 16px;
}

.chart-bar {
    animation: barGrow 1s ease-out forwards;
    transform-origin: bottom;
}

.chart-line {
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: drawLine 1.5s ease-out 0.5s forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-metrics {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.chart-metric {
    flex: 1;
    text-align: center;
    padding: 10px 6px;
    background: var(--light-bg);
    border-radius: 8px;
}

.metric-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 800;
}

/* --- SERVICE DETAIL SECTIONS (UA & Retargeting) --- */
.service-detail-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.service-detail-section.reverse {
    direction: rtl;
}

.service-detail-section.reverse>* {
    direction: ltr;
}

.service-tag {
    display: inline-block;
    background: var(--orange-light);
    color: #d35400;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.82rem;
    margin-bottom: 16px;
}

.service-tag i {
    margin-right: 5px;
}

.service-detail-content h3 {
    font-size: 2.2rem;
    margin-bottom: 14px;
    color: var(--navy);
}

.service-lead {
    font-size: 1.05rem;
    color: var(--text-grey);
    margin-bottom: 30px;
    line-height: 1.7;
}

.service-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.service-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.service-feature>i {
    color: var(--orange);
    font-size: 1.1rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.service-feature h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--navy);
}

.service-feature p {
    font-size: 0.85rem;
    color: var(--text-grey);
    line-height: 1.5;
}

.service-detail-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-illustration {
    width: 100%;
    max-width: 380px;
}

/* --- STATS BAR (Item 7 — Restyled, moved up) --- */
.stats-bar {
    background: var(--navy);
    padding: 80px 0;
    text-align: center;
}

.stats-sub {
    display: inline-block;
    color: var(--orange);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.stats-tagline {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.stats-desc {
    color: #94a3b8;
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-box {
    background: rgba(255, 255, 255, 0.06);
    padding: 30px 20px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}

.stat-box:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--orange);
    transform: translateY(-4px);
}

.stat-box strong {
    display: block;
    font-size: 2.8rem;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-box span {
    font-weight: 600;
    color: #94a3b8;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- TRUST SECTION (Why Leading Brands Trust Us) --- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.trust-card {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.trust-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

.trust-icon {
    width: 56px;
    height: 56px;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.trust-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.trust-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- TICKER (Brands) --- */
.ticker-section {
    padding: 50px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.ticker-heading {
    text-align: center;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 30px;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: marquee 45s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 0 40px;
}

.ticker-item img {
    height: 45px;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: 0.3s;
}

.ticker-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* --- OPTIMIZATION ENGINE (Expanded) --- */
.optimization-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 20px;
}

.opt-card-expanded {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    padding: 36px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s;
}

.opt-card-expanded:hover {
    border-color: var(--orange);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.07);
}

.opt-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.opt-card-header .step-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
}

.opt-card-expanded h3 {
    color: white;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.opt-lead {
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.opt-features {
    list-style: none;
    padding: 0;
}

.opt-features li {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 14px;
    padding-left: 0;
    display: flex;
    gap: 8px;
}

.opt-features li i {
    color: var(--orange);
    margin-top: 4px;
    flex-shrink: 0;
}

.opt-features li strong {
    color: #e2e8f0;
}

/* --- WORLD MAP (Image + Markers) --- */
.map-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    background: var(--light-bg);
    border-radius: 20px;
    overflow: hidden;
    padding: 30px;
}

.world-map-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.85;
}

.map-markers {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
}

.map-marker {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.marker-dot {
    width: 16px;
    height: 16px;
    background: var(--orange);
    border: 2.5px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(242, 156, 118, 0.3);
    animation: markerPulse 2s infinite;
}

.marker-label {
    margin-top: 6px;
    background: var(--navy);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 5px;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

@keyframes markerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(242, 156, 118, 0.3);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(242, 156, 118, 0);
    }
}

/* --- TOAST NOTIFICATION --- */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 14px 28px;
    border-radius: 10px;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    z-index: 9999;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.toast-show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-success {
    background: linear-gradient(135deg, #2d8f5e, #27ae60);
}

.toast-error {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
}

/* --- INDUSTRIES GRID (Improved) --- */
.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.industry-card {
    flex: 0 1 calc(25% - 18px);
    min-width: 240px;
    background: var(--white);
    padding: 32px 28px;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    text-align: center;
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
}

.industry-icon {
    width: 60px;
    height: 60px;
    background: var(--orange-light);
    color: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.5rem;
    margin: 0 auto 18px auto;
    transition: all 0.3s;
}

.industry-card:hover .industry-icon {
    background: var(--orange);
    color: var(--white);
}

.industry-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--navy);
}

.industry-card p {
    font-size: 0.88rem;
    color: var(--text-grey);
    line-height: 1.5;
}

/* --- PARTNERS --- */
.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    align-items: center;
}

.partner-item img {
    height: 45px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
}

.partner-item img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- FOOTER (Improved — Item 11) --- */
footer {
    background: var(--navy-dark);
    color: white;
    padding-top: 0;
    position: relative;
}

.footer-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--orange), #d35400, var(--orange));
}

.footer-wrapper {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 1.2fr;
    gap: 50px;
    padding: 70px 0 50px 0;
}

.footer-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 24px;
}

.contact-details p {
    color: #94a3b8;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.contact-details i {
    width: 20px;
    margin-right: 8px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.92rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.footer-form-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-form-card h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
    color: var(--white);
}

.footer-form-card>p {
    color: #94a3b8;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    transition: border-color 0.3s;
}

input::placeholder,
textarea::placeholder {
    color: #64748b;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--orange);
}

select {
    color: #64748b;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

select option {
    color: var(--navy);
    background: var(--white);
}

.btn-full {
    width: 100%;
    padding: 13px;
    background: var(--orange);
    color: var(--navy);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}

.btn-full:hover {
    background: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 156, 118, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 22px;
    text-align: center;
    color: #475569;
    font-size: 0.85rem;
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 992px) {
    .optimization-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .service-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .hero-grid,
    .service-detail-section,
    .footer-wrapper {
        grid-template-columns: 1fr;
    }

    .service-detail-section.reverse {
        direction: ltr;
    }

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

    .nav-links {
        display: none;
    }

    .hero-visual {
        display: none;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .btn-secondary {
        margin-left: 0;
    }

    .service-detail-visual {
        order: -1;
    }

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

    .stats-tagline {
        font-size: 1.5rem;
    }

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

    .section {
        padding: 70px 0;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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