/* ============================================================
   SevaSetuHub – Reset & Base Styles
   reset.css
   ============================================================ */

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

/* ── Document ────────────────────────────────────────────── */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* Offset anchors for fixed navbar */
    scroll-padding-top: calc(var(--navbar-height) + 16px);
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--text-primary);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

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

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

/* ── Images ──────────────────────────────────────────────── */
img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ── Form Elements ───────────────────────────────────────── */
input,
button,
textarea,
select {
    font: inherit;
}

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

/* ── Lists ───────────────────────────────────────────────── */
ul, ol {
    list-style: none;
}

/* ── Tables ──────────────────────────────────────────────── */
table {
    border-collapse: collapse;
    border-spacing: 0;
}

/* ── Focus Visible ───────────────────────────────────────── */
:focus-visible {
    outline: 2.5px solid var(--primary);
    outline-offset: 3px;
    border-radius: var(--radius-xs);
    box-shadow: 0 0 0 5px rgba(8, 145, 178, 0.12);
}

/* ── Selection ───────────────────────────────────────────── */
::selection {
    background: rgba(8, 145, 178, 0.18);
    color: var(--primary-dark);
}

/* ── Scrollbar (Webkit) ──────────────────────────────────── */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--neutral-300);
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-400);
}

/* ── Base Utilities ──────────────────────────────────────── */
.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;
}

.text-primary-brand   { color: var(--primary) !important; }
.text-secondary-brand { color: var(--secondary) !important; }
.text-muted-custom    { color: var(--text-muted) !important; }

.bg-brand   { background-color: var(--primary) !important; }
.bg-surface { background-color: var(--surface) !important; }
.bg-alt     { background-color: var(--background-alt) !important; }

/* ── Section Spacing ─────────────────────────────────────── */
.section-padding {
    padding: var(--space-24) 0;
}

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

/* ── Section Labels ──────────────────────────────────────── */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-muted);
    border: 1px solid rgba(8, 145, 178, 0.2);
    padding: 5px var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    position: relative;
    overflow: hidden;
}

.section-label::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(8,145,178,0.08) 50%, transparent 100%);
    animation: labelShimmer 3s ease-in-out infinite;
}

@keyframes labelShimmer {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.section-heading {
    font-size: var(--text-4xl);
    font-weight: var(--weight-extrabold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
    letter-spacing: -0.02em;
}

.section-subheading {
    font-size: var(--text-lg);
    color: var(--text-muted);
    max-width: 600px;
    line-height: var(--leading-relaxed);
}

/* ── Gradient Text ───────────────────────────────────────── */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-vivid {
    background: var(--gradient-brand-vivid);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Divider ─────────────────────────────────────────────── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-8) 0;
}

/* ── Container Override ──────────────────────────────────── */
.container {
    max-width: var(--container-max);
    padding-left: var(--space-6);
    padding-right: var(--space-6);
}

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

/* ── Page Load Fade ──────────────────────────────────────── */
@keyframes pageLoad {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

body {
    animation: pageLoad 0.4s var(--easing-out) both;
}
