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

html {
    font-family: var(--font-body);
    font-size: 100%;
    color: var(--text);
    background-color: var(--bg);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Offset for fixed header */
.service-block {
    scroll-margin-top: 120px;
}

body {
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--dur-2) var(--ease-out);
}

ul,
ol {
    list-style: none;
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

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

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

@media (min-width: 768px) {
    h1 {
        font-size: var(--text-display);
    }

    h2 {
        font-size: var(--text-4xl);
    }
}

p {
    margin-bottom: var(--space-24);
    color: var(--text-muted);
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Layout Utilities --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-24);
}


.section-padding {
    padding-block: 80px;
}

@media (max-width: 1024px) {
    .section-padding {
        padding-block: 56px;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding-block: 40px;
    }
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-24);
}

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

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--primary-500);
    outline-offset: 4px;
}

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

/* --- Homepage Specific Fixes --- */
/* Reduce gap between Hero Slider and Our Expertise */
.hero-slider+.services-preview.section-padding {
    padding-top: 32px;
}

@media (max-width: 1024px) {
    .hero-slider+.services-preview.section-padding {
        padding-top: 24px;
    }
}