/*
 * global.css — Dashmier Technologies Design System
 * Professional IT company · Clean · Human · Readable
 */

/* ─── Google Fonts ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Custom Properties ──────────────────────────────────────────── */
:root {
    /* Backgrounds */
    --white:        #FFFFFF;
    --off-white:    #F8FAFC;
    --light-grey:   #F1F5F9;
    --border:       #E2E8F0;
    --border-dark:  #CBD5E1;

    /* Brand */
    --blue:         #2563EB;
    --blue-dark:    #1D4ED8;
    --blue-light:   #EFF6FF;
    --blue-mid:     #BFDBFE;
    --cyan:         #0891B2;
    --indigo:       #4F46E5;

    /* Text */
    --text-head:    #0F172A;
    --text-body:    #374151;
    --text-muted:   #6B7280;
    --text-faint:   #9CA3AF;

    /* Feedback */
    --green:        #059669;
    --green-light:  #D1FAE5;
    --red:          #DC2626;
    --red-light:    #FEE2E2;
    --amber:        #D97706;

    /* Quantum Lab — scoped via .ql-page */
    --ql-bg:        #07090F;
    --ql-purple:    #7C3AED;
    --ql-violet:    #8B5CF6;
    --ql-cyan:      #06B6D4;
    --ql-border:    rgba(124, 58, 237, 0.18);

    /* Spacing */
    --nav-h:        70px;

    /* Radius */
    --r-xs:   4px;
    --r-sm:   8px;
    --r-md:   12px;
    --r-lg:   16px;
    --r-xl:   24px;
    --r-2xl:  32px;
    --r-full: 9999px;

    /* Shadows */
    --shadow-xs:     0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm:     0 1px 3px rgba(15, 23, 42, 0.07), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md:     0 4px 8px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg:     0 10px 20px rgba(15, 23, 42, 0.07), 0 4px 8px rgba(15, 23, 42, 0.04);
    --shadow-xl:     0 24px 40px rgba(15, 23, 42, 0.09), 0 8px 16px rgba(15, 23, 42, 0.05);
    --shadow-card:   0 2px 8px rgba(15, 23, 42, 0.06);
    --shadow-card-h: 0 8px 28px rgba(15, 23, 42, 0.11);
    --shadow-cta:    0 4px 16px rgba(37, 99, 235, 0.30);
    --shadow-nav:    0 1px 0 #E2E8F0, 0 4px 20px rgba(15,23,42,0.06);

    /* Transitions */
    --ease:    cubic-bezier(0.4, 0, 0.2, 1);
    --t-fast:  0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --t-base:  0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow:  0.40s cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography — upgraded font stack */
    --font-head:  'Outfit', sans-serif;
    --font-body:  'Plus Jakarta Sans', sans-serif;
    --font-mono:  'JetBrains Mono', monospace;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-h) + 24px);
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-body);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--blue-mid);
    color: var(--text-head);
}

::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 4px; }

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* ─── Typography ─────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--text-head);
    line-height: 1.18;
    letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.015em; }
h5 { font-size: 0.9375rem; font-weight: 600; }

p { color: var(--text-body); line-height: 1.8; }

.lead {
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.8;
    max-width: 600px;
    font-weight: 400;
}

/* ─── Layout ─────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.section {
    padding-top: 100px;
    padding-bottom: 100px;
}

.section--alt  { background: var(--off-white); }
.section--dark { background: var(--text-head); }

/* ─── Section Labels ─────────────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.675rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    border: 1px solid var(--blue-mid);
    border-radius: var(--r-full);
    padding: 5px 13px;
    margin-bottom: 20px;
}

.section-label--ql {
    color: var(--ql-violet);
    background: rgba(124, 58, 237, 0.07);
    border-color: rgba(124, 58, 237, 0.2);
}

.section-header { margin-bottom: 60px; }
.section-header .lead { margin-top: 14px; }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    border-radius: var(--r-md);
    border: 1.5px solid transparent;
    transition: background var(--t-fast), color var(--t-fast),
                border-color var(--t-fast), box-shadow var(--t-fast),
                transform var(--t-fast);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    letter-spacing: -0.01em;
}

.btn:active { transform: translateY(1px); }

/* Sizes */
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn--md { padding: 12px 22px; font-size: 0.9375rem; }
.btn--sm { padding: 9px 16px;  font-size: 0.8125rem; }

/* Primary */
.btn--primary {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}
.btn--primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    box-shadow: var(--shadow-cta);
    color: #fff;
    transform: translateY(-1px);
}

/* Secondary */
.btn--secondary {
    background: var(--white);
    color: var(--text-body);
    border-color: var(--border);
    box-shadow: var(--shadow-xs);
}
.btn--secondary:hover {
    background: var(--off-white);
    border-color: var(--border-dark);
    color: var(--text-head);
}

/* Outline */
.btn--outline {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}
.btn--outline:hover {
    background: var(--blue-light);
}

/* Ghost */
.btn--ghost {
    background: transparent;
    color: var(--text-body);
    border-color: transparent;
    padding-left: 4px;
    padding-right: 4px;
}
.btn--ghost:hover { color: var(--blue); }

/* White */
.btn--white {
    background: #fff;
    color: var(--blue);
    border-color: #fff;
}
.btn--white:hover {
    background: var(--blue-light);
    box-shadow: var(--shadow-md);
    color: var(--blue-dark);
}

/* Outline-white */
.btn--outline-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.45);
}
.btn--outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

/* Quantum */
.btn--quantum {
    background: var(--ql-purple);
    color: #fff;
    border-color: var(--ql-purple);
}
.btn--quantum:hover {
    background: #6D28D9;
    border-color: #6D28D9;
    box-shadow: 0 4px 16px rgba(124,58,237,0.35);
    color: #fff;
}

.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }

/* ─── Cards ──────────────────────────────────────────────────────── */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}

.card--hover:hover {
    box-shadow: var(--shadow-card-h);
    border-color: var(--blue-mid);
    transform: translateY(-3px);
}

/* ─── Service Cards ──────────────────────────────────────────────── */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px 26px 24px;
    transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: var(--shadow-card-h);
    border-color: var(--blue-mid);
    transform: translateY(-4px);
}

.service-card__icon {
    width: 46px;
    height: 46px;
    border-radius: var(--r-md);
    background: var(--blue-light);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    margin-bottom: 18px;
    flex-shrink: 0;
    transition: background var(--t-fast), color var(--t-fast);
}

.service-card:hover .service-card__icon {
    background: var(--blue);
    color: #fff;
}

.service-card__title {
    font-family: var(--font-head);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--text-head);
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

.service-card__desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 20px;
}

.service-card__link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap var(--t-fast), color var(--t-fast);
    margin-top: auto;
}

.service-card:hover .service-card__link { gap: 9px; }

/* ─── Forms ──────────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }

.form-label { font-size: 0.875rem; font-weight: 600; color: var(--text-head); }
.form-label span { color: var(--red); }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 11px 15px;
    font-size: 0.9375rem;
    color: var(--text-body);
    background: var(--off-white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    outline: none;
    transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
    appearance: none;
    -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-faint); }

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--blue);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ─── Badges ─────────────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 11px;
    border-radius: var(--r-full);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.badge--blue  { background: var(--blue-light);  color: var(--blue); }
.badge--green { background: var(--green-light); color: var(--green); }
.badge--grey  { background: var(--light-grey);  color: var(--text-muted); }

/* Status dot */
.dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

/* ─── Utilities ──────────────────────────────────────────────────── */
.text-blue  { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.text-white { color: #fff; }
.text-head  { color: var(--text-head); }
.font-mono  { font-family: var(--font-mono); }
.font-head  { font-family: var(--font-head); }

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

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

/* ─── WhatsApp Float ─────────────────────────────────────────────── */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 54px;
    height: 54px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
    z-index: 800;
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.wa-float:hover {
    transform: scale(1.09);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
    color: #fff;
}

/* ─── Back to top ────────────────────────────────────────────────── */
.back-top {
    position: fixed;
    bottom: 96px;
    right: 28px;
    width: 40px;
    height: 40px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    z-index: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity var(--t-base), transform var(--t-base), color var(--t-fast), border-color var(--t-fast);
    box-shadow: var(--shadow-sm);
}

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

.back-top:hover {
    color: var(--blue);
    border-color: var(--blue-mid);
}

/* ─── Animations ─────────────────────────────────────────────────── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .section { padding-top: 76px; padding-bottom: 76px; }
}

@media (max-width: 768px) {
    .section { padding-top: 60px; padding-bottom: 60px; }
    h1 { font-size: clamp(1.875rem, 7vw, 2.5rem); }
    h2 { font-size: clamp(1.625rem, 5vw, 2.125rem); }
    .container { padding-left: 18px; padding-right: 18px; }
    .wa-float  { bottom: 20px; right: 20px; }
    .back-top  { bottom: 84px; right: 20px; }
}

@media (max-width: 480px) {
    .section { padding-top: 48px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
