/* ============================================
   BG Tel SMS - Professional Dark Theme v2.0
   Date: 2026-06-04
   ============================================ */

:root {
    /* Core Colors */
    --primary: #C41E3A;
    --primary-dark: #8B1538;
    --primary-glow: rgba(196, 30, 58, 0.2);
    --primary-light: rgba(196, 30, 58, 0.1);
    --accent: #F87171;

    /* Dark Theme */
    --bg-base: #0B0F19;
    --bg-elevated: #111827;
    --bg-card: #151B2B;
    --bg-card-hover: #1A2235;
    --bg-light: #F1F5F9;

    /* Text */
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    --text-dark: #0F172A;

    /* Borders */
    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-red: rgba(196, 30, 58, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(196, 30, 58, 0.15);
    --shadow-glow-hover: 0 0 60px rgba(196, 30, 58, 0.25);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --container: 1200px;
    --section-pad: 100px;

    /* Success */
    --success: #10B981;
    --warning: #F59E0B;

    /* Animation */
    --transition-fast: 200ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}

html[data-theme="light"] {
    --bg-base: #F8FAFC;
    --bg-elevated: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #F1F5F9;
    --bg-light: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-dark: #0F172A;
    --border: rgba(15, 23, 42, 0.12);
    --border-light: rgba(15, 23, 42, 0.18);
    --border-red: rgba(196, 30, 58, 0.35);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.08);
    --shadow-md: 0 8px 32px rgba(15, 23, 42, 0.12);
    --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.16);
    --shadow-glow: 0 0 40px rgba(196, 30, 58, 0.12);
    --shadow-glow-hover: 0 0 60px rgba(196, 30, 58, 0.18);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    background: var(--bg-base);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(36px, 5vw, 56px); }
h2 { font-size: clamp(28px, 3.5vw, 40px); }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast);
}

ul { list-style: none; }

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ============================================
   ANIMATIONS (Keyframes)
   ============================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 20px rgba(196, 30, 58, 0.15); }
    50% { box-shadow: 0 0 40px rgba(196, 30, 58, 0.3); }
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes wave-pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes countUp {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   SCROLL REVEAL UTILITIES
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

    .reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* Skip to main content (a11y) */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 9999;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: 16px;
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* noscript fallback — show all reveal content if JS disabled */
.no-js .reveal,
.reveal.reveal-fallback {
    opacity: 1;
    transform: none;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

/* Reset native button styles when .btn class is on a <button> */
button.btn {
    background: transparent;
    color: inherit;
}

button.btn:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Disabled / loading state */
.btn[disabled],
.btn.is-loading {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(196, 30, 58, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(196, 30, 58, 0.4);
}

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

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-white {
    background: #fff;
    color: var(--bg-base);
}

.btn-white:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

.btn-outline-red {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline-red:hover {
    background: var(--primary);
    color: #fff;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-primary);
}

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

/* Secondary button when on a red/gradient CTA — overrides white text on red */
.btn-secondary-on-cta {
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}

.btn-secondary-on-cta:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
    color: #fff !important;
}

.btn-cotton {
    background: #0A8B5E;
    color: #fff;
    box-shadow: 0 4px 20px rgba(10, 139, 94, 0.3);
}

.btn-cotton:hover {
    background: #076E4A;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(10, 139, 94, 0.4);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-normal);
}

header.scrolled {
    background: rgba(11, 15, 25, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] header.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.12);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo img {
    height: 48px;
    width: auto;
    filter: brightness(1.2);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .nav-menu a:hover,
html[data-theme="light"] .nav-menu a.active {
    background: rgba(15, 23, 42, 0.06);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 16px;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

.language-switcher button {
    min-height: 32px;
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.language-switcher button:hover {
    color: var(--text-primary);
}

.language-switcher button.active {
    background: var(--primary);
    color: #fff;
}

html[lang="bn"] body {
    font-family: 'Noto Sans Bengali', 'Inter', system-ui, sans-serif;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-normal);
    border-radius: 2px;
}

/* Animated X when menu is open */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Backwards-compat for older api.html class name */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
    background: var(--bg-base);
}

/* Hero Background Effects */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(196, 30, 58, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
        var(--bg-base);
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 40%, transparent 70%);
}

.hero-animation-gif {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero_animation.gif');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.15;
    mix-blend-mode: screen;
    filter: brightness(1.2);
    pointer-events: none;
    z-index: 1;
}

/* The animation uses a screen blend for the dark theme. On a light surface,
   use multiply so its darker details remain visible. */
html[data-theme="light"] .hero-animation-gif {
    opacity: 0.26;
    mix-blend-mode: multiply;
    filter: contrast(1.08) saturate(0.9);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(196, 30, 58, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    animation: wave-pulse 6s ease-in-out infinite;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-content h1 {
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-content h1 span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-value span {
    color: var(--primary);
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual / Dashboard Mockup */
.hero-visual {
    position: relative;
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-card {
    background: rgba(21, 27, 43, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.hero-card-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-secondary);
}

.status-badge {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-glow 2s ease-in-out infinite;
}

.sms-preview {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 24px;
}

.sms-slider {
    overflow: hidden;
}

.sms-slider-track {
    display: flex;
    transition: transform 600ms ease;
    will-change: transform;
}

.sms-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.sms-slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
}

.sms-slider-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: width var(--transition-fast), background var(--transition-fast);
}

.sms-slider-dots span.active {
    width: 20px;
    border-radius: 999px;
    background: var(--primary);
}

.sms-sender {
    font-weight: 700;
    color: var(--primary);
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sms-message {
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-md);
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.metric-box:hover {
    border-color: var(--border-red);
    background: rgba(196, 30, 58, 0.05);
}

.metric-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 4px;
}

.metric-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Keep the dashboard mockup legible against its dark glass surface in light mode. */
html[data-theme="light"] .hero-card {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.28);
}

html[data-theme="light"] .hero-card-title,
html[data-theme="light"] .sms-message {
    color: #f8fafc;
}

html[data-theme="light"] .sms-preview,
html[data-theme="light"] .metric-box {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="light"] .sms-preview {
    border-left-color: var(--primary);
}

html[data-theme="light"] .sms-slider-dots span {
    background: rgba(255, 255, 255, 0.3);
}

html[data-theme="light"] .sms-slider-dots span.active {
    background: var(--primary);
}

html[data-theme="light"] .metric-label {
    color: #cbd5e1;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */

.section {
    padding: var(--section-pad) 0;
    position: relative;
}

.section-alt {
    background: var(--bg-elevated);
}

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

.section-light h2,
.section-light h3,
.section-light h4 {
    color: var(--text-dark);
}

.section-light p {
    color: var(--text-muted);
}

.section-dark {
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Noscript fallbacks for contact form, code panes */
.code-pane { display: none; }
.code-pane.active { display: block; }

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.section-title {
    margin-bottom: 16px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-desc {
    font-size: 17px;
    line-height: 1.7;
}

/* ============================================
   PARTNERS
   ============================================ */

.partners {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    border-top: 1px solid var(--border);
}

.partners-label {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 28px;
}

.partners-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.partner-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 14px;
    transition: all var(--transition-normal);
}

.partner-item:hover {
    border-color: var(--border-red);
    background: rgba(196, 30, 58, 0.05);
    transform: translateY(-2px);
}

.partner-item i {
    color: var(--primary);
    font-size: 16px;
}

/* ============================================
   SERVICES GRID
   ============================================ */

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

.service-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.service-card:hover {
    border-color: var(--border-red);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

.service-icon i {
    font-size: 24px;
    color: var(--primary);
    transition: color var(--transition-normal);
}

.service-card:hover .service-icon i {
    color: #fff;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 700;
}

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

.btn-odoo {
    width: 100%;
    justify-content: center;
    font-size: 14px;
}

.btn-odoo i,
.odoo-callout .btn i {
    margin-left: 8px;
}

.integration-download {
    margin-top: 20px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.service-features li i {
    color: var(--success);
    font-size: 12px;
    flex-shrink: 0;
}

.infrastructure-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.infrastructure-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.infrastructure-list li i {
    color: var(--success);
    margin-top: 4px;
    flex-shrink: 0;
}

/* ============================================
   FEATURES / WHY CHOOSE US
   ============================================ */

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-content .section-label {
    margin-bottom: 16px;
}

.features-content .section-title {
    margin-bottom: 16px;
}

.features-content .section-desc {
    margin-bottom: 40px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.feature-list > li {
    display: flex;
    align-items: center;
    gap: 18px;
}

.feature-list > li .feature-text h4 {
    margin-bottom: 0;
}

.feature-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.feature-check {
    width: 32px;
    height: 32px;
    background: rgba(16, 185, 129, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-check i {
    color: var(--success);
    font-size: 14px;
}

.feature-text h4 {
    font-size: 17px;
    margin-bottom: 6px;
    font-weight: 600;
}

.feature-text p {
    font-size: 14px;
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--text-muted);
}

.features-image {
    position: relative;
}

.features-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.features-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), rgba(59, 130, 246, 0.05));
    z-index: -1;
    filter: blur(30px);
}

/* ============================================
   STEPS / HOW IT WORKS
   ============================================ */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 0 16px;
}

.step-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--border), transparent);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--bg-card);
    border: 2px solid var(--border-red);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 20px;
    transition: all var(--transition-normal);
}

.step-card:hover .step-number {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

.step-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-card p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--text-muted);
}

/* ============================================
   STATS COUNTER SECTION
   ============================================ */

.stats-section {
    padding: 80px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.stat-item {
    padding: 24px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-number span {
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-normal);
    position: relative;
}

.testimonial-card:hover {
    border-color: var(--border-red);
    transform: translateY(-4px);
}

.testimonial-quote {
    font-size: 48px;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 8px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 2px;
}

.testimonial-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0,0,0,0.2) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
    font-weight: 800;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 18px;
    margin-bottom: 36px;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ============================================
   PAGE HEADER (Inner Pages)
   ============================================ */

.page-header {
    padding: 160px 0 80px;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 30%, rgba(196, 30, 58, 0.08) 0%, transparent 60%);
}

.page-header h1 {
    margin-bottom: 16px;
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    color: var(--text-secondary);
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-grid.reverse {
    direction: rtl;
}

.about-grid.reverse > * {
    direction: ltr;
}

.about-content h2 {
    margin-bottom: 20px;
    font-weight: 800;
}

.about-content p {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.about-image img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

.cotton-group-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    overflow: visible;
}

.cotton-group-logo-wrap {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cotton-group-logo {
    max-width: 280px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: brightness(1.2);
}

.cotton-group-name {
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.cotton-group-since {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cotton-group-stats {
    display: flex;
    gap: 24px;
    margin-top: 8px;
    align-items: center;
}

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

.cotton-stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.cotton-stat-lbl {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cotton-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.value-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.value-card:hover {
    border-color: var(--border-red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.value-card i {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 16px;
    transition: all var(--transition-normal);
}

.value-card .value-icon {
    width: 64px;
    height: 64px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all var(--transition-normal);
}

.value-card .value-icon i {
    margin-bottom: 0;
    font-size: 28px;
}

.value-card:hover .value-icon {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

.value-card:hover .value-icon i {
    color: #fff;
}

.value-card:hover i {
    transform: scale(1.1);
}

.value-card h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 700;
}

.value-card p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   PRICING PAGE
   ============================================ */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-grid.pricing-grid-single {
    grid-template-columns: minmax(0, 900px);
    justify-content: center;
}

.pricing-grid-single .pricing-card {
    width: 100%;
    margin-inline: auto;
    text-align: center;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: var(--border-red);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-hover);
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.02);
}

.pricing-card.featured:hover {
    transform: scale(1.02) translateY(-8px);
}

.featured-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    border-bottom-left-radius: var(--radius-md);
}

.pricing-label {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-name {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 700;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1;
}

.pricing-price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: var(--success);
    font-size: 14px;
    flex-shrink: 0;
}

.pricing-card .btn {
    width: 100%;
    justify-content: center;
}

/* ============================================
   API PAGE
   ============================================ */

.api-hero {
    padding: 160px 0 80px;
    background: var(--bg-base);
}

.api-section {
    padding: 60px 0;
}

.api-section h2 {
    margin-bottom: 24px;
}

.api-section p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.odoo-callout {
    padding: 36px 0 0;
}

.odoo-callout-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 32px;
    border: 1px solid var(--border-red);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-card), rgba(196, 30, 58, 0.08));
}

.odoo-callout-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 24px;
}

.odoo-callout-card h2 {
    margin: 6px 0 8px;
    font-size: 24px;
}

.odoo-callout-card p {
    margin: 0;
}

.odoo-version-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.service-card .odoo-version-links .btn-odoo {
    flex: 1 1 82px;
}

.odoo-callout-card .odoo-version-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    width: 280px;
}

.odoo-callout-card .odoo-version-links .btn {
    min-width: 0;
    gap: 6px;
    padding: 12px 10px;
    font-size: 14px;
    justify-content: center;
    white-space: nowrap;
}

.integration-help-section {
    padding: 40px 0 0;
}

.integration-help-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
    border: 1px solid var(--border-red);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.12), var(--bg-card));
}

.integration-help-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    font-size: 24px;
}

.integration-help-card .section-label {
    margin-bottom: 14px;
}

.integration-help-card h2 {
    margin-bottom: 12px;
    font-size: 28px;
}

.integration-help-card p {
    max-width: 620px;
    margin: 0 auto 24px;
}

.integration-help-card .btn i {
    margin-left: 8px;
}

.code-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 0;
    background: rgba(255,255,255,0.03);
    padding: 8px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
}

.code-tab {
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    border: none;
    background: none;
    font-family: inherit;
    transition: all var(--transition-fast);
    min-height: 36px;
}

.code-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.code-tab.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 24px;
    overflow-x: auto;
    margin-bottom: 40px;
    position: relative;
    max-height: 480px;
    overflow-y: auto;
}

.code-pane {
    display: none;
}

.code-pane.active {
    display: block;
}

.code-block pre {
    color: var(--text-secondary);
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    margin: 0;
}

.code-block .comment { color: var(--text-muted); }
.code-block .keyword { color: #C084FC; }
.code-block .string { color: #86EFAC; }
.code-block .number { color: #FBBF24; }
.code-block .function { color: #60A5FA; }
.code-block .variable { color: #FCA5A5; }

.copy-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-fast);
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.copy-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.api-endpoints {
    margin-top: 48px;
}

.api-hero.api-endpoints {
    margin-top: 0;
    padding-top: 80px;
}

/* API parameters table */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    font-size: 14px;
}

.params-table thead {
    background: rgba(255, 255, 255, 0.04);
}

.params-table th,
.params-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
}

.params-table th {
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.params-table tr:last-child td {
    border-bottom: none;
}

.params-table code {
    background: rgba(196, 30, 58, 0.12);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
}

.params-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.endpoint {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.endpoint:hover {
    border-color: var(--border-red);
}

.endpoint-header {
    background: rgba(255,255,255,0.02);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--border);
}

.endpoint-method {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.endpoint-method.get,
.endpoint-method.method-get {
    background: rgba(59, 130, 246, 0.15);
    color: #60A5FA;
}

.endpoint-method.post,
.endpoint-method.method-post {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.endpoint-url {
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    color: var(--text-primary);
    overflow-wrap: anywhere;
}

.endpoint-body {
    padding: 24px;
}

.endpoint-body p {
    margin-bottom: 16px;
    font-size: 14px;
}

.api-doc-subheading {
    margin: 28px 0 12px;
    color: var(--text-primary);
    font-size: 15px;
}

.endpoint .code-block {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
}

.auth-content {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.security-note {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.security-note i {
    color: var(--success);
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.security-note code {
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 13px;
    color: var(--primary);
}

/* Footer contact column (api.html compatibility) */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact p i {
    color: var(--primary);
    width: 16px;
    text-align: center;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

/* ============================================
   CONTACT PAGE
   ============================================ */

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

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info-header {
    text-align: left;
    margin: 0 0 32px;
    max-width: none;
}

.contact-info-header p {
    margin-bottom: 0;
}

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

.office-map-wrapper {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    max-width: 900px;
    margin: 0 auto;
}

.office-map-wrapper iframe {
    border: 0;
    display: block;
}

.office-card {
    text-align: center;
    margin-top: 32px;
}

.contact-icon--lg {
    margin: 0 auto 16px;
    width: 56px;
    height: 56px;
}

.contact-icon--lg i {
    font-size: 22px;
}

.office-title {
    margin-bottom: 8px;
    font-size: 20px;
    color: var(--text-primary);
}

.office-address {
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.office-concern {
    font-size: 14px;
    color: var(--text-muted);
}

.office-concern strong {
    color: var(--primary);
}

.contact-info > p {
    margin-bottom: 40px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.contact-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.contact-item:hover .contact-icon {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(196, 30, 58, 0.3);
}

.contact-icon i {
    color: var(--primary);
    font-size: 20px;
    transition: color var(--transition-fast);
}

.contact-item:hover .contact-icon i {
    color: #fff;
}

.contact-text strong {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.contact-text span,
.contact-text a {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

.contact-text a:hover {
    color: var(--primary);
}

.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px;
    border: 1px solid var(--border);
}

.contact-form h3 {
    margin-bottom: 28px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    background: var(--bg-elevated);
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
}

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

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

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
}

.form-status.is-visible {
    display: flex;
}

.form-status.is-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.form-status.is-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #FCA5A5;
}

.blog-section {
    padding: var(--section-pad) 0;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   BLOG PAGE
   ============================================ */

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

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.blog-card:hover {
    border-color: var(--border-red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow);
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.1), transparent);
}

.blog-image i {
    font-size: 40px;
    color: var(--text-muted);
    opacity: 0.3;
}

.blog-content {
    padding: 24px;
}

.blog-category {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.blog-title a {
    color: var(--text-primary);
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--text-muted);
    line-height: 1.6;
}

.blog-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================
   FAQ PAGE
   ============================================ */

.faq-section {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--section-pad) 24px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item:hover {
    border-color: var(--border-light);
}

.faq-item.active {
    border-color: var(--border-red);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    transition: color var(--transition-fast);
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    gap: 16px;
}

.faq-question span {
    flex: 1;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--text-muted);
    font-size: 14px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 300px;
}

.faq-answer p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand .logo img {
    height: 44px;
    width: auto;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    border: 1px solid var(--border);
}

.footer-social a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer-column h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 24px;
    font-weight: 700;
}

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

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .services-grid,
    .pricing-grid,
    .blog-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

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

    .step-card:nth-child(2)::after {
        display: none;
    }

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

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

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

    .odoo-callout-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .odoo-callout-card .odoo-version-links {
        grid-column: 2;
    }
}

.whatsapp-support {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 20px;
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-support i {
    font-size: 26px;
}

.whatsapp-support:hover,
.whatsapp-support:focus-visible {
    background: #1fb85a;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4);
}

@media (max-width: 768px) {
    .navbar {
        height: 72px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        padding: 14px 16px;
        width: 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-actions {
        display: none;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 14px;
        margin-right: 4px;
    }

    .language-switcher {
        margin-left: auto;
        margin-right: 8px;
    }

    .language-switcher button {
        min-height: 30px;
        padding: 4px 8px;
        font-size: 11px;
    }

    .mobile-toggle {
        display: flex;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
        justify-content: center;
    }

    .hero-card {
        padding: 24px;
    }

    .services-grid,
    .pricing-grid,
    .blog-grid,
    .steps-grid,
    .values-grid,
    .stats-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

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

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }

    .odoo-callout-card {
        grid-template-columns: 1fr;
        padding: 24px;
        gap: 16px;
    }

    .odoo-callout-card .odoo-version-links {
        grid-column: auto;
        width: 100%;
    }

    .odoo-callout-card .odoo-version-links .btn {
        min-width: 0;
    }

    .integration-help-card {
        padding: 28px 24px;
    }

    .integration-help-card h2 {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

    .step-card::after {
        display: none !important;
    }

    .code-tabs {
        flex-wrap: wrap;
    }

    .endpoint-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .endpoint-body {
        padding: 20px;
    }

    .params-table {
        display: block;
        overflow-x: auto;
    }

    .section {
        padding: 60px 0;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .about-grid.reverse {
        direction: ltr;
    }

    .whatsapp-support {
        right: 16px;
        bottom: 16px;
        width: 52px;
        height: 52px;
        min-height: 52px;
        padding: 0;
        justify-content: center;
    }

    .whatsapp-support i {
        font-size: 27px;
    }

    .whatsapp-support span {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
