/**
 * Simple Little Flowers Design System
 */

/* ============================================
   CSS VARIABLES
   ============================================ */

:root {
    /* Colors - Warm, Muted, Earthy */
    --color-forest: #3d5240;
    --color-sage: #6B7F6E;
    --color-terracotta: #C89B8A;
    --color-blush: #f1e1e5;
    --color-cream: #FAF7F1;
    --color-linen: #f5f2ea;
    --color-text-dark: #2A3328;
    --color-text-mid: #556356;

    /* Typography */
    --font-display: 'Juana', 'Baskerville', Georgia, serif;
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-utility: 'DM Sans', -apple-system, sans-serif;
    --font-script: 'Vintage Rotter', 'Dancing Script', cursive;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 6rem;
    --space-2xl: 10rem;

    /* Border Radius - Organic Shapes */
    --radius-sm: 12px;
    --radius-md: 24px;
    --radius-lg: 32px;
    --radius-pill: 50px;
    --radius-full: 50%;

    /* Shadows - Soft and Natural */
    --shadow-sm: 0 2px 8px rgba(61, 82, 64, 0.08);
    --shadow-md: 0 4px 16px rgba(61, 82, 64, 0.12);
    --shadow-lg: 0 8px 32px rgba(61, 82, 64, 0.16);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container widths */
    --container-narrow: 720px;
    --container-base: 1280px;
    --container-wide: 1280px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    font-size: 18px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-dark);
    background: var(--color-cream);
}

/* ============================================
   TYPOGRAPHY SYSTEM
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    text-transform: none;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 600;
}

h4 {
    font-size: clamp(1.5rem, 2.5vw, 1.75rem);
    font-family: var(--font-script)!important;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-utility);
    font-weight: 500;
}

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

.text-large {
    font-size: 1.25rem;
    line-height: 1.6;
}

.text-small {
    font-size: 0.875rem;
}

.text-utility {
    font-family: var(--font-utility);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.text-italic {
    font-style: italic;
    font-weight: 400;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */

.container {
    width: 100%;
    max-width: var(--container-base);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.container--wide {
    max-width: var(--container-wide);
}

.container .woocommerce {
    width: 100%;
    max-width: var(--container-base)!important;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-md);
    padding-right: var(--space-md);
}

.section {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.section--hero {
    padding-top: 7.5rem; /* 25% reduction from var(--space-2xl) 10rem */
    padding-bottom: 7.5rem;
    min-height: 48vh; /* 25% reduction from 64vh */
    display: flex;
    align-items: center;
}

/* ============================================
   BUTTONS - Pill Shapes
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-utility);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    padding: .5rem 2.5rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-forest);
    color: var(--color-cream);
    border-color: var(--color-forest);
}

.btn--primary:hover {
    background: var(--color-sage);
    border-color: var(--color-sage);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background: transparent;
    color: var(--color-forest);
    border-color: var(--color-forest);
}

.btn--secondary:hover {
    background: var(--color-forest);
    color: var(--color-cream);
    transform: translateY(-2px);
}

.btn--large {
    padding: 1.25rem 3rem;
    font-size: 1rem;
}

.btn--large {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    position: relative;
    display: inline-flex;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    color: var(--color-forest);
    padding: 0 !important;
    text-decoration: none;
    box-shadow: none !important;
    transform: none !important;
}

/* Hide the span text since we're using attr(data-content) in ::before */
.btn--large span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Button face with text */
.btn--large::before {
    content: attr(data-content);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-forest);
    background: var(--color-sage);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.5rem 2rem;
    z-index: 2;
    transition: transform 0.3s ease-in-out;
}

/* Checkerboard shadow */
.btn--large::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 6px;
    left: 6px;
    border: 2px solid var(--color-sage);
    background-image:
        linear-gradient(45deg, var(--color-sage) 25%, transparent 25%),
        linear-gradient(-45deg, var(--color-sage) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--color-sage) 75%),
        linear-gradient(-45deg, transparent 75%, var(--color-sage) 75%);
    background-position: 0 0, 0 3px, 3px -3px, -3px 0;
    background-size: 6px 6px;
    z-index: 1;
}

.btn--large:hover::before {
    transform: translate(6px, 6px);
}

/* ============================================
   CARDS - Rounded Shapes
   ============================================ */

.card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card--sage {
    background: rgba(107, 127, 110, 0.08);
}

.card--blush {
    background: rgba(212, 165, 154, 0.08);
}

/* ============================================
   FRAMES - Arches & Ovals
   ============================================ */

.frame-oval {
    border-radius: 50%;
    overflow: hidden;
}

.frame-arch {
    border-radius: 50% 50% 0 0;
    overflow: hidden;
}

.frame-rounded {
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* ============================================
   FORMS - Organic Inputs
   ============================================ */

.form-group {
    margin-bottom: var(--space-sm);
}

.form-label {
    display: block;
    font-family: var(--font-utility);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    color: var(--color-text-mid);
}

.form-input,
.form-textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(61, 82, 64, 0.15);
    border-radius: var(--radius-md);
    background: white;
    color: var(--color-text-dark);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-sage);
    box-shadow: 0 0 0 3px rgba(107, 127, 110, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(42, 51, 40, 0.4);
}

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

/* ============================================
   BACKGROUND PATTERNS
   ============================================ */

.bg-cream {
    background: var(--color-cream);
}

.bg-linen {
    background: var(--color-linen);
}

.bg-forest {
    background: var(--color-forest);
    color: var(--color-cream);
}

.bg-blush {
    background: var(--color-blush);
    color: var(--color-cream);
}

.bg-sage {
    background: var(--color-sage);
    color: var(--color-cream);
}

.bg-terracotta {
    background: var(--color-terracotta);
    color: var(--color-cream);
}

.bg-botanical-subtle {
    background-image:
        radial-gradient(circle at 20% 80%, rgba(107, 127, 110, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 165, 154, 0.03) 0%, transparent 50%);
}

/* ============================================
   UTILITIES
   ============================================ */

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

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

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

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

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease both;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease both;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Stagger animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    :root {
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .container {
        padding-left: 0;
        padding-right: 0;
    }

    .section--hero {
        min-height: 45vh; /* 25% reduction from 60vh */
        padding-top: 4.5rem; /* 25% reduction from 6rem */
        padding-bottom: 4.5rem;
    }
}
