/* ============================================================
   EZAC SERVICE — GLOBAL STYLESHEET
   style.css → Design tokens, reset, typography, utilities
   ============================================================ */

/* ── 1. CSS CUSTOM PROPERTIES (DESIGN TOKENS) ── */
:root {

    /* Brand Colors */
    --blue: #0D6EFD;
    --blue-dark: #0b5ed7;
    --blue-darker: #0a4dbf;
    --blue-light: #E8F0FF;
    --blue-faint: #F0F5FF;

    --green: #00B894;
    --green-dark: #00A07F;
    --green-light: #E0F7F4;

    --amber: #FFC107;
    --amber-dark: #E0A800;
    --amber-light: #FFF8E1;

    --red: #DC3545;
    --red-light: #FFF5F5;

    /* Neutrals */
    --white: #FFFFFF;
    --gray-50: #F8F9FA;
    --gray-100: #F1F3F5;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;

    /* Typography */
    --font-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 15px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 30px;
    --text-4xl: 36px;
    --text-5xl: 42px;
    --text-6xl: 54px;

    /* Spacing */
    --space-4: 4px;
    --space-8: 8px;
    --space-12: 12px;
    --space-16: 16px;
    --space-20: 20px;
    --space-24: 24px;
    --space-32: 32px;
    --space-40: 40px;
    --space-48: 48px;
    --space-56: 56px;
    --space-64: 64px;
    --space-80: 80px;

    /* Border Radius */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.10);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);
    --shadow-blue: 0 4px 20px rgba(13, 110, 253, 0.30);
    --shadow-green: 0 4px 20px rgba(0, 184, 148, 0.30);

    /* Transitions */
    --transition-fast: all 0.15s ease;
    --transition: all 0.22s ease;
    --transition-slow: all 0.35s ease;

    /* Layout */
    --container-max: 1200px;
    --container-pad: 20px;
    --section-py: 80px;
    --section-py-sm: 48px;
    --section-py-lg: 100px;

    /* Z-index layers */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 500;
    --z-overlay: 800;
    --z-modal: 900;
    --z-float: 999;
    --z-toast: 1100;
}

/* ── 2. MODERN CSS RESET ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    font-family: var(--font-base);
    font-size: var(--text-md);
    font-weight: 400;
    line-height: 1.65;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

input,
button,
textarea,
select {
    font: inherit;
    outline: none;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
    overflow-wrap: break-word;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ── 3. TYPOGRAPHY ── */
h1 {
    font-size: clamp(28px, 5vw, var(--text-6xl));
    font-weight: 900;
    line-height: 1.10;
}

h2 {
    font-size: clamp(24px, 4vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.15;
}

h3 {
    font-size: clamp(20px, 3vw, var(--text-3xl));
    font-weight: 700;
    line-height: 1.25;
}

h4 {
    font-size: var(--text-xl);
    font-weight: 700;
    line-height: 1.35;
}

h5 {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.4;
}

h6 {
    font-size: var(--text-md);
    font-weight: 600;
    line-height: 1.5;
}

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

/* ── 4. LAYOUT ── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
    width: 100%;
}

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

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

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

/* Sections */
.section {
    padding: var(--section-py) 0;
}

.section-sm {
    padding: var(--section-py-sm) 0;
}

.section-lg {
    padding: var(--section-py-lg) 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-dark {
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: var(--white);
}

.section-blue {
    background: linear-gradient(135deg, #0a1628 0%, #1a3a6e 60%, var(--blue) 100%);
    color: var(--white);
}

/* Grid System */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-32);
}

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

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-24);
}

.grid-auto-sm {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-24);
}

.grid-auto-md {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-28);
}

.grid-auto-lg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: var(--space-32);
}

/* Flex Helpers */
.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

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

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

.items-start {
    align-items: flex-start;
}

/* ── 5. SECTION HEADERS ── */
.section-label {
    display: inline-block;
    background: var(--blue-light);
    color: var(--blue);
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: var(--space-12);
}

.section-label.green {
    background: var(--green-light);
    color: var(--green-dark);
}

.section-label.amber {
    background: var(--amber-light);
    color: var(--amber-dark);
}

.section-label.white {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
}

.section-label.dark {
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.9);
}

.section-title {
    font-size: clamp(26px, 3.5vw, var(--text-5xl));
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: var(--space-12);
}

.section-title.white {
    color: var(--white);
}

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

.section-subtitle.white {
    color: rgba(255, 255, 255, 0.75);
}

.section-header {
    margin-bottom: var(--space-48);
}

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

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

/* ── 6. BREADCRUMB ── */
.breadcrumb-bar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
    padding: 12px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: var(--text-sm);
    color: var(--gray-600);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--blue);
    transition: var(--transition-fast);
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .sep {
    color: var(--gray-400);
}

.breadcrumb .current {
    color: var(--gray-700);
    font-weight: 500;
}

/* ── 7. PAGE HERO (inner pages) ── */
.page-hero {
    background: var(--gray-50);
    padding: 52px 0;
    border-bottom: 1px solid var(--gray-200);
}

.page-hero h1 {
    font-size: clamp(28px, 4vw, var(--text-5xl));
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-12);
}

.page-hero p {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 560px;
    margin: 0;
}

/* ── 8. TRUST BAR ── */
.trust-bar {
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 22px 0;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: var(--space-16);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
}

.trust-item i {
    font-size: 18px;
    color: var(--blue);
}

.trust-item.green i {
    color: var(--green);
}

.trust-item.amber i {
    color: var(--amber-dark);
}

.trust-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-300);
}

/* ── 9. BADGES & TAGS ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.4;
}

.badge-blue {
    background: var(--blue-light);
    color: var(--blue);
}

.badge-green {
    background: var(--green-light);
    color: var(--green-dark);
}

.badge-amber {
    background: var(--amber-light);
    color: var(--amber-dark);
}

.badge-red {
    background: var(--red-light);
    color: var(--red);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-600);
}

.badge-dark {
    background: var(--gray-800);
    color: var(--white);
}

/* ── 10. DIVIDERS ── */
.divider {
    border: none;
    border-top: 1px solid var(--gray-200);
    margin: var(--space-32) 0;
}

.divider-thick {
    border-top-width: 2px;
}

.divider-blue {
    border-top-color: var(--blue);
}

/* ── 11. CTA BANNER ── */
.cta-banner {
    background: linear-gradient(135deg, var(--blue), var(--blue-darker));
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-56) var(--space-48);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-32);
}

.cta-banner h2 {
    font-size: clamp(22px, 3vw, var(--text-4xl));
    font-weight: 800;
    margin-bottom: var(--space-8);
    color: var(--white);
}

.cta-banner p {
    font-size: var(--text-md);
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.cta-banner-actions {
    display: flex;
    gap: var(--space-12);
    flex-wrap: wrap;
}

/* ── 12. STEP / PROCESS ── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-24);
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 72px;
    height: 72px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 800;
    margin: 0 auto var(--space-16);
    box-shadow: var(--shadow-blue);
    position: relative;
    z-index: 1;
}

.step-card h3 {
    font-size: var(--text-md);
    font-weight: 700;
    margin-bottom: var(--space-8);
    color: var(--gray-900);
}

.step-card p {
    font-size: var(--text-sm);
    color: var(--gray-600);
}

/* ── 13. WHY-CHOOSE GRID ── */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
}

.why-item {
    display: flex;
    gap: var(--space-16);
    padding: var(--space-20);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}

.why-item:hover {
    border-color: var(--blue-light);
    box-shadow: var(--shadow-sm);
}

.why-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--blue-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--blue);
}

.why-item h4 {
    font-size: var(--text-base);
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--gray-900);
}

.why-item p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
}

/* ── 14. STATS BLOCK ── */
.stats-block {
    background: linear-gradient(135deg, var(--blue), var(--green));
    border-radius: var(--radius-xl);
    padding: var(--space-40);
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-24);
}

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

.stat-num {
    font-size: clamp(28px, 4vw, var(--text-4xl));
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-lbl {
    font-size: var(--text-sm);
    opacity: 0.85;
    font-weight: 500;
}

/* ── 15. TEAM CARD ── */
.team-card {
    text-align: center;
    padding: var(--space-24);
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--white);
    margin: 0 auto var(--space-16);
    text-transform: uppercase;
}

.team-card h4 {
    font-weight: 700;
    font-size: var(--text-md);
    color: var(--gray-900);
    margin-bottom: 4px;
}

.team-card p {
    font-size: var(--text-sm);
    color: var(--gray-500);
    margin: 0;
}

/* ── 16. MILESTONE ── */
.milestones-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-24);
}

.milestone {
    text-align: center;
    padding: var(--space-28) var(--space-20);
    background: var(--blue-light);
    border-radius: var(--radius-lg);
}

.milestone .num {
    font-size: clamp(28px, 4vw, var(--text-4xl));
    font-weight: 900;
    color: var(--blue);
    margin-bottom: var(--space-4);
}

.milestone .lbl {
    font-size: var(--text-base);
    color: var(--gray-700);
    font-weight: 600;
}

/* ── 17. PROCESS LIST (service detail) ── */
.process-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
}

.process-item {
    display: flex;
    gap: var(--space-16);
    align-items: flex-start;
}

.process-num {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
}

.process-item h4 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.process-item p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin: 0;
}

/* ── 18. SERVICE CHECKLIST ── */
.service-checklist {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
}

.service-checklist li {
    display: flex;
    align-items: center;
    gap: var(--space-10);
    font-size: var(--text-base);
    color: var(--gray-700);
}

.service-checklist i {
    color: var(--green);
    font-size: var(--text-sm);
    min-width: 16px;
}

/* ── 19. SERVICE DETAIL TABS ── */
.service-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: var(--space-32);
    border-bottom: 2px solid var(--gray-200);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.service-tabs::-webkit-scrollbar {
    display: none;
}

.service-tab {
    padding: 12px var(--space-24);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: var(--transition-fast);
}

.service-tab:hover {
    color: var(--blue);
}

.service-tab.active {
    color: var(--blue);
    border-bottom-color: var(--blue);
}

.service-tab-content {
    display: none;
}

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

/* ── 20. EMPTY / SUCCESS / ERROR STATES ── */
.empty-state {
    text-align: center;
    padding: var(--space-64) var(--space-32);
}

.empty-icon {
    font-size: 56px;
    color: var(--gray-300);
    margin-bottom: var(--space-16);
}

.empty-state h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-700);
    margin-bottom: var(--space-8);
}

.empty-state p {
    color: var(--gray-500);
    max-width: 360px;
    margin: 0 auto var(--space-24);
}

.success-state {
    text-align: center;
    padding: var(--space-32);
    background: var(--green-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--green);
}

.success-state i {
    font-size: 52px;
    color: var(--green);
    margin-bottom: var(--space-12);
}

.success-state h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-8);
}

.success-state p {
    color: var(--gray-600);
    margin: 0;
}

.error-state {
    text-align: center;
    padding: var(--space-32);
    background: var(--red-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--red);
}

.error-state i {
    font-size: 52px;
    color: var(--red);
    margin-bottom: var(--space-12);
}

.error-state h3 {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-8);
}

/* ── 21. UTILITY CLASSES ── */
.text-center {
    text-align: center;
}

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

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

.text-white {
    color: var(--white) !important;
}

.text-blue {
    color: var(--blue) !important;
}

.text-green {
    color: var(--green) !important;
}

.text-amber {
    color: var(--amber-dark) !important;
}

.text-gray {
    color: var(--gray-600) !important;
}

.text-muted {
    color: var(--gray-500) !important;
}

.text-dark {
    color: var(--gray-900) !important;
}

.fw-400 {
    font-weight: 400;
}

.fw-500 {
    font-weight: 500;
}

.fw-600 {
    font-weight: 600;
}

.fw-700 {
    font-weight: 700;
}

.fw-800 {
    font-weight: 800;
}

.fw-900 {
    font-weight: 900;
}

.fs-sm {
    font-size: var(--text-sm);
}

.fs-base {
    font-size: var(--text-base);
}

.fs-md {
    font-size: var(--text-md);
}

.fs-lg {
    font-size: var(--text-lg);
}

.fs-xl {
    font-size: var(--text-xl);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.mt-16 {
    margin-top: var(--space-16);
}

.mt-24 {
    margin-top: var(--space-24);
}

.mt-32 {
    margin-top: var(--space-32);
}

.mt-48 {
    margin-top: var(--space-48);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mb-16 {
    margin-bottom: var(--space-16);
}

.mb-24 {
    margin-bottom: var(--space-24);
}

.mb-32 {
    margin-bottom: var(--space-32);
}

.mb-48 {
    margin-bottom: var(--space-48);
}

.gap-8 {
    gap: var(--space-8);
}

.gap-12 {
    gap: var(--space-12);
}

.gap-16 {
    gap: var(--space-16);
}

.gap-24 {
    gap: var(--space-24);
}

.gap-32 {
    gap: var(--space-32);
}

.w-full {
    width: 100%;
}

.max-w-sm {
    max-width: 480px;
}

.max-w-md {
    max-width: 640px;
}

.max-w-lg {
    max-width: 800px;
}

.hidden {
    display: none !important;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── 22. ANIMATIONS ── */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

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

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

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-fade-down {
    animation: fadeInDown 0.4s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}