:root {
    /* Primitive Color Tokens */
    --color-white: rgba(255, 255, 255, 1);
    --color-black: rgba(0, 0, 0, 1);
    --color-cream-50: rgba(252, 252, 249, 1);
    --color-cream-100: rgba(255, 255, 253, 1);
    --color-gray-200: rgba(245, 245, 245, 1);
    --color-gray-300: rgba(167, 169, 169, 1);
    --color-gray-400: rgba(119, 124, 124, 1);
    --color-slate-500: rgba(98, 108, 113, 1);
    --color-brown-600: rgba(94, 82, 64, 1);
    --color-charcoal-700: rgba(31, 33, 33, 1);
    --color-charcoal-800: rgba(38, 40, 40, 1);
    --color-slate-900: rgba(19, 52, 59, 1);
    --color-teal-300: rgba(50, 184, 198, 1);
    --color-teal-400: rgba(45, 166, 178, 1);
    --color-teal-500: rgba(33, 128, 141, 1);
    --color-teal-600: rgba(29, 116, 128, 1);
    --color-teal-700: rgba(26, 104, 115, 1);
    --color-teal-800: rgba(41, 150, 161, 1);
    --color-red-400: rgba(255, 84, 89, 1);
    --color-red-500: rgba(192, 21, 47, 1);
    --color-orange-400: rgba(230, 129, 97, 1);
    --color-orange-500: rgba(168, 75, 47, 1);

    /* RGB versions for opacity control */
    --color-brown-600-rgb: 94, 82, 64;
    --color-teal-500-rgb: 33, 128, 141;
    --color-slate-900-rgb: 19, 52, 59;
    --color-slate-500-rgb: 98, 108, 113;
    --color-red-500-rgb: 192, 21, 47;
    --color-red-400-rgb: 255, 84, 89;
    --color-orange-500-rgb: 168, 75, 47;
    --color-orange-400-rgb: 230, 129, 97;

    /* Background color tokens (Light Mode) */
    --color-bg-1: rgba(59, 130, 246, 0.08);
    /* Light blue */
    --color-bg-2: rgba(245, 158, 11, 0.08);
    /* Light yellow */
    --color-bg-3: rgba(34, 197, 94, 0.08);
    /* Light green */
    --color-bg-4: rgba(239, 68, 68, 0.08);
    /* Light red */
    --color-bg-5: rgba(147, 51, 234, 0.08);
    /* Light purple */
    --color-bg-6: rgba(249, 115, 22, 0.08);
    /* Light orange */
    --color-bg-7: rgba(236, 72, 153, 0.08);
    /* Light pink */
    --color-bg-8: rgba(6, 182, 212, 0.08);
    /* Light cyan */

    /* Semantic Color Tokens (Light Mode) */
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--color-teal-500);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);
    --color-select-caret: rgba(var(--color-slate-900-rgb), 0.8);

    /* Common style patterns */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: 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='%23134252' 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");
    --select-caret-dark: 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='%23f5f5f5' 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");

    /* RGB versions for opacity control */
    --color-success-rgb: 33, 128, 141;
    --color-error-rgb: 192, 21, 47;
    --color-warning-rgb: 168, 75, 47;
    --color-info-rgb: 98, 108, 113;

    /* Typography */
    --font-family-base: "FKGroteskNeue", "Geist", "Inter", -apple-system,
        BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-family-mono: "Berkeley Mono", ui-monospace, SFMono-Regular, Menlo,
        Monaco, Consolas, monospace;
    --font-size-xs: 11px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-md: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-2xl: 20px;
    --font-size-3xl: 24px;
    --font-size-4xl: 30px;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 550;
    --font-weight-bold: 600;
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --letter-spacing-tight: -0.01em;

    /* Spacing */
    --space-0: 0;
    --space-1: 1px;
    --space-2: 2px;
    --space-4: 4px;
    --space-6: 6px;
    --space-8: 8px;
    --space-10: 10px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-base: 8px;
    --radius-md: 10px;
    --radius-lg: 12px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.04),
        0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.04),
        0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.03);

    /* Animation */
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --ease-standard: cubic-bezier(0.16, 1, 0.3, 1);

    /* Layout */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
}

/* Dark mode colors */
@media (prefers-color-scheme: dark) {
    :root {
        /* RGB versions for opacity control (Dark Mode) */
        --color-gray-400-rgb: 119, 124, 124;
        --color-teal-300-rgb: 50, 184, 198;
        --color-gray-300-rgb: 167, 169, 169;
        --color-gray-200-rgb: 245, 245, 245;

        /* Background color tokens (Dark Mode) */
        --color-bg-1: rgba(29, 78, 216, 0.15);
        /* Dark blue */
        --color-bg-2: rgba(180, 83, 9, 0.15);
        /* Dark yellow */
        --color-bg-3: rgba(21, 128, 61, 0.15);
        /* Dark green */
        --color-bg-4: rgba(185, 28, 28, 0.15);
        /* Dark red */
        --color-bg-5: rgba(107, 33, 168, 0.15);
        /* Dark purple */
        --color-bg-6: rgba(194, 65, 12, 0.15);
        /* Dark orange */
        --color-bg-7: rgba(190, 24, 93, 0.15);
        /* Dark pink */
        --color-bg-8: rgba(8, 145, 178, 0.15);
        /* Dark cyan */

        /* Semantic Color Tokens (Dark Mode) */
        --color-background: var(--color-charcoal-700);
        --color-surface: var(--color-charcoal-800);
        --color-text: var(--color-gray-200);
        --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
        --color-primary: var(--color-teal-300);
        --color-primary-hover: var(--color-teal-400);
        --color-primary-active: var(--color-teal-800);
        --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
        --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
        --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
        --color-border: rgba(var(--color-gray-400-rgb), 0.3);
        --color-error: var(--color-red-400);
        --color-success: var(--color-teal-300);
        --color-warning: var(--color-orange-400);
        --color-info: var(--color-gray-300);
        --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
        --color-btn-primary-text: var(--color-slate-900);
        --color-card-border: rgba(var(--color-gray-400-rgb), 0.2);
        --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
        --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
            inset 0 -1px 0 rgba(0, 0, 0, 0.15);
        --button-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
        --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

        /* Common style patterns - updated for dark mode */
        --focus-ring: 0 0 0 3px var(--color-focus-ring);
        --focus-outline: 2px solid var(--color-primary);
        --status-bg-opacity: 0.15;
        --status-border-opacity: 0.25;
        --select-caret-light: 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='%23134252' 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");
        --select-caret-dark: 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='%23f5f5f5' 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");

        /* RGB versions for dark mode */
        --color-success-rgb: var(--color-teal-300-rgb);
        --color-error-rgb: var(--color-red-400-rgb);
        --color-warning-rgb: var(--color-orange-400-rgb);
        --color-info-rgb: var(--color-gray-300-rgb);
    }
}

/* Data attribute for manual theme switching */
[data-color-scheme="dark"] {
    /* RGB versions for opacity control (dark mode) */
    --color-gray-400-rgb: 119, 124, 124;
    --color-teal-300-rgb: 50, 184, 198;
    --color-gray-300-rgb: 167, 169, 169;
    --color-gray-200-rgb: 245, 245, 245;

    /* Colorful background palette - Dark Mode */
    --color-bg-1: rgba(29, 78, 216, 0.15);
    /* Dark blue */
    --color-bg-2: rgba(180, 83, 9, 0.15);
    /* Dark yellow */
    --color-bg-3: rgba(21, 128, 61, 0.15);
    /* Dark green */
    --color-bg-4: rgba(185, 28, 28, 0.15);
    /* Dark red */
    --color-bg-5: rgba(107, 33, 168, 0.15);
    /* Dark purple */
    --color-bg-6: rgba(194, 65, 12, 0.15);
    /* Dark orange */
    --color-bg-7: rgba(190, 24, 93, 0.15);
    /* Dark pink */
    --color-bg-8: rgba(8, 145, 178, 0.15);
    /* Dark cyan */

    /* Semantic Color Tokens (Dark Mode) */
    --color-background: var(--color-charcoal-700);
    --color-surface: var(--color-charcoal-800);
    --color-text: var(--color-gray-200);
    --color-text-secondary: rgba(var(--color-gray-300-rgb), 0.7);
    --color-primary: var(--color-teal-300);
    --color-primary-hover: var(--color-teal-400);
    --color-primary-active: var(--color-teal-800);
    --color-secondary: rgba(var(--color-gray-400-rgb), 0.15);
    --color-secondary-hover: rgba(var(--color-gray-400-rgb), 0.25);
    --color-secondary-active: rgba(var(--color-gray-400-rgb), 0.3);
    --color-border: rgba(var(--color-gray-400-rgb), 0.3);
    --color-error: var(--color-red-400);
    --color-success: var(--color-teal-300);
    --color-warning: var(--color-orange-400);
    --color-info: var(--color-gray-300);
    --color-focus-ring: rgba(var(--color-teal-300-rgb), 0.4);
    --color-btn-primary-text: var(--color-slate-900);
    --color-card-border: rgba(var(--color-gray-400-rgb), 0.15);
    --color-card-border-inner: rgba(var(--color-gray-400-rgb), 0.15);
    --shadow-inset-sm: inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    --color-border-secondary: rgba(var(--color-gray-400-rgb), 0.2);
    --color-select-caret: rgba(var(--color-gray-200-rgb), 0.8);

    /* Common style patterns - updated for dark mode */
    --focus-ring: 0 0 0 3px var(--color-focus-ring);
    --focus-outline: 2px solid var(--color-primary);
    --status-bg-opacity: 0.15;
    --status-border-opacity: 0.25;
    --select-caret-light: 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='%23134252' 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");
    --select-caret-dark: 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='%23f5f5f5' 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");

    /* RGB versions for dark mode */
    --color-success-rgb: var(--color-teal-300-rgb);
    --color-error-rgb: var(--color-red-400-rgb);
    --color-warning-rgb: var(--color-orange-400-rgb);
    --color-info-rgb: var(--color-gray-300-rgb);
}

[data-color-scheme="light"] {
    /* RGB versions for opacity control (light mode) */
    --color-brown-600-rgb: 94, 82, 64;
    --color-teal-500-rgb: 33, 128, 141;
    --color-slate-900-rgb: 19, 52, 59;

    /* Semantic Color Tokens (Light Mode) */
    --color-background: var(--color-cream-50);
    --color-surface: var(--color-cream-100);
    --color-text: var(--color-slate-900);
    --color-text-secondary: var(--color-slate-500);
    --color-primary: var(--color-teal-500);
    --color-primary-hover: var(--color-teal-600);
    --color-primary-active: var(--color-teal-700);
    --color-secondary: rgba(var(--color-brown-600-rgb), 0.12);
    --color-secondary-hover: rgba(var(--color-brown-600-rgb), 0.2);
    --color-secondary-active: rgba(var(--color-brown-600-rgb), 0.25);
    --color-border: rgba(var(--color-brown-600-rgb), 0.2);
    --color-btn-primary-text: var(--color-cream-50);
    --color-card-border: rgba(var(--color-brown-600-rgb), 0.12);
    --color-card-border-inner: rgba(var(--color-brown-600-rgb), 0.12);
    --color-error: var(--color-red-500);
    --color-success: var(--color-teal-500);
    --color-warning: var(--color-orange-500);
    --color-info: var(--color-slate-500);
    --color-focus-ring: rgba(var(--color-teal-500-rgb), 0.4);

    /* RGB versions for light mode */
    --color-success-rgb: var(--color-teal-500-rgb);
    --color-error-rgb: var(--color-red-500-rgb);
    --color-warning-rgb: var(--color-orange-500-rgb);
    --color-info-rgb: var(--color-slate-500-rgb);
}

/* Base styles */
html {
    font-size: var(--font-size-base);
    font-family: var(--font-family-base);
    line-height: var(--line-height-normal);
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-tight);
    color: var(--color-text);
    letter-spacing: var(--letter-spacing-tight);
}

h1 {
    font-size: var(--font-size-4xl);
}

h2 {
    font-size: var(--font-size-3xl);
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-md);
}

p {
    margin: 0 0 var(--space-16) 0;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-standard);
}

a:hover {
    color: var(--color-primary-hover);
}

code,
pre {
    font-family: var(--font-family-mono);
    font-size: calc(var(--font-size-base) * 0.95);
    background-color: var(--color-secondary);
    border-radius: var(--radius-sm);
}

code {
    padding: var(--space-1) var(--space-4);
}

pre {
    padding: var(--space-16);
    margin: var(--space-16) 0;
    overflow: auto;
    border: 1px solid var(--color-border);
}

pre code {
    background: none;
    padding: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-base);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    border: none;
    text-decoration: none;
    position: relative;
}

.btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-btn-primary-text);
}

.btn--primary:hover {
    background: var(--color-primary-hover);
}

.btn--primary:active {
    background: var(--color-primary-active);
}

.btn--secondary {
    background: var(--color-secondary);
    color: var(--color-text);
}

.btn--secondary:hover {
    background: var(--color-secondary-hover);
}

.btn--secondary:active {
    background: var(--color-secondary-active);
}

.btn--outline {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.btn--outline:hover {
    background: var(--color-secondary);
}

.btn--sm {
    padding: var(--space-4) var(--space-12);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-sm);
}

.btn--lg {
    padding: var(--space-10) var(--space-20);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-md);
}

.btn--full-width {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Form elements */
.form-control {
    display: block;
    width: 100%;
    padding: var(--space-8) var(--space-12);
    font-size: var(--font-size-md);
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-base);
    transition: border-color var(--duration-fast) var(--ease-standard),
        box-shadow var(--duration-fast) var(--ease-standard);
}

textarea.form-control {
    font-family: var(--font-family-base);
    font-size: var(--font-size-base);
}

select.form-control {
    padding: var(--space-8) var(--space-12);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: var(--select-caret-light);
    background-repeat: no-repeat;
    background-position: right var(--space-12) center;
    background-size: 16px;
    padding-right: var(--space-32);
}

/* Add a dark mode specific caret */
@media (prefers-color-scheme: dark) {
    select.form-control {
        background-image: var(--select-caret-dark);
    }
}

/* Also handle data-color-scheme */
[data-color-scheme="dark"] select.form-control {
    background-image: var(--select-caret-dark);
}

[data-color-scheme="light"] select.form-control {
    background-image: var(--select-caret-light);
}

.form-control:focus {
    border-color: var(--color-primary);
    outline: var(--focus-outline);
}

.form-label {
    display: block;
    margin-bottom: var(--space-8);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.form-group {
    margin-bottom: var(--space-16);
}

/* Card component */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-card-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow var(--duration-normal) var(--ease-standard);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card__body {
    padding: var(--space-16);
}

.card__header,
.card__footer {
    padding: var(--space-16);
    border-bottom: 1px solid var(--color-card-border-inner);
}

/* Status indicators - simplified with CSS variables */
.status {
    display: inline-flex;
    align-items: center;
    padding: var(--space-6) var(--space-12);
    border-radius: var(--radius-full);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
}

.status--success {
    background-color: rgba(var(--color-success-rgb, 33, 128, 141),
            var(--status-bg-opacity));
    color: var(--color-success);
    border: 1px solid rgba(var(--color-success-rgb, 33, 128, 141), var(--status-border-opacity));
}

.status--error {
    background-color: rgba(var(--color-error-rgb, 192, 21, 47),
            var(--status-bg-opacity));
    color: var(--color-error);
    border: 1px solid rgba(var(--color-error-rgb, 192, 21, 47), var(--status-border-opacity));
}

.status--warning {
    background-color: rgba(var(--color-warning-rgb, 168, 75, 47),
            var(--status-bg-opacity));
    color: var(--color-warning);
    border: 1px solid rgba(var(--color-warning-rgb, 168, 75, 47), var(--status-border-opacity));
}

.status--info {
    background-color: rgba(var(--color-info-rgb, 98, 108, 113),
            var(--status-bg-opacity));
    color: var(--color-info);
    border: 1px solid rgba(var(--color-info-rgb, 98, 108, 113), var(--status-border-opacity));
}

/* Container layout */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: var(--space-16);
    padding-left: var(--space-16);
}

@media (min-width: 640px) {
    .container {
        max-width: var(--container-sm);
    }
}

@media (min-width: 768px) {
    .container {
        max-width: var(--container-md);
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: var(--container-lg);
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: var(--container-xl);
    }
}

/* Utility classes */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-4 {
    gap: var(--space-4);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-16 {
    gap: var(--space-16);
}

.m-0 {
    margin: 0;
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mx-8 {
    margin-left: var(--space-8);
    margin-right: var(--space-8);
}

.my-8 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-8);
}

.p-0 {
    padding: 0;
}

.py-8 {
    padding-top: var(--space-8);
    padding-bottom: var(--space-8);
}

.px-8 {
    padding-left: var(--space-8);
    padding-right: var(--space-8);
}

.py-16 {
    padding-top: var(--space-16);
    padding-bottom: var(--space-16);
}

.px-16 {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
}

.block {
    display: block;
}

.hidden {
    display: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

:focus-visible {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

/* Dark mode specifics */
[data-color-scheme="dark"] .btn--outline {
    border: 1px solid var(--color-border-secondary);
}

@font-face {
    font-family: 'FKGroteskNeue';
    src: url('https://r2cdn.perplexity.ai/fonts/FKGroteskNeue.woff2') format('woff2');
}

/* END PERPLEXITY DESIGN SYSTEM */
/* Enhanced Rewall Construction Solutions - Premium CSS */

/* Custom brand colors and enhanced design system */
:root {
    --brand-primary: #2d5a52;
    --brand-accent: #f4c542;
    --brand-primary-dark: #1e3e36;
    --brand-primary-light: #4a7c71;
    --brand-accent-dark: #d4a635;
    --brand-accent-light: #f6d55c;

    /* Premium gradients */
    --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
    --gradient-accent: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-light) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(45, 90, 82, 0.9) 0%, rgba(74, 124, 113, 0.8) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);

    /* Enhanced shadows */
    --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 30px rgba(244, 196, 66, 0.3);

    /* Override design system colors */
    --color-primary: var(--brand-primary);
    --color-primary-hover: var(--brand-primary-light);
    --color-primary-active: var(--brand-primary-dark);

    /* Animation variables */
    --animation-speed: 0.6s;
    --animation-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --animation-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    :root {
        --gradient-hero: linear-gradient(135deg, rgba(74, 124, 113, 0.9) 0%, rgba(93, 135, 126, 0.8) 100%);
        --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.3);
        --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
    }
}

[data-color-scheme="dark"] {
    --gradient-hero: linear-gradient(135deg, rgba(74, 124, 113, 0.9) 0%, rgba(93, 135, 126, 0.8) 100%);
    --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.3);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Base enhancements */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    background: var(--color-background);
    scroll-behavior: smooth;
}

/* Enhanced Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(var(--color-border), 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* NAVBAR */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    position: relative;
}

/* LOGO */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo__icon {
    width: 120px;
    height: 110px;
    border-radius: 12px;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.logo__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* or center */
}

.logo__name {
    font-size: 1.3rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo__tagline {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    font-style: italic;
}

/* MENU */
.nav__menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    transition: all 0.3s ease;
}

.nav__link {
    color: #8e8c8c;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0.75rem;
    transition: color 0.3s ease;
}

.nav__link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-primary);
}

/* GET QUOTE BUTTON */
.btn--primary {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn--primary:hover {
    opacity: 0.85;
}

/* TOGGLE BUTTON (HAMBURGER) */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    z-index: 1100;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* MOBILE RESPONSIVE */
@media (max-width: 992px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(var(--color-surface), 1);
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow-card);
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav__menu.active {
        max-height: 500px;
        opacity: 1;
        background-color: #eba951;
        pointer-events: auto;
    }

    .nav__link {
        width: 100%;
        padding: 1rem;
        text-align: left;
    }

    .btn--primary {
        display: block;
        width: 100%;
        text-align: center;
    }

    .nav__toggle.open span:nth-child(1) {
        transform: rotate(45deg) translateY(7px);
    }

    .nav__toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-7px);
    }
}

/* Main content spacing */
.main {
    margin-top: 140px;
}

.section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--animation-speed) var(--animation-smooth);
}

.section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.section--home {
    margin-top: -88px;
    padding-top: 88px;
}

/* Section headers */
.section__header {
    text-align: center;
    margin-bottom: var(--space-32);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section__badge {
    display: inline-block;
    margin-top: 15px;
    background: var(--gradient-accent);
    color: var(--color-slate-900);
    padding: var(--space-8) var(--space-20);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: var(--space-16);
    box-shadow: var(--shadow-glow);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        box-shadow: var(--shadow-glow);
    }

    50% {
        box-shadow: 0 0 40px rgba(244, 196, 66, 0.5);
    }
}

.section__title {
    font-size: clamp(var(--font-size-3xl), 4vw, 3.5rem);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-20);
    line-height: var(--line-height-tight);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    line-height: var(--line-height-normal);
    max-width: 600px;
    margin: 0 auto;
}

/* Enhanced Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__text {
    text-align: center;
    color: #fff;
    padding: 60px 20px;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: -1;
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-32) 0;
}

.hero__badge {
    display: inline-block;
    background: #9e0059;
    color: #fff;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.hero__title {
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 700;
    color: #f4c542;
    position: relative;
    min-height: 70px;
    /* ✅ gives enough room for 2-line text */
    line-height: 1.3;
    overflow: hidden;
}

/* On smaller screens, increase height slightly */
@media (max-width: 768px) {
    .hero__title {
        min-height: 90px;
        /* ✅ allows wrapped text to fit */
    }
}

.carousel-heading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.carousel-heading.active {
    opacity: 1;
    transform: translateY(0);
}

.hero__subtitle {
    font-size: clamp(var(--font-size-lg), 2vw, var(--font-size-2xl));
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    margin-bottom: var(--space-32);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-normal);
    animation: slide-up 1s var(--animation-smooth) 0.5s both;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-32);
    margin-bottom: var(--space-32);
    flex-wrap: wrap;
    animation: slide-up 1s var(--animation-smooth) 0.7s both;
}

.hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-16) var(--space-20);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 120px;
    transition: transform var(--duration-normal) var(--ease-standard);
}

.hero__stat:hover {
    transform: translateY(-5px);
}

.stat__number {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--brand-accent);
    text-shadow: 0 2px 10px rgba(244, 196, 66, 0.3);
}

.stat__label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
}

.hero__buttons {
    display: flex;
    gap: var(--space-20);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-32);
    animation: slide-up 1s var(--animation-smooth) 0.9s both;
}

.hero__guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-12);
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-md);
    animation: slide-up 1s var(--animation-smooth) 1.1s both;
}

.guarantee__icon {
    font-size: var(--font-size-lg);
    color: var(--brand-accent);
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-12) var(--space-24);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-md);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-standard);
}

.btn:hover::before {
    opacity: 1;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--color-btn-primary-text);
    box-shadow: var(--shadow-card);
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn--outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn--outline:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn--lg {
    padding: var(--space-16) var(--space-32);
    font-size: var(--font-size-lg);
}

.btn--sm {
    padding: var(--space-8) var(--space-16);
    font-size: var(--font-size-sm);
}

.btn--full-width {
    width: 100%;
}

.btn__icon {
    font-size: 1.2em;
}

/* Premium Services Grid */
.premium-services {
    padding: var(--space-32) 0;
    background: var(--color-surface);
    position: relative;
}

.premium-services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    opacity: 0.3;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.service-card {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--animation-speed) var(--animation-smooth);
    position: relative;
    border: 1px solid var(--color-card-border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-card__image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--animation-speed) var(--animation-smooth);
}

.service-card:hover .card__img {
    transform: scale(1.1);
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-standard);
}

.service-card:hover .service-card__overlay {
    opacity: 1;
}

.service-card__icon {
    font-size: 3rem;
    color: var(--color-white);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

.service-card__content {
    padding: var(--space-24);
}

.service-card__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-12);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.service-card__description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-16);
}

.service-card__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-20) 0;
}

.service-card__benefits li {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-8);
}

.service-card__cta {
    background: var(--gradient-accent);
    color: var(--color-slate-900);
    padding: var(--space-10) var(--space-20);
    border-radius: var(--radius-base);
    border: none;
    font-weight: var(--font-weight-semibold);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-card__cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Why Choose Us Enhanced */
.why-choose-us {
    padding: var(--space-32) 0;
    background: var(--color-bg-2);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.feature {
    text-align: center;
    padding: var(--space-32) var(--space-24);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--animation-speed) var(--animation-smooth);
    position: relative;
    border: 1px solid var(--color-card-border);
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-standard);
}

.feature:hover::before {
    transform: scaleX(1);
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.feature__icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-20);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.feature__icon-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glass);
    border-radius: inherit;
}

.feature__icon {
    font-size: 2.5rem;
    color: var(--color-btn-primary-text);
    position: relative;
    z-index: 1;
}

.feature__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-12);
}

.feature__description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-16);
}

.feature__highlight {
    background: var(--gradient-accent);
    color: var(--color-slate-900);
    padding: var(--space-6) var(--space-16);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    display: inline-block;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--space-32) 0;
    background: var(--color-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-32);
    margin-top: var(--space-32);
}

.testimonial-card {
    background: var(--color-surface);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: all var(--animation-speed) var(--animation-smooth);
    position: relative;
    border-left: 4px solid var(--brand-accent);
    border: 1px solid var(--color-card-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial__rating {
    margin-bottom: var(--space-16);
}

.star {
    color: var(--brand-accent);
    font-size: var(--font-size-lg);
    margin-right: var(--space-2);
}

.testimonial__text {
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    color: var(--color-text-secondary);
    font-style: italic;
    margin-bottom: var(--space-20);
    flex-grow: 1;
}

.testimonial__author {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.author__name {
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    font-size: var(--font-size-md);
}

.author__location {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.author__type {
    background: var(--color-bg-3);
    padding: var(--space-4) var(--space-12);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--color-success);
    font-weight: var(--font-weight-medium);
}

/* Swiper specific */
.testimonials-swiper {
    padding: 40px 0;
}

.swiper-slide {
    display: flex;
    justify-content: center;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--brand-accent);
}

.swiper-pagination-bullet-active {
    background: var(--brand-accent);
}

/* CTA Section */
.cta-section {
    padding: var(--space-32) 0;
    background: var(--gradient-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.cta__content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-32);
    align-items: center;
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-12);
    color: var(--color-white);
}

.cta__subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
}

.cta__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    align-items: center;
}

.cta__contact {
    display: flex;
    gap: var(--space-24);
    margin-top: var(--space-16);
}

.contact__item {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--font-size-sm);
}

.contact__icon {
    font-size: var(--font-size-lg);
}

/* About Section Enhanced */
.about__hero {
    text-align: center;
    margin-bottom: var(--space-32);
}

.about__story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-32);
    align-items: center;
    margin-bottom: var(--space-32);
}

.story__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.story__img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform var(--animation-speed) var(--animation-smooth);
}

.story__image:hover .story__img {
    transform: scale(1.05);
}

.story__text h2,
.story__text h3 {
    color: var(--color-primary);
    margin-top: var(--space-24);
    margin-bottom: var(--space-16);
}

.story__text p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-20);
}

.expertise__badges {
    display: flex;
    gap: var(--space-12);
    flex-wrap: wrap;
    margin-top: var(--space-20);
}

.badge {
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.badge--primary {
    background: var(--gradient-primary);
    color: var(--color-btn-primary-text);
}

.badge--secondary {
    background: var(--color-secondary);
    color: var(--color-text);
}

.badge--accent {
    background: var(--gradient-accent);
    color: var(--color-slate-900);
}

.company__stats {
    background: var(--color-surface);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    margin-bottom: var(--space-32);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-24);
}

.stat__item {
    text-align: center;
    padding: var(--space-20);
    border-radius: var(--radius-base);
    background: var(--color-bg-3);
    transition: transform var(--duration-normal) var(--ease-standard);
}

.stat__item:hover {
    transform: translateY(-5px);
}

.stat__number {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-8);
}

.stat__label {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.stat__description {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.trusted__brands {
    text-align: center;
    padding: 40px 0;
}

.brands__title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #333;
}

.brands__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
    justify-items: center;
}

.brand__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.brand__item img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.brand__item p {
    font-weight: 500;
    color: #555;
    margin: 0;
}

/* Hover effect: zoom in */
.brand__item:hover img {
    transform: scale(1.1);
}

/* Services Section Enhanced */
.services__categories {
    margin-top: var(--space-32);
}

.service__category {
    margin-bottom: var(--space-32);
}

.category__title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
    margin-bottom: var(--space-24);
    position: relative;
    padding-bottom: var(--space-16);
}

.category__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.category__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-24);
}

.service__item {
    background: var(--color-surface);
    padding: var(--space-24);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    gap: var(--space-20);
    transition: all var(--animation-speed) var(--animation-smooth);
    border: 1px solid var(--color-card-border);
}

.service__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.service__icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-btn-primary-text);
    box-shadow: var(--shadow-card);
    flex-shrink: 0;
}

.service__content h3 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin-bottom: var(--space-12);
}

.service__content p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-16);
}

.service__features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);
}

.service__features span {
    background: var(--color-bg-3);
    color: var(--color-success);
    padding: var(--space-4) var(--space-12);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

/* Process Section*/
.process__banner {
    text-align: center;
    margin: 40px 0;
}

.process__banner img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

/* Timeline Container */
.process__timeline {
    position: relative;
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    z-index: 1;
}

/* Vertical timeline line with animated gradient */
.process__timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: linear-gradient(180deg, #006AFF 0%, #31FFD6 100%);
    animation: gradientBG 6s ease-in-out infinite alternate;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    z-index: 0;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}

/* Step Card Styling */
.process__step {
    position: relative;
    width: 50%;
    padding: 32px 40px;
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 30px;
    box-shadow: 0 10px 32px rgba(54, 152, 236, 0.07),
        0 1.5px 4px rgba(48, 171, 224, 0.02);
    transition: transform 0.24s, box-shadow 0.24s, background 0.24s;
}

.process__step:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow: 0 12px 36px rgba(0, 106, 255, 0.12);
    background: linear-gradient(105deg, #e8f9ff 80%, #e1f0ff 100%);
}

/* Timeline Positioning */
.process__step.left {
    left: 0;
    text-align: right;
}

.process__step.right {
    left: 50%;
    text-align: left;
}

/* Animate steps when they are revealed */
.process__step {
    opacity: 0;
    transform: translateY(30px);
    animation: stepShow 0.8s forwards;
}

.process__step.left {
    animation-delay: 0.1s;
}

.process__step.right {
    animation-delay: 0.2s;
}

@keyframes stepShow {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step Icon and Number with glow */
.process__step .step__number {
    position: absolute;
    top: 20px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(140deg, #f6d55c 0%, #ffd166 100%);
    color: #09467e;
    box-shadow: 0 4px 24px #006AFF55, 0 0 0 8px #e3faffaa;
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #e1f4ff;
    z-index: 2;
    text-shadow: 0 5px 12px #fff, 0 2px 6px #31FFD622;
}

.process__step.left .step__number {
    right: -37px;
}

.process__step.right .step__number {
    left: -37px;
}

/* You can add an icon above/below the number like this in HTML:
<span class="step__icon"><i class="fa fa-search"></i></span>
*/

/* Step Title and Description */
.step__title {
    font-size: 1.4rem;
    margin: 18px 0 10px;
    color: #104b97;
    letter-spacing: 1.5px;
    text-shadow: 0 1px 2px #b8e4fc22;
}

.step__description {
    margin-bottom: 12px;
    color: #386075;
    font-size: 1.1rem;
    letter-spacing: 0.2px;
}

.step__features {
    margin: 0;
    padding: 0 0 0 12px;
    font-size: 1rem;
}

.step__features li {
    color: #2a876d;
    margin-bottom: 2px;
    list-style: none;
    position: relative;
    padding-left: 22px;
}

.step__features li:before {
    content: '✔';
    position: absolute;
    left: 0;
    color: #04a77e;
    font-size: 1em;
}

/* Responsive: stack cards vertically on mobile */
@media (max-width: 900px) {
    .process__timeline {
        padding: 0 0;
    }

    .process__step {
        padding: 24px 18px;
    }
}

@media (max-width: 780px) {
    .process__step {
        width: 100%;
        text-align: left;
        left: 0 !important;
        padding-left: 64px;
        margin-bottom: 42px;
    }

    .process__step .step__number {
        left: 0 !important;
        right: auto !important;
    }

    .process__timeline::after {
        left: 32px;
    }
}

/* Gallery Section Enhanced */
.gallery__filters {
    display: flex;
    justify-content: center;
    gap: var(--space-16);
    margin-bottom: var(--space-32);
    flex-wrap: wrap;
}

.gallery__filter {
    background: var(--color-surface);
    color: var(--color-text);
    padding: var(--space-12) var(--space-24);
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    font-weight: var(--font-weight-medium);
}

.gallery__filter:hover,
.gallery__filter.active {
    background: var(--gradient-primary);
    color: var(--color-btn-primary-text);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-24);
    margin-bottom: var(--space-32);
}

.gallery__item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all var(--animation-speed) var(--animation-smooth);
}

.gallery__item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.gallery__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--animation-speed) var(--animation-smooth);
}

.gallery__item:hover .gallery__img {
    transform: scale(1.1);
}

.gallery__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    display: flex;
    align-items: end;
    padding: var(--space-24);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-standard);
}

.gallery__item:hover .gallery__overlay {
    opacity: 1;
}

.gallery__info {
    color: var(--color-white);
}

.gallery__title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-8);
}

.gallery__description {
    font-size: var(--font-size-sm);
    opacity: 0.9;
    margin-bottom: var(--space-8);
}

.gallery__category {
    background: var(--gradient-accent);
    color: var(--color-slate-900);
    padding: var(--space-4) var(--space-12);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
}

.gallery__cta {
    text-align: center;
    padding: var(--space-32);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.gallery__cta h3 {
    font-size: var(--font-size-2xl);
    color: var(--color-text);
    margin-bottom: var(--space-12);
}

.gallery__cta p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-20);
}

/* Contact Section Enhanced */
.contact__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-32);
    margin-bottom: var(--space-32);
}

.contact__card {
    background: var(--color-surface);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    height: fit-content;
    border: 1px solid var(--color-card-border);
}

.contact__card h3 {
    font-size: var(--font-size-xl);
    color: var(--color-text);
    margin-bottom: var(--space-24);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

.contact__item {
    display: flex;
    gap: var(--space-16);
    align-items: flex-start;
    cursor: pointer;
    padding: var(--space-12);
    border-radius: var(--radius-base);
    transition: background-color var(--duration-normal) var(--ease-standard);
}

.contact__item:hover {
    background: var(--color-bg-3);
}

.contact__icon {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.contact__text strong {
    display: block;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    font-weight: var(--font-weight-semibold);
}

.contact__text p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-md);
    margin: 0;
}

.emergency {
    color: var(--color-error) !important;
    font-weight: var(--font-weight-semibold);
}

/* Form Styles Enhanced */
.form {
    background: var(--color-surface);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-card-border);
}

.form h3 {
    font-size: var(--font-size-xl);
    color: var(--color-text);
    margin-bottom: var(--space-24);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
}

.form-group {
    margin-bottom: var(--space-20);
}

.form-label {
    display: block;
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-8);
    font-size: var(--font-size-sm);
}

.form-control {
    width: 100%;
    padding: var(--space-12) var(--space-16);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-base);
    background: var(--color-background);
    color: var(--color-text);
    font-size: var(--font-size-md);
    transition: all var(--duration-normal) var(--ease-standard);
}

.form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--brand-primary), 0.1);
    outline: none;
}

/* Map Section */
.map__section {
    text-align: center;
}

.map__section h3 {
    font-size: var(--font-size-xl);
    color: var(--color-text);
    margin-bottom: var(--space-20);
}

.map__placeholder {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-standard);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-card-border);
}

.map__placeholder:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.map__content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-16);
}

.map__icon {
    font-size: 2rem;
    color: var(--brand-accent);
}

.map__text strong {
    display: block;
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-8);
}

.map__text p {
    opacity: 0.9;
    margin-bottom: var(--space-8);
}

.map__cta {
    color: var(--brand-accent);
    font-weight: var(--font-weight-semibold);
}

/* Quote Section Enhanced */
.quote__benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-20);
    margin-bottom: var(--space-32);
}

.benefit__item {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    background: var(--color-surface);
    padding: var(--space-16) var(--space-20);
    border-radius: var(--radius-base);
    box-shadow: var(--shadow-card);
    transition: transform var(--duration-normal) var(--ease-standard);
    border: 1px solid var(--color-card-border);
}

.benefit__item:hover {
    transform: translateY(-3px);
}

.benefit__icon {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
}

.quote__form {
    max-width: 900px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-card-border);
}

.form__section {
    margin-bottom: var(--space-32);
}

.form__section h3 {
    font-size: var(--font-size-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-20);
    padding-bottom: var(--space-8);
    border-bottom: 2px solid var(--color-border);
}

/* Success Message Enhanced */
.success-message {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-surface);
    padding: var(--space-32);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    text-align: center;
    border: 2px solid var(--color-success);
}

.success__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-16);
}

.success__icon {
    font-size: 4rem;
    color: var(--color-success);
    animation: success-bounce 0.6s var(--animation-bounce);
}

@keyframes success-bounce {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-message h3 {
    color: var(--color-success);
    margin-bottom: var(--space-12);
}

.next__steps {
    background: var(--color-bg-3);
    padding: var(--space-24);
    border-radius: var(--radius-base);
    text-align: left;
    width: 100%;
}

.next__steps h4 {
    color: var(--color-text);
    margin-bottom: var(--space-16);
    text-align: center;
}

.steps__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.step__item {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    color: var(--color-text-secondary);
}

.step__icon {
    color: var(--color-primary);
    font-size: var(--font-size-lg);
}

.emergency__contact {
    background: var(--color-bg-4);
    padding: var(--space-16);
    border-radius: var(--radius-base);
    border: 1px solid rgba(var(--color-error-rgb), 0.2);
}

.emergency__contact a {
    color: var(--color-error);
    font-weight: var(--font-weight-bold);
    text-decoration: none;
}

.emergency__contact a:hover {
    text-decoration: underline;
}

/* Footer Enhanced */
.footer {
    background: var(--gradient-primary);
    color: var(--color-white);
    padding: var(--space-32) 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: var(--space-32);
    margin-bottom: var(--space-32);
}

.footer__about {
    max-width: 400px;
}

.footer .logo__text .logo__name {
    color: #d4a635 !important;
    -webkit-text-fill-color: #d4a635 !important;
    background: none !important;
}

.footer__description {
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
    font-size: var(--font-size-md);
    line-height: var(--line-height-normal);
    margin-bottom: var(--space-20);
}

.footer__stats {
    display: flex;
    gap: var(--space-16);
    flex-wrap: wrap;
}

.footer__stat {
    background: rgba(255, 255, 255, 0.1);
    padding: var(--space-8) var(--space-16);
    border-radius: var(--radius-base);
    backdrop-filter: blur(10px);
    font-size: var(--font-size-sm);
}

.footer__section h4 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-16);
    color: var(--brand-accent);
}

.footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links li {
    margin-bottom: var(--space-8);
}

.footer__links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-standard);
    font-size: var(--font-size-sm);
}

.footer__links a:hover {
    color: var(--brand-accent);
}

.footer__social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.footer__social .social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-bottom: 5px;
    background: var(--color-bg-3);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer__social .social__link:hover {
    background: var(--gradient-accent);
    color: #fff;
    transform: scale(1.1);
}


.footer__contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: var(--space-24);
}

.footer__bottom-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-20);
    align-items: center;
}

.footer__copyright p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--font-size-sm);
    margin: 0;
}

.footer__tagline {
    font-style: italic;
    margin-top: var(--space-4) !important;
}

.trusted__brands-footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--font-size-sm);
}

.trusted__brands-footer strong {
    color: var(--brand-accent);
}

/* Responsive Design Enhanced */
@media (max-width: 1024px) {
    .footer__content {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__story {
        grid-template-columns: 1fr;
        gap: var(--space-24);
    }

    .cta__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta__contact {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 88px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 88px);
        background: rgba(var(--color-surface), 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-32);
        transition: left var(--duration-normal) var(--ease-standard);
        box-shadow: var(--shadow-premium);
    }

    .nav__menu.active {
        left: 0;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero__stats {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-16);
    }

    .hero__buttons {
        flex-direction: column;
        align-items: center;
        gap: var(--space-16);
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .contact__content {
        grid-template-columns: 1fr;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .gallery__grid {
        grid-template-columns: 1fr;
    }

    .category__grid {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer__bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .quote__benefits {
        grid-template-columns: 1fr;
    }

    .cta__contact {
        flex-direction: column;
        gap: var(--space-12);
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: var(--space-12);
        padding-right: var(--space-12);
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__stats {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .hero__stat {
        min-width: auto;
        padding: var(--space-12) var(--space-16);
    }

    .service-card__content {
        padding: var(--space-16);
    }

    .feature {
        padding: var(--space-20);
    }

    .testimonial-card {
        padding: var(--space-20);
    }

    .form {
        padding: var(--space-20);
    }

    .quote__form {
        padding: var(--space-20);
    }

    .service__item {
        flex-direction: column;
        text-align: center;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }
}

/* Accessibility and Animation Enhancements */
.fade-in {
    animation: fadeIn var(--animation-speed) var(--animation-smooth);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- NEW UI/UX ENHANCEMENTS --- */
/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

@media (prefers-color-scheme: dark) {
    .glass-panel {
        background: rgba(38, 40, 40, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Advanced Button Hover States */
.btn--primary {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 90, 82, 0.3);
}
.btn--primary:active {
    transform: translateY(1px);
}
.btn__icon {
    display: inline-block;
    transition: transform 0.3s ease;
}
.btn--primary:hover .btn__icon {
    transform: translateX(4px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--color-background);
}
::-webkit-scrollbar-thumb {
    background: var(--brand-primary-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {

    .nav__toggle,
    .hero__overlay,
    .btn {
        display: none !important;
    }

    .hero__background {
        display: none;
    }

    body {
        background: white !important;
        color: black !important;
    }
}