/**
 * Base Reset, Typography & Global Utility Styles
 * Brand: Rowtech (Pvt) Ltd
 */

/* --- Modern Box-Sizing & Margin Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
}

/* --- Typography Defaults --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-title);
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.75rem);
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

p {
    margin-bottom: var(--space-md);
}

p:last-child {
    margin-bottom: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

img,
picture,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

/* --- Layout Grid & Containers --- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
}

.container-fluid {
    width: 100%;
    padding-left: var(--container-gutter);
    padding-right: var(--container-gutter);
}

.section {
    position: relative;
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
}

@media (min-width: 992px) {
    .section {
        padding-top: var(--space-4xl);
        padding-bottom: var(--space-4xl);
    }
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto var(--space-3xl) auto;
}

.section-header--left {
    text-align: left;
    margin-left: 0;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

.section-title {
    font-weight: var(--font-weight-black);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* --- Industrial Section Clip-Path Divider --- */
.clipped-diagonal-top {
    clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -4vw;
}

.clipped-diagonal-bottom {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%);
    padding-bottom: calc(var(--space-3xl) + 4vw);
}

/* --- Focus Rings for Accessibility --- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}