/* ============================================
   K Rose Flowers — Design tokens
   Palette derived from bouquet reference: dahlia pink,
   zinnia coral, celosia gold, foliage green, warm cream.
   Contrast checked against WCAG AA (4.5:1 body / 3:1 large).
   ============================================ */
:root {
  --cream: #fff9f2;
  --cream-deep: #fbede0;
  --ink: #3a2b23;
  --ink-soft: #5a493f;
  --pink-deep: #a63d68;   /* text-safe on cream: 5.76:1 */
  --pink-bright: #e0568c; /* decorative / large only */
  --coral: #e2724a;       /* decorative / large text only: 4.34:1 */
  --gold: #d9a234;        /* pair with ink text: 5.9:1 */
  --green-deep: #3f6b4a;  /* text-safe on cream: 5.88:1 */
  --green-soft: #b9d2a9;  /* decorative fills */
  --line: rgba(58, 43, 35, 0.14);
  --shadow: 0 18px 40px -22px rgba(58, 27, 15, 0.35);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

a { color: var(--pink-deep); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
label:focus-within {
  outline: 3px solid var(--pink-deep);
  outline-offset: 3px;
}

img, svg { max-width: 100%; display: block; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: "Work Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--coral);
  display: inline-block;
  border-radius: 2px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 249, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 56px);
  max-width: 1160px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.brand svg { width: 30px; height: 30px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--pink-deep); }
.nav-cta {
  background: var(--pink-deep);
  color: var(--cream) !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: "Work Sans", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--pink-deep);
  color: var(--cream);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: #8f3358; transform: translateY(-2px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }
.btn-ghost {
  background: var(--cream-deep);
  color: var(--ink);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--pink-deep); color: var(--pink-deep); }

/* ---------- Hero 1 ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  line-height: 1.04;
}
.hero h1 em {
  font-style: italic;
  color: var(--pink-deep);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 2em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.2em;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-meta strong {
  display: block;
  color: var(--ink);
  font-family: "Fraunces", serif;
  font-size: 1.05rem;
  font-weight: 600;
}
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.05;
}
.hero-art svg { width: 100%; height: 100%; }
.blob {
  position: absolute;
  inset: 0;
  z-index: -1;
  filter: blur(0px);
}

/* ---------- Section shell ---------- */
section { padding: clamp(56px, 9vw, 100px) 0; }
.section-cream-deep { background: var(--cream-deep); }
.section-head {
  max-width: 640px;
  margin: 0 auto 3em;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Offerings (Hero 2) ---------- */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.offer-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.offer-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.offer-icon svg { width: 38px; height: 38px; }
.offer-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.35em;
}
.offer-card p {
  color: var(--ink-soft);
  font-size: 0.98rem;
  margin: 0;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

/* ---------- Contact / Map (Hero 3) ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}
.contact-card {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.contact-card h2 { color: var(--cream); }
.contact-card .section-head { text-align: left; margin: 0; max-width: none; }
.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}
.contact-item a, .contact-item span {
  color: var(--cream);
  text-decoration: none;
}
.contact-item a:hover { color: var(--gold); }
.contact-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #d9c9c0;
  margin-bottom: 3px;
}
.hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.92rem;
  display: grid;
  gap: 6px;
  color: #ecdfd8;
}
.hours-list li { display: flex; justify-content: space-between; gap: 20px; }
.hours-list span:last-child { color: var(--cream); font-weight: 600; }

.map-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 360px;
  position: relative;
}
.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
}
.map-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: var(--cream);
  padding: 10px 16px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.map-badge svg { width: 16px; height: 16px; color: var(--coral); }

.delivery-note {
  background: var(--cream-deep);
  border-radius: 16px;
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  border: 1px dashed var(--pink-deep);
}
.delivery-note strong { color: var(--pink-deep); }

/* ---------- Footer ---------- */
footer {
  background: var(--ink);
  color: #e9dcd4;
  padding: 52px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Fraunces", serif;
  font-size: 1.25rem;
  color: var(--cream);
}
.footer-brand svg { width: 28px; height: 28px; }
.footer-tag { color: #c9b8ae; font-size: 0.92rem; margin-top: 6px; max-width: 34ch; }
.social-row {
  display: flex;
  gap: 12px;
}
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}
.social-row a:hover { background: var(--pink-deep); transform: translateY(-3px); }
.social-row svg { width: 19px; height: 19px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: #b3a299;
}
.footer-bottom a { color: #b3a299; text-decoration: none; }
.footer-bottom a:hover { color: var(--cream); }

/* ---------- Order page shared ---------- */
.order-shell {
  padding: clamp(40px, 7vw, 72px) 0 100px;
}
.order-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.method-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto 44px;
}
.method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 24px 16px;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  cursor: pointer;
  font-family: "Work Sans", sans-serif;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.method-btn svg { width: 30px; height: 30px; color: var(--pink-deep); }
.method-btn strong { font-family: "Fraunces", serif; font-size: 1.1rem; color: var(--ink); }
.method-btn[aria-pressed="true"] {
  border-color: var(--pink-deep);
  background: #fdf1f6;
  box-shadow: var(--shadow);
}
.method-btn:hover { border-color: var(--pink-deep); }

.order-panel {
  max-width: 760px;
  margin: 0 auto;
  background: var(--cream-deep);
  border-radius: var(--radius);
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
}
.panel-section + .panel-section {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.panel-section h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.panel-section .hint { color: var(--ink-soft); font-size: 0.88rem; margin: 0 0 18px; }

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.field .req { color: var(--pink-deep); }
.field input,
.field select,
.field textarea {
  font-family: "Work Sans", sans-serif;
  font-size: 0.98rem;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--cream);
  color: var(--ink);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--pink-deep);
  outline: none;
}
.field textarea { resize: vertical; min-height: 90px; }

.store-info-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.store-info-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.store-info-row svg { width: 22px; height: 22px; color: var(--pink-deep); flex-shrink: 0; margin-top: 2px; }
.store-info-row strong { display: block; font-family: "Fraunces", serif; font-size: 1.05rem; }
.store-info-row span { color: var(--ink-soft); font-size: 0.94rem; }

.upload-zone {
  border: 1.5px dashed var(--pink-deep);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  background: var(--cream);
  cursor: pointer;
  position: relative;
}
.upload-zone svg { width: 34px; height: 34px; color: var(--pink-deep); margin: 0 auto 10px; }
.upload-zone p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.upload-zone strong { color: var(--pink-deep); }
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.preview-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; }
.preview-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(58,43,35,0.75);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.submit-row {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.submit-note { font-size: 0.85rem; color: var(--ink-soft); max-width: 40ch; }

.pickup-directions {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.pickup-directions svg { width: 18px; height: 18px; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 340px; margin: 0 auto; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .offer-grid { grid-template-columns: 1fr; }
  .method-toggle { grid-template-columns: 1fr; }
  .hero-meta { gap: 18px; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
