/* ============================================================
   Floristand — app.css
   Brand System: Pink (#E91E7B) dominant, Navy (#1A2744) accent
   Typography: Playfair Display (headings), Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---- Design tokens ---- */
:root {
  --pink:        #E91E7B;
  --pink-dark:   #C4165F;
  --pink-light:  #FDE8F0;
  --blush:       #FFF0F5;
  --navy:        #1A2744;
  --navy-light:  #2A3A5C;
  --dark:        #1A2744;
  --text:        #4A4A4A;
  --text-light:  #7A7A7A;
  --white:       #FFFFFF;
  --gray-50:     #F9FAFB;
  --gray-100:    #F3F4F6;
  --gray-200:    #E5E7EB;
  --border:      #E5E7EB;
  --divider:     rgba(26,39,68,0.18);
  --shadow:      0 1px 3px rgba(0,0,0,0.06), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:   0 8px 30px rgba(0,0,0,0.10);
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.2s ease;
}

/* ---- Base reset & typography ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--pink);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid var(--pink);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--pink-dark);
  border-color: var(--pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(233, 30, 123, 0.3);
}

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

.btn-padding {
  padding: 0.875rem 2rem;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid var(--navy);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-outline:hover {
  background-color: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.2);
}

.btn-outline:active { transform: translateY(0); box-shadow: none; }

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: transparent;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-white:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--white);
}

/* ---- Navigation ---- */
.site-header {
  background-color: var(--pink);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo img {
  height: 32px;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  text-decoration: none;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: var(--white); }
.nav-link.active::after { width: 100%; }

.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  border: 1px solid var(--white);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.nav-login:hover {
  background-color: rgba(255,255,255,0.1);
  color: var(--white);
}

/* Mobile nav */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background-color: var(--pink);
  border-top: none;
  padding: 1rem 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--white);
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transition: all var(--transition);
}

.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { background-color: rgba(255,255,255,0.15); color: var(--white); }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--white);
  border-radius: 8px;
  transition: background-color var(--transition);
}

.mobile-menu-btn:hover { background-color: rgba(255,255,255,0.15); }

/* ---- Cards ---- */
.card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}

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

.card-lg {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 2rem;
}

/* ---- Section utilities ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 1.5rem; }
.container-lg { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Feature icon ---- */
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.feature-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* ---- Hero section ---- */
.hero-section {
  background-color: var(--white);
  padding: 4rem 0 3rem;
  position: relative;
}

.hero-section .hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-section .hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: var(--navy);
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.hero-description {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 420px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-section .hero-text .accent-line {
  width: 50px;
  height: 4px;
  background-color: var(--pink);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero-section .hero-image img {
  width: 100%;
  max-width: 500px;
  margin-left: auto;
}

/* ---- Navy band ---- */
.navy-band {
  background-color: var(--blush);
  padding: 3rem 0;
  color: var(--text);
}

.navy-band .band-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.navy-band .band-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  position: relative;
}

.navy-band .band-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 10%;
  height: 80%;
  width: 1px;
  background-color: var(--divider);
}

.navy-band .band-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.navy-band .band-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: hue-rotate(270deg) saturate(1.5);
}

.navy-band h3 {
  color: var(--pink);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.navy-band p {
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ---- Flow section ---- */
.flow-section {
  padding: 5rem 0;
  background-color: var(--white);
}

.flow-section .flow-title {
  text-align: center;
  margin-bottom: 3rem;
}

.flow-section .flow-title h2 {
  font-size: 2.25rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.flow-section .flow-title .title-line {
  width: 48px;
  height: 3px;
  background-color: var(--pink);
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

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

.flow-step .flow-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--white);
  border: 3px solid var(--pink);
}

.flow-step .flow-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: hue-rotate(270deg) saturate(1.5);
}

.flow-step h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pink);
  margin-bottom: 0.5rem;
}

.flow-step p {
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pink);
  font-size: 1.5rem;
}

.flow-arrow svg {
  width: 32px;
  height: 32px;
  stroke: var(--pink);
  fill: none;
  stroke-width: 2;
}

/* ---- CTA section ---- */
.cta-section {
  background-color: var(--gray-50);
  padding: 3.5rem 0;
}

.cta-section .cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-section .cta-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--white);
  border: 3px solid var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.cta-section .cta-icon img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: hue-rotate(270deg) saturate(1.5);
}

.cta-section .cta-text {
  flex: 1;
}

.cta-section .cta-text h2 {
  font-size: 1.75rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.cta-section .cta-text p {
  color: var(--text);
  font-size: 0.9375rem;
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--pink);
  color: rgba(255,255,255,0.9);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo img {
  height: 28px;
  width: auto;
}

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

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer a {
  color: rgba(255,255,255,0.8);
  font-size: 0.875rem;
  transition: color var(--transition);
}

.site-footer a:hover { color: var(--white); }

.site-footer h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.footer-brand-text {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 240px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background-color: transparent;
  transition: all var(--transition);
}

.footer-social a:hover {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.65);
  font-size: 0.8125rem;
}

/* Legacy portal sidebar removed — florist portal uses unified inline layout */

/* ---- Status badges ---- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.status-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  flex-shrink: 0;
}
.status-pending  { background-color: #FEF3C7; color: #92400E; }
.status-assigned { background-color: #DBEAFE; color: #1E40AF; }
.status-ready    { background-color: #D1FAE5; color: #065F46; }
.status-delivered{ background-color: #D1FAE5; color: #065F46; }
.status-cancelled{ background-color: #F3F4F6; color: #6B7280; }

/* ---- Forms ---- */
.form-group { display: flex; flex-direction: column; gap: 0.375rem; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--navy); font-family: 'Inter', sans-serif; }
.form-input {
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--navy);
  background-color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}
.form-input:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(233,30,123,0.12); }
.form-input::placeholder { color: #B0B0B0; }

.form-select {
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--navy);
  background-color: var(--white);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%237A7A7A'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}
.form-select:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(233,30,123,0.12); }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  border: none;
}

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background-color: var(--pink);
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  /* Legacy portal-sidebar responsive rules removed */

  .hero-section .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-section .hero-image img { margin: 0 auto; max-width: 400px; }
  .hero-section .hero-text .accent-line { margin-left: auto; margin-right: auto; }

  .flow-grid { grid-template-columns: 1fr; gap: 2rem; }
  .flow-arrow { transform: rotate(90deg); }

  .navy-band .band-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .navy-band .band-item:not(:last-child)::after {
    display: none;
  }

  .cta-section .cta-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .desktop-nav { display: none !important; }
  .nav-login-desktop { display: none !important; }

  .section { padding: 3.5rem 0; }
  .section-lg { padding: 4.5rem 0; }

  .hero-section .hero-text h1 { font-size: 2.5rem; }
  .page-hero h1 { font-size: 2.25rem; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-outline { padding: 0.65rem 1.25rem; font-size: 0.875rem; }
  .card { padding: 1.25rem; }
  .hero-section .hero-text h1 { font-size: 2rem; }
  .page-hero h1 { font-size: 1.875rem; }
}

/* ---- Utility ---- */
.text-pink { color: var(--pink); }
.text-navy { color: var(--navy); }
.text-dark { color: var(--navy); }
.text-muted { color: var(--text-light); }
.bg-white { background-color: var(--white); }
.bg-pink { background-color: var(--pink); }
.bg-navy { background-color: var(--navy); }
.bg-gray { background-color: var(--gray-50); }

/* ---- Scroll animations ---- */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---- Pricing ---- */
.pricing-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

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

.pricing-card.featured {
  border-color: var(--pink);
  box-shadow: 0 4px 20px rgba(233,30,123,0.15);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--pink);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.pricing-card .price-period {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-card ul li {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--pink);
  font-weight: 700;
  flex-shrink: 0;
}
