/* ============================================
   SONA HOMETECH - Design System & Styles
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Colors */
    --navy-900: #050a12;
    --navy-800: #08111f;
    --navy-700: #0c1a2e;
    --navy-600: #11233e;
    --navy-500: #162e50;
    --navy-400: #243F6C;
    --navy-300: #3A5A8C;
    --navy-200: #6B8BB5;
    --navy-100: #A3BDD9;
    --navy-50: #D6E4F0;

    --gold-500: #2563EB;
    --gold-400: #3B82F6;
    --gold-300: #60A5FA;
    --gold-600: #1D4ED8;
    --gold-glow: rgba(37, 99, 235, 0.25);

    --white: #FFFFFF;
    --gray-50: #F8F9FB;
    --gray-100: #F0F2F5;
    --gray-200: #E1E5EB;
    --gray-300: #C8CED8;
    --gray-400: #B5C0D0;
    --gray-500: #8B97AA;
    --gray-600: #4B5563;
    --gray-700: #374151;

    --success: #10B981;
    --error: #EF4444;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-size-7xl: 4.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;

    /* Borders & Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(74, 158, 255, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Layout */
    --max-width: 1200px;
    --header-height: 110px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    overflow-x: hidden;                /* prevent horizontal shift from animated elements */
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-200);
    background-color: var(--navy-900);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

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

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

.text-accent {
    color: var(--gold-400);
}

ul,
ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold-400);
    outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* ---------- Utility Classes ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.cta-section {
    padding: var(--space-8) 0 var(--space-16);
}

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

/* Specific hacks removed */

.section-label {
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gold-500);
    margin-bottom: var(--space-4);
    display: inline-block;
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    letter-spacing: 4px;
    margin-bottom: var(--space-6);
}

.section-brand {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-2);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--gray-400);
    max-width: 600px;
    line-height: 1.7;
}

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

.text-center .section-subtitle {
    margin: 0 auto;
}

/* ---------- Animated Background Shapes ---------- */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

.bg-glow--blue {
    background: rgba(27, 54, 92, 0.4);
}

.bg-glow--gold {
    background: rgba(74, 158, 255, 0.12);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left var(--transition-slow);
}

.btn:hover::before {
    left: 100%;
}

.btn--primary {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.45);
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.btn--secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.btn--lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--font-size-base);
    border-radius: var(--radius-lg);
}

.btn--xl {
    padding: var(--space-5) var(--space-10);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

/* ---------- Glass Cards ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ---------- HEADER / NAVIGATION ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(5, 10, 18, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-base);
}

.header--scrolled {
    background: rgba(5, 10, 18, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    z-index: 1001;
}

.header__logo img {
    height: 84px;
    width: auto;
}

.nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Added for vertical alignment */
}

.nav__cta {
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.nav__link {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-base);
    font-weight: 500;
    color: var(--gray-300);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    position: relative;
}

.nav__link:hover,
.nav__link--active {
    color: var(--white);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gold-500);
    border-radius: var(--radius-full);
}

.nav__cta {
    margin-left: var(--space-4);
}

.nav__cta .btn {
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
}

/* Mobile Menu Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: var(--space-2);
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    transform-origin: center;
}

.nav__toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.nav__toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- HERO SECTION ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(5, 10, 18, 0.95) 0%,
            rgba(5, 10, 18, 0.85) 45%,
            rgba(5, 10, 18, 0.3) 65%,
            rgba(5, 10, 18, 0) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding-top: var(--header-height);
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: var(--space-8);
    animation: fadeInDown 0.8s ease forwards;
}

.hero__title {
    font-family: var(--font-family-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease 0.1s forwards;
    opacity: 0;
}

.hero__title span {
    background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: var(--font-size-xl);
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: var(--space-10);
    max-width: 550px;
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

.hero__stats {
    display: flex;
    gap: var(--space-12);
    margin-top: var(--space-16);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero__stat-value {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    margin-bottom: var(--space-1);
}

.hero__stat-label {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    font-weight: 500;
}

/* ---------- SERVICES SECTION ---------- */
.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.services-grid .service-card {
    flex: 0 1 calc(25% - 1.2rem);
}

.service-card {
    text-align: center;
    padding: var(--space-10) var(--space-6);
}

.service-card__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.12), rgba(74, 158, 255, 0.04));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(74, 158, 255, 0.15);
    transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(74, 158, 255, 0.08));
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.15);
}

.service-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold-500);
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-3);
}

.service-card__text {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    line-height: 1.7;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-5);
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gold-500);
    transition: all var(--transition-fast);
}

.service-card__link:hover {
    color: var(--gold-400);
    gap: var(--space-3);
}

.service-card__link svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ---------- WHY SECTION ---------- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.why-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-8);
}

.why-card__number {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-lg);
    font-weight: 800;
    color: var(--gold-500);
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.15);
    border-radius: var(--radius-lg);
}

.why-card__title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.why-card__text {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    line-height: 1.7;
}

/* ---------- REVIEWS SECTION ---------- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.review-card {
    padding: var(--space-8);
}

.review-card__stars {
    display: flex;
    gap: 2px;
    margin-bottom: var(--space-4);
}

.review-card__stars svg {
    width: 18px;
    height: 18px;
    fill: var(--gold-500);
}

.review-card__text {
    font-size: var(--font-size-base);
    color: var(--gray-300);
    line-height: 1.8;
    font-style: italic;
    margin-bottom: var(--space-6);
}

.review-card__author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.review-card__avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--navy-500), var(--navy-400));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-base);
    color: var(--gold-500);
}

.review-card__name {
    font-weight: 600;
    color: var(--white);
    font-size: var(--font-size-sm);
}

.review-card__role {
    font-size: var(--font-size-xs);
    color: var(--gray-500);
}

/* ---------- UPGRADE / CONTACT SECTION ---------- */
.upgrade-section {
    padding: var(--space-12) 0;
}

.upgrade-wrapper {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
}

.upgrade-wrapper:hover,
.upgrade-form.glass-card:hover,
.contact-form.glass-card:hover {
    transform: none;
}

.upgrade-info {
    padding: var(--space-10) var(--space-10);
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.08) 0%, transparent 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.upgrade-info .section-subtitle {
    max-width: 100%;
}

.upgrade-info__list {
    margin-top: var(--space-10);
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.upgrade-info__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-5);
}

.upgrade-info__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--gold-500);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-info__icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--white);
}

.upgrade-info__item h3 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-1);
}

.upgrade-info__item a,
.upgrade-info__item p {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    transition: color var(--transition-fast);
}

.upgrade-info__item a:hover {
    color: var(--gold-400);
}

a.upgrade-info__link {
    text-decoration: none;
    color: inherit;
    transition: opacity var(--transition-fast);
}

a.upgrade-info__link:hover {
    opacity: 0.85;
}

.upgrade-form {
    padding: var(--space-10) var(--space-10);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.form-group {
    margin-bottom: var(--space-3);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-400);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 6px var(--space-3);
    color: var(--white);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    transition: all var(--transition-fast);
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%239BA4B2' 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 12px center;
    background-size: 16px;
    padding-right: var(--space-10);
}

.form-group select option {
    background: var(--navy-800);
    color: var(--white);
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
}

.checkbox-group .checkbox-label {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    white-space: normal;
    cursor: pointer;
    font-size: var(--font-size-sm);
    color: var(--gray-300);
    padding: var(--space-3) var(--space-4);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    min-height: 42px;
    line-height: 1.35;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.checkbox-group .checkbox-label:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(96, 165, 250, 0.35);
}

.checkbox-group .checkbox-label::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(96, 165, 250, 0.12), transparent 55%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.checkbox-group .checkbox-label:hover::before {
    opacity: 1;
}

.checkbox-group .checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    min-width: 20px;
    max-width: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    flex-shrink: 0;
    position: relative;
    top: 0;
    margin-right: 0;
    transition: background-color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--navy-900);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 140ms ease-out;
}

.checkbox-text {
    display: block;
    line-height: 1.35;
    flex: 1;
}

.checkbox-group .checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--gold-500);
    border-color: var(--gold-500);
    box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.16);
}

.checkbox-group .checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    opacity: 1;
}

.checkbox-group .checkbox-label:has(input:checked) {
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.22), rgba(37, 99, 235, 0.09));
    border-color: rgba(96, 165, 250, 0.5);
    color: var(--white);
}

/* ---------- FOOTER ---------- */
.footer {
    background: var(--navy-900);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-8) 0;
}

.footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.footer__socials {
    display: flex;
    gap: var(--space-4);
}

.social-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    color: var(--gray-300);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--white);
    border-color: rgba(37, 99, 235, 0.6);
    background: rgba(37, 99, 235, 0.15);
    transform: translateY(-1px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.social-link--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.footer__contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--gray-400);
    font-size: var(--font-size-sm);
}

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

.footer__contact-item a:hover {
    color: var(--white);
}

.footer__contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold-500);
    fill: none;
    stroke-width: 1.5;
}

.footer__bottom {
    display: flex;
    gap: var(--space-6);
    color: var(--gray-400);
    font-size: var(--font-size-xs);
    text-align: center;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
        gap: var(--space-4);
    }
}

/* ---------- SERVICES PAGE ---------- */
.page-hero {
    padding: calc(var(--header-height) + var(--space-20)) 0 var(--space-16);
    background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero .section-title {
    font-size: var(--font-size-5xl);
}

.service-detail {
    padding: 0;
    border-bottom: none;
    margin-bottom: var(--space-8);
    overflow: hidden;               /* clip fade-in-right animations from overflowing viewport */
}

.service-detail .container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    padding: var(--space-6);
    width: min(1080px, 100%);
    margin-inline: auto;
    transition: background var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.service-detail .container:hover {
    background: rgba(255, 255, 255, 0.032);
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

.service-detail:last-of-type {
    margin-bottom: var(--space-24);
}

.service-detail__container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    gap: var(--space-10);
    align-items: stretch;
}

.service-detail:nth-child(even) .service-detail__container {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail__container>* {
    direction: ltr;
}

.service-detail__icon-large {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.04));
    border-radius: var(--radius-xl);
    border: 1px solid rgba(212, 168, 83, 0.2);
    margin-bottom: var(--space-6);
    transition: all var(--transition-base);
}

.service-detail__icon-large svg {
    width: 36px;
    height: 36px;
    stroke: var(--gold-500);
    fill: none;
    stroke-width: 1.5;
    transition: transform var(--transition-base);
}

.service-detail__icon-large:hover {
    background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(74, 158, 255, 0.08));
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(74, 158, 255, 0.15);
}

.service-detail__icon-large:hover svg {
    transform: scale(1.03);
}

.service-detail__title {
    font-size: var(--font-size-3xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-4);
}

.service-detail__desc {
    font-size: var(--font-size-base);
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.service-detail__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.service-detail__list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-base);
    color: var(--gray-300);
}

.service-detail__list li svg {
    width: 20px;
    height: 20px;
    stroke: var(--gold-500);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.service-detail__visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    max-width: none;
    height: 100%;
}

.service-detail__visual-card {
    width: 100%;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-detail__visual-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(212, 168, 83, 0.08) 0%, transparent 60%);
}

.service-detail__visual-card svg {
    width: 80px;
    height: 80px;
    stroke: var(--navy-300);
    fill: none;
    stroke-width: 1;
    opacity: 0.5;
}

.service-detail__img {
    width: 100%;
    height: 100%;
    aspect-ratio: 4/3;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ---------- ABOUT PAGE ---------- */


.about-intro {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: var(--space-16);
    align-items: stretch;
    margin-top: var(--space-12);
}

.about-intro__image {
    order: 2;
}

.about-intro__text {
    order: 1;
}

.about-intro__text {
    font-size: var(--font-size-lg);
    color: var(--gray-300);
    line-height: 1.8;
}

.about-intro__text p+p {
    margin-top: var(--space-6);
}

.about-intro__image {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 460px;
    height: 100%;
    display: flex;
}

.about-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    image-rendering: auto;
}

.licenses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.license-card {
    text-align: center;
    padding: var(--space-10) var(--space-6);
}

.license-card__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-full);
}

.license-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--success);
    fill: none;
    stroke-width: 2;
}

.license-card__title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.license-card__text {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    line-height: 1.6;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-12);
}

.value-card {
    text-align: center;
    padding: var(--space-8) var(--space-5);
}

.value-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: var(--radius-lg);
}

.value-card__icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--gold-500);
    fill: none;
    stroke-width: 1.5;
}

.value-card__title {
    font-size: var(--font-size-base);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-2);
}

.value-card__text {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    line-height: 1.6;
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    margin-top: var(--space-12);
}

.contact-info__item {
    display: flex;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

a.contact-info__link {
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

a.contact-info__link:hover {
    opacity: 0.85;
}

.contact-info__icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 168, 83, 0.08);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: var(--radius-lg);
}

.contact-info__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--gold-500);
    fill: none;
    stroke-width: 1.5;
}

.contact-info__label {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    font-weight: 500;
    margin-bottom: var(--space-1);
}

.contact-info__value {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--white);
}

.contact-form {
    padding: var(--space-10);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-group label {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--gray-300);
    margin-bottom: var(--space-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-4);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    color: var(--white);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1);
    background: rgba(255, 255, 255, 0.06);
}

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

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

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239BA4B2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    cursor: pointer;
}

.form-group select option {
    background: var(--navy-700);
    color: var(--white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.form-submit {
    margin-top: var(--space-6);
}

.form-submit .btn {
    width: 100%;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Staggered children */
.stagger-children>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children--visible>*:nth-child(1) {
    transition-delay: 0ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children--visible>*:nth-child(2) {
    transition-delay: 100ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children--visible>*:nth-child(3) {
    transition-delay: 200ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children--visible>*:nth-child(4) {
    transition-delay: 300ms;
    opacity: 1;
    transform: translateY(0);
}

.stagger-children--visible>*:nth-child(n+5) {
    transition-delay: 400ms;
    opacity: 1;
    transform: translateY(0);
}

/* ---------- KEYFRAME ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ---------- SCROLL-TO-TOP BUTTON ---------- */
.scroll-top-btn {
    display: flex;
    position: fixed;
    bottom: 24px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.scroll-top-btn--visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn svg {
    width: 22px;
    height: 22px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ---------- FORM SUCCESS MESSAGE ---------- */
.form-success {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-lg);
    color: var(--success);
    font-size: var(--font-size-sm);
    font-weight: 500;
    animation: fadeInUp 0.4s ease;
}

.form-success svg {
    flex-shrink: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .services-grid .service-card {
        flex: 0 1 calc(50% - 0.75rem);
    }

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

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
    }

    .hero__title {
        font-size: var(--font-size-5xl);
    }

    .service-detail__container {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .service-detail:nth-child(even) .service-detail__container {
        direction: ltr;
    }

    .service-detail .container {
        width: 100%;
        padding: var(--space-6);
    }

    .service-detail__visual {
        height: auto;
        max-width: 560px;
        margin-inline: auto;
    }

    .service-detail__img {
        height: auto;
    }

    .about-intro {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .licenses-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

/* ============================================
   MOBILE OVERHAUL (≤ 768px)
   Inline top nav, compact cards, app-like UX
   ============================================ */
@media (max-width: 768px) {
    :root {
        --header-height: 72px;
    }

    /* --- Global mobile spacing --- */
    .container {
        padding: 0 var(--space-4);
    }

    .section {
        padding: var(--space-6) 0;
    }

    .section-label {
        font-size: var(--font-size-xs);
        letter-spacing: 2px;
        margin-bottom: var(--space-2);
    }

    .section-title {
        font-size: var(--font-size-xl);
        letter-spacing: 0.5px;
        margin-bottom: var(--space-3);
    }

    .section-subtitle {
        font-size: var(--font-size-sm);
        line-height: 1.5;
    }

    /* --- HEADER: Logo on top, inline nav tabs below --- */
    .header {
        height: var(--header-height);
    }

    .header .container {
        padding-top: var(--space-2);
        padding-bottom: var(--space-2);
        padding-left: var(--space-5);
        padding-right: var(--space-5);
        position: relative;             /* anchor for absolutely positioned nav */
    }

    .header__logo {
        flex: 0 0 auto;
    }

    .header__logo img {
        height: 48px;
        width: auto;
        object-fit: contain;
    }

    /* NAV: absolutely positioned to the right — immune to flexbox reflow */
    .nav {
        position: absolute !important;
        right: var(--space-4) !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: block !important;
        width: min(240px, calc(100vw - 210px)) !important;
        min-width: 180px !important;
        margin: 0 !important;
        flex: none !important;
    }

    .nav__list {
        display: grid !important;
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 0 !important;
        width: 100% !important;
        overflow: hidden;
        align-items: center;
    }

    .nav__item {
        text-align: center;
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden;
    }

    .nav__link {
        display: block;
        font-size: 12px;
        font-weight: 600;
        padding: 0;
        color: var(--gray-400);
        letter-spacing: 0.3px;
        text-transform: uppercase;
        white-space: nowrap;
        text-align: center;
        position: relative;
        transition: color 0.15s ease;
        border-radius: 0;
        box-sizing: border-box;
        height: 32px !important;
        line-height: 32px !important;
        overflow: hidden;
    }

    /* Every link gets the underline — transparent when inactive */
    .nav__link::after {
        content: '' !important;
        position: absolute !important;
        bottom: 2px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 16px !important;
        height: 2px !important;
        background: transparent !important;
        border-radius: 99px !important;
    }

    .nav__link:hover,
    .nav__link--active {
        color: var(--white);
        font-weight: 600;
    }

    /* Only active link gets the blue underline */
    .nav__link--active::after {
        background: var(--gold-500) !important;
    }

    /* Hide CTA button and hamburger in header */
    .nav__cta {
        display: none !important;
    }

    .nav__toggle {
        display: none !important;
    }

    .nav-overlay {
        display: none !important;
    }

    /* Hide bottom nav on mobile - using top nav instead */
    .mobile-bottom-nav {
        display: none !important;
    }

    /* --- HERO SECTION mobile --- */
    .hero {
        min-height: 75vh;
        align-items: flex-end;
        padding-bottom: var(--space-6);
    }

    .hero__bg img {
        height: 115%;
        object-position: center top;
        transform: translateY(-15%);
    }

    .hero__overlay {
        background: linear-gradient(to top,
                rgba(5, 10, 18, 0.97) 0%,
                rgba(5, 10, 18, 0.85) 30%,
                rgba(5, 10, 18, 0.45) 55%,
                rgba(5, 10, 18, 0.15) 100%);
    }

    .hero__content {
        max-width: 100%;
        padding-top: 0;
        text-align: center;
    }

    .hero__badge {
        margin-bottom: var(--space-4);
        font-size: 0.7rem;
        padding: 4px 12px;
    }

    .hero__title {
        font-size: clamp(1.75rem, 7.5vw, 2.5rem);
        letter-spacing: -0.5px;
        margin-bottom: var(--space-3);
        line-height: 1.15;
    }

    .hero__description {
        font-size: var(--font-size-sm);
        max-width: 100%;
        margin-bottom: var(--space-5);
        line-height: 1.5;
        color: var(--gray-400);
    }

    .hero__description br {
        display: inline;
    }

    .hero__actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-size-sm);
    }

    .hero__actions .btn--xl {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-size-sm);
        border-radius: var(--radius-lg);
    }

    .hero__stats {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-8);
        margin-top: var(--space-6);
        padding-top: var(--space-5);
        text-align: center;
    }

    .hero__stat-value {
        font-size: var(--font-size-xl);
    }

    .hero__stat-label {
        font-size: 10px;
    }

    /* --- Section titles: smaller font, allow wrapping --- */
    .section-title {
        font-size: var(--font-size-base);
    }

    .section-brand {
        font-size: var(--font-size-3xl);
        letter-spacing: 0.18em;
        margin-bottom: var(--space-1);
    }

    /* Ensure only the top "What We Do" heading stack is visible immediately on mobile */
    #services .section-label.fade-in,
    #services .section-brand.fade-in,
    #services .section-title.fade-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    /* --- SERVICE CARDS mobile: horizontal, tight padding --- */
    .services-grid {
        flex-direction: column;
        gap: var(--space-2);
        margin-top: var(--space-4);
    }

    .services-grid .service-card {
        flex: 0 1 100%;
    }

    .service-card {
        display: grid;
        grid-template-columns: 48px 1fr;
        grid-template-rows: auto auto auto;
        gap: 2px var(--space-3);
        padding: 8px 10px;
        text-align: left;
    }

    .service-card__icon {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        width: 48px;
        height: 48px;
        min-width: 48px;
        margin: 0;
        align-self: center;
    }

    .service-card__icon svg {
        width: 24px;
        height: 24px;
    }

    .service-card__title {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        font-size: var(--font-size-lg);
        font-weight: 700;
        margin-bottom: 0;
        align-self: center;
    }

    .service-card__text {
        grid-row: 2 / 3;
        grid-column: 1 / 3;
        font-size: 14px;
        line-height: 1.5;
        margin-top: 4px;
    }

    .service-card__link {
        grid-row: 3 / 4;
        grid-column: 1 / 3;
        font-size: 12px;
        margin-top: 4px;
        justify-self: end;
        white-space: nowrap;
    }

    /* --- WHY CARDS mobile: compact, narrower --- */
    .why-grid {
        gap: var(--space-2);
        margin-top: var(--space-4);
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .why-card {
        padding: 6px var(--space-3);
        gap: var(--space-2);
    }

    .why-card__number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 13px;
    }

    .why-card__title {
        font-size: var(--font-size-base);
        font-weight: 700;
        margin-bottom: 2px;
    }

    .why-card__text {
        font-size: var(--font-size-sm);
        line-height: 1.4;
    }

    /* --- REVIEWS mobile: horizontal scroll --- */
    .reviews-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-3);
        margin-top: var(--space-5);
        padding-bottom: var(--space-3);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .reviews-grid::-webkit-scrollbar {
        display: none;
    }

    .reviews-grid .review-card {
        min-width: 82vw;
        max-width: 82vw;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        flex-shrink: 0;
    }

    .review-card {
        padding: var(--space-5);
    }

    .review-card__text {
        font-size: var(--font-size-sm);
        line-height: 1.6;
        margin-bottom: var(--space-4);
    }

    /* --- UPGRADE / CONTACT FORM mobile: compact --- */
    .upgrade-wrapper {
        grid-template-columns: 1fr;
        border-radius: var(--radius-xl);
    }

    .upgrade-info {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        padding: var(--space-5);
    }

    .upgrade-info .section-title {
        font-size: var(--font-size-xl);
    }

    .upgrade-info__list {
        gap: var(--space-4);
        margin-top: var(--space-5);
    }

    .upgrade-info__icon {
        width: 36px;
        height: 36px;
    }

    .upgrade-info__icon svg {
        width: 16px;
        height: 16px;
    }

    .upgrade-info__item h3 {
        font-size: var(--font-size-sm);
    }

    .upgrade-info__item a,
    .upgrade-info__item p {
        font-size: var(--font-size-xs);
    }

    .upgrade-form {
        padding: var(--space-2);
    }

    /* Keep form rows side-by-side on mobile! */
    .form-row {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }

    .form-group {
        margin-bottom: var(--space-2);
    }

    .form-group label {
        font-size: 13px;
        margin-bottom: 2px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 8px var(--space-3);
        font-size: var(--font-size-base);
        border-radius: var(--radius-md);
        min-height: 44px;
    }

    .form-group textarea {
        min-height: 110px;
    }

    .form-group input::placeholder,
    .form-group textarea::placeholder {
        font-size: 12px;
    }

    /* Checkbox group: 2 columns, compact */
    .checkbox-group {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-1);
    }

    .checkbox-group .checkbox-label {
        padding: 6px 8px;
        min-height: 34px;
        font-size: 11px;
        gap: 6px;
        border-radius: var(--radius-md);
    }

    .checkbox-custom {
        width: 16px;
        height: 16px;
        min-width: 16px;
        max-width: 16px;
    }

    .checkbox-custom::after {
        left: 4px;
        top: 1px;
        width: 5px;
        height: 9px;
    }

    .checkbox-text {
        font-size: 11px;
        line-height: 1.25;
    }

    /* --- CONTACT PAGE mobile --- */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
        margin-top: var(--space-6);
    }

    .contact-info__item {
        margin-bottom: var(--space-4);
        gap: var(--space-3);
    }

    .contact-info__icon {
        width: 40px;
        height: 40px;
    }

    .contact-info__value {
        font-size: var(--font-size-base);
    }

    .contact-form {
        padding: var(--space-2);
    }

    .contact-form .form-group label {
        font-size: 13px;
    }

    .contact-form .form-group input,
    .contact-form .form-group select,
    .contact-form .form-group textarea {
        font-size: var(--font-size-base);
        min-height: 44px;
    }

    .contact-form .form-group textarea {
        min-height: 132px;
    }

    .contact-form .checkbox-group .checkbox-label,
    .contact-form .checkbox-text {
        font-size: 12px;
    }

    /* --- FOOTER mobile --- */
    .footer {
        padding: var(--space-5) 0;
    }

    .footer__content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--space-2) var(--space-4);
    }

    .footer__socials {
        width: 100%;
        justify-content: center;
    }

    .footer__contact-item {
        justify-content: center;
        font-size: var(--font-size-xs);
    }

    .footer__bottom {
        font-size: 10px;
        gap: var(--space-3);
    }

    /* --- PAGE HERO (subpages) mobile --- */
    .page-hero {
        padding: calc(var(--header-height) + var(--space-5)) 0 var(--space-4);
    }

    .page-hero .section-title {
        font-size: var(--font-size-xl);
        letter-spacing: 2px;
        white-space: normal;
    }

    .page-hero .section-subtitle {
        margin-bottom: 0;
    }

    /* --- ABOUT PAGE mobile --- */
    .about-intro {
        display: flex;
        flex-direction: column;
        margin-top: var(--space-4);
    }

    .about-intro__image {
        order: 1;
        min-height: 180px;
        border-radius: var(--radius-xl);
    }

    .about-intro__text {
        order: 2;
        font-size: var(--font-size-sm);
    }

    .licenses-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }

    .license-card {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: var(--space-3);
        padding: var(--space-3) var(--space-4);
        text-align: left;
    }

    .license-card__icon {
        margin: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .license-card__icon svg {
        width: 20px;
        height: 20px;
    }

    .license-card__title {
        font-size: var(--font-size-sm);
        margin-bottom: 1px;
    }

    .license-card__text {
        font-size: 11px;
        line-height: 1.3;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
    }

    .value-card {
        padding: var(--space-4) var(--space-3);
    }

    .value-card__title {
        font-size: var(--font-size-sm);
    }

    .value-card__text {
        font-size: 11px;
    }

    /* --- SERVICES PAGE mobile --- */
    .service-detail {
        margin-bottom: var(--space-4);
    }

    .service-detail .container {
        padding: var(--space-4);
        border-radius: var(--radius-xl);
        margin: 0 var(--space-3);
        width: auto;
    }

    .service-detail__container {
        gap: var(--space-5);
    }

    .service-detail__icon-large {
        width: 52px;
        height: 52px;
        margin-bottom: var(--space-3);
    }

    .service-detail__icon-large svg {
        width: 26px;
        height: 26px;
    }

    .service-detail__title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-2);
    }

    .service-detail__desc {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-3);
    }

    .service-detail__list li {
        font-size: var(--font-size-sm);
        gap: var(--space-2);
    }

    .service-detail__list li svg {
        width: 16px;
        height: 16px;
    }

    .service-detail:last-of-type {
        margin-bottom: var(--space-10);
    }

    /* --- CTA mobile --- */
    .cta-box__title {
        font-size: var(--font-size-lg);
    }

    .cta-box__text {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-4);
    }

    .cta-box__actions {
        flex-direction: column;
        gap: var(--space-3);
    }

    .cta-box__actions .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- Buttons mobile --- */
    .btn {
        padding: var(--space-3) var(--space-5);
        font-size: var(--font-size-sm);
        border-radius: var(--radius-lg);
    }

    .btn--lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-size-sm);
    }

    /* Glass card hover: no transform on mobile (prevents jank) */
    .glass-card:hover {
        transform: none;
    }
}

/* Ensure bottom nav is hidden on desktop */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 480px) {
    .header .container {
        padding-left: var(--space-4);
        padding-right: var(--space-4);
    }

    .header__logo img {
        height: 42px;
    }

    .nav {
        width: min(220px, calc(100vw - 190px)) !important;
        min-width: 170px !important;
    }

    .nav__link {
        font-size: 11px;
        letter-spacing: 0.2px;
    }

    .hero__title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

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

    .upgrade-info .section-title {
        font-size: var(--font-size-lg);
    }
}

@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;
    }
}

/* ---------- CTA SECTION ---------- */
.cta-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-box__title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-4);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-box__text {
    font-size: var(--font-size-lg);
    color: var(--gray-400);
    margin-bottom: var(--space-8);
    line-height: 1.6;
}

.cta-box__actions {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- GLASS CARD ---------- */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    backdrop-filter: blur(12px);
}

/* ---------- PRE-WIRING TABS ---------- */
.pre-wire-tabs {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-10);
    flex-wrap: wrap;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--gray-400);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    font-weight: 500;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.tab-btn:focus-visible {
    box-shadow: none;
    outline: none;
}

.tab-btn:focus {
    outline: none;
    box-shadow: none;
}

.tab-btn:active {
    transform: scale(0.97);
    transition: transform 0.1s ease;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Tab content heading animation */
.tab-content.active .tab-content__heading {
    animation: tabSlideIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered item entrance */
.tab-content.active .pw-item {
    opacity: 0;
    animation: tabItemIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.tab-content.active .pw-item:nth-child(1) { animation-delay: 0.08s; }
.tab-content.active .pw-item:nth-child(2) { animation-delay: 0.16s; }
.tab-content.active .pw-item:nth-child(3) { animation-delay: 0.24s; }
.tab-content.active .pw-item:nth-child(4) { animation-delay: 0.32s; }
.tab-content.active .pw-item:nth-child(5) { animation-delay: 0.40s; }
.tab-content.active .pw-item:nth-child(6) { animation-delay: 0.48s; }

@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tabItemIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Tab content heading */
.tab-content__heading {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-300) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Pre-wire item grid */
.pw-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.pw-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.pw-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pw-item__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(37, 99, 235, 0.05));
    border-radius: var(--radius-md);
    color: var(--gold-400);
}

.pw-item__icon svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.pw-item__text {
    flex: 1;
}

.pw-item__title {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
}

.pw-item__desc {
    font-size: var(--font-size-sm);
    color: var(--gray-400);
    margin-top: var(--space-1);
    line-height: 1.4;
}

/* Builder Values */
.builder-values {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.builder-value-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    color: var(--gray-300);
    font-size: var(--font-size-sm);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-base);
}

.builder-value-tag:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.2);
    color: var(--white);
}

.builder-value-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold-400);
    flex-shrink: 0;
}

/* Builder values heading */
.builder-values-heading {
    font-family: var(--font-family-heading);
    font-size: var(--font-size-lg);
    color: var(--gray-300);
    margin-bottom: var(--space-4);
    font-weight: 600;
}

/* Pre-wiring section responsive */
@media (max-width: 768px) {
    .pw-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pre-wire-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 12px;
        min-width: 0;
        width: auto;
        text-align: center;
    }
}

/* ---------- 2026 Dark Tune (Slightly Lighter) ---------- */
:root {
    --navy-900: #070d18;
    --navy-800: #0b1423;
    --navy-700: #101d31;
    --navy-600: #152943;
    --gray-300: #d0d8e4;
    --gray-400: #B5C0D0;
    --gray-500: #95A7BC;
}

body {
    background:
        radial-gradient(1200px 600px at 12% -8%, rgba(37, 99, 235, 0.1) 0%, transparent 58%),
        radial-gradient(900px 450px at 98% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 62%),
        var(--navy-900);
}

/* Pre-wiring section spacing polish */
#pre-wiring .text-center {
    margin-bottom: var(--space-10);
}

#pre-wiring .section-title {
    margin-bottom: var(--space-4);
}

#pre-wiring .section-subtitle {
    margin-top: 0;
    max-width: 760px;
}

#pre-wiring .pre-wire-tabs {
    margin-top: var(--space-8);
    margin-bottom: var(--space-12);
}

#pre-wiring .glass-card.fade-in {
    padding: var(--space-10);
}

#pre-wiring .tab-content__heading {
    margin-bottom: var(--space-8);
}

.section:nth-of-type(even),
.service-detail:nth-of-type(odd),
.cta-section,
.page-hero {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.016), rgba(255, 255, 255, 0.006));
}

.section:nth-of-type(odd),
.service-detail:nth-of-type(even) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.006), rgba(255, 255, 255, 0.0));
}

.header {
    background: rgba(7, 13, 24, 0.92);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.header--scrolled {
    background: rgba(7, 13, 24, 0.97);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.glass-card,
.upgrade-wrapper,
.service-detail__visual-card,
.contact-form {
    background: rgba(255, 255, 255, 0.038);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.062);
    border-color: rgba(255, 255, 255, 0.16);
}

.page-hero {
    background:
        linear-gradient(180deg, rgba(14, 25, 41, 0.95), rgba(7, 13, 24, 0.94));
}

.footer {
    background: #060d17;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.044);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

@media (max-width: 768px) {
    #pre-wiring .text-center {
        margin-bottom: var(--space-6);
    }

    #pre-wiring .pre-wire-tabs {
        margin-top: var(--space-4);
        margin-bottom: var(--space-6);
    }

    #pre-wiring .glass-card.fade-in {
        padding: var(--space-5);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: clip;
    }

    .tab-btn {
        padding: 8px 14px;
        font-size: 12px;
        width: auto;
    }

    #pre-wiring .pre-wire-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2);
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .tab-content__heading {
        font-size: var(--font-size-lg);
    }

    .pw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }

    .pw-item {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-1);
        padding: var(--space-3) var(--space-3);
        min-width: 0;
    }

    .pw-item__icon {
        width: 34px;
        height: 34px;
    }

    .pw-item__icon svg {
        width: 17px;
        height: 17px;
    }

    .pw-item__title {
        font-size: 13px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .pw-item__desc {
        font-size: 11px;
        line-height: 1.35;
    }

    .builder-value-tag {
        font-size: var(--font-size-xs);
        padding: var(--space-2) var(--space-4);
    }
}
