/* ==========================================================================
   Basant Restaurant Cakes & Sweets — design tokens + shared component layer
   Ported 1:1 from the Next.js/Tailwind build's globals.css palette.
   ========================================================================== */

:root {
    --ivory: #fbf7ef;
    --cream: #f4ecdd;
    --cream-deep: #ecdfc4;
    --charcoal: #241f1b;
    --charcoal-soft: #4a433c;
    --maroon: #6d1a2f;
    --maroon-dark: #4a1120;
    --maroon-light: #8a2a41;
    --gold: #b08d57;
    --gold-light: #d9c6a0;
    --gold-text: #7b633d; /* darkened for WCAG AA text contrast on ivory/cream — --gold itself is too light (2.6-2.9:1) for small uppercase labels */
    --border: #e7ddc9;

    --font-display: 'Fraunces', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --max-content: 1280px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --shadow-card: 0 1px 8px -2px rgba(36, 31, 27, 0.08);
    --shadow-lifted: 0 18px 40px -8px rgba(36, 31, 27, 0.12);

    --ease-luxury: cubic-bezier(0.22, 0.61, 0.36, 1);
    --dur-slow: 0.7s;
    --dur-med: 0.35s;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--charcoal);
    background: var(--ivory);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    margin: 0 0 0.5em;
    color: var(--charcoal);
}

p { margin: 0 0 1em; line-height: 1.65; }

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

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

/* Accessibility-first focus ring */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

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

/* ---------- Layout ---------- */

.container-basant {
    max-width: var(--max-content);
    margin-inline: auto;
    padding-inline: 1.25rem;
}
@media (min-width: 768px) {
    .container-basant { padding-inline: 2rem; }
}

.section { padding-block: 4rem; }
@media (min-width: 768px) {
    .section { padding-block: 6rem; }
}
.section--ivory { background: var(--ivory); }
.section--cream { background: var(--cream); }
.section--charcoal { background: var(--charcoal); color: var(--ivory); }
.section--charcoal h1, .section--charcoal h2, .section--charcoal h3 { color: var(--ivory); }
.section--maroon { background: var(--maroon); color: var(--ivory); }
.section--maroon h1, .section--maroon h2, .section--maroon h3 { color: var(--ivory); }

/* ---------- Reusable components ---------- */

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

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--gold-text);
    margin-bottom: 0.75rem;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: 999px;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background var(--dur-med) var(--ease-luxury), color var(--dur-med) var(--ease-luxury), border-color var(--dur-med) var(--ease-luxury);
    text-decoration: none;
}
.btn-primary {
    background: var(--maroon);
    color: var(--ivory);
}
.btn-primary:hover { background: var(--maroon-dark); }
.btn-secondary {
    background: transparent;
    color: var(--maroon);
    border-color: var(--maroon);
}
.btn-secondary:hover { background: var(--maroon); color: var(--ivory); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }

.card {
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ---------- Forms (shared by public forms + admin CRUD) ---------- */

.form-row { margin-bottom: 1.25rem; }
.form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.375rem;
    color: var(--charcoal);
}
.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="tel"],
.form-row input[type="password"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="url"],
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9375rem;
    background: #fff;
    color: var(--charcoal);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--maroon);
}
.checkbox-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }

/* ---------- Motion / atmosphere ---------- */

.reveal {
    opacity: 0;
    transform: translateY(16px);
}
.reveal.is-visible {
    animation: reveal-in var(--dur-slow) ease-out forwards;
}
@keyframes reveal-in {
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Legal page typography ---------- */

.legal-content h2 { font-family: var(--font-display); margin-top: 2rem; }
.legal-content p { line-height: 1.75; }
.legal-content a { color: var(--maroon); text-decoration: underline; }
