/* =========================================================
   BFT — BlissfullTreats
   Global Design System
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    /* Brand Colors */
    --color-primary: #3B2118;
    --color-primary-soft: #5A3428;
    --color-accent: #A66A45;
    --color-accent-dark: #875437;

    /* Surfaces */
    --color-background: #F8F3EC;
    --color-surface: #FFFDF9;
    --color-surface-soft: #F2E9DE;
    --color-surface-dark: #E8D9C8;

    /* Typography */
    --color-text: #2B1B15;
    --color-text-soft: #654F45;
    --color-muted: #8A766B;
    --color-white: #FFFFFF;

    /* Utility */
    --color-border: rgba(59, 33, 24, 0.12);
    --color-border-strong: rgba(59, 33, 24, 0.22);
    --color-success: #527A5A;
    --color-danger: #A64B42;

    /* Typography */
    --font-display: "Playfair Display", Georgia, serif;
    --font-body: "DM Sans", Arial, sans-serif;

    /* Layout */
    --container: 1240px;
    --container-wide: 1400px;
    --gutter: 24px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-soft: 0 8px 30px rgba(59, 33, 24, 0.07);
    --shadow-card: 0 14px 40px rgba(59, 33, 24, 0.09);

    /* Motion */
    --transition-fast: 180ms ease;
    --transition-base: 280ms ease;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

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

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

button {
    border: 0;
    cursor: pointer;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0;
    color: var(--color-primary);
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.8rem, 6vw, 5.8rem);
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.35rem, 2vw, 1.8rem);
}

p {
    margin: 0;
}

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

.eyebrow {
    color: var(--color-accent-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Layout */
.container {
    width: min(100% - (var(--gutter) * 2), var(--container));
    margin-inline: auto;
}

.container-wide {
    width: min(100% - (var(--gutter) * 2), var(--container-wide));
    margin-inline: auto;
}

.section {
    padding-block: clamp(64px, 9vw, 120px);
}

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

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

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    transition:
        transform var(--transition-fast),
        background-color var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(166, 106, 69, 0.35);
    outline-offset: 3px;
}

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

.btn-primary:hover {
    background: var(--color-primary-soft);
    box-shadow: var(--shadow-soft);
}

.btn-secondary {
    background: var(--color-accent);
    color: var(--color-white);
}

.btn-secondary:hover {
    background: var(--color-accent-dark);
}

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

.btn-outline:hover {
    border-color: var(--color-primary);
    background: var(--color-surface);
}

.btn-text {
    min-height: auto;
    padding: 4px 0;
    border-radius: 0;
    color: var(--color-primary);
}

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.card--shadow {
    box-shadow: var(--shadow-card);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.badge--accent {
    background: var(--color-accent);
}

/* Forms */
.form-group {
    display: grid;
    gap: 8px;
}

.form-label {
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 600;
}

.form-control {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(166, 106, 69, 0.10);
    outline: none;
}

/* Utility */
.hidden {
    display: none !important;
}

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

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

.no-scroll {
    overflow: hidden;
}

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

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