/* ============================================================
   FLORISTRY — bespoke layout
   Tone: нежный, рукодельный, photo-poetic. Pastel blush + sage.
   Bouquet catalog, occasions tabs, hourly delivery timeline,
   custom-order form, Instagram feed.
   ============================================================ */

body[data-niche="floristry"] {
  --blush:        #E8B8B0;
  --blush-deep:   #D88A7E;
  --rose:         #C9706B;
  --rose-soft:    #F7E1DC;
  --sage:         #9DB39A;
  --cream:        #FBF6EE;
  --paper:        #FFFFFF;
  --beige:        #F2EAD9;
  --char:         #2A1F1B;
  --char-2:       #4A3D38;
  --slate:        #80706A;
  --hairline:     #ECE0D7;

  --surface-page:   var(--cream);
  --surface-card:   var(--paper);
  --surface-soft:   var(--beige);
  --text-primary:   var(--char);
  --text-secondary: var(--slate);
  --border-soft:    var(--hairline);
  --accent:         var(--rose);
  --accent-dark:    var(--blush-deep);
  --accent-soft:    var(--rose-soft);
  --accent-glow:    rgba(201,112,107,.20);

  background: var(--cream);
  color: var(--char);
  font-family: var(--font-sans);
}

body[data-niche="floristry"] h1,
body[data-niche="floristry"] h2,
body[data-niche="floristry"] h3 {
  font-family: 'Cormorant Garamond', 'Source Serif 4', Georgia, serif;
  font-weight: 400; font-style: italic;
  letter-spacing: -0.005em; color: var(--char); line-height: 1.08;
}

/* ---- TOPBAR ---- */
.fl-topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(251,246,238,.88); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline); padding: 16px 0;
}
.fl-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.fl-brand { display: inline-flex; align-items: center; gap: 10px; }
.fl-brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--rose));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--paper); font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 18px; font-weight: 500;
}
.fl-brand b { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 22px; font-weight: 500; }
.fl-nav { display: flex; gap: 28px; }
.fl-nav a { color: var(--char-2); font-size: 14px; font-weight: 500; }
.fl-nav a:hover { color: var(--rose); }
.fl-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px;
  background: var(--rose); color: var(--paper);
  font-size: 13px; font-weight: 600;
  transition: background .25s var(--ease-smooth), transform .25s var(--ease-smooth);
}
.fl-cta:hover { background: var(--blush-deep); transform: translateY(-1px); }
.fl-cta.outline { background: transparent; color: var(--rose); border: 1px solid var(--rose); }
.fl-cta.outline:hover { background: var(--rose-soft); }
@media (max-width: 760px) { .fl-nav { display: none; } }

/* ---- HERO ---- */
.fl-hero {
  position: relative;
  padding: clamp(60px, 7vw, 100px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
  background:
    radial-gradient(50% 40% at 80% 0%, var(--rose-soft), transparent 60%),
    radial-gradient(40% 50% at 10% 80%, color-mix(in srgb, var(--sage) 25%, transparent), transparent 60%),
    var(--cream);
}
.fl-hero::before, .fl-hero::after {
  content: ''; position: absolute; pointer-events: none;
  width: 220px; height: 220px; border-radius: 50%;
  filter: blur(50px);
}
.fl-hero::before { background: var(--blush); top: 8%; right: 10%; opacity: .35; animation: fl-float 12s ease-in-out infinite; }
.fl-hero::after  { background: var(--sage);  bottom: 8%; left: 10%; opacity: .35; animation: fl-float 14s ease-in-out infinite reverse; }
@keyframes fl-float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(20px,-20px); } }

.fl-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }

.fl-hero-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--hairline);
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 14px;
  color: var(--rose); margin-bottom: 24px;
}
.fl-hero-tag::before { content: '✿ '; color: var(--rose); }
.fl-hero h1 {
  font-size: clamp(50px, 8vw, 120px); line-height: 1.0; margin: 0 0 24px;
  letter-spacing: -0.012em;
}
.fl-hero h1 .amp { color: var(--rose); }
.fl-hero-lead {
  font-family: var(--font-sans); font-size: clamp(16px, 1.4vw, 19px);
  color: var(--char-2); line-height: 1.65; max-width: 50ch; margin: 0 0 28px;
}
.fl-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.fl-hero-meta {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; gap: 32px; flex-wrap: wrap;
}
.fl-hero-meta div b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 32px; color: var(--rose); font-weight: 500; line-height: 1; margin-bottom: 4px; font-style: italic; }
.fl-hero-meta div span { color: var(--slate); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }

.fl-hero-photo {
  aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; position: relative;
  background-size: cover; background-position: center;
  background-color: var(--rose-soft);
  box-shadow: 0 30px 60px -20px rgba(201,112,107,.3);
}
.fl-hero-photo::after {
  content: ''; position: absolute; bottom: 16px; right: 16px;
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 14px; color: var(--rose); text-align: center;
  box-shadow: 0 12px 24px -8px rgba(201,112,107,.4);
  background-image: linear-gradient(135deg, var(--paper), var(--rose-soft));
}
.fl-hero-photo .badge {
  position: absolute; bottom: 32px; right: 32px; z-index: 2;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 13px; line-height: 1.2; color: var(--char); text-align: center;
  width: 64px; pointer-events: none;
}
@media (max-width: 900px) { .fl-hero-grid { grid-template-columns: 1fr; } }

/* ---- DELIVERY timeline ---- */
.fl-delivery {
  background: var(--paper); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  padding: 36px 0;
}
.fl-delivery-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 36px; align-items: center; }
.fl-delivery-text {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: clamp(20px, 2vw, 28px);
  color: var(--char); line-height: 1.2; margin: 0;
}
.fl-delivery-text b { color: var(--rose); font-style: italic; font-weight: 500; }
.fl-delivery-line {
  position: relative; height: 56px; display: flex; align-items: center;
  background: var(--cream); border-radius: 999px; padding: 0 14px;
}
.fl-delivery-line::before { content: ''; position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; background: var(--hairline); transform: translateY(-50%); }
.fl-delivery-slot { flex: 1; text-align: center; position: relative; z-index: 1; }
.fl-delivery-slot strong {
  display: block; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
  color: var(--char); margin-bottom: 4px;
}
.fl-delivery-slot small { color: var(--slate); font-size: 11px; letter-spacing: .04em; }
.fl-delivery-slot.now strong, .fl-delivery-slot.now small { color: var(--rose); }
.fl-delivery-slot.now strong::before {
  content: ''; position: absolute; left: 50%; top: -8px; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--rose); box-shadow: 0 0 0 4px rgba(201,112,107,.2);
  animation: fl-pulse 1.6s ease-in-out infinite;
}
@keyframes fl-pulse { 0%,100% { box-shadow: 0 0 0 4px rgba(201,112,107,.2); } 50% { box-shadow: 0 0 0 10px rgba(201,112,107,0); } }
@media (max-width: 800px) { .fl-delivery-grid { grid-template-columns: 1fr; } }

/* ---- SECTION rhythm ---- */
.fl-sec { padding: clamp(72px, 9vw, 120px) 0; }
.fl-sec.bg-paper { background: var(--paper); }
.fl-sec.bg-beige { background: var(--beige); }

.fl-eyebrow {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: .26em; text-transform: uppercase; color: var(--rose); font-weight: 600;
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.fl-eyebrow::before, .fl-eyebrow::after { content: '✿'; color: var(--rose); }
.fl-h2 {
  font-size: clamp(34px, 5vw, 64px); line-height: 1.05;
  margin: 0 0 14px; letter-spacing: -0.012em;
}
.fl-h2 i { color: var(--rose); }
.fl-lead {
  font-family: var(--font-sans); font-size: clamp(15px, 1.2vw, 17px);
  color: var(--char-2); line-height: 1.65; max-width: 60ch;
}

/* ---- OCCASIONS tabs ---- */
.fl-occas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 36px; }
.fl-occas-tile {
  position: relative; padding: 28px 18px; border-radius: 14px;
  background: var(--paper); border: 1px solid var(--hairline);
  text-align: center; transition: transform .25s var(--ease-smooth), border-color .25s var(--ease-smooth), background .25s var(--ease-smooth);
  cursor: pointer;
}
.fl-occas-tile:hover { transform: translateY(-4px); border-color: var(--rose); background: var(--rose-soft); }
.fl-occas-tile .ico { font-size: 32px; line-height: 1; display: block; margin-bottom: 12px; }
.fl-occas-tile h4 { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; margin: 0 0 4px; font-weight: 500; }
.fl-occas-tile small { color: var(--slate); font-size: 12px; }
@media (max-width: 900px) { .fl-occas { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .fl-occas { grid-template-columns: 1fr 1fr; } }

/* ---- BOUQUETS catalog ---- */
.fl-bouqs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.fl-bouq {
  background: var(--paper); border: 1px solid var(--hairline); border-radius: 12px;
  overflow: hidden; transition: transform .25s var(--ease-smooth), box-shadow .25s var(--ease-smooth);
  display: flex; flex-direction: column;
}
.fl-bouq:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -16px rgba(201,112,107,.18); }
.fl-bouq-photo {
  aspect-ratio: 4/5; background-size: cover; background-position: center; position: relative;
  background-color: var(--rose-soft);
}
.fl-bouq-photo .heart {
  position: absolute; top: 14px; right: 14px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--rose); cursor: pointer;
  transition: background .2s var(--ease-smooth), transform .2s var(--ease-smooth);
}
.fl-bouq-photo .heart:hover { background: var(--rose); color: var(--paper); transform: scale(1.1); }
.fl-bouq-photo .badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--paper); color: var(--rose);
  padding: 4px 10px; border-radius: 999px;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 13px;
}
.fl-bouq-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fl-bouq-name {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 26px; font-weight: 500; margin: 0; line-height: 1.1;
}
.fl-bouq-comp { color: var(--char-2); font-size: 14px; line-height: 1.5; margin: 0; }
.fl-bouq-comp em { font-style: italic; color: var(--slate); }
.fl-bouq-foot {
  display: flex; align-items: baseline; justify-content: space-between;
  padding-top: 14px; border-top: 1px dashed var(--hairline); margin-top: auto;
}
.fl-bouq-price {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500;
  color: var(--rose); font-style: italic;
}
.fl-bouq-price small { font-style: normal; color: var(--slate); font-size: 12px; letter-spacing: .04em; margin-left: 6px; }
.fl-bouq-add {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--char); color: var(--paper);
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  transition: background .2s var(--ease-smooth);
}
.fl-bouq-add:hover { background: var(--rose); }
@media (max-width: 900px) { .fl-bouqs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fl-bouqs { grid-template-columns: 1fr; } }

/* ---- CUSTOM order ---- */
.fl-custom {
  background: var(--rose-soft); padding: clamp(56px, 7vw, 96px) 0;
  position: relative; overflow: hidden;
}
.fl-custom::before {
  content: '✿'; position: absolute; top: -40px; right: -40px;
  font-size: 320px; color: var(--paper); opacity: .55;
  pointer-events: none; line-height: 1;
}
.fl-custom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.fl-custom h2 { color: var(--char); }
.fl-custom-form {
  background: var(--paper); border-radius: 12px; padding: 32px;
  box-shadow: 0 24px 56px -20px rgba(201,112,107,.2);
}
.fl-custom-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fl-custom-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fl-custom-field.col2 { grid-column: 1 / -1; }
.fl-custom-field label {
  font-family: var(--font-sans); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-weight: 600;
}
.fl-custom-field input, .fl-custom-field textarea, .fl-custom-field select {
  height: 44px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 8px;
  background: var(--paper); color: var(--char); font: inherit; font-size: 15px;
}
.fl-custom-field textarea { height: 96px; padding: 12px 14px; resize: vertical; }
.fl-custom-field input:focus, .fl-custom-field textarea:focus, .fl-custom-field select:focus {
  outline: 0; border-color: var(--rose); box-shadow: 0 0 0 3px var(--accent-glow);
}
.fl-custom-form button {
  width: 100%; height: 50px; background: var(--rose); color: var(--paper); border: 0;
  font: inherit; font-size: 14px; font-weight: 700; letter-spacing: .04em;
  border-radius: 999px; cursor: pointer; margin-top: 8px;
  transition: background .25s var(--ease-smooth);
}
.fl-custom-form button:hover { background: var(--blush-deep); }
@media (max-width: 900px) { .fl-custom-grid { grid-template-columns: 1fr; } }
@media (max-width: 540px) { .fl-custom-form .row { grid-template-columns: 1fr; } }

/* ---- INSTAGRAM feed ---- */
.fl-ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 40px; }
.fl-ig-tile {
  aspect-ratio: 1/1; background-size: cover; background-position: center;
  position: relative; transition: transform .25s var(--ease-smooth);
  background-color: var(--rose-soft);
}
.fl-ig-tile:hover { transform: scale(1.04); z-index: 1; }
.fl-ig-tile::after {
  content: '♡ ' attr(data-likes); position: absolute; left: 12px; bottom: 12px;
  background: rgba(0,0,0,.55); color: var(--paper); padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; opacity: 0; transition: opacity .25s var(--ease-smooth);
}
.fl-ig-tile:hover::after { opacity: 1; }
@media (max-width: 900px) { .fl-ig-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---- FAQ ---- */
.fl-faq { max-width: 760px; margin: 36px auto 0; }
.fl-faq details { border-bottom: 1px solid var(--hairline); padding: 22px 0; }
.fl-faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  font-size: 22px; color: var(--char); font-weight: 500;
}
.fl-faq summary::-webkit-details-marker { display: none; }
.fl-faq summary::after { content: '+'; color: var(--rose); font-size: 28px; transition: transform .25s var(--ease-smooth); font-style: italic; }
.fl-faq details[open] summary::after { transform: rotate(45deg); }
.fl-faq details > div { padding-top: 12px; color: var(--char-2); line-height: 1.7; font-size: 15px; }

/* ---- FOOTER ---- */
.fl-foot {
  background: var(--char); color: var(--cream); padding: 64px 0 28px;
  position: relative; overflow: hidden;
}
.fl-foot::before {
  content: ''; position: absolute; top: -100px; left: -100px; width: 300px; height: 300px;
  background: var(--rose); border-radius: 50%; filter: blur(80px); opacity: .25;
}
.fl-foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; position: relative; z-index: 1; }
.fl-foot-brand b { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 28px; color: var(--paper); display: block; }
.fl-foot-brand p { color: rgba(251,246,238,.7); margin: 12px 0 0; max-width: 36ch; line-height: 1.6; }
.fl-foot h5 { color: var(--blush); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; margin: 0 0 14px; font-weight: 700; }
.fl-foot a { color: rgba(251,246,238,.78); display: block; padding: 4px 0; font-size: 14px; }
.fl-foot a:hover { color: var(--blush); }
.fl-foot-bot { padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; color: rgba(251,246,238,.5); font-size: 12px; position: relative; z-index: 1; }
@media (max-width: 800px) { .fl-foot-top { grid-template-columns: 1fr; } }

/* Reveal */
body[data-niche="floristry"] .reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--ease-smooth), transform 700ms var(--ease-smooth); }
body[data-niche="floristry"] .reveal.in { opacity: 1; transform: none; }
