/* ═══════════════════════════════════════════
   OneBase — Design System & Styles
   Light mode | Black & White + #00a4b2 teal
   ═══════════════════════════════════════════ */

/* ── CSS Variables ── */
:root {
    --bg: #ffffff;
    --bg-alt: #f7f8fa;
    --text: #0a0a0a;
    --text-secondary: #3a3a3a;
    --text-muted: #6b6b6b;
    --accent: #00a4b2;
    --accent-hover: #008a96;
    --accent-light: #e6f7f8;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    --footer-bg: #0a0a0a;
    --footer-text: #a0a0a0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 50px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1100px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    opacity: 0;
    transition: opacity 0.4s ease;
}

body.loaded {
    opacity: 1;
}

img, svg {
    display: block;
    max-width: 100%;
}

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

/* ── Language Toggle ── */
[data-lang="en"] .lang-bn { display: none !important; }
[data-lang="bn"] .lang-en { display: none !important; }

/* ── Container ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    padding: 14px 32px;
    box-shadow: 0 2px 12px rgba(0, 164, 178, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 164, 178, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-whatsapp {
    background: #25D366;
    color: #ffffff;
    padding: 14px 32px;
    box-shadow: 0 2px 12px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

.btn-lg {
    font-size: 17px;
    padding: 16px 36px;
}

.btn-full {
    width: 100%;
}

.btn .btn-loading {
    display: none;
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loading {
    display: inline;
}

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo svg {
    flex-shrink: 0;
}

.nav-brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text);
}

/* ── Social Icons ── */
.nav-socials {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color var(--transition);
}

.nav-socials a:hover {
    color: var(--text);
}

/* ── Hero Section ── */
.hero {
    position: relative;
    padding: 140px 0 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-content {
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(36px, 5.5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 600px;
}

.hero-cta {
    margin-bottom: 20px;
}

.hero-note {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-accent {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 164, 178, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Section Titles ── */
.section-title {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 56px;
    color: var(--text);
}

/* ── Value Section ── */
.value {
    padding: 100px 0;
    background: var(--bg);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.value-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all var(--transition);
}

.value-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -2px;
}

.value-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.value-card p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

/* ── Steps Section ── */
.steps {
    padding: 100px 0;
    background: var(--bg-alt);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: calc(16.67% + 20px);
    right: calc(16.67% + 20px);
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(0, 164, 178, 0.3);
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.step p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 280px;
    margin: 0 auto;
}

/* ── CTA Section ── */
.cta-section {
    padding: 100px 0;
    background: var(--bg);
}

.cta-box {
    max-width: 540px;
    margin: 0 auto;
    text-align: center;
}

.cta-box h2 {
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 12px;
    color: var(--text);
}

.cta-sub {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

/* ── Form ── */
.lead-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 15px;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 164, 178, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.lead-form .btn {
    margin-top: 4px;
}

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

/* ── Form Success ── */
.form-success {
    display: none;
    text-align: center;
    padding: 32px 0;
    animation: fadeInUp 0.5s ease;
}

.form-success.visible {
    display: block;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.form-success h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.form-success p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── WhatsApp CTA ── */
.cta-whatsapp-section {
    padding-top: 8px;
}

.whatsapp-icon {
    flex-shrink: 0;
}

.cta-whatsapp-section .btn {
    font-size: 18px;
    padding: 18px 36px;
}

/* ── Footer ── */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 64px 0 32px;
}

.footer-top {
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.footer-offices {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.office h4 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.hq-badge {
    display: inline-block;
    background: var(--accent);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    vertical-align: middle;
    margin-left: 4px;
    letter-spacing: 0.5px;
}

.office p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--footer-text);
}

.footer-bottom {
    padding-top: 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--footer-text);
}

/* ── Fade-in Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive — Mobile First ── */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 30px;
        letter-spacing: -0.8px;
        word-spacing: 4px;
    }

    .hero h1 br {
        display: none;
    }

    .hero-sub {
        font-size: 16px;
        line-height: 1.75;
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        font-size: 17px;
        padding: 16px 24px;
        min-height: 52px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 5px 14px;
    }

    .hero-accent {
        width: 300px;
        height: 300px;
        top: -60px;
        right: -60px;
    }

    .section-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .value-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .value-card {
        padding: 24px 20px;
    }

    .value-number {
        font-size: 34px;
        margin-bottom: 10px;
    }

    .value-card h3 {
        font-size: 18px;
    }

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

    .value, .steps, .cta-section {
        padding: 60px 0;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .steps-grid::before {
        display: none;
    }

    .step-circle {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .step h3 {
        font-size: 16px;
    }

    .step p {
        font-size: 14px;
    }

    .cta-box {
        padding: 0 4px;
    }

    .cta-box h2 {
        font-size: 24px;
    }

    .cta-sub {
        font-size: 15px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 14px 16px;
    }

    .lead-form .btn {
        min-height: 52px;
        font-size: 16px;
    }

    .footer {
        padding: 48px 0 24px;
    }

    .footer-offices {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .footer-top {
        margin-bottom: 32px;
    }
}

@media (max-width: 420px) {
    .container {
        padding: 0 16px;
    }

    .navbar .container {
        height: 56px;
    }

    .nav-logo svg {
        width: 36px;
        height: 36px;
    }

    .nav-brand {
        font-size: 18px;
    }

    .hero {
        padding: 88px 0 48px;
    }

    .hero h1 {
        font-size: 26px;
        word-spacing: 3px;
    }

    .hero-sub {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .hero-cta .btn {
        font-size: 16px;
        padding: 15px 20px;
        min-height: 50px;
    }

    .hero-note {
        font-size: 13px;
    }

    .section-title {
        font-size: 22px;
        margin-bottom: 28px;
    }

    .value, .steps, .cta-section {
        padding: 48px 0;
    }

    .value-card {
        padding: 20px 16px;
    }

    .value-number {
        font-size: 30px;
    }

    .value-card h3 {
        font-size: 17px;
    }

    .step-circle {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }

    .cta-box h2 {
        font-size: 22px;
    }

    .footer-offices {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-bottom {
        padding-top: 24px;
    }
}

/* ── Bangla: Global Overrides ── */
[data-lang="bn"] .value-card p {
    display: none;
}

[data-lang="bn"] .hero h1 {
    line-height: 1.4;
}

/* ── Bangla Mobile: 80/20 Hero-Value Full-Screen ── */
@media (max-width: 768px) {
    /* Hero: 80% of screen, top-aligned, big readable text */
    [data-lang="bn"] .hero {
        min-height: calc((100svh - 56px) * 0.72);
        padding: 72px 0 10px;
    }

    [data-lang="bn"] .hero h1 {
        font-size: 30px;
        margin-bottom: 18px;
        line-height: 1.3;
    }

    [data-lang="bn"] .hero-sub {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 26px;
        color: #1a1a1a;
    }

    [data-lang="bn"] .hero-cta {
        margin-bottom: 0;
    }

    [data-lang="bn"] .hero-cta .btn {
        padding: 16px 28px;
        font-size: 18px;
        min-height: 54px;
    }

    /* Value: 20% compact strip */
    [data-lang="bn"] .value {
        padding: 10px 0 10px;
    }

    [data-lang="bn"] .section-title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    [data-lang="bn"] .value-grid {
        gap: 5px;
    }

    [data-lang="bn"] .value-card {
        padding: 8px 14px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    [data-lang="bn"] .value-number {
        font-size: 16px;
        margin-bottom: 0;
        flex-shrink: 0;
        line-height: 1;
    }

    [data-lang="bn"] .value-card h3 {
        font-size: 16px;
        margin-bottom: 0;
        font-weight: 400;
    }

    /* Hide descriptions */
    [data-lang="bn"] .value-card p {
        display: none;
    }

    /* Push footer off first screen */
    [data-lang="bn"] .footer {
        margin-top: auto;
    }
}

@media (max-width: 420px) {
    [data-lang="bn"] .hero {
        min-height: calc((100svh - 56px) * 0.70);
        padding: 66px 0 8px;
    }

    [data-lang="bn"] .hero h1 {
        font-size: 27px;
        margin-bottom: 16px;
    }

    [data-lang="bn"] .hero-sub {
        font-size: 17px;
        line-height: 1.65;
        margin-bottom: 22px;
    }

    [data-lang="bn"] .hero-cta .btn {
        padding: 15px 24px;
        font-size: 17px;
        min-height: 52px;
    }

    [data-lang="bn"] .value {
        padding: 8px 0 8px;
    }

    [data-lang="bn"] .section-title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    [data-lang="bn"] .value-grid {
        gap: 4px;
    }

    [data-lang="bn"] .value-card {
        padding: 7px 12px;
        gap: 8px;
    }

    [data-lang="bn"] .value-number {
        font-size: 14px;
    }

    [data-lang="bn"] .value-card h3 {
        font-size: 15px;
        font-weight: 400;
    }

    .nav-socials {
        gap: 12px;
    }

    .nav-socials svg {
        width: 16px;
        height: 16px;
    }
}
