:root {
    --primary: #8f001f;
    --primary-dark: #5d0014;
    --primary-soft: #fff0f1;
    --gold: #d89a22;
    --gold-soft: #fff7df;
    --saffron: #ef7d00;
    --navy: #2d171d;
    --text: #35262a;
    --muted: #796b6f;
    --surface: #ffffff;
    --background: #fffaf6;
    --border: #ecdadd;
    --success: #18794e;
    --danger: #b42318;
    --font-display: "Cormorant Garamond", Georgia, "Noto Serif Devanagari", serif;
    --font-body: "Noto Sans Devanagari", "Nirmala UI", Inter, system-ui, sans-serif;
    --radius-sm: 0.55rem;
    --radius-md: 0.9rem;
    --radius-lg: 1.5rem;
    --shadow-sm: 0 0.6rem 1.8rem rgb(71 32 45 / 8%);
    --shadow-lg: 0 1.4rem 4rem rgb(71 32 45 / 14%);
    --transition: 180ms ease;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    min-width: 20rem;
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    min-height: 60vh;
}

h1,
h2,
h3,
h4 {
    color: var(--primary-dark);
    font-family: var(--font-display);
    font-weight: 700;
}

p {
    margin-top: 0;
}

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

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

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea,
a {
    transition: color var(--transition), background-color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

.skip-link {
    position: fixed;
    z-index: 1100;
    top: 0.5rem;
    left: 0.5rem;
    padding: 0.7rem 1rem;
    color: #ffffff;
    background: var(--primary-dark);
    border-radius: var(--radius-sm);
    transform: translateY(-180%);
}

.skip-link:focus {
    color: #ffffff;
    transform: translateY(0);
}

.section-space {
    padding: clamp(4rem, 7vw, 6rem) 0;
}

.section-space-sm {
    padding: 0 0 2.5rem;
}

.section-kicker {
    margin-bottom: 0.35rem;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading {
    max-width: 45rem;
    margin-bottom: 1rem;
}

.section-heading h2,
.content-title {
    margin-bottom: 0.8rem;
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: none;
    gap: 2rem;
}

.text-link {
    flex: 0 0 auto;
    font-size: 0.9rem;
    font-weight: 800;
}

.bg-white {
    background: #ffffff !important;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    gap: 0.5rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-weight: 700;
}

.btn-sm {
    min-height: 2.35rem;
    padding-inline: 1rem;
    font-size: 0.82rem;
}

.btn-lg {
    min-height: 3.15rem;
    padding-inline: 1.5rem;
    font-size: 1rem;
}

.btn-brand {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #ad1234);
    border: 1px solid var(--primary);
    box-shadow: 0 0.6rem 1.25rem rgb(143 0 31 / 20%);
}

.btn-brand:hover,
.btn-brand:focus {
    color: #ffffff;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-brand-outline {
    color: var(--primary);
    background: #ffffff;
    border: 1px solid rgb(143 0 31 / 42%);
}

.btn-brand-outline:hover,
.btn-brand-outline:focus {
    color: #ffffff;
    background: var(--primary);
    border-color: var(--primary);
}

.form-label {
    margin-bottom: 0.4rem;
    color: #4d464e;
    font-size: 0.82rem;
    font-weight: 700;
}

.form-control,
.form-select,
.input-group-text {
    min-height: 2.85rem;
    border-color: #ded2d6;
    font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgb(124 24 56 / 65%);
    box-shadow: 0 0 0 0.2rem rgb(124 24 56 / 10%);
}

.input-group-text {
    color: #6d646d;
    background: #fbf8f8;
}

.field-error {
    display: block;
    margin-top: 0.35rem;
    color: var(--danger);
    font-size: 0.78rem;
    font-weight: 600;
}

.is-invalid {
    border-color: var(--danger) !important;
}

@media (max-width: 767.98px) {
    .heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
