/* ========================================================
   MINIMALIST WHITE SPACE DESIGN SYSTEM
   Clean, Airy, High-Contrast & Modern Micro-Interactions
   ======================================================== */

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

:root {
  /* Neutral Whitespace Palette */
  --bg-canvas: #ffffff;
  --bg-subtle: #fcfcfd;
  --bg-muted: #f8fafc;
  --border-light: #f1f5f9;
  --border-subtle: #e2e8f0;
  
  /* Text Contrast Hierarchy */
  --text-primary: #090d16;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  
  /* Brand Accents */
  --accent-tech: #2563eb;
  --accent-tech-light: #eff6ff;
  --accent-photo: #7c3aed;
  --accent-photo-light: #f5f3ff;
  --accent-florist: #e11d48;
  --accent-florist-light: #fff1f2;
  
  /* Shadows with Negative Space */
  --shadow-subtle: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 20px 45px -15px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 30px 60px -20px rgba(15, 23, 42, 0.12);
  --shadow-float: 0 25px 50px -12px rgba(225, 29, 72, 0.25);
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
}

/* Base & Typography */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-canvas);
  line-height: 1.75;
  letter-spacing: -0.015em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

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

/* Spacious Section Layouts */
.section-spacious {
  padding-top: 100px;
  padding-bottom: 100px;
}

@media (min-width: 992px) {
  .section-spacious {
    padding-top: 130px;
    padding-bottom: 130px;
  }
}

/* Glassmorphism Airy Navigation */
.navbar-whitespace {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding-top: 20px;
  padding-bottom: 20px;
  transition: all 0.3s ease;
}

.navbar-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--text-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.nav-link-custom {
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 18px !important;
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
}

.nav-link-custom:hover {
  color: var(--text-primary);
  background-color: var(--bg-muted);
}

/* Minimalist Hero Section */
.hero-whitespace {
  position: relative;
  padding-top: 130px;
  padding-bottom: 90px;
  background-color: var(--bg-canvas);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-heading {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

@media (min-width: 992px) {
  .hero-heading {
    font-size: 4rem;
  }
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 48px auto;
}

/* Floating Whitespace Pill Switcher */
.switcher-container {
  display: inline-flex;
  background: var(--bg-muted);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-subtle);
}

.switcher-btn {
  border: none;
  background: transparent;
  padding: 12px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.switcher-btn:hover {
  color: var(--text-primary);
}

.switcher-btn.btn-active-dark {
  background: var(--text-primary);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.switcher-btn.btn-active-tech {
  background: var(--accent-tech);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.switcher-btn.btn-active-photo {
  background: var(--accent-photo);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.switcher-btn.btn-active-florist {
  background: var(--accent-florist);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.3);
}

/* Minimalist Card Design with High Breathing Room */
.card-whitespace {
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-card);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card-whitespace:hover {
  transform: translateY(-6px);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-hover);
}

.card-media-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  margin-bottom: 24px;
  background: var(--bg-muted);
}

.card-media-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-whitespace:hover .card-media-wrapper img {
  transform: scale(1.04);
}

/* Pill Badges in Whitespace Context */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.775rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

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

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

/* Section Header Typography */
.section-eyebrow {
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

@media (min-width: 992px) {
  .section-title {
    font-size: 2.75rem;
  }
}

.section-subtitle {
  font-size: 1.075rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 680px;
}

/* Delivery Option Minimalist Cards */
.delivery-box-whitespace {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--bg-canvas);
  cursor: pointer;
  transition: all 0.25s ease;
}

.delivery-box-whitespace:hover {
  border-color: #cbd5e1;
  background: var(--bg-subtle);
}

.delivery-box-whitespace.active {
  border-color: var(--accent-florist);
  background: #fffbfa;
  box-shadow: 0 10px 25px -5px rgba(225, 29, 72, 0.08);
}

/* Minimalist Form Controls */
.form-control, .form-select {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 4px rgba(9, 13, 22, 0.05);
}

/* Modern Minimalist Buttons */
.btn-whitespace-primary {
  background: var(--text-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-whitespace-primary:hover {
  background: #1e293b;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.btn-whitespace-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-whitespace-outline:hover {
  background: var(--bg-muted);
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.btn-whitespace-florist {
  background: var(--accent-florist);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-whitespace-florist:hover {
  background: #be123c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(225, 29, 72, 0.35);
}

/* Modern Minimalist Footer */
.footer-whitespace {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  padding-top: 90px;
  padding-bottom: 60px;
}

/* ========================================================
   LIVE BOARD & CARD PREVIEW SIMULATION (FLORIST)
   ======================================================== */
.board-preview-frame {
  background: linear-gradient(135deg, #ffffff 0%, #fff5f6 100%);
  border: 2px dashed rgba(225, 29, 72, 0.4);
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.board-preview-frame::before {
  content: "🌸 FLORIST PREVIEW 🌸";
  position: absolute;
  top: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: rgba(225, 29, 72, 0.35);
  text-transform: uppercase;
}

.board-preview-header {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-florist);
  text-transform: uppercase;
  margin-top: 12px;
}

.board-preview-body {
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  max-width: 90%;
  line-height: 1.45;
  font-family: inherit;
}

.board-preview-sender {
  font-size: 0.875rem;
  font-weight: 700;
  color: #475569;
  border-top: 1px solid rgba(225, 29, 72, 0.15);
  padding-top: 6px;
  margin-top: 8px;
}

/* Workflow Step Cards */
.workflow-step-card {
  padding: 32px 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.workflow-step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.workflow-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: #e2e8f0;
  margin-bottom: 16px;
}

/* Floating WhatsApp Direct Button */
.wa-float-pill {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1040;
  background-color: #25d366;
  color: #ffffff;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  transition: all 0.3s ease;
}

.wa-float-pill:hover {
  background-color: #1eb956;
  color: #ffffff;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* ========================================================
   HIGH VOLUME CATALOG TOOLBAR & SEARCH (WHITESPACE)
   ======================================================== */
.florist-toolbar {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  box-shadow: var(--shadow-subtle);
  margin-bottom: 32px;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper i.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
}

.search-input-wrapper input {
  padding-left: 45px;
  padding-right: 40px;
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background-color: #f8fafc;
  font-size: 0.925rem;
  transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
  background-color: #ffffff;
  border-color: var(--accent-florist);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
  outline: none;
}

.search-clear-btn {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  padding: 0;
}

.search-clear-btn:hover {
  color: #0f172a;
}

.sort-select-wrapper select {
  height: 46px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  font-weight: 500;
  padding-left: 18px;
  padding-right: 36px;
  background-color: #ffffff;
}

.sort-select-wrapper select:focus {
  border-color: var(--accent-florist);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.1);
  outline: none;
}

/* Customer Auth Nav Component */
.btn-customer-account {
  background-color: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  transition: all 0.2s ease;
}

.btn-customer-account:hover {
  border-color: var(--accent-florist);
  color: var(--accent-florist);
}

.load-more-container {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* ========================================================
   RESPONSIVE MOBILE-FIRST & TOUCH SCREEN OPTIMIZATIONS
   ======================================================== */

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

img, svg {
  max-width: 100%;
  height: auto;
}

/* Prevent iOS Safari 16px auto-zoom quirk */
@media (max-width: 767.98px) {
  input.form-control, select.form-select, textarea.form-control {
    font-size: 16px !important;
  }
}

/* Tablet & Mobile Screens (<= 991.98px) */
@media (max-width: 991.98px) {
  .navbar-whitespace {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .navbar-collapse {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 16px;
    margin-top: 10px;
    box-shadow: 0 16px 40px -8px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border-light);
  }

  .navbar-nav .nav-link-custom {
    padding: 11px 16px !important;
    border-radius: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
  }

  .navbar-nav .nav-link-custom:hover {
    background-color: #f8fafc;
  }

  .nav-actions-mobile-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-light);
  }

  .nav-actions-mobile-grid .btn,
  .nav-actions-mobile-grid .btn-customer-account {
    width: 100%;
    justify-content: center;
    padding: 10px 12px;
    font-size: 0.85rem;
  }

  /* Section Spacing on Tablets & Phones */
  .section-spacious {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 0.975rem;
    line-height: 1.65;
  }

  /* Pill Switchers: Native Horizontal Touch Carousel */
  .switcher-container {
    display: flex;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 100%;
    padding: 5px;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-pill);
  }

  .switcher-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .switcher-btn {
    flex-shrink: 0;
    padding: 9px 18px;
    font-size: 0.85rem;
  }

  /* Florist Toolbar */
  .florist-toolbar {
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
  }

  /* Cards */
  .card-whitespace {
    padding: 20px;
  }

  .card-media-wrapper {
    height: 210px;
    margin-bottom: 18px;
  }
}

/* Smartphone Screens (<= 575.98px) */
@media (max-width: 575.98px) {
  /* Hero typography */
  .hero-whitespace {
    padding-top: 45px;
    padding-bottom: 35px;
  }

  .hero-tag {
    font-size: 0.725rem;
    padding: 6px 14px;
    margin-bottom: 16px;
  }

  .hero-heading {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
  }

  .hero-description {
    font-size: 0.925rem;
    line-height: 1.65;
    margin-bottom: 24px;
    padding: 0 4px;
  }

  /* Section headers */
  .section-spacious {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .section-subtitle {
    font-size: 0.875rem;
    line-height: 1.6;
    padding: 0 4px;
  }

  .section-eyebrow {
    font-size: 0.725rem;
    margin-bottom: 8px;
  }

  /* Nav actions full width stack */
  .nav-actions-mobile-grid {
    grid-template-columns: 1fr;
  }

  /* Floating WhatsApp Direct Button */
  .wa-float-pill {
    bottom: 16px;
    right: 14px;
    padding: 9px 16px;
    font-size: 0.8rem;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  }

  /* Delivery Feature Boxes */
  .delivery-box-whitespace {
    padding: 16px;
  }

  /* Cards on Small Mobile */
  .card-whitespace {
    padding: 16px;
    border-radius: 18px;
  }

  .card-media-wrapper {
    height: 185px;
    border-radius: 14px;
    margin-bottom: 14px;
  }

  /* Modal touch responsiveness */
  .modal-dialog {
    margin: 12px;
  }

  .modal-content {
    border-radius: 20px !important;
    padding: 14px !important;
  }

  /* Board Live Preview on Mobile */
  .board-preview-frame {
    padding: 12px;
    min-height: 120px;
  }

  .board-preview-header {
    font-size: 0.85rem;
  }

  .board-preview-body {
    font-size: 0.925rem;
    max-width: 96%;
  }

  .board-preview-sender {
    font-size: 0.78rem;
  }

  /* Footer */
  footer.footer-whitespace {
    padding-top: 45px !important;
    padding-bottom: 30px !important;
  }
}

