/* =========================================================
   Kira Disain — main stylesheet
   Colors and fonts live in :root below. Change them there and
   the whole site follows.
   ========================================================= */

:root {
  /* Brand colors — warm cream from Ingrid's posters + lavender from the logo */
  --bg:          #FCFAF7;  /* page background, warm ivory */
  --surface:     #FFFFFF;  /* cards */
  --cream:       #F6EEE6;  /* soft sections, matches the photo backgrounds */
  --line:        #EADFD4;  /* borders and dividers */
  --lav-50:      #F4F2FA;
  --lav-100:     #E9E6F5;  /* chips, active language */
  --lav-300:     #B9B5E0;
  --lav-500:     #8B86C8;  /* logo lavender — decorative accents */
  --lav-700:     #5F59A6;  /* buttons and links (readable on white) */
  --lav-800:     #4C4790;  /* button hover */
  --rose:        #B47F7A;  /* dusty rose for big numbers, like on the posters */
  --ink:         #2F2A35;  /* main text */
  --muted:       #6E6672;  /* secondary text */

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1120px;
  --gutter: 16px;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(46, 42, 61, .04), 0 8px 24px rgba(46, 42, 61, .06);

  color-scheme: light;
}

@media (min-width: 720px) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* keeps headings visible under the sticky header */
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 350;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--lav-700); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--lav-800); }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

/* Cormorant uses small "old-style" digits by default; prices and step numbers read better with full-height ones */
.price, .steps li::before { font-variant-numeric: lining-nums; }

h1 { font-size: clamp(2.6rem, 7vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h3 { font-size: 1.6rem; }

p { margin: 0 0 1em; text-wrap: pretty; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: .78rem;
  font-weight: 450;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lav-700);
  margin-bottom: 1rem;
}

.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* Placeholder text Ingrid still needs to fill in. Search for "todo". */
mark.todo {
  background: #FFF1B8;
  color: inherit;
  padding: 0 .25em;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .7em 1.5em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 450;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

.btn-primary { background: var(--lav-700); color: #fff; }
.btn-primary:hover { background: var(--lav-800); color: #fff; }

.btn-outline { border-color: var(--lav-300); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--lav-700); color: var(--lav-800); background: var(--surface); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 250, 247, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand img { width: 44px; height: 44px; }
.brand span {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  font-size: .95rem;
}
.main-nav a:hover { color: var(--lav-700); }

.lang-switch {
  display: flex;
  gap: 2px;
  font-size: .8rem;
  font-weight: 450;
  letter-spacing: .08em;
}
.lang-switch a {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  min-height: 36px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
}
.lang-switch a:hover { color: var(--lav-700); background: var(--lav-50); }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--lav-100); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { width: 24px; height: 24px; margin: auto; }

@media (max-width: 1040px) {
  .brand span { font-size: 1.15rem; letter-spacing: .1em; }
  .menu-toggle { display: grid; place-items: center; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(46, 42, 61, .06);
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--gutter) 16px; }
  .main-nav a { display: block; padding: 12px 0; font-size: 1.1rem; }
}

@media (max-width: 400px) {
  .brand span { display: none; } /* the round logo alone on very small phones */
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 10vw, 112px); }
.section-soft { background: var(--cream); }
.section-head { max-width: 40rem; margin-bottom: 40px; }
.section-head p { color: var(--muted); }

/* ---------- Page header (sub pages) ---------- */

.page-head { padding-block: clamp(48px, 8vw, 96px) 8px; }
.page-head h1 { font-size: clamp(2.5rem, 6vw, 3.8rem); margin-bottom: .3em; }
.page-head .lead { max-width: 40rem; }

.section-tight { padding-top: clamp(32px, 5vw, 56px); }

.more { margin: 36px 0 0; }

.cta { text-align: center; }
.cta p { color: var(--muted); }
.cta .btn-row { justify-content: center; margin-top: 24px; }

/* Whole card is a link on the home page */
.card-link { text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; }
.card-link:hover { color: inherit; transform: translateY(-3px); box-shadow: 0 2px 4px rgba(47, 42, 53, .05), 0 14px 32px rgba(47, 42, 53, .1); }

.perks-large { margin-top: 0; }
.perks-large li { font-size: 1.02rem; }
.perks-large strong { font-size: 1.15rem; margin-bottom: .2em; }

.about-split h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.about-split .signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--lav-700);
  margin: 1.5rem 0;
}

.split h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(64px, 9vw, 104px);
  overflow-x: clip; /* the decorative circle must not cause sideways scrolling on phones */
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}

.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--lav-700); }
.hero .lead { margin-bottom: 2rem; }

.hero-photo {
  position: relative;
  margin: 0;
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 60%;
  border-radius: 999px 999px var(--radius) var(--radius); /* soft arch */
}
.hero-photo::before { /* lavender watercolor circle, a nod to the logo */
  content: "";
  position: absolute;
  width: 44%;
  aspect-ratio: 1;
  right: -6%;
  bottom: -5%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--lav-300), var(--lav-500) 70%);
  opacity: .35;
  z-index: -1;
}
@media (max-width: 859px) {
  .hero-photo { max-width: 460px; margin-inline: auto; width: 100%; }
}

/* ---------- Product cards ---------- */

.cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .3em; }
.card-body p { color: var(--muted); font-size: .98rem; flex: 1; }
.price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}
.price small { font-family: var(--font-body); font-size: .85rem; font-weight: 350; color: var(--muted); }

.note { margin-top: 28px; font-size: .95rem; color: var(--muted); }

.card .size-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  color: var(--rose);
  margin-bottom: .25em;
  font-variant-numeric: lining-nums;
}

/* Smaller second row: "Veel valikus" (queen box, 2-candle set) */
.extras {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 24px;
}
.extra {
  display: grid;
  grid-template-columns: 40% 1fr;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.extra img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.extra .card-body { justify-content: center; }
.extra h3 { font-size: 1.45rem; }
@media (max-width: 380px) {
  .extra { grid-template-columns: 1fr; }
}

/* ---------- Personal message showcase ---------- */

.messages {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0;
}
.messages figure { margin: 0; }
.messages img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.messages figcaption {
  margin-top: 12px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--ink);
}

.perks {
  display: grid;
  gap: 16px 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
}
.perks li { padding-left: 28px; position: relative; color: var(--muted); }
.perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lav-300);
}
.perks strong { display: block; color: var(--ink); font-weight: 450; }

/* ---------- Message ideas per occasion ---------- */

.ideas-intro { color: var(--muted); margin-bottom: 20px; }

.occasions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.occasions button {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: .95rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.occasions button:hover { border-color: var(--lav-300); }
.occasions button[aria-selected="true"] {
  background: var(--lav-700);
  border-color: var(--lav-700);
  color: #fff;
}

.ideas ul {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.ideas ul[hidden] { display: none; }
.ideas li button {
  position: relative;
  width: 100%;
  min-height: 84px;
  padding: 16px 20px;
  border: 1px dashed var(--lav-300);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.25;
  cursor: copy;
  transition: border-color .2s, background-color .2s;
}
.ideas li button:hover { border-color: var(--lav-700); background: var(--lav-50); }
.ideas li button.is-copied { border-style: solid; border-color: var(--lav-700); }
.ideas li button.is-copied::after {
  content: attr(data-copied);
  position: absolute;
  right: 10px;
  bottom: 6px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .75rem;
  color: var(--lav-700);
}

.ideas-note {
  margin: 24px 0 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
}

/* ---------- Numbered steps (like the posters) ---------- */

.numbered {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  counter-reset: num;
}
.numbered li {
  counter-increment: num;
  position: relative;
  padding: 16px 0 16px 60px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.numbered li::before {
  content: counter(num);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--rose);
  font-variant-numeric: lining-nums;
}
.numbered strong { display: block; color: var(--ink); font-weight: 450; }

.split img.arch { border-radius: 999px 999px var(--radius) var(--radius); aspect-ratio: 4 / 5; }
@media (max-width: 859px) {
  .split img.arch { max-width: 440px; margin-inline: auto; }
}

/* ---------- Colours & scents ---------- */

.swatches {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 720px) {
  .swatches { grid-template-columns: repeat(7, 1fr); }
}
.swatches li { text-align: center; font-size: .95rem; color: var(--muted); }
.swatches img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 10px;
}

.scents {
  display: grid;
  gap: 4px 32px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.scents li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.05rem;
}
.scents li span { margin-right: .5em; }

.subhead {
  font-size: 1.9rem;
  margin: 56px 0 20px;
}

/* ---------- Personal message & occasions ---------- */

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 72px; }
}
.split img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.chips li {
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: .92rem;
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 26px;
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--rose);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}
.steps h3 { font-size: 1.4rem; }
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---------- About ---------- */

.about {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}
.about p { font-size: 1.12rem; }
.about .signature {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--lav-700);
  margin-top: 1.5rem;
}

/* ---------- Candle care (accordion) ---------- */

.care { max-width: 44rem; }
.care details {
  border-bottom: 1px solid var(--line);
}
.care details:first-of-type { border-top: 1px solid var(--line); }
.care summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.08rem;
  font-weight: 450;
}
.care summary::-webkit-details-marker { display: none; }
.care summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--lav-700);
  transition: transform .2s;
}
.care details[open] summary::after { transform: rotate(45deg); }
.care details > div { padding: 0 0 22px; color: var(--muted); }
.care ul { margin: 0; padding-left: 1.2em; }
.care li { margin-bottom: .4em; }

/* ---------- Instagram gallery ---------- */

.gallery {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 32px;
}
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}
.gallery a {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}
.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery a:hover img { transform: scale(1.04); }

.insta-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 32px;
}
.insta-head h2 { margin: 0; }
.insta-head h2 a { color: inherit; text-decoration: none; }
.insta-head h2 a:hover { color: var(--lav-700); }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.contact-item {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--line);
}
.contact-item h2,
.contact-item h3 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 450;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .6em;
}
.contact-item p { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
  font-size: .92rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 36px; height: 36px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--lav-700); }
.footer-note { width: 100%; margin: 0; font-size: .85rem; }

/* ---------- Legal pages (privacy policy) ---------- */

.legal { max-width: 46rem; padding-block: clamp(48px, 8vw, 88px); }
.legal h1 { font-size: clamp(2.3rem, 6vw, 3.4rem); }
.legal h2 { font-size: 1.8rem; margin-top: 2em; }
.legal .updated { color: var(--muted); font-size: .95rem; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; font-size: .96rem; margin-bottom: 1em; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 450; }
@media (max-width: 600px) {
  .legal table, .legal tbody, .legal tr, .legal th, .legal td { display: block; }
  .legal thead { display: none; }
  .legal td { border: 0; padding: 0 0 6px; }
  .legal tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}

/* ---------- 404 ---------- */

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding-block: 64px;
}
.not-found img { width: 120px; margin: 0 auto 24px; }
.not-found p { color: var(--muted); }

/* ---------- Season banner (top of every page) ---------- */

.banner {
  background: var(--lav-700);
  color: #fff;
  font-size: .9rem;
  text-align: center;
  padding: 8px 0;
}
.banner a { color: #fff; font-weight: 450; white-space: nowrap; }
.banner a:hover { color: var(--lav-100); }
.banner mark.todo { color: var(--ink); }

/* ---------- "Kujunda bukett" button in the menu ---------- */

.main-nav .nav-cta a.btn { color: #fff; min-height: 40px; padding: .45em 1.1em; font-size: .92rem; }
.main-nav .nav-cta a.btn:hover { color: #fff; }
.main-nav a[aria-current="page"] { color: var(--lav-700); }
@media (max-width: 1180px) {
  .main-nav ul { gap: 20px; }
}
@media (max-width: 1040px) {
  .main-nav .nav-cta { padding-top: 8px; }
  .main-nav .nav-cta a.btn { display: inline-flex; padding: .6em 1.4em; font-size: 1rem; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Bouquet builder ---------- */

.builder {
  display: grid;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) {
  .builder { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; }
  #builder-nojs { grid-column: 1 / -1; }
}

.builder-steps { display: grid; gap: 20px; min-width: 0; }
.builder-steps[hidden] { display: none; }

.step {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  min-width: 0;
}
.step legend {
  float: left;          /* keeps the legend inside the card */
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
}
.step legend + * { clear: both; }
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--rose);
  font-size: 1.25rem;
  font-variant-numeric: lining-nums;
}
.hint { color: var(--muted); font-size: .95rem; margin: 0 0 12px; clear: both; }
.error { color: #A23A3A; font-size: .92rem; margin: 6px 0 0; }

/* sizes */
.size-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px) {
  .size-options { gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
@media (max-width: 599px) {
  .step { padding: 18px 14px; }
}
.size-option {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface);
  transition: border-color .2s, box-shadow .2s;
}
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.size-option-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.size-option .size-tag { font-family: var(--font-display); color: var(--rose); font-size: 1.3rem; line-height: 1; margin: 0; }
.size-option strong { font-weight: 450; font-size: .95rem; line-height: 1.3; }
.size-option-desc { color: var(--muted); font-size: .85rem; }
.size-option .price { font-size: 1.2rem; margin-top: 4px; }
.size-option:hover { border-color: var(--lav-300); }
.size-option:has(input:checked) { border-color: var(--lav-700); box-shadow: 0 0 0 3px var(--lav-100); }
.size-option:has(input:focus-visible) { outline: 2px solid var(--lav-700); outline-offset: 2px; }

/* chips (colours, scents, delivery) */
.chip-options { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: .95rem;
  transition: border-color .2s, background-color .2s;
}
.chip-option input { position: absolute; opacity: 0; pointer-events: none; }
.chip-option:hover { border-color: var(--lav-300); }
.chip-option:has(input:checked) { border-color: var(--lav-700); background: var(--lav-50); box-shadow: inset 0 0 0 1px var(--lav-700); }
.chip-option:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.chip-option:has(input:focus-visible) { outline: 2px solid var(--lav-700); outline-offset: 2px; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(47, 42, 53, .15); flex: none; }

/* message */
.msg-row { display: flex; gap: 12px; align-items: center; }
.builder input[type="text"],
.builder input[type="tel"],
.builder input[type="date"],
.builder select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.builder input.promo-input { max-width: 320px; }
.builder input:focus, .builder select:focus { outline: 2px solid var(--lav-700); outline-offset: 1px; }
.counter { flex: none; color: var(--muted); font-size: .9rem; min-width: 64px; text-align: right; }
.counter.is-error { color: #A23A3A; font-weight: 450; }

.box-preview {
  position: relative;
  margin: 16px 0 0;
  max-width: 340px;
  container-type: inline-size;
}
.box-preview[hidden] { display: none; }
.box-preview img { width: 100%; border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; }
.box-text {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 6cqw;
  line-height: 1.15;
  color: #3B3433;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.box-text.has-label { background: rgba(255, 255, 255, .92); padding: 2cqw 3cqw; border-radius: 2px; }
.box-text.is-empty { color: rgba(59, 52, 51, .35); }
.box-preview figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }

.locker-fields { display: grid; gap: 12px; margin-top: 16px; }
.locker-fields[hidden] { display: none; }
@media (min-width: 600px) { .locker-fields { grid-template-columns: 1fr 1.5fr; } }
.locker-fields label, .date-field { display: grid; gap: 6px; font-size: .92rem; color: var(--muted); }
.date-field { margin-top: 16px; max-width: 260px; }

/* summary */
.builder-summary {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
/* sticky only when the whole summary fits on the screen */
@media (min-width: 960px) and (min-height: 1200px) {
  .builder-summary { position: sticky; top: 96px; }
}
.builder-summary h2 { font-size: 1.8rem; }
.builder-summary textarea {
  width: 100%;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-size: .9rem;
  line-height: 1.55;
}
.total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 16px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.total strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; font-variant-numeric: lining-nums; }
.send-buttons { display: grid; gap: 10px; margin-top: 12px; }
.send-buttons .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.send-status { min-height: 1.4em; color: var(--lav-700); font-size: .92rem; margin: 10px 0 0; }
.note.small { font-size: .82rem; }

.card-cta { margin-top: 12px; font-size: .95rem; font-weight: 450; text-decoration: none; }
.card-cta:hover { text-decoration: underline; }
.more.btn-row { display: flex; }

/* ---------- Customer reviews ---------- */

.reviews {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.review {
  margin: 0;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.review::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: .6;
  color: var(--rose);
  margin-bottom: 8px;
}
.review blockquote {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.4;
}
.review figcaption { color: var(--muted); font-size: .95rem; }

.faq { max-width: 48rem; }
.faq summary { font-size: 1.12rem; }

/* builder: shade choice + "all candles same colour" */
.tone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.tone-label { color: var(--muted); font-size: .95rem; margin-right: 4px; }
.multi-note { margin-top: 16px; }
.multi-note[hidden], .check-row[hidden] { display: none; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: .98rem; }
.check-row input { width: 20px; height: 20px; accent-color: var(--lav-700); flex: none; }

/* builder: quantity, add-to-order, order list, date */
.qty-row { display: flex; align-items: center; gap: 16px; margin-top: 16px; font-size: .98rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); }
.qty button {
  width: 44px; height: 44px;
  border: 0; background: transparent; color: var(--lav-700);
  font-size: 1.4rem; line-height: 1; cursor: pointer; border-radius: 999px;
}
.qty button:hover { background: var(--lav-50); }
.qty span { min-width: 32px; text-align: center; font-weight: 450; font-variant-numeric: tabular-nums; }
.add-item { margin-top: 20px; width: 100%; }
.add-item:disabled { opacity: .45; cursor: not-allowed; }
.items { margin-bottom: 14px; }
.items[hidden] { display: none; }
.items-title { margin: 0 0 6px; font-weight: 450; }
.items-list { margin: 0; padding-left: 1.3em; font-size: .92rem; }
.items-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.items-list li > span { margin-right: 8px; }
.item-remove { border: 0; background: none; padding: 0; color: var(--lav-700); font: inherit; font-size: .85rem; text-decoration: underline; cursor: pointer; }
.asap-row { margin-top: 16px; }
.date-field[hidden] { display: none; }
.timing { margin-top: 12px; }

/* builder: "Vajad ideid?" popup */
.link-btn {
  border: 0; background: none; padding: 0;
  color: var(--lav-700); font: inherit; text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.link-btn:hover { color: var(--lav-800); }
.ideas-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(47, 42, 53, .25);
  overflow: auto;
}
.ideas-dialog::backdrop { background: rgba(47, 42, 53, .45); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.dialog-head h2 { margin: 0; font-size: 2rem; }
.dialog-close {
  width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%;
  background: var(--cream); color: var(--ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.dialog-close:hover { background: var(--lav-100); }
.ideas-dialog .ideas li button { cursor: pointer; min-height: 64px; font-size: 1.15rem; }
@media (max-width: 599px) {
  .ideas-dialog { padding: 18px 16px; }
  .ideas-dialog .ideas ul { grid-template-columns: 1fr 1fr; }
}

/* builder: help when the e-mail app does not open */
.mail-help { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--cream); font-size: .92rem; }
.mail-help[hidden] { display: none; }
.mail-help p { margin: 0 0 10px; }
.btn-small { min-height: 40px; padding: .4em 1em; font-size: .9rem; }

.ig-hint { margin: -2px 0 6px; padding: 0 4px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.ig-hint strong { color: var(--ink); font-weight: 450; }

/* "Mis edasi saab?" — what happens after sending the order */
.next-steps { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--lav-50); }
.next-title { margin: 0 0 6px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; }
.next-steps ol { margin: 0; padding-left: 1.2em; font-size: .92rem; color: var(--ink); }
.next-steps li { margin: 4px 0; }
.next-steps-page { margin: 0 0 24px; }
.next-steps-page ol { font-size: 1rem; }

/* builder: step 6 — extra info */
.builder textarea#notes {
  width: 100%;
  resize: vertical;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}
.builder textarea#notes:focus { outline: 2px solid var(--lav-700); outline-offset: 1px; }
.optional { font-family: var(--font-body); font-size: .9rem; color: var(--muted); font-weight: 350; }
.scent-icon { font-size: 1.1rem; line-height: 1; }
.muted-inline { color: var(--muted); }

.review-translation { margin: -6px 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
@media (min-width: 1000px) { .reviews { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Bouquet gallery (Buketid page) ---------- */

.gallery-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.gallery-filter button {
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: .95rem; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.gallery-filter button:hover { border-color: var(--lav-300); }
.gallery-filter button[aria-pressed="true"] { background: var(--lav-700); border-color: var(--lav-700); color: #fff; }

.photo-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 720px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1000px) { .photo-grid { grid-template-columns: repeat(4, 1fr); } }
.photo-grid li[hidden] { display: none; }
.photo {
  display: block; width: 100%; padding: 0; border: 0;
  border-radius: 14px; overflow: hidden; background: var(--cream);
  cursor: zoom-in;
}
.photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.photo:hover img { transform: scale(1.04); }
.photo-cap { display: block; margin-top: 8px; font-size: .9rem; color: var(--muted); text-align: center; }

.lightbox {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(47, 42, 53, .7); }
.lightbox img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: calc(100vh - 140px); }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.lightbox-nav {
  position: absolute; top: 40%; z-index: 2;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .85); color: var(--ink);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
}
.lightbox-nav:hover { background: #fff; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; }
.lightbox-cap { margin: 0; font-family: var(--font-display); font-size: 1.3rem; }

.btn-large { min-height: 56px; padding: .8em 2em; font-size: 1.1rem; }
.split .btn-row + .next-steps-page { margin-top: 28px; }
.extra .size-tag { font-family: var(--font-display); color: var(--rose); font-size: 1.6rem; line-height: 1; margin-bottom: .25em; }
.msg-row[hidden], .no-msg-note[hidden] { display: none; }
.no-msg-note { margin: 0 0 8px; padding: 12px 14px; border-radius: 12px; background: var(--cream); color: var(--ink); }

/* mobile menu: "Kujunda ja telli" first */
@media (max-width: 1040px) {
  .main-nav .nav-cta { order: -1; padding: 4px 0 12px; }
  .main-nav .nav-cta a.btn { display: flex; width: 100%; }
}

/* "Iga bukett on ainulaadne" note */
.handmade-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  max-width: 48rem;
}
.section-soft .handmade-note { background: var(--surface); }
.handmade-icon { font-size: 1.4rem; line-height: 1.4; }
.handmade-note p { margin: 0; color: var(--muted); font-size: .98rem; }
.handmade-note strong { color: var(--ink); font-weight: 450; }
.handmade-hint { margin-top: 14px; font-size: .9rem; }

/* message over a printed logo: soft box-coloured fade instead of a white label */
.box-text.has-fade {
  padding: 6cqw 6cqw;
  background: radial-gradient(closest-side, var(--tint) 65%, transparent 100%);
}
