/*
Theme Name: Xbabble
Theme URI: https://xbabble.com
Author: AVLinkPro
Author URI: https://avlinkpro.com
Description: Official Xbabble communication platform theme. A revolutionary communication platform bridging facilities, campuses, and fleets with comprehensive audio, video, and text capabilities.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: xbabble
Tags: one-page, technology, business, custom-colors, custom-logo, full-width-template
*/

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF8C00;
    --primary-dark: #E67E00;
    --secondary: #1F4A6E;
    --dark: #0D2137;
    --darker: #081525;
    --light: #F8FAFC;
    --white: #ffffff;
    --gray: #64748B;
    --gray-light: #E2E8F0;
    --green: #10B981;
    --font-main: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { color: var(--gray); line-height: 1.7; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,140,0,0.35);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-white:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--primary);
}

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

/* ============================================================
   SECTION LABELS / HEADERS
   ============================================================ */
.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255,140,0,0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}

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

.section-title {
    color: var(--dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13,33,55,0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

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

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.nav-links .btn {
    padding: 10px 20px;
    font-size: 0.88rem;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--darker) 0%, var(--secondary) 60%, var(--dark) 100%);
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,140,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(255,140,0,0.15);
    border: 1px solid rgba(255,140,0,0.3);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
}

.hero-content h1 {
    color: var(--white);
    margin-bottom: 24px;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    letter-spacing: -1px;
}

.hero-content h1 span {
    color: var(--primary);
    position: relative;
}

.hero-description {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    margin-bottom: 36px;
    max-width: 520px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 36px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-number {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* Phone mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-phone {
    position: relative;
    display: inline-block;
}

.phone-mockup {
    width: 260px;
    background: linear-gradient(145deg, #1e3a5f, #0d2137);
    border-radius: 36px;
    padding: 14px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.1);
}

.phone-screen {
    background: #0f1f33;
    border-radius: 26px;
    overflow: hidden;
    padding: 20px 16px;
}

.phone-header {
    text-align: center;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.phone-header h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.phone-header p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.phone-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.call-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}

.call-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.call-info {
    flex: 1;
}

.call-info h5 {
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.call-info p {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

.call-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(16,185,129,0.6);
    flex-shrink: 0;
}

.floating-card {
    position: absolute;
    background: rgba(15,31,51,0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.floating-card-1 {
    top: 20px;
    right: -80px;
}

.floating-card-2 {
    bottom: 40px;
    left: -80px;
}

/* ============================================================
   FEATURES SECTION
   ============================================================ */
.features {
    padding: 100px 0;
    background: var(--light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--gray-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255,140,0,0.2);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
    line-height: 1;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--gray);
    margin: 0;
}

/* ============================================================
   SOLUTIONS SECTION
   ============================================================ */
.solutions {
    padding: 100px 0;
    background: var(--white);
}

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

.solutions-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}

.solutions-image::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,140,0,0.15);
    pointer-events: none;
}

.solutions-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.solutions-text .section-label {
    margin-bottom: 16px;
}

.solutions-text h2 {
    color: var(--dark);
    margin-bottom: 20px;
}

.solutions-text > p {
    color: var(--gray);
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.75;
}

.solutions-list {
    list-style: none;
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.solutions-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    padding: 10px 0;
}

.solutions-list li::before {
    content: '';
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='12' height='12'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-it-works {
    padding: 100px 0;
    background: var(--light);
}

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

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(12.5% + 20px);
    right: calc(12.5% + 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 10px;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    font-size: 1.6rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 8px 24px rgba(255,140,0,0.35);
    position: relative;
}

.step h3 {
    font-size: 1.05rem;
    color: var(--dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.step p {
    font-size: 0.88rem;
    color: var(--gray);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   PLATFORMS SECTION
   ============================================================ */
.platforms {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--darker) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.platforms::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,140,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.platforms-text h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.platforms-text > p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 36px;
}

.app-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.app-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 22px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    min-width: 180px;
}

.app-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    color: var(--white);
}

.app-btn-icon {
    font-size: 1.8rem;
    line-height: 1;
}

.app-btn-text {
    display: flex;
    flex-direction: column;
}

.app-btn-text small {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.6);
    font-weight: 400;
    line-height: 1;
    margin-bottom: 2px;
}

.app-btn-text span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.platforms-visual {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 24px;
}

.device-mockup {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 14px;
    transition: var(--transition);
}

.device-mockup:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.1);
}

.device-mockup.android {
    margin-top: 30px;
}

.device-mockup img {
    border-radius: 8px;
    width: 140px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta {
    padding: 100px 0;
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: 70px 60px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255,140,0,0.3);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    pointer-events: none;
}

.cta-box h2 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

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

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

.cta-buttons .btn {
    padding: 15px 32px;
    font-size: 1rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--darker);
    padding: 70px 0 30px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 30px;
}

.footer-brand .logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-brand img {
    height: auto;
}

.footer-brand p {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    line-height: 1.65;
    max-width: 300px;
    margin: 0;
}

.footer-links h4 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.35);
    font-size: 0.82rem;
    margin: 0;
}

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

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* ============================================================
   WORDPRESS SPECIFIC OVERRIDES
   ============================================================ */
.wp-block-image img {
    border-radius: var(--radius);
}

/* Ensure admin bar offset */
.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .navbar {
        top: 46px;
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-container {
        gap: 40px;
    }
    .solutions-content,
    .platforms-content {
        gap: 40px;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(13,33,55,0.98);
        flex-direction: column;
        padding: 20px 24px;
        border-top: 1px solid rgba(255,255,255,0.08);
        gap: 4px;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 90px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

    .hero-visual {
        display: none;
    }

    .steps-container {
        grid-template-columns: 1fr 1fr;
    }

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

    .solutions-content,
    .platforms-content {
        grid-template-columns: 1fr;
    }

    .solutions-list {
        grid-template-columns: 1fr;
    }

    .solutions-image {
        order: -1;
    }

    .cta-box {
        padding: 50px 30px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .floating-card {
        display: none;
    }
}

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

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

    .footer-content {
        grid-template-columns: 1fr;
    }

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

    .hero-stats {
        gap: 20px;
    }
}