/* pulls in the "Great Vibes" cursive font from Google */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,400;0,500;1,300;1,400;1,500&family=Great+Vibes&display=swap');

/* ── Global color + font variables ──
   Change a value here and it updates everywhere on the site */
:root {
  --pink: #fad7ea;          /* bright pink (reserved) */
  --pink-soft: #fdf1f4;     /* very light pink — main page background */
  --green: #ecf7e9;         /* soft green — used for splash + header/footer */
  --green-soft: #ecf7e9;
  --green-deep: #2D4A26;    /* deep forest green — power moments */
  --green-mid: #c4debc;     /* mid sage green — borders in green zones */
  --green-ink: #1C3318;     /* near-black green — high-contrast moments */
  --pink-mid: #f5c5d8;      /* mid pink — card borders, accents */
  --cream: #fdfaf6;         /* off-white — used for cards and photo placeholders */
  --ink: #344628;           /* dark green — main text color */
  --muted: #7a7373;         /* grey — secondary/caption text */
  --line: #e8dcd8;          /* dusty rose — borders and dividers */
  --accent: #de87a3;        /* dusty rose — used for labels, highlights */
  --script: 'Great Vibes', cursive; /* the fancy cursive font for "Skystar" */
  /* type scale */
  --text-xs:   0.72rem;
  --text-sm:   0.9rem;
  --text-base: 1.1rem;
  --text-lg:   1.4rem;
  --text-xl:   2rem;
  --text-2xl:  2.8rem;
  --text-3xl:  clamp(3rem, 6vw, 5rem);
}

/* removes default spacing and makes sizing pr90edictable on all elements */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* grain texture overlay — gives pages a subtle paper feel at zero load cost */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  will-change: transform;
  transform: translateZ(0);
}

/* base styles applied to every page */
body {
  font-family: 'Fraunces', serif;
  background: var(--pink-soft);
  color: var(--ink);
  font-weight: 300; /* light weight for an editorial feel */
}

/* ── Header (nav bar at the top of every page) ── */
header {
  background: var(--green-soft);
  padding: 22px 40px;
  display: flex;
  justify-content: flex-end; /* logo-row is absolute on inner pages; nav sits at the right */
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  position: relative;
  min-height: calc(44px + 2.8rem); /* 2×22px padding + 2.8rem logo = index.html's header height */
}
/* stacks the "Skystar" logo and "Handmade · Est. 2026" tagline vertically */
.logo-wrap { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
/* the big cursive "Skystar" wordmark in the header */
.logo {
  font-family: var(--script);
  font-weight: 400;
  font-size: 2.8rem;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1;
}

/* ── Navigation links ── */
nav ul { list-style: none; display: flex; gap: 32px; }
nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 0;
  border-bottom: 1px solid transparent; /* invisible underline by default */
  transition: border-color 0.2s;
}
nav a:hover { border-color: var(--accent); }
nav a.active { border-color: var(--ink); }

/* ── Footer (bottom strip on every page) ── */
footer {
  background: var(--green-soft);
  padding: 18px 60px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
footer .divider { color: var(--accent); margin: 0 14px; }

/* ── Script style — used on inline "Skystar" brand mentions ── */
.script {
  font-family: var(--script);
  font-size: 1.6em;
  vertical-align: middle;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}

/* ── Eyebrow label (small caps above headings, e.g. "Featured") ── */
.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--accent);
}

/* ── Page header (centered title block used on inner pages) ── */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}
.page-header h1 {
  font-weight: 300;
  font-size: 2.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
/* accent color on italic words inside page titles */
.page-header h1 em {
  font-style: italic;
  color: var(--accent);
}
/* subtitle/description text under the page title */
.page-header p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}


/* ── Header logo row: Skystar text + bouquet side by side ──
   Absolutely positioned so it never affects the header's layout height —
   same behaviour as index.html where the brand is position:fixed after animation. */
.logo-row {
  position: absolute;
  top: 22px;  /* = FINAL_TOP on index.html = header padding-top */
  left: 40px; /* = FINAL_LEFT on index.html = header padding-left */
  display: flex;
  align-items: center;
  gap: 6px; /* splash gap 28px × FINAL_SCALE 0.2 = 5.6px → rounded to 6px */
}
/* clamp(160px,24vw,320px) × FINAL_SCALE 0.2 = clamp(32px,4.8vw,64px) —
   the exact rendered size of splash-flowers after the index.html animation locks */
.header-flower {
  height: clamp(32px, 4.8vw, 64px);
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

/* drops "star" slightly below "Sky" to match the splash logo treatment */
.logo .star {
  position: relative;
  top: 0.14em;
  display: inline-block;
}


/* ── Splash brand markup reused in headers on all non-index pages ──
   These rules define the large element; header .splash-brand-wrap
   zooms it down to the exact final scale of the index.html animation. */
.splash-brand-wrap {
  display: flex;
  align-items: center;
  gap: 28px;
}
.splash-brand {
  font-family: var(--script);
  font-size: clamp(6rem, 18vw, 14rem);
  color: var(--ink);
  line-height: 1;
  display: inline-flex;
  align-items: flex-start;
  white-space: nowrap; /* prevent wrapping at the large natural size */
}
.splash-brand .star {
  position: relative;
  top: 0.10em;
}
.splash-flowers {
  width: clamp(160px, 24vw, 320px);
  height: clamp(160px, 24vw, 320px);
  object-fit: contain;
  opacity: 0.85;
}

/* ── Skeleton shimmer (used on inventory + events while data loads) ── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-slab {
  background: linear-gradient(90deg, var(--cream) 0%, var(--pink-soft) 50%, var(--cream) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: 0;
}

/* ── Tablet (≤ 900px): tighter spacing ── */
@media (max-width: 900px) {
  header { padding: 16px 28px; }
  .logo-row { top: 16px; left: 28px; }
  nav ul { gap: 20px; }
  footer { padding: 14px 24px; flex-direction: column; gap: 6px; text-align: center; }
  .page-header h1 { font-size: 2rem; }
}

/* ── Hamburger toggle button (hidden on desktop, shown on mobile) ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile (≤ 767px): compact header with hamburger menu ── */
@media (max-width: 767px) {
  header {
    padding: 14px 20px;
    min-height: unset;
    justify-content: space-between;
  }
  /* pull logo-row back into flow, left-aligned */
  .logo-row {
    position: static;
    gap: 4px;
  }
  .logo { font-size: 2.2rem; }
  .header-flower { height: 30px; }
  /* hide desktop nav, show hamburger */
  header nav { display: none; }
  .nav-toggle { display: flex; }
  /* dropdown when open */
  header nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-soft);
    border-bottom: 1px solid var(--line);
    padding: 4px 0 16px;
    z-index: 50;
  }
  header nav.open ul {
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
  }
  header nav.open a {
    display: block;
    padding: 13px 0;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--line);
  }
  header nav.open ul li:last-child a { border-bottom: none; }
  footer { padding: 12px 20px; }
  .page-header h1 { font-size: 1.6rem; }
}