/* ========================================================================== 
   Variables
   ========================================================================== */

:root {
  /* Color palette - floral, fresh, modern */
  --color-background: #fdfdfd;
  --color-surface: #ffffff;
  --color-surface-muted: #f7f4f8;

  --color-text: #222222;
  --color-text-muted: #6c6c7a;

  --color-primary: #e67ca6; /* blush pink */
  --color-primary-soft: #f7d5e4;

  --color-accent-lavender: #b88ad9;
  --color-accent-green: #7dbf8b;
  --color-accent-yellow: #ffd76a;

  --color-success: #3ea86b;
  --color-warning: #e9a11b;
  --color-danger: #e15353;

  --color-border-subtle: #e4dde9;
  --color-border-strong: #c7bcd4;

  --color-neutral-50: #faf8fb;
  --color-neutral-100: #f2edf6;
  --color-neutral-200: #e3d9ea;
  --color-neutral-300: #d3c5df;
  --color-neutral-400: #b39cc8;
  --color-neutral-500: #9374af;
  --color-neutral-600: #72558e;
  --color-neutral-700: #56416b;
  --color-neutral-800: #3a2b49;
  --color-neutral-900: #251a32;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;

  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-base: 1rem;    /* 16px */
  --font-size-md: 1.0625rem; /* 17px */
  --font-size-lg: 1.125rem;  /* 18px */
  --font-size-xl: 1.25rem;   /* 20px */
  --font-size-2xl: 1.5rem;   /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem;  /* 36px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-1: 0.125rem;  /* 2px */
  --space-2: 0.25rem;   /* 4px */
  --space-3: 0.375rem;  /* 6px */
  --space-4: 0.5rem;    /* 8px */
  --space-6: 0.75rem;   /* 12px */
  --space-8: 1rem;      /* 16px */
  --space-10: 1.25rem;  /* 20px */
  --space-12: 1.5rem;   /* 24px */
  --space-16: 2rem;     /* 32px */
  --space-20: 2.5rem;   /* 40px */
  --space-24: 3rem;     /* 48px */
  --space-32: 4rem;     /* 64px */
  --space-40: 5rem;     /* 80px */
  --space-48: 6rem;     /* 96px */

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows (soft and airy) */
  --shadow-sm: 0 6px 12px rgba(15, 8, 28, 0.06);
  --shadow-md: 0 14px 30px rgba(15, 8, 28, 0.08);
  --shadow-lg: 0 24px 60px rgba(15, 8, 28, 0.12);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 200ms ease-out;
  --transition-slow: 320ms ease-out;
}

/* Reduced-motion safe fallbacks */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
  }
}

/* ========================================================================== 
   Reset / Normalize
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
}

h1, h2, h3, h4, h5, h6,
figure, blockquote, dl, dd,
ul, ol, p {
  margin: 0;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding-left: 0;
}

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

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

/* Improve text rendering */
body,
input,
textarea,
button,
select {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================================================== 
   Base Styles
   ========================================================================== */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-background);
  color: var(--color-text);
  text-rendering: optimizeLegibility;
}

main {
  min-height: 60vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: var(--line-height-tight);
  color: var(--color-neutral-900);
}

h1 { font-size: var(--font-size-4xl); margin-bottom: var(--space-16); }

h2 { font-size: var(--font-size-3xl); margin-bottom: var(--space-12); }

h3 { font-size: var(--font-size-2xl); margin-bottom: var(--space-10); }

h4 { font-size: var(--font-size-xl); margin-bottom: var(--space-8); }

h5 { font-size: var(--font-size-lg); margin-bottom: var(--space-6); }

h6 { font-size: var(--font-size-base); margin-bottom: var(--space-4); text-transform: uppercase; letter-spacing: 0.08em; }

p {
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

strong {
  font-weight: 600;
  color: var(--color-neutral-900);
}

small {
  font-size: var(--font-size-sm);
}

a {
  color: var(--color-primary);
  transition: color var(--transition-base);
}

a:hover {
  color: var(--color-accent-lavender);
}

a:focus-visible {
  outline: 2px solid var(--color-accent-green);
  outline-offset: 2px;
}

code, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-16) 0;
}

/* ========================================================================== 
   Accessibility & Focus
   ========================================================================== */

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

/* Screen-reader only */
.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;
}

/* ========================================================================== 
   Utilities
   ========================================================================== */

/* Layout container */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-16);
  padding-right: var(--space-16);
}

@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

/* Flex helpers */
.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-sm {
  gap: var(--space-6);
}

.gap-md {
  gap: var(--space-10);
}

.gap-lg {
  gap: var(--space-16);
}

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-12);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-12);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-16);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Spacing utilities (margin-bottom for vertical rhythm) */
.mb-0 { margin-bottom: 0 !important; }
.mb-xs { margin-bottom: var(--space-4) !important; }
.mb-sm { margin-bottom: var(--space-8) !important; }
.mb-md { margin-bottom: var(--space-12) !important; }
.mb-lg { margin-bottom: var(--space-16) !important; }
.mb-xl { margin-bottom: var(--space-24) !important; }

.pt-section { padding-top: var(--space-32); }
.pb-section { padding-bottom: var(--space-32); }

@media (min-width: 768px) {
  .pt-section { padding-top: var(--space-40); }
  .pb-section { padding-bottom: var(--space-40); }
}

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

/* ========================================================================== 
   Components
   ========================================================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-lavender));
  color: #ffffff!important;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

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

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

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

.btn-ghost:hover {
  background-color: rgba(230, 124, 166, 0.08);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-green);
  outline-offset: 3px;
}

/* Inputs */
.input,
.select,
.textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: #ffffff;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: var(--color-text);
  transition:
    border-color var(--transition-base),
    box-shadow var(--transition-base),
    background-color var(--transition-base);
}

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

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(230, 124, 166, 0.3), var(--shadow-sm);
}

.input[disabled],
.select[disabled],
.textarea[disabled] {
  background-color: var(--color-neutral-50);
  cursor: not-allowed;
  opacity: 0.7;
}

label {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-neutral-800);
}

.form-field {
  margin-bottom: var(--space-12);
}

.form-help {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.form-error {
  margin-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Card */
.card {
  background-color: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.card--soft {
  background: radial-gradient(circle at top left, rgba(247, 213, 228, 0.45), transparent 55%),
              radial-gradient(circle at bottom right, rgba(184, 138, 217, 0.25), transparent 60%),
              #ffffff;
}

.card-header {
  margin-bottom: var(--space-10);
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-4);
}

.card-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-body {
  font-size: var(--font-size-sm);
}

.card-footer {
  margin-top: var(--space-12);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-6);
}

/* Image styling for airy, modern look */
.img-rounded {
  border-radius: var(--radius-lg);
}

.img-soft-shadow {
  box-shadow: var(--shadow-md);
}

/* Badge (for seasonal collections, etc.) */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--color-primary-soft);
  color: var(--color-neutral-800);
}

.badge--success { background-color: rgba(62, 168, 107, 0.12); color: var(--color-success); }
.badge--warning { background-color: rgba(233, 161, 27, 0.12); color: var(--color-warning); }
.badge--danger { background-color: rgba(225, 83, 83, 0.12); color: var(--color-danger); }

/* Alert (for trust & transactional messages) */
.alert {
  padding: var(--space-10) var(--space-12);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-8);
}

.alert--success {
  background-color: rgba(62, 168, 107, 0.08);
  color: var(--color-success);
}

.alert--warning {
  background-color: rgba(233, 161, 27, 0.08);
  color: var(--color-warning);
}

.alert--danger {
  background-color: rgba(225, 83, 83, 0.08);
  color: var(--color-danger);
}

/* ========================================================================== 
   Media & Imagery
   ========================================================================== */

/* Subtle hover zoom for bouquet/gallery images */
.image-hover-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.image-hover-zoom img {
  transform: scale(1);
  transition: transform var(--transition-slow), filter var(--transition-base);
}

.image-hover-zoom:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

@media (prefers-reduced-motion: reduce) {
  .image-hover-zoom img,
  .image-hover-zoom:hover img {
    transform: none;
  }
}
