/* ==========================================================================
   Knotty Girlz — main stylesheet
   Mobile-first: base styles are for phones, media queries add room for
   tablets (min-width: 700px) and desktops (min-width: 1000px).
   ========================================================================== */

/* ---------- Color palette & design tokens ----------
   Sunset beach palette. Orange, pink and golden sand are bright, so text on
   them is deep dusk purple (--ink). White text is only used on purple or
   on the dark footer, where it's easy to read. */
:root {
  --orange: #f79256;         /* sunset orange */
  --pink: #f25c8a;
  --dusk: #7b5ea7;           /* purple dusk: buttons, headings */
  --dusk-soft: #a68bd0;      /* soft purple at the bottom of the sunset gradient */
  --sand: #fbd1a2;           /* golden sand */
  --white: #ffffff;
  --ink: #2e1f47;            /* main text color & footer (deep dusk) */
  --dusk-ink: #5b3f8a;       /* links & small purple text */
  --pink-ink: #c2185b;       /* prices & small pink text */
  --muted: #5e5070;          /* hints & secondary text */

  --sunset: linear-gradient(170deg, var(--orange) 0%, var(--pink) 50%, var(--dusk-soft) 100%);

  --font-logo: "Pacifico", cursive;
  --font-heading: "Caveat", cursive;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 6px 20px rgba(46, 31, 71, 0.1);
  --shadow-lift: 0 14px 30px rgba(46, 31, 71, 0.18);
  --header-h: 68px;
  --max-w: 1150px;

  /* Light "sand" grain made with an inline SVG noise filter — no image file needed */
  --sand-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .4 0 0 0 0 .25 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Reset-ish basics ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--dusk-ink); text-underline-offset: 3px; }
a:hover { color: var(--pink-ink); }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  color: var(--dusk);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.6rem, 9vw, 4.5rem); }
h2 { font-size: clamp(2.2rem, 7vw, 3.2rem); }
h3 { font-size: 1.9rem; color: var(--dusk-ink); }

p { margin: 0 0 1em; }

.container { width: min(100% - 32px, var(--max-w)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 200;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--dusk-ink); outline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 0.85em 1.7em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--dusk); color: var(--white); }
.btn-primary:hover { background: var(--pink); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--dusk-ink); border-color: var(--dusk-ink); }
.btn-secondary:hover { background: var(--dusk-ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--dusk-ink); }
.btn-light:hover { background: var(--sand); color: var(--ink); }

/* ---------- Header & navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 0.25s ease;
}
/* Thin sunset stripe under the header */
.site-header::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--pink), var(--dusk));
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(46, 31, 71, 0.12); }

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
}

/* Text logo — swap for <img src="images/logo.png"> later if you get a real logo */
.logo {
  font-family: var(--font-logo);
  font-size: 1.7rem;
  color: var(--pink-ink);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.logo span { color: var(--dusk); }
.logo:hover { color: var(--pink-ink); }

.nav-toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 46px; height: 46px; padding: 10px;
  background: none; border: 0; cursor: pointer; border-radius: 10px;
}
.nav-toggle span {
  display: block; height: 3px; width: 100%;
  background: var(--dusk); border-radius: 3px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.site-nav {
  position: absolute; top: calc(var(--header-h) + 4px); left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 12px 20px rgba(46, 31, 71, 0.12);
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease;
}
.site-nav.open { max-height: 420px; }
.site-nav ul { list-style: none; margin: 0; padding: 8px 16px 20px; }
.site-nav li + li { margin-top: 4px; }
.site-nav a {
  display: block; padding: 12px 14px;
  font-weight: 700; color: var(--ink); text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.site-nav a:hover { background: var(--sand); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--pink); color: var(--ink); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; max-height: none; overflow: visible;
    background: none; box-shadow: none;
  }
  .site-nav ul { display: flex; gap: 6px; padding: 0; }
  .site-nav li + li { margin-top: 0; }
  .site-nav a { padding: 8px 14px; border-radius: 999px; }
}

/* ---------- Wave dividers ---------- */
.wave { display: block; width: 100%; height: 50px; line-height: 0; }
.wave svg { width: 100%; height: 100%; display: block; }
.wave path { fill: currentColor; }
@media (min-width: 700px) { .wave { height: 80px; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tint { background: var(--sand) var(--sand-grain); }
.section-accent { background: var(--dusk); color: var(--white); }
.section-accent h2 { color: var(--white); }
.section-accent li { color: var(--ink); }
.section-title { text-align: center; }
.section-intro { text-align: center; max-width: 620px; margin: 0 auto 2.2rem; }

@media (min-width: 700px) { .section { padding: 80px 0; } }

/* ---------- Hero ----------
   Sunset gradient: orange to pink to soft purple. To use a beach photo
   instead, put it in images/hero.jpg and switch the background line below
   to the commented one (the light overlay keeps the text readable). */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid; place-items: center;
  text-align: center;
  color: var(--ink);
  background: var(--sunset);
  /* background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 100%),
    url("../images/hero.jpg") center / cover no-repeat; */
  padding: 80px 0 120px;
  overflow: hidden;
}
/* A golden sun sinking toward the waves */
.hero::before {
  content: "";
  position: absolute; right: -10px; bottom: 20px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--sand) 0%, rgba(251, 209, 162, 0.75) 40%, rgba(251, 209, 162, 0) 70%);
  pointer-events: none;
}
@media (min-width: 700px) {
  .hero::before { right: 8%; bottom: 10px; width: 220px; height: 220px; }
}
.hero .container { position: relative; }
.hero h1 {
  font-family: var(--font-logo);
  font-weight: 400;
  color: var(--ink);
  text-shadow: 0 3px 18px rgba(255, 255, 255, 0.35);
  margin-bottom: 0.2em;
}
.hero .tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  margin-bottom: 1.4em;
}
.hero .wave { position: absolute; bottom: -1px; left: 0; color: var(--white); }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Smaller banner used at the top of inner pages */
.page-hero {
  position: relative;
  background: var(--sunset);
  color: var(--ink);
  text-align: center;
  padding: 56px 0 90px;
}
.page-hero h1 { color: var(--ink); margin-bottom: 0.15em; }
.page-hero p { max-width: 600px; margin: 0 auto; font-size: 1.1rem; font-weight: 700; }
.page-hero .wave { position: absolute; bottom: -1px; left: 0; color: var(--white); }

/* ---------- Category cards (home page) ---------- */
.category-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.category-card {
  position: relative; display: block;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none; color: var(--white);
  aspect-ratio: 1 / 1.15;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.category-card span {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 36px 12px 14px;
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700;
  line-height: 1.1; text-align: center;
  background: linear-gradient(transparent, rgba(46, 31, 71, 0.85));
}
.category-card:hover { transform: translateY(-5px) rotate(-0.5deg); box-shadow: var(--shadow-lift); color: var(--sand); }
.category-card:hover img { transform: scale(1.06); }

@media (min-width: 900px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .category-card span { font-size: 1.9rem; }
}

/* ---------- Split (image + text) blocks ---------- */
.split { display: grid; gap: 32px; align-items: center; }
.split img {
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 8px solid var(--white);
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .split.reverse > :first-child { order: 2; }
}

/* Owner photo (About page): circle with a sunset-gradient ring */
.owner-photo {
  margin: 0 auto;
  width: min(78vw, 320px);
  text-align: center;
}
.owner-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 30%;
  border-radius: 50%;
  border: 6px solid var(--white);
  padding: 0;
  background: var(--white);
  box-shadow: 0 0 0 6px var(--pink), 0 0 0 12px var(--orange), var(--shadow-lift);
  transition: transform 0.4s ease;
}
.owner-photo img:hover { transform: rotate(-2deg) scale(1.02); }
.owner-photo figcaption {
  margin-top: 26px;
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700; color: var(--dusk-ink);
}
@media (min-width: 800px) {
  .owner-photo { width: 380px; }
}

/* Lisa's bio next to the owner photo */
.bio-lead { font-size: 1.2rem; font-weight: 800; color: var(--dusk-ink); }
.bio-signature {
  font-family: var(--font-logo);
  font-size: 2rem;
  color: var(--pink-ink);
  margin-top: 0.4em;
}

/* ---------- Social links ---------- */
.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-links.center { justify-content: center; }
.social-links a {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--white); color: var(--dusk-ink);
  border: 2px solid var(--dusk);
  font-weight: 700; text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.social-links a:hover { transform: translateY(-3px); background: var(--dusk); color: var(--white); }
.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Shop: filters & product grid ---------- */
.filters {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 32px;
}
.filter-btn {
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 9px 18px; border-radius: 999px;
  border: 2px solid var(--pink); background: var(--white); color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.filter-btn:hover { transform: translateY(-2px); background: var(--sand); }
.filter-btn[aria-pressed="true"] { background: var(--dusk); border-color: var(--dusk); color: var(--white); }

.product-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(123, 94, 167, 0.15);
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeUp 0.4s ease both;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.product-card[hidden] { display: none; }
.product-card .img-wrap { aspect-ratio: 1 / 1; overflow: hidden; background: var(--sand); }
.product-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover img { transform: scale(1.05); }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-tag {
  align-self: flex-start;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink); background: var(--sand);
  padding: 3px 10px; border-radius: 999px;
}
.product-card h3 { font-size: 1.75rem; margin: 4px 0 0; }
.product-price { font-weight: 800; color: var(--pink-ink); font-size: 1.15rem; margin: 0 0 12px; }
.product-card .btn { margin-top: auto; text-align: center; padding: 0.7em 1.2em; }

.empty-msg { text-align: center; font-style: italic; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Steps (custom orders) ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 20px; counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li {
  background: var(--white); border-radius: var(--radius);
  padding: 26px 22px 22px; box-shadow: var(--shadow);
  border-top: 5px solid var(--pink);
  counter-increment: step; position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--orange); color: var(--ink);
  font-family: var(--font-heading); font-size: 1.8rem; font-weight: 700;
  margin-bottom: 10px;
}
.steps h3 { font-size: 1.6rem; margin-bottom: 0.3em; }
.steps p { margin: 0; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 6px solid var(--orange);
  padding: 26px 20px;
  width: 100%; max-width: 760px; margin-inline: auto;
}
@media (min-width: 700px) { .form-card { padding: 40px 44px; } }

.form-grid { display: grid; gap: 18px; }
@media (min-width: 700px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
}

.field label { display: block; font-weight: 800; margin-bottom: 6px; color: var(--dusk-ink); }
.field .hint { font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;  /* 16px+ prevents iOS zoom on focus */
  padding: 12px 14px;
  border: 2px solid #9c86bf; border-radius: 12px;
  background: #fffaf4; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--dusk-ink);
  box-shadow: 0 0 0 4px var(--sand);
}
.field input[type="file"] { padding: 10px; background: var(--white); }
.req { color: var(--pink-ink); }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.form-actions { margin-top: 22px; }
.form-actions .btn { width: 100%; }
@media (min-width: 700px) { .form-actions .btn { width: auto; } }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Contact info & events ---------- */
.contact-layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1.4fr; align-items: start; } }

.info-list { list-style: none; padding: 0; margin: 0 0 24px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.info-list .icon { color: var(--pink-ink); margin-top: 3px; }

.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .event-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .event-list { grid-template-columns: repeat(3, 1fr); } }
.event-list li {
  background: var(--white); border-radius: var(--radius); padding: 20px 22px;
  box-shadow: var(--shadow); border-left: 6px solid var(--pink);
}
.event-list h3 { font-size: 1.6rem; margin-bottom: 0.2em; }
.event-list p { margin: 0; }
.event-date { font-weight: 800; color: var(--pink-ink); }

/* ---------- Call-to-action banner ---------- */
.cta {
  text-align: center;
  background: linear-gradient(180deg, var(--orange) 0%, var(--pink) 100%);
  color: var(--ink);
}
.cta h2 { color: var(--ink); }
.cta p { max-width: 560px; margin: 0 auto 1.4em; font-size: 1.1rem; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { color: var(--white); }
.site-footer .wave { color: var(--ink); margin-bottom: -1px; }
.footer-body { background: var(--ink); }
.footer-inner { display: grid; gap: 30px; padding: 20px 0 36px; }
@media (min-width: 760px) { .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .logo { color: var(--white); font-size: 2rem; }
.site-footer .logo span { color: var(--orange); }
.site-footer h2 { font-size: 1.8rem; color: var(--sand); margin-bottom: 0.3em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--sand); text-decoration: underline; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--pink); color: var(--ink); transform: translateY(-3px); text-decoration: none; }
.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center; font-size: 0.9rem; padding: 16px 0 22px; margin: 0;
}

/* ---------- Gentle reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* Respect people who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
