/* assets/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand Colors extracted from reference */
    --primary-blue: #004E8F;
    /* Deep Royal Blue */
    --accent-orange: #F25A23;
    /* Vibrant Orange */
    --accent-teal: #00A99D;
    /* Success Teal */

    /* Text Colors */
    --text-main: #1A202C;
    --text-light: #4A5568;
    --white: #ffffff;

    /* Backgrounds */
    --bg-light: #F0F8FF;
    /* Very light blue tint */
    --bg-white: #ffffff;

    /* System */
    --font-main: 'Poppins', sans-serif;
    --container-width: 1200px;
    --transition: all 0.3s ease;
    --shadow-soft: 0 10px 40px -10px rgba(0, 78, 143, 0.15);
    --shadow-hover: 0 20px 50px -10px rgba(0, 78, 143, 0.25);
    --radius-main: 12px;
    --radius-pill: 50px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary-blue);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
    padding: 0.5rem 0;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Professional Logo Style */
.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: capitalize;
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo span {
    color: var(--accent-orange);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn-primary) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-light);
    position: relative;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary-blue);
}

.nav-links .active {
    color: var(--primary-blue) !important;
    font-weight: 600;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-blue);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 4px 14px 0 rgba(0, 78, 143, 0.39);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 78, 143, 0.23);
    background-color: #003b6e;
    border-color: #003b6e;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-blue);
    padding: 0.85rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
}

/* Sections */
.section-padding {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-title h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Card Style */
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-main);
    border: 1px solid #eef2f6;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: #dbeafe;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.eyebrow {
    display: inline-block;
    background-color: rgba(242, 90, 35, 0.1);
    color: var(--accent-orange);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--primary-blue);
}

.text-highlight {
    color: var(--accent-orange);
    position: relative;
    display: inline-block;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Trust Indicators */
.trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
    background: white;
    display: inline-flex;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.avatars {
    display: flex;
}

.avatars img,
.avatars div {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -12px;
}

.avatars div:first-child {
    margin-left: 0;
}

.stars {
    color: var(--accent-orange);
    font-weight: 700;
    letter-spacing: 2px;
}

/* Industry Icons */
.industry-card {
    text-align: center;
    padding: 2.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-main);
    transition: var(--transition);
}

.industry-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.industry-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

/* CTA Band */
.cta-band {
    background-color: var(--primary-blue);
    color: var(--white);
    text-align: center;
    padding: 6rem 0;
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.cta-band .btn-primary {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    color: var(--white);
}

.cta-band .btn-primary:hover {
    background-color: #d94e1d;
    border-color: #d94e1d;
}

/* Footer */
footer {
    background: #0B1120;
    color: #e2e8f0;
    padding: 5rem 0 2rem;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-brand h3 span {
    color: var(--primary-blue);
}

.footer-brand p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 300px;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #fff;
    text-decoration: none;
}

.social-icon:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a,
.footer-links p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-orange);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: #64748b;
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    color: #fff;
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--dark-text);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-blue);
    font-weight: 400;
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: #555;
    line-height: 1.6;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    margin: 0;
}

/* Case Study Specific Styles */
.case-study-hero {
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
    padding: 6rem 0 4rem;
    text-align: center;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.metric-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-main);
    box-shadow: var(--shadow-soft);
    text-align: center;
    border: 1px solid #eef2f6;
}

.metric-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.challenge-list li,
.solution-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.challenge-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 800;
}

.solution-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 800;
}

.step-box {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-main);
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 1.5rem;
}

.step-box h4 {
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.mockup-container {
    background: #f1f5f9;
    padding: 4rem 2rem;
    border-radius: var(--radius-main);
    text-align: center;
    margin: 3rem 0;
    border: 2px dashed #cbd5e1;
}

.mockup-placeholder {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.portfolio-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-main);
    margin-bottom: 1.5rem;
}

/* Blog & News Styles */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.news-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: var(--transition);
}

.news-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
}

.news-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.news-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.news-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.blog-card {
    background: white;
    border-radius: var(--radius-main);
    overflow: hidden;
    border: 1px solid #eef2f6;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.blog-img-placeholder {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: var(--bg-light);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-category {
    font-size: 0.8rem;
    color: var(--accent-orange);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.read-more {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9rem;
}

.read-more:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {

    .news-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {

    .news-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================================
   CRITICAL MOBILE FIXES
   ========================================= */

/* 1. Prevent Horizontal Scroll Globally */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 2. Global Image Constrain */
img {
    max-width: 100%;
    height: auto;
    display: block;
    /* Prevents inline spacing issues */
}

/* 3. Mobile Container & Layout Fixes */
@media (max-width: 768px) {

    /* Ensure containers don't burst */
    .container {
        width: 100%;
        padding: 0 20px;
        overflow-x: hidden;
    }

    /* Fix Grid Overflow - FORCE FLEX COLUMN */
    .grid-2,
    .grid-3,
    .grid-4 {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
        grid-template-columns: none !important;
    }

    /* Ensure grid children take full width */
    .grid-2>div,
    .grid-3>div,
    .grid-4>div {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix Mockup Containers */
    .mockup-container {
        width: 100%;
        padding: 1.5rem 1rem;
        margin: 2rem 0;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mockup-img {
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain;
        height: auto;
    }

    .metric-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Fix Typography sizes that might cause widening */
    .hero h1 {
        font-size: 2.2rem;
        word-wrap: break-word;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    /* Fix Specific Card overflow */
    .card,
    .step-box,
    .pricing-card {
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-btns {
        flex-direction: column;
        gap: 1rem;
    }
}