/* ==========================================================================
   FORMULYNX — shared stylesheet
   Palette and measurements sampled directly from the design mockups.
   ========================================================================== */

:root {
  /* Colour — every value sampled from the PNG mockups */
  --purple:       #7851A9;
  --purple-deep:  #5C3E85;
  --purple-soft:  #A98CCB;
  --lilac:        #BEB4DD;
  --lilac-light:  #EAC9FE;
  --mint:         #BCEFEC;
  --cream:        #EEECDE;   /* page background */
  --cream-white:  #FFF8EF;   /* buttons, chips, reversed text */
  --sky:          #B2DCFA;   /* quotation gradient */
  --ink:          #2A2141;   /* dark text on light pills */

  /* Type */
  --display: "Bree Serif", "Rockwell", Georgia, serif;
  --sans: "Poppins", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout — mockups are drawn on a 1366px canvas */
  --canvas: 1366px;
  --gutter: 73px;
  --radius-card: 22px;
}

/* --------------------------------------------------------------- reset -- */

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 { margin: 0; line-height: 1.1; }

p { margin: 0 0 1em; }

.sr-only:focus {
  position: fixed; top: 12px; left: 12px;
  width: auto; height: auto; margin: 0; overflow: visible; clip: auto;
  padding: 12px 20px; border-radius: 999px;
  background: var(--purple); color: var(--cream-white);
  font-weight: 600; z-index: 200;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.shell {
  width: 100%;
  max-width: var(--canvas);
  margin-inline: auto;
  padding-inline: 28px;
}

/* ----------------------------------------------------------------- nav -- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--cream);
  transition: box-shadow .28s ease;
}

/* A shadow lifts the bar off the page once it starts overlapping content. */
.nav--scrolled { box-shadow: 0 6px 22px rgba(42, 33, 65, .10); }

.nav__inner {
  max-width: var(--canvas);
  margin-inline: auto;
  padding: 11px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* With the compact bar there is room for the mark, and it keeps the left
   side of the header from reading as empty. */
.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.18em;
  font-size: 15px;
  white-space: nowrap;
  color: var(--purple);
}
.nav__brand img { width: 30px; height: auto; }

@media (max-width: 1120px) {
  .nav__brand span { display: none; }
}

.nav__toggle {
  display: none;
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav__toggle > span:not(.sr-only) {
  position: absolute; left: 13px; right: 13px; height: 2px;
  background: var(--purple); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__toggle > span:nth-of-type(1) { top: 17px; }
.nav__toggle > span:nth-of-type(2) { top: 22px; }
.nav__toggle > span:nth-of-type(3) { top: 27px; }
.nav__toggle[aria-expanded="true"] > span:nth-of-type(1) { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] > span:nth-of-type(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-5px) rotate(-45deg); }

.nav__menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(5px, 0.65vw, 8px);
}

/* nav links — the mockup circles, kept as compact pills */
.pill {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  text-align: center;
  width: auto;
  height: 46px;
  padding: 0 clamp(14px, 1.6vw, 22px);
  border-radius: 999px;
  background: #fff;
  color: var(--purple);
  font-weight: 600;
  font-size: clamp(13px, 1.15vw, 15px);
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: transform .22s ease, box-shadow .22s ease, color .22s ease;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(120, 81, 169, .22);
}

.pill.is-current {
  color: #fff;
  background:
    radial-gradient(120% 120% at 22% 18%, #DCCEEE 0%, #B69BD6 42%, #7B55A9 100%);
}

/* -------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.07em;
  padding: 15px 32px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--cream { background: var(--cream-white); color: var(--ink); }
.btn--cream:hover { box-shadow: 0 10px 24px rgba(0,0,0,.18); }

.btn--purple { background: var(--purple); color: var(--cream-white); border-radius: 0; letter-spacing: 0.14em; }
.btn--purple:hover { background: var(--purple-deep); }

/* ----------------------------------------------------------- promo hero -- */

.promo {
  background: var(--purple);
  overflow: hidden;
}

.promo__inner {
  max-width: var(--canvas);
  margin-inline: auto;
  padding: clamp(44px, 7vw, 95px) var(--gutter) clamp(38px, 5.7vw, 78px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
}

.promo__title {
  font-family: var(--display);
  font-weight: 400;
  color: var(--cream-white);
  font-size: clamp(40px, 6.6vw, 90px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: clamp(28px, 4.6vw, 63px);
}

.promo__art {
  width: clamp(230px, 40.4vw, 552px);
}

.promo__cta { min-width: 213px; padding-block: 19px; }

/* --------------------------------------------------- storefront banner -- */

.storefront {
  position: relative;
  line-height: 0;
}
.storefront img { width: 100%; height: auto; }

/* The "HOME" button is painted into the artwork — this makes it clickable. */
.storefront__hotspot {
  position: absolute;
  left: 77.01%;
  top: 79.30%;
  width: 15.15%;
  height: 7.16%;
  border-radius: 999px;
}

/* ----------------------------------------------------------- about us --- */

.about { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }

.section-title {
  font-weight: 300;
  color: var(--purple);
  font-size: clamp(34px, 4.4vw, 60px);
  letter-spacing: -0.015em;
  margin-bottom: clamp(24px, 3vw, 40px);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(0, 566px);
  justify-content: space-between;
  gap: clamp(28px, 5vw, 69px);
  align-items: start;
}

.about__note {
  width: 100%;
}

.about__photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card);
}

/* --------------------------------------------------------- product page -- */

.cats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cat {
  position: relative;
  display: block;
  overflow: hidden;
  line-height: 0;
}
.cat--wide { grid-column: 1 / -1; }
.cat img {
  width: 100%;
  height: auto;
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}
.cat:hover img { transform: scale(1.04); }

.prodsection { scroll-margin-top: 140px; }

.prodsection__banner {
  position: relative;
  line-height: 0;
}
.prodsection__banner img {
  width: 100%;
  height: auto;          /* show the full banner — labels sit near the bottom */
}

.chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 5vw, 70px);
  padding: clamp(26px, 3.4vw, 44px) 0 clamp(18px, 2.4vw, 30px);
}
.chips--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 930px; margin-inline: auto; }

.chip {
  display: grid;
  place-items: center;
  height: clamp(44px, 4.3vw, 58px);
  border-radius: 999px;
  background: var(--lilac);
  color: var(--ink);
  font-weight: 600;
  font-size: clamp(15px, 1.7vw, 24px);
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease;
}
.chip--alt { background: var(--cream-white); }
.chip:hover { transform: translateY(-3px); background: var(--lilac-light); }

.shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 5vw, 70px);
  padding-bottom: clamp(40px, 5vw, 76px);
}
.shots--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 930px; margin-inline: auto; }
.shots figure { margin: 0; }
.shots img {
  width: 100%;
  max-width: 242px;      /* native size of the source artwork — never upscale */
  margin-inline: auto;
  transition: transform .3s ease;
}
.shots figure:hover img { transform: translateY(-6px) rotate(-1deg); }
.shots figcaption {
  padding-top: 10px;
  font-size: 14px;
  color: #6D6480;
  text-align: center;
}

/* ------------------------------------------------------------ quotation -- */

.quote {
  background: var(--sky) url("assets/quote-gradient.jpg") center / 100% 100% no-repeat;
  padding: clamp(34px, 4vw, 54px) 0 clamp(46px, 5vw, 70px);
}

.quote .section-title { margin-bottom: clamp(22px, 2.6vw, 34px); }

.quote__cards {
  align-items: start;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 6vw, 86px);
}

.qcard {
  display: block;
  line-height: 0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(42,33,65,.16);
  transition: transform .25s ease, box-shadow .25s ease;
}
.qcard img { width: 100%; height: auto; }
.qcard:hover { transform: translateY(-8px); box-shadow: 0 20px 42px rgba(42,33,65,.26); }

/* form */

.formsection { padding: clamp(52px, 6vw, 90px) 0; }

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 26px;
  max-width: 860px;
}
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--purple); }
.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--cream-white);
  border: 1px solid #DAD3C4;
  border-radius: 10px;
  padding: 13px 15px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(120,81,169,.18);
}
.form__actions { grid-column: 1 / -1; }

/* -------------------------------------------------------------- contact -- */

.contact {
  max-width: var(--canvas);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 689px);
  gap: clamp(30px, 4vw, 60px);
  align-items: stretch;
  padding-bottom: 0;
}

.contact__panel { padding: clamp(20px, 3vw, 40px) 0 clamp(48px, 6vw, 80px) var(--gutter); }
.contact__logo { width: 176px; margin-bottom: clamp(26px, 3vw, 42px); }

.contact__label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--purple);
  margin: 0 0 6px;
}
.contact__value {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--purple);
  font-weight: 300;
  margin: 0 0 26px;
  text-decoration: none;
  display: block;
  max-width: 460px;
}
a.contact__value:hover { text-decoration: underline; }

.contact__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 12px; }
.social { display: flex; gap: 14px; }
.social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  color: var(--purple);
  transition: transform .2s ease, color .2s ease;
}
.social a:hover { transform: translateY(-3px); color: var(--purple-deep); }
.social svg { width: 26px; height: 26px; }

.contact__photo { width: 100%; height: auto; align-self: start; }

/* --------------------------------------------------------- placeholder -- */

.placeholder {
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(60px, 9vw, 130px) 0;
}
.placeholder__eyebrow {
  font-size: 13px; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--purple-soft); margin-bottom: 14px;
}
.placeholder h1 {
  font-weight: 300; color: var(--purple);
  font-size: clamp(34px, 4.6vw, 62px); margin-bottom: 16px;
}
.placeholder p { max-width: 460px; color: #6D6480; margin-inline: auto; }

/* -------------------------------------------------------------- footer -- */

.footer {
  background: var(--purple);
  color: var(--cream-white);
  padding: clamp(40px, 4.5vw, 62px) 0 clamp(28px, 3vw, 40px);
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}
.footer__word {
  font-weight: 600; letter-spacing: 0.28em; font-size: 20px; margin-bottom: 12px;
}
.footer__tag { font-size: 13px; letter-spacing: 0.16em; opacity: .78; }
.footer h3 {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  opacity: .7; margin-bottom: 12px; font-weight: 600;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; opacity: .9; font-size: 15px; font-weight: 300; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer__base {
  margin-top: clamp(28px, 3.4vw, 46px);
  padding-top: 18px;
  border-top: 1px solid rgba(255,248,239,.22);
  font-size: 13px;
  opacity: .72;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* -------------------------------------------------------------- motion -- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------- responsive -- */

@media (max-width: 1180px) {
  :root { --gutter: 40px; }
  .about__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  :root { --gutter: 24px; }

  .nav__toggle { display: flex; align-items: center; justify-content: center; }

  .nav__menu {
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--cream);
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 18px 30px rgba(42,33,65,.14);
    display: none;
  }
  .nav__menu.is-open { display: flex; }

  .pill {
    width: 100%;
    height: auto;
    padding: 14px 22px;
    font-size: 16px;
    place-items: center start;
  }

  .promo__inner { grid-template-columns: 1fr; }
  .promo__art { justify-self: end; width: min(72%, 340px); }

  .about__grid { grid-template-columns: 1fr; }


  .cats { grid-template-columns: 1fr; }

  .chips, .shots { gap: 14px; }

  .quote__cards { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }

  .form { grid-template-columns: 1fr; }

  .contact { grid-template-columns: 1fr; }
  .contact__panel { padding: 8px var(--gutter) 44px; }


  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .chips, .shots { grid-template-columns: 1fr 1fr; }
  .shots figure:nth-child(3) { grid-column: 1 / -1; max-width: 60%; margin-inline: auto; }
  .chips a:nth-child(3) { grid-column: 1 / -1; }
}
