/* ==========================================================================
   XiXi Solutions - Modern Design System & Stylesheet
   Color Palette:
   - Primary: #13a4ec (XiXi Blue)
   - Primary Dark: #0d84c8 / #096b9f
   - Primary Light / Tint: #eaf6fd / #f0f9ff
   - Slate Dark / Contrast: #101c22 (Dark Slate) / #182830
   - WhatsApp Brand: #25D366 / #1fa855
   - Neutral Gray: #f8fafc / #f1f5f9 / #e2e8f0 / #64748b / #0f172a
   ========================================================================== */

:root {
    --primary: #13a4ec;
    --primary-hover: #0f8bd4;
    --primary-dark: #0b6fa8;
    --primary-light: #eaf6fd;
    --primary-subtle: #f0f9ff;
    --dark: #101c22;
    --dark-surface: #182830;
    --dark-card: #1f323c;
    --dark-muted: #2d4552;
    --whatsapp: #25D366;
    --whatsapp-hover: #20bd5a;
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg-page: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --border-dark: #2a3e4a;
    --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 6px rgba(0,0,0,0.06);
    --shadow-md: 0 6px 16px rgba(0,0,0,0.07);
    --shadow-lg: 0 12px 28px rgba(0,0,0,0.09);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.12);
    --shadow-primary: 0 8px 24px rgba(19, 164, 236, 0.28);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --container-max: 1200px;
}

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

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

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

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

ul {
    list-style: none;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 900px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
header.site-header {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

header.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 1.5rem;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    flex-shrink: 0;
}

.brand-logo-img {
    height: 42px;
    width: auto;
    border-radius: var(--radius-sm);
    object-fit: contain;
    transition: transform 0.3s ease;
}

.brand-logo:hover .brand-logo-img {
    transform: scale(1.04);
}

.brand-title {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.brand-title span {
    color: var(--primary);
}

/* Desktop Navigation */
nav.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

nav.desktop-nav a {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.25s ease;
}

nav.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: width 0.25s ease;
}

nav.desktop-nav a:hover,
nav.desktop-nav a.active {
    color: var(--primary);
}

nav.desktop-nav a:hover::after,
nav.desktop-nav a.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Mobile Menu Toggle Button */
.mobile-menu-btn {
    display: none;
    align-items: center;
    gap: 0.4rem;
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    background-color: var(--primary-subtle);
    border-color: var(--primary);
    color: var(--primary);
}

.menu-hamburger {
    width: 20px;
    height: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-hamburger span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    border-radius: 2px;
    transition: var(--transition);
}

/* Mobile Slide-Over Drawer */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 28, 34, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    visibility: visible;
}

aside.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 85%;
    max-width: 340px;
    background: var(--bg-white);
    z-index: 1200;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
}

aside.mobile-drawer.open {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.drawer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.drawer-brand img {
    height: 32px;
    width: auto;
}

.drawer-close-btn {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.drawer-close-btn:hover {
    background-color: #fee2e2;
    color: #ef4444;
}

.drawer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.drawer-link svg {
    color: var(--text-light);
    transition: color 0.25s ease;
}

.drawer-link:hover,
.drawer-link.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.drawer-link:hover svg,
.drawer-link.active svg {
    color: var(--primary);
}

.drawer-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ==========================================================================
   Buttons & Interactive Elements
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    min-height: 44px;
    border-radius: var(--radius-md);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
    transition: var(--transition);
    line-height: 1.25;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn > span,
.btn-secondary > span,
.btn-whatsapp > span {
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.btn svg {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.btn:hover svg.arrow-icon {
    transform: translateX(3px);
}

/* Button Variants */
.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(19, 164, 236, 0.4);
}

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

.btn-secondary:hover {
    background-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: var(--whatsapp-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
}

.btn-dark {
    background-color: var(--dark);
    color: #ffffff;
}

.btn-dark:hover {
    background-color: var(--dark-surface);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-white {
    background-color: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover {
    background-color: #ffffff;
    color: var(--dark);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.55rem 1.15rem;
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-block {
    width: 100%;
}

/* ==========================================================================
   Badges & Pills
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
}

.badge-sa {
    background: rgba(0, 119, 73, 0.12);
    border: 1px solid rgba(0, 119, 73, 0.3);
    color: #007749;
}

.hero-section .badge-sa {
    background: rgba(19, 164, 236, 0.15);
    border: 1px solid rgba(19, 164, 236, 0.35);
    color: #7dd3fc;
}


.badge-dark {
    background: rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sa-flag-svg {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    background-color: var(--dark);
    background-image: 
        radial-gradient(ellipse at 85% 20%, rgba(19, 164, 236, 0.22), transparent 55%),
        radial-gradient(ellipse at 15% 85%, rgba(11, 111, 168, 0.15), transparent 50%);
    color: var(--text-white);
    padding: 5.5rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-badge-wrap {
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #94a3b8;
    margin-bottom: 2rem;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: #cbd5e1;
}

.hero-trust-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Hero Showcase Card */
.hero-showcase {
    position: relative;
}

.hero-preview-card {
    background: var(--dark-surface);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.preview-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-dark);
}

.preview-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.preview-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.preview-feature-highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: var(--transition);
}

.preview-feature-highlight:hover {
    background: rgba(19, 164, 236, 0.08);
    border-color: rgba(19, 164, 236, 0.3);
}

.preview-app-icon {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.preview-feature-info h4 {
    font-size: 1.05rem;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.preview-feature-info p {
    font-size: 0.825rem;
    color: #94a3b8;
    line-height: 1.4;
}

.preview-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.preview-stat-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.stat-number {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.775rem;
    color: #94a3b8;
}

.preview-card-cta {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.preview-card-cta .btn {
    width: 100%;
    max-width: 100%;
    padding: 12px 16px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==========================================================================
   Section Headers & Common Layout
   ========================================================================== */
section.page-section {
    padding: 5rem 0;
}

section.page-section-alt {
    background-color: var(--bg-white);
}

section.page-section-dark {
    background-color: var(--dark);
    color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
}

.section-header.text-left {
    text-align: left;
    margin: 0 0 3rem;
    max-width: 100%;
}

.section-badge-wrap {
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 1rem;
}

.page-section-dark .section-title {
    color: #ffffff;
}

.section-intro {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.page-section-dark .section-intro {
    color: #94a3b8;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #38bdf8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

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

.service-icon-box {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon-box {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-deliverables {
    list-style: none;
    margin: 0;
    padding: 1rem 0 0;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.service-deliverables li {
    font-size: 0.85rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-deliverables li svg {
    color: #10b981;
    flex-shrink: 0;
}

/* Tech Capabilities Bar */
.tech-capabilities-bar {
    margin-top: 3.5rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.75rem 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.tech-bar-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tech-pill {
    background: #f1f5f9;
    color: var(--text-muted);
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.825rem;
    font-weight: 600;
}

/* ==========================================================================
   Flagship Project: U&CA Showcase Section
   ========================================================================== */
.uca-showcase-section {
    background: linear-gradient(180deg, #f8fafc 0%, #edf5fc 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.uca-hero-card {
    background: var(--bg-white);
    border: 1px solid #dbeafe;
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3.5rem;
}

.uca-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
}

.uca-brand-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.uca-brand-logo {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    object-fit: cover;
    box-shadow: var(--shadow-md);
}

.uca-brand-meta h3 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
}

.uca-brand-meta p {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.uca-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}

.uca-key-points {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.uca-key-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.uca-key-item svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.uca-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.uca-action-buttons .btn {
    padding: 12px 16px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Right side preview block in U&CA Showcase */
.uca-visual-box {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 2rem;
    color: #ffffff;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-dark);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.uca-visual-badge {
    display: inline-block;
    background: rgba(19, 164, 236, 0.2);
    border: 1px solid rgba(19, 164, 236, 0.4);
    color: #7dd3fc;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.25rem;
}

.uca-visual-box h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.uca-visual-box p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.uca-service-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 0.85rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.uca-service-pill-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.uca-service-pill-title .price-badge {
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
    flex-shrink: 0;
}

.uca-service-pill-desc {
    font-size: 0.825rem;
    color: #94a3b8;
    line-height: 1.4;
}

/* ==========================================================================
   Tutoring Packages
   ========================================================================== */
.packages-wrapper {
    margin-top: 3.5rem;
}

.packages-header-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2.25rem;
}

.packages-heading-left h3 {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.4rem;
}

.packages-heading-left p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Rate Switcher Tabs */
.rate-switch-tabs {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: var(--radius-md);
    gap: 4px;
    max-width: 100%;
    box-sizing: border-box;
}

.rate-toggle-btn {
    background: transparent;
    border: none;
    padding: 0.6rem 1.15rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

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

.rate-toggle-btn.active {
    background: var(--bg-white);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    font-weight: 700;
}

/* Packages Grid */
.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.package-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-xl);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.package-card.featured {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(19, 164, 236, 0.12);
    position: relative;
}

.package-featured-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.package-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.package-subtitle {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.package-rates-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex-grow: 1;
    margin-bottom: 1.75rem;
}

.rate-subgroup h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.rate-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.rate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.925rem;
    color: var(--text-muted);
    padding: 0.35rem 0;
    border-bottom: 1px dashed #f1f5f9;
}

.rate-item-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.rate-price {
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.975rem;
}

.package-cta {
    margin-top: auto;
}

/* ==========================================================================
   Process Section
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.process-step-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.process-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.step-num-badge {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.process-step-card:hover .step-num-badge {
    background-color: var(--primary);
    color: #ffffff;
}

.step-icon-wrap {
    color: var(--text-light);
}

.process-step-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.65rem;
}

.process-step-card p {
    font-size: 0.925rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   About Section & Founder Profile
   ========================================================================== */
.about-hero-block {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3.5rem;
}

.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.founder-card {
    background: linear-gradient(135deg, #101c22 0%, #1a2c36 100%);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-xl);
    padding: 2.25rem;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.founder-card::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(19, 164, 236, 0.25), transparent 70%);
    pointer-events: none;
}

.founder-meta-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.founder-avatar-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    background: rgba(19, 164, 236, 0.2);
    border: 2px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.founder-name {
    font-size: 1.45rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.founder-title {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
}

.credentials-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.credential-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #cbd5e1;
    word-break: break-word;
    overflow-wrap: break-word;
}

.credential-item svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.credential-item strong {
    color: #ffffff;
}

.founder-summary-quote {
    font-size: 0.9rem;
    line-height: 1.65;
    color: #94a3b8;
    font-style: italic;
}

/* Company Structure */
.structure-section {
    margin-bottom: 3.5rem;
}

.structure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.structure-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.structure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.structure-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.structure-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.structure-card h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.structure-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* Mission & Vision */
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.mv-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--primary);
}

.mv-card h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mv-card h3 svg {
    color: var(--primary);
}

.mv-card p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--text-muted);
}

/* Why Choose XiXi Solutions */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.why-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.why-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.why-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.65rem;
}

.why-card p {
    font-size: 0.925rem;
    line-height: 1.65;
    color: var(--text-muted);
}

/* ==========================================================================
   Contact Section & Interactive Forms
   ========================================================================== */
.contact-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
    margin-bottom: 3.5rem;
}

.contact-channel-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.contact-channel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.contact-channel-card.highlight-whatsapp {
    border-color: rgba(37, 211, 102, 0.4);
    background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.contact-channel-card.highlight-whatsapp:hover {
    border-color: var(--whatsapp);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.15);
}

.channel-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.channel-icon-wrap.whatsapp {
    background-color: #dcfce7;
    color: var(--whatsapp);
}

.channel-icon-wrap.email {
    background-color: var(--primary-light);
    color: var(--primary);
}

.channel-icon-wrap.social {
    background-color: #f1f5f9;
    color: var(--text-main);
}

.channel-tag {
    font-size: 0.775rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 0.35rem;
}

.channel-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.channel-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    word-break: break-word;
}

.contact-channel-card.highlight-whatsapp .channel-value {
    color: #15803d;
}

.channel-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.channel-action-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}

.contact-channel-card.highlight-whatsapp .channel-action-link {
    color: var(--whatsapp);
}

/* Social Pills Grid in Contact Card */
.social-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.social-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: #f1f5f9;
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

.social-pill-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.social-pill-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Interactive Quote / Inquiry Form (on contact.html) */
.inquiry-form-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3.5rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

/* Form Status & Error Alert Banner */
.form-alert {
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    line-height: 1.5;
    box-sizing: border-box;
    width: 100%;
    animation: fadeIn 0.25s ease;
}

.form-alert.alert-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.form-alert.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.form-alert svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.required-star {
    color: #ef4444;
    font-weight: 700;
    margin-left: 3px;
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem; /* 16px prevents iOS Safari auto-zoom */
    color: var(--text-main);
    background-color: #fcfcfd;
    transition: var(--transition);
    min-height: 48px;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(19, 164, 236, 0.15);
}

.form-control.is-invalid {
    border-color: #ef4444;
    background-color: #fffafb;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.invalid-feedback {
    display: none;
    font-size: 0.825rem;
    color: #dc2626;
    font-weight: 500;
    margin-top: 0.25rem;
    line-height: 1.35;
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

.form-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.form-actions-row .btn {
    flex: 1 1 240px;
    min-height: 52px;
}

/* ==========================================================================
   Call To Action Banner (Bottom of Pages)
   ========================================================================== */
.cta-banner-section {
    background: linear-gradient(135deg, #101c22 0%, #172a34 100%);
    color: #ffffff;
    border-radius: var(--radius-xl);
    padding: 4rem 3rem;
    text-align: center;
    margin: 2rem auto 4rem;
    position: relative;
    overflow: hidden;
}

.cta-banner-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(19, 164, 236, 0.15), transparent 60%);
    pointer-events: none;
}

.cta-banner-content {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-banner-title {
    font-size: clamp(1.85rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-banner-subtitle {
    font-size: 1.05rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.cta-banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer.site-footer {
    background-color: var(--dark);
    color: #ffffff;
    border-top: 1px solid var(--border-dark);
    padding: 4.5rem 0 2rem;
    font-size: 0.925rem;
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #ffffff;
}

.footer-logo-row img {
    height: 38px;
    width: auto;
    border-radius: var(--radius-sm);
}

.footer-logo-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.footer-logo-text span {
    color: var(--primary);
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    max-width: 320px;
}

.footer-heading {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links-list a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    color: #94a3b8;
    line-height: 1.5;
}

.footer-contact-item svg {
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.footer-contact-item a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

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

.footer-social-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social-btn img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.footer-social-btn:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: #64748b;
    font-size: 0.85rem;
}

.footer-bottom a {
    color: #94a3b8;
}

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

/* ==========================================================================
   Mobile & Responsive Breakpoints
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        align-items: center;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .hero-trust-strip {
        justify-content: center;
    }

    .hero-showcase {
        max-width: 550px;
        margin: 0 auto;
        width: 100%;
    }

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

    .about-intro-grid {
        grid-template-columns: 1fr;
    }

    .mission-vision-grid {
        grid-template-columns: 1fr;
    }

    .footer-top-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    nav.desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
        min-height: 44px;
        min-width: 44px;
    }

    .header-inner {
        height: 68px;
        gap: 0.75rem;
    }

    .header-actions {
        gap: 0.6rem;
    }

    .hero-section {
        padding: 3.5rem 0 4.5rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 100%;
    }

    .hero-trust-strip {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    section.page-section {
        padding: 3.5rem 0;
    }

    /* Target Elements Overflow & Container Fixes */
    .preview-card-cta,
    .preview-card-cta .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        white-space: normal;
        word-break: break-word;
    }

    .uca-hero-card {
        padding: 1.75rem 1.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .uca-visual-box {
        padding: 1.75rem 1.25rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .uca-visual-box .btn-whatsapp {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        white-space: normal;
        word-break: break-word;
    }

    .uca-service-pill {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .uca-service-pill-title {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: space-between;
        align-items: center;
    }

    .uca-service-pill-title > span:first-child {
        flex: 1 1 auto;
        min-width: 140px;
        word-break: break-word;
    }

    .uca-key-points {
        grid-template-columns: 1fr;
    }

    .uca-action-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .uca-action-buttons .btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        white-space: normal;
        word-break: break-word;
    }

    /* Tutoring Rate Switcher & Packages Grid on Mobile */
    .packages-header-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        width: 100%;
    }

    .rate-switch-tabs {
        width: 100%;
        display: flex;
        max-width: 100%;
        box-sizing: border-box;
    }

    .rate-toggle-btn {
        flex: 1 1 0;
        min-height: 44px;
        min-width: 0;
        padding: 0.65rem 0.5rem;
        font-size: 0.825rem;
        text-align: center;
        white-space: nowrap;
        box-sizing: border-box;
    }

    .package-cta {
        width: 100%;
    }

    .package-cta .btn {
        width: 100%;
        max-width: 100%;
        padding: 12px 16px;
        white-space: normal;
        word-break: break-word;
    }

    .about-hero-block {
        padding: 2rem 1.5rem;
    }

    .founder-card {
        padding: 1.75rem 1.25rem;
    }

    /* Contact Form Responsive Adjustments */
    .inquiry-form-card {
        padding: 2rem 1.25rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        width: 100%;
    }

    .form-actions-row {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }

    .form-actions-row .btn {
        width: 100%;
        max-width: 100%;
        min-height: 48px;
        padding: 12px 16px;
        white-space: normal;
        word-break: break-word;
    }

    .cta-banner-section {
        padding: 3rem 1.5rem;
        margin: 1rem auto 3rem;
    }

    .cta-banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-banner-actions .btn {
        width: 100%;
        max-width: 100%;
    }

    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

/* Medium Mobile & Small Landscape (< 680px) */
@media screen and (max-width: 680px) {
    .header-actions .btn-primary {
        display: none; /* Hide 'Get a Quote' in header; accessible in drawer & page */
    }
}

/* Mobile Portrait (< 480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .brand-title {
        font-size: 1.15rem;
    }

    .brand-logo-img {
        height: 34px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 6.5vw, 2.15rem);
    }

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

    .package-card {
        padding: 1.5rem 1rem;
    }

    .service-card,
    .structure-card,
    .why-card,
    .contact-channel-card {
        padding: 1.5rem 1rem;
    }

    .cta-banner-section {
        padding: 2.5rem 1.15rem;
    }
}

/* Ultra-Compact Mobile Devices down to 320px */
@media screen and (max-width: 360px) {
    .container {
        padding: 0 0.75rem;
    }

    .brand-title {
        font-size: 1.05rem;
    }

    .brand-logo-img {
        height: 30px;
    }

    .header-actions {
        gap: 0.4rem;
    }

    /* Icon-only WhatsApp header button on 320px screens */
    .header-actions .btn-whatsapp {
        padding: 0;
        width: 42px;
        height: 42px;
        min-height: 42px;
        min-width: 42px;
        justify-content: center;
        border-radius: var(--radius-full);
    }

    .header-actions .btn-whatsapp span {
        display: none;
    }

    /* Stack rate switcher vertically on 320px screens */
    .rate-switch-tabs {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }

    .rate-toggle-btn {
        width: 100%;
        padding: 0.65rem 0.5rem;
    }

    .uca-service-pill {
        padding: 0.85rem;
    }

    .social-pill-link {
        width: 100%;
        justify-content: center;
    }
}