﻿/* ========================================================
   RAHMATPAY - GLOBAL STYLES
   ======================================================== */

@import url("variables.css");

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--color-pearl);
    color: var(--color-ink);
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    font-weight: var(--weight-regular);
    line-height: var(--line-height-normal);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

img {
    height: auto;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--color-navy);
    font-weight: var(--weight-semibold);
    line-height: var(--line-height-tight);
}

p {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--color-sky-mist);
    color: var(--color-navy);
}

:focus-visible {
    outline: 3px solid rgba(58, 123, 255, 0.55);
    outline-offset: 3px;
}

.container {
    width: min(
        calc(100% - 48px),
        var(--container-width)
    );
    margin-inline: auto;
}

.container-wide {
    width: min(
        calc(100% - 48px),
        var(--container-wide)
    );
    margin-inline: auto;
}

.section {
    padding-block: var(--space-20);
}

.section-heading {
    max-width: 760px;
    margin-bottom: var(--space-12);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: var(--weight-regular);
    letter-spacing: -0.035em;
    line-height: 1.16;
}

.section-description {
    margin-top: var(--space-5);
    color: var(--color-muted);
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

.text-navy {
    color: var(--color-navy);
}

.text-sapphire {
    color: var(--color-sapphire);
}

.text-muted {
    color: var(--color-muted);
}

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

.display-font {
    font-family: var(--font-display);
}

.surface {
    background: var(--color-white);
}

.surface-soft {
    background: var(--color-surface-soft);
}

.hidden {
    display: none !important;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: var(--z-modal);
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    background: var(--color-navy);
    color: var(--color-white);
}

.skip-link:focus {
    top: 16px;
}

hr {
    border: 0;
    border-top: 1px solid var(--color-border);
}

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