/* ============================================================
   BLOOM — Playful Small Business HTML Template
   Version 1.0

   Table of Contents:
   1.  Custom Properties
   2.  Reset & Base
   3.  Typography
   4.  Layout
   5.  Decorative (confetti, blobs)
   6.  Navigation
   7.  Hero
   8.  Content Sections
   9.  Product Cards
   10. Testimonials
   11. Forms & Buttons
   12. Footer
   13. Animations
   14. Responsive
   ============================================================ */


/* ---------------------------------------------------------
   1. CUSTOM PROPERTIES
   --------------------------------------------------------- */

:root {
  --pink:       #f4a5c0;
  --pink-soft:  #fce4ec;
  --mint:       #a8e6cf;
  --mint-soft:  #e0f7ec;
  --lavender:   #c3aed6;
  --lavender-soft: #ede4f3;
  --lemon:      #fff3b0;
  --lemon-soft: #fffde7;
  --peach:      #ffd3b6;
  --sky:        #a8d8ea;

  --white:      #ffffff;
  --cream:      #fef9f4;
  --bg:         #fffbf7;
  --text:       #3d3d3d;
  --text-light: #777777;
  --border:     #f0e8e0;

  --step-0: 1rem;
  --step-1: 1.15rem;
  --step-2: 1.4rem;
  --step-3: 1.85rem;
  --step-4: 2.5rem;
  --step-5: 3.2rem;

  --space-xs: 0.5rem;
  --space-s:  1rem;
  --space-m:  1.75rem;
  --space-l:  3rem;
  --space-xl: 5rem;
  --space-2xl: 7rem;

  --radius:     12px;
  --radius-lg:  20px;
  --radius-pill: 50px;
  --shadow:     0 4px 24px rgba(61, 61, 61, 0.06);
  --shadow-hover: 0 8px 32px rgba(61, 61, 61, 0.1);

  --ease: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}


/* ---------------------------------------------------------
   2. RESET & BASE
   --------------------------------------------------------- */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }


/* ---------------------------------------------------------
   3. TYPOGRAPHY
   --------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-3); }
h4 { font-size: var(--step-2); }

p {
  max-width: 58ch;
  color: var(--text-light);
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--pink);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
}

.label--mint { background: var(--mint); color: var(--text); }
.label--lavender { background: var(--lavender); color: var(--white); }

.highlight {
  background: linear-gradient(120deg, var(--lemon) 0%, var(--lemon) 100%);
  background-size: 100% 35%;
  background-repeat: no-repeat;
  background-position: 0 88%;
  padding: 0 2px;
}


/* ---------------------------------------------------------
   4. LAYOUT
   --------------------------------------------------------- */

.wrap {
  width: min(90%, 1140px);
  margin-inline: auto;
}

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section--pink  { background: var(--pink-soft); }
.section--mint  { background: var(--mint-soft); }
.section--cream { background: var(--cream); }
.section--lemon { background: var(--lemon-soft); }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-m);
}

.flow > * + * { margin-top: var(--space-m); }
.text-center { text-align: center; }
.text-center p { margin-inline: auto; }


/* ---------------------------------------------------------
   5. DECORATIVE — confetti dots, blobs
   --------------------------------------------------------- */

/* CSS confetti — scattered pastel dots */
.confetti {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.5;
  pointer-events: none;
}

.confetti--1 { background: var(--pink); top: 12%; left: 8%; width: 6px; height: 6px; }
.confetti--2 { background: var(--mint); top: 20%; right: 12%; width: 10px; height: 10px; }
.confetti--3 { background: var(--lavender); top: 45%; left: 5%; width: 7px; height: 7px; }
.confetti--4 { background: var(--lemon); top: 65%; right: 7%; width: 9px; height: 9px; opacity: 0.7; }
.confetti--5 { background: var(--peach); top: 80%; left: 10%; width: 5px; height: 5px; }
.confetti--6 { background: var(--sky); bottom: 15%; right: 15%; width: 8px; height: 8px; }

/* Soft blob shapes */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}

.blob--pink   { background: var(--pink);   width: 300px; height: 300px; }
.blob--mint   { background: var(--mint);   width: 250px; height: 250px; }
.blob--lemon  { background: var(--lemon);  width: 200px; height: 200px; }

/* Wavy section divider */
.wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-top svg {
  display: block;
  width: 100%;
  height: 50px;
}


/* ---------------------------------------------------------
   6. NAVIGATION
   --------------------------------------------------------- */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-s) 0;
  background: rgba(255, 251, 247, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.site-nav.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

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

.site-nav__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--step-3);
  color: var(--text);
}

.site-nav__logo span {
  color: var(--pink);
}

.site-nav__links {
  display: flex;
  gap: var(--space-l);
  align-items: center;
}

.site-nav__links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color 0.3s;
  position: relative;
}

.site-nav__links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--pink);
  border-radius: 2px;
  transition: width 0.3s var(--ease);
}

.site-nav__links a:hover,
.site-nav__links a.active {
  color: var(--text);
}

.site-nav__links a:hover::after,
.site-nav__links a.active::after {
  width: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }


/* ---------------------------------------------------------
   7. HERO
   --------------------------------------------------------- */

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-xl);
  padding: calc(var(--space-2xl) + 40px) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

.hero__text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.15;
}

.hero__text p {
  margin-top: var(--space-m);
  font-size: var(--step-1);
}

.hero__buttons {
  display: flex;
  gap: var(--space-s);
  margin-top: var(--space-m);
  flex-wrap: wrap;
}

.hero__image {
  position: relative;
}

.hero__image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Decorative frame behind hero image */
.hero__image::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  background: var(--pink-soft);
  border-radius: var(--radius-lg);
  z-index: -1;
}


/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--space-2xl) + 60px) 0 var(--space-l);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, var(--step-5));
}

.page-hero p {
  margin: var(--space-s) auto 0;
  font-size: var(--step-1);
}


/* ---------------------------------------------------------
   8. CONTENT SECTIONS
   --------------------------------------------------------- */

.feature-img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Icon circles */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: var(--space-s);
  flex-shrink: 0;
}

.icon-circle--pink    { background: var(--pink-soft); }
.icon-circle--mint    { background: var(--mint-soft); }
.icon-circle--lavender { background: var(--lavender-soft); }
.icon-circle--lemon   { background: var(--lemon-soft); }

/* Feature blocks — horizontal card style */
.feature-block {
  display: flex;
  gap: var(--space-m);
  align-items: flex-start;
}

.feature-block h4 { margin-bottom: var(--space-xs); }

/* Stats in a fun pill row */
.stat-pills {
  display: flex;
  gap: var(--space-s);
  flex-wrap: wrap;
  margin-top: var(--space-l);
}

.stat-pill {
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 12px 24px;
  box-shadow: var(--shadow);
  text-align: center;
  min-width: 120px;
}

.stat-pill__number {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--step-3);
  color: var(--pink);
  line-height: 1;
}

.stat-pill__label {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 4px;
}


/* ---------------------------------------------------------
   9. PRODUCT / SHOP CARDS
   --------------------------------------------------------- */

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.product-card__img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-card__body {
  padding: var(--space-m);
}

.product-card__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
  margin-bottom: var(--space-xs);
}

.product-card__price {
  font-weight: 700;
  color: var(--pink);
  font-size: var(--step-1);
  margin-top: var(--space-s);
}

.product-card__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--mint-soft);
  color: var(--text);
}


/* ---------------------------------------------------------
   10. TESTIMONIALS
   --------------------------------------------------------- */

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
  box-shadow: var(--shadow);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  font-family: 'Outfit', sans-serif;
  font-size: 4rem;
  color: var(--pink-soft);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
}

.testimonial-card p {
  font-size: var(--step-1);
  font-style: italic;
  color: var(--text);
  position: relative;
  z-index: 1;
  max-width: none;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-m);
}

.testimonial-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--pink);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Full-width testimonial with image */
.testimonial-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.testimonial-hero img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}


/* ---------------------------------------------------------
   11. FORMS & BUTTONS
   --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all 0.35s var(--ease);
}

.btn--primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(244, 165, 192, 0.4);
}

.btn--primary:hover {
  background: #e8829f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244, 165, 192, 0.5);
}

.btn--outline {
  border: 2px solid var(--text);
  color: var(--text);
}

.btn--outline:hover {
  background: var(--text);
  color: var(--white);
}

.btn--mint {
  background: var(--mint);
  color: var(--text);
}

.btn--mint:hover {
  background: #8dd8b5;
  transform: translateY(-2px);
}

/* Contact form */
.contact-form {
  display: grid;
  gap: var(--space-m);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-m);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  font: inherit;
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--pink);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}


/* ---------------------------------------------------------
   12. FOOTER
   --------------------------------------------------------- */

.site-footer {
  background: var(--text);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-l);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-l);
  padding-bottom: var(--space-l);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--step-0);
  margin-bottom: var(--space-m);
}

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  padding: 4px 0;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--pink); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-m);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom__logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: var(--step-1);
  color: var(--white);
}

.footer-bottom__logo span { color: var(--pink); }


/* ---------------------------------------------------------
   13. ANIMATIONS — scroll reveal
   --------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.36s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Gentle float for decorative elements */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float { animation: float 5s ease-in-out infinite; }
.float-delay { animation: float 5s ease-in-out 1.5s infinite; }


/* ---------------------------------------------------------
   14. RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
    padding-top: calc(var(--space-xl) + 60px);
  }

  .hero__text p { margin-inline: auto; }
  .hero__buttons { justify-content: center; }
  .hero__image::before { display: none; }

  .grid-2 { grid-template-columns: 1fr; gap: var(--space-l); }
  .grid-3 { grid-template-columns: 1fr; gap: var(--space-m); }
  .grid-4 { grid-template-columns: 1fr 1fr; }

  .testimonial-hero { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-m); }

  .stat-pills { justify-content: center; }

  .feature-block { flex-direction: column; align-items: center; text-align: center; }
}

@media (max-width: 600px) {
  :root {
    --step-5: 2.2rem;
    --step-4: 1.8rem;
    --step-3: 1.5rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
  }

  .nav-toggle { display: flex; }

  .site-nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-l);
    padding: var(--space-l);
    transition: right 0.4s var(--ease-out);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.08);
    z-index: 101;
  }

  .site-nav__links.open { right: 0; }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(61, 61, 61, 0.25);
    z-index: 99;
  }

  .nav-overlay.open { display: block; }

  .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-s); text-align: center; }

  .confetti { display: none; }
}


/* SKIP LINK */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--text);
  color: var(--white);
  padding: 8px 16px;
  z-index: 200;
  font-size: 0.85rem;
  border-radius: 0 0 var(--radius) var(--radius);
}

.skip-link:focus { top: 0; }
