/* ============================================================
   RADHA KRISHNA MANDIR — Base Styles
   Reset, typography, and global utility classes
   ============================================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--fs-base);
    font-weight: var(--fw-regular);
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--ivory);
    min-height: 100vh;
}

/* Devanagari script reads smaller at the same px size — bump when Nepali is active */
html[lang="ne"] {
    font-size: 17px;
}

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

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

a:hover,
a:focus-visible {
    color: var(--gold);
}

ul,
ol {
    list-style: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ── Typography ──────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: var(--fw-bold);
    line-height: 1.25;
    color: var(--burgundy);
}

h1 {
    font-size: var(--fs-2xl);
    margin-bottom: var(--space-lg);
}

h2 {
    font-size: var(--fs-xl);
    margin-bottom: var(--space-md);
}

h3 {
    font-size: var(--fs-lg);
    margin-bottom: var(--space-sm);
}

h4 {
    font-size: var(--fs-md);
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
    h1 {
        font-size: var(--fs-3xl);
    }

    h2 {
        font-size: var(--fs-2xl);
    }

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

@media (min-width: 1024px) {
    h1 {
        font-size: var(--fs-4xl);
    }
}

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

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

.section {
    padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-3xl) 0;
    }
}

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

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    border: 2px solid transparent;
}

.btn-gold {
    background-color: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.btn-gold:hover,
.btn-gold:focus-visible {
    background-color: var(--gold-dark);
    border-color: var(--gold-dark);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}

.btn-burgundy {
    background-color: var(--burgundy);
    color: var(--white);
    border-color: var(--burgundy);
}

.btn-burgundy:hover,
.btn-burgundy:focus-visible {
    background-color: var(--burgundy-light);
    border-color: var(--burgundy-light);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--burgundy);
    border-color: var(--burgundy);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    background-color: var(--burgundy);
    color: var(--white);
}

/* ── Form Elements ───────────────────────────────────────── */
.form-group {
    margin-bottom: var(--space-md);
}

.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    color: var(--burgundy);
    margin-bottom: var(--space-xs);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--fs-base);
    color: var(--text-body);
    background-color: var(--white);
    border: 1px solid var(--tan-dark);
    border-radius: var(--border-radius);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234A0E0E' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: var(--space-2xl);
    cursor: pointer;
}

/* ── Decorative Divider ──────────────────────────────────── */
.divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: var(--space-md) auto;
    border-radius: 2px;
}

/* ── Page Title Section ──────────────────────────────────── */
.page-title-section {
    text-align: center;
    padding: var(--space-2xl) 0 var(--space-xl);
}

.page-title-section h1 {
    margin-bottom: var(--space-sm);
}