/* ==========================================================================
   Lolly Jaye Hair — Shared Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Beau+Rivage&family=Noto+Serif+Display:wght@400;700&family=Inter:wght@400;500;600&family=Montserrat:wght@400;500;600;700&family=Lato:wght@400;700&family=Poppins:wght@400;500;600;700&family=Merriweather:wght@400;700&family=Lora:wght@400;500;600&display=swap');

:root {
  --cream: #f7efe3;
  --cream-light: #fbf5eb;
  --card-bg: #fdf9f2;
  --white: #ffffff;
  --brown-dark: #6b5241;
  --brown-mid: #73584b;
  --brown-text: #73584b;
  --beige-text: #c2b19c;
  --tan-gold: #bfa07a;
  --tan-gold-light: #d8c4a5;
  --border-soft: #e3d3bd;
  --btn-dark-bg: #6f5847;
  --btn-dark-text: #f7efe3;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Cormorant Garamond', Georgia, serif;
  --font-script: 'Beau Rivage', 'Playfair Display', cursive;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1180px;
  --content-width: 720px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream-light);
  color: var(--brown-text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Page background groups — see README.md "Page background colours" */
body.bg-education { background: #fff9f4; }
body.bg-utility { background: #fffdf5; }

body.bg-education .site-header,
body.bg-education .site-nav,
body.bg-education .ask-panel,
body.bg-education .ask-form { background: #fff9f4; }

body.bg-utility .site-header,
body.bg-utility .site-nav,
body.bg-utility .ask-panel,
body.bg-utility .ask-form { background: #fffdf5; }

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

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* ---------------------------------- Typography ---------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown-text);
  font-weight: 500;
  margin: 0 0 16px;
  line-height: 1.2;
}

.script {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1.4;
}

.info-card h2.script {
  font-size: 2.7rem;
  font-family: 'Times New Roman MT Condensed', 'Times New Roman', Times, serif;
  font-style: italic;
  font-weight: 400;
  color: #c2b19c;
}

.info-card p {
  font-family: 'Noto Serif Display', serif;
}

.info-card .btn {
  font-family: 'Noto Serif Display', serif;
  font-weight: 700;
}

.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--tan-gold);
}

h1.page-title, h2.section-title {
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  text-align: center;
}

h2.caps-title {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}

p { margin: 0 0 16px; }

.lede {
  font-size: 1.15rem;
  text-align: center;
  color: var(--brown-text);
}

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

.btn {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  padding: 16px 36px;
  border-radius: 999px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border-color: var(--brown-text);
  color: var(--brown-text);
}

.btn-outline:hover { background: var(--brown-dark); color: var(--cream); }

.btn-solid {
  background: var(--btn-dark-bg);
  color: var(--btn-dark-text);
  border-color: var(--btn-dark-bg);
}

.btn-solid:hover { background: var(--brown-dark); }

.btn-block { display: block; width: 100%; }

/* ---------------------------------- Nav ---------------------------------- */

.site-header {
  background: var(--cream-light);
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-logo img { height: 38px; width: auto; max-width: 42vw; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.site-nav {
  position: fixed;
  inset: 0;
  top: 73px;
  background: var(--cream-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  padding: 32px 24px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow-y: auto;
}

.site-nav.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.site-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--brown-text);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
  width: 100%;
  max-width: 320px;
  text-align: center;
}

.site-nav .nav-cta {
  margin-top: 20px;
  border-bottom: none;
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    flex-direction: row;
    padding: 0;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    gap: 28px;
    width: auto;
  }

  .site-nav a {
    font-size: 1rem;
    border-bottom: none;
    padding: 6px 0;
    width: auto;
  }

  .site-nav .nav-cta {
    margin-top: 0;
  }
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.edu-hero { min-height: 44vh; }

@media (min-width: 800px) {
  .edu-hero { min-height: 72vh; }
}

.home-hero { min-height: 60vh; }

@media (min-width: 800px) {
  .home-hero { min-height: 100vh; }
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-plain {
  padding: 72px 0 32px;
  text-align: center;
}

/* ---------------------------------- Cards / sections ---------------------------------- */

.section {
  padding: 64px 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  gap: 20px;
}

@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.reverse { direction: rtl; }
  .split.reverse > * { direction: ltr; }
}

/* The quote section stays side-by-side even on mobile (just compact) — everything
   else in .split reverts to a single stacked column below the 800px breakpoint. */
.split.split-quote {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (min-width: 800px) {
  .split.split-quote { gap: 20px; }
}

.info-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.split > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  min-height: 320px;
}

.split-quote > img {
  min-height: 140px;
}

@media (min-width: 800px) {
  .split-quote > img { min-height: 320px; }
}

.banner-photo {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: flex-start;
  padding: 40px 40px 40px 20px;
}

.banner-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  z-index: 0;
}

@media (min-width: 641px) {
  .banner-photo img { object-position: center 78%; }
}

.banner-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, rgba(30,20,12,0.72) 0%, rgba(30,20,12,0.45) 40%, rgba(30,20,12,0.15) 70%);
}

.banner-photo .banner-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 420px;
  text-align: center;
}

.banner-photo .banner-content .eyebrow { color: var(--white); opacity: 0.9; }
.banner-photo .banner-content p {
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
  font-family: 'TT Norms', 'Inter', Arial, sans-serif;
}

@media (max-width: 640px) {
  .banner-photo { padding-top: 26px; }
  .banner-photo .banner-content p {
    font-size: 0.84rem;
    line-height: 1.55;
    letter-spacing: 0.01em;
    margin-top: 0;
    margin-bottom: 10px;
  }
  .banner-photo .banner-content p:first-of-type { margin-top: 8px; }
  .banner-photo .banner-content .eyebrow { font-size: 0.78rem; }
}

.quote-card {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--brown-text);
  min-height: 140px;
}

@media (min-width: 800px) {
  .quote-card { padding: 48px 40px; font-size: 1.3rem; min-height: 320px; }
}

.quote-card p {
  font-family: 'Noto Serif Display', serif;
  font-style: normal;
}

.quote-card .attribution {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
  font-family: 'Times New Roman MT Condensed', 'Times New Roman', Times, serif;
  font-style: italic;
}

@media (min-width: 800px) {
  .quote-card .attribution { font-size: 1.9rem; }
}

/* Education cards grid */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

.edu-card {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  overflow: hidden;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
}

.edu-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

.edu-card .edu-card-body {
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.edu-card-title-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .edu-card-title-row {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
}

.edu-card h3 {
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  margin-bottom: 0;
}

.edu-card-tag {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tan-gold);
  white-space: nowrap;
}

.edu-card p { font-size: 1rem; flex: 1; }

/* ---------------------------------- Body copy pages (education subpages) ---------------------------------- */

.copy-page-hero {
  text-align: center;
  padding: 56px 0 8px;
}

.copy-page-hero .logo-lockup { max-width: 240px; margin: 0 auto 32px; }

.copy-page-hero h1.script {
  font-family: 'Times New Roman MT Condensed', 'Times New Roman', Times, serif;
  font-style: italic;
}

#hair-appointments h2,
#hair-appointments p,
#hair-appointments .btn {
  font-family: 'Noto Serif Display', serif;
}

.explore-edu-cta {
  font-family: 'Noto Serif Display', serif;
  font-weight: 700;
}

.copy-block {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.15rem;
}

.copy-block h3 {
  text-transform: uppercase;
  font-size: 1.5rem;
}

.copy-block .subtitle {
  color: var(--beige-text);
  font-size: 1rem;
}

.full-photo-cta {
  position: relative;
  margin-top: 48px;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 48px;
  overflow: hidden;
}

.full-photo-cta img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.full-photo-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(to top, rgba(30,20,12,0.75) 0%, rgba(30,20,12,0.3) 55%, rgba(30,20,12,0) 80%);
}

.full-photo-cta .cta-inner { position: relative; z-index: 1; text-align: center; color: var(--white); padding: 0 20px; }

@media (min-width: 641px) {
  .full-photo-cta img.face-top-photo { object-position: center 18%; }
}

.full-photo-cta .cta-text {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  line-height: 1.4;
}

/* ---------------------------------- FAQ ---------------------------------- */

.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--card-bg);
  margin-bottom: 14px;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 48px 18px 22px;
  font-family: 'Noto Serif Display', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--brown-text);
  position: relative;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--tan-gold);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { border-bottom: 1px solid var(--border-soft); }

.faq-item p {
  padding: 16px 22px 20px;
  margin: 0;
  font-size: 1.05rem;
  text-align: left;
  font-family: 'TT Hoves', 'Inter', Arial, sans-serif;
}

#faq-page-title { font-family: 'Noto Serif Display', serif; }

/* ---------------------------------- Forms ---------------------------------- */

.form-page { padding: 56px 0 80px; }

.form-page h1 { text-align: center; margin-bottom: 40px; }

form.card-form {
  max-width: 560px;
  margin: 0 auto;
}

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--brown-text);
  margin-bottom: 8px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 13px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--white);
  color: var(--brown-text);
}

.field textarea { min-height: 120px; resize: vertical; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6b53' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
  cursor: pointer;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--tan-gold);
}

.form-note {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--brown-mid);
  text-align: center;
  margin-top: 10px;
}

.form-success {
  display: none;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brown-text);
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 28px;
  margin-top: 20px;
}

.form-success.show { display: block; }

/* ---------------------------------- Dates list (Shadow Days) ---------------------------------- */

.date-card {
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--card-bg);
  padding: 28px;
  margin-bottom: 20px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.date-card .date-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--brown-text);
  margin-bottom: 6px;
}

.date-card .date-loc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--tan-gold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.date-card p { font-size: 1.05rem; }

.empty-state {
  text-align: center;
  max-width: 480px;
  margin: 40px auto;
  color: var(--brown-mid);
}

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

.site-footer {
  background: var(--brown-dark);
  color: var(--cream-light);
  padding: 56px 0 28px;
  margin-top: 64px;
  text-align: center;
}

.site-footer .footer-logo {
  font-family: 'Times New Roman MT Condensed', 'Times New Roman', Times, serif;
  font-style: italic;
  font-size: 2.8rem;
  color: var(--cream-light);
  margin-bottom: 20px;
  display: inline-block;
}

.footer-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}

.footer-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(247,239,227,0.35);
  color: var(--cream-light);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-icons a:hover {
  background: rgba(247,239,227,0.12);
  border-color: var(--cream-light);
}

.footer-icons svg { width: 19px; height: 19px; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 28px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
}

.footer-nav a { opacity: 0.85; }
.footer-nav a:hover { opacity: 1; }

.footer-contact {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  opacity: 0.75;
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  opacity: 0.55;
}

.footer-copy + .footer-copy { margin-top: 6px; }

.footer-copy a {
  color: inherit;
  text-decoration: underline;
}

/* ---------------------------------- Utility ---------------------------------- */

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.gap-buttons { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* ---------------------------------- Ask widget (site search) ---------------------------------- */

.ask-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--btn-dark-bg);
  color: var(--cream-light);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(43,28,16,0.35);
  z-index: 300;
  transition: transform 0.15s ease, background 0.2s ease;
}

.ask-toggle:hover { transform: translateY(-2px); background: var(--brown-dark); }
.ask-toggle svg { width: 26px; height: 26px; }
.ask-toggle .icon-close { display: none; }
.ask-toggle.open .icon-chat { display: none; }
.ask-toggle.open .icon-close { display: block; }

.ask-panel {
  position: fixed;
  right: 20px;
  bottom: 90px;
  width: min(360px, calc(100vw - 40px));
  height: min(480px, calc(100vh - 140px));
  background: var(--cream-light);
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(43,28,16,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 299;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ask-panel.open { opacity: 1; transform: translateY(0); pointer-events: auto; }

.ask-header {
  background: var(--brown-dark);
  color: var(--cream-light);
  padding: 14px 18px;
  font-family: var(--font-display);
  font-size: 1rem;
}

.ask-header .ask-header-title { display: block; }
.ask-header .ask-header-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  opacity: 0.7;
  margin-top: 2px;
}

.ask-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-sans);
}

.ask-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ask-msg.bot {
  background: var(--card-bg);
  border: 1px solid var(--border-soft);
  color: var(--brown-text);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}

.ask-msg.user {
  background: var(--btn-dark-bg);
  color: var(--cream-light);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ask-msg a {
  color: var(--brown-text);
  text-decoration: underline;
  font-weight: 600;
}

.ask-msg.user a { color: var(--cream-light); }

.ask-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border-soft);
  background: var(--cream-light);
}

.ask-form input {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: var(--white);
  color: var(--brown-text);
}

.ask-form input:focus { outline: none; border-color: var(--tan-gold); }

.ask-form button {
  background: var(--btn-dark-bg);
  color: var(--cream-light);
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
}

.ask-form button:hover { background: var(--brown-dark); }

@media (max-width: 480px) {
  .ask-panel { right: 12px; left: 12px; width: auto; bottom: 88px; }
  .ask-toggle { right: 16px; bottom: 16px; }
}

/* ---------------------------------- Instagram slider ---------------------------------- */

.ig-section { padding: 64px 0; }

.ig-slider {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.ig-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.ig-track::-webkit-scrollbar { display: none; }

.ig-slide {
  flex: 0 0 74%;
  scroll-snap-align: start;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: block;
  background: var(--card-bg);
}

@media (min-width: 640px) { .ig-slide { flex-basis: 45%; } }
@media (min-width: 980px) { .ig-slide { flex-basis: 30.5%; } }

.ig-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.ig-slide:hover img { transform: scale(1.05); }

.ig-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,20,12,0.7) 0%, rgba(30,20,12,0) 55%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ig-slide:hover .ig-overlay,
.ig-slide:focus-visible .ig-overlay { opacity: 1; }

.ig-overlay span {
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ig-overlay svg { width: 15px; height: 15px; flex-shrink: 0; }

.ig-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  color: var(--brown-text);
  box-shadow: 0 4px 14px rgba(43,28,16,0.18);
}

.ig-arrow svg { width: 18px; height: 18px; }
.ig-prev { left: -6px; }
.ig-next { right: -6px; }

@media (max-width: 700px) { .ig-arrow { display: none; } }

.ig-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.ig-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--border-soft);
  border: none;
  cursor: pointer;
  padding: 0;
}

.ig-dot.active { background: var(--tan-gold); width: 18px; border-radius: 4px; transition: width 0.2s ease; }

/* ---------------------------------- Edit Mode ---------------------------------- */

.edit-mode-toggle {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border-soft);
  color: var(--brown-text);
  border-radius: 999px;
  padding: 12px 18px 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(43,28,16,0.15);
  z-index: 300;
}

.edit-mode-toggle svg { width: 18px; height: 18px; }
.edit-mode-toggle.active { background: var(--brown-text); color: var(--white); border-color: var(--brown-text); }

body.edit-mode-on * { cursor: crosshair; }

.edit-hover {
  outline: 2px dashed var(--tan-gold) !important;
  outline-offset: 2px;
  cursor: pointer !important;
}

.edit-selected {
  outline: 2px solid var(--brown-text) !important;
  outline-offset: 2px;
  cursor: grab !important;
}

.edit-dragging {
  cursor: grabbing !important;
  outline: 2px dashed var(--brown-text) !important;
  opacity: 0.85;
  z-index: 250;
}

.edit-toolbar {
  position: absolute;
  z-index: 400;
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(43,28,16,0.22);
  padding: 14px;
  width: 260px;
  display: none;
  font-family: var(--font-sans);
}

.edit-toolbar.open { display: block; }

.edit-toolbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.edit-toolbar-row:last-child { margin-bottom: 0; }

.edit-toolbar label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--brown-text);
  flex: 1;
}

.edit-toolbar select,
.edit-toolbar input[type="color"] {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  padding: 6px 8px;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  background: var(--white);
}

.edit-toolbar input[type="color"] { padding: 2px; height: 34px; cursor: pointer; }

.edit-swatches { display: flex; gap: 6px; }

.edit-swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  cursor: pointer;
  padding: 0;
}

.edit-toolbar-style { gap: 8px; }

.edit-italic-btn,
.edit-recenter-btn {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
  color: var(--brown-text);
}

.edit-italic-btn em { font-style: italic; }
.edit-italic-btn.active { background: var(--brown-text); color: var(--white); }

.edit-drag-hint {
  font-size: 0.72rem;
  color: var(--brown-mid);
  margin: 0 0 10px;
  text-align: center;
}

.edit-toolbar-actions button {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
  color: var(--brown-text);
}

.edit-toolbar-actions .edit-apply {
  background: var(--brown-text);
  color: var(--white);
  border-color: var(--brown-text);
}

.edit-panel {
  position: fixed;
  left: 20px;
  bottom: 84px;
  width: min(340px, calc(100vw - 40px));
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(43,28,16,0.22);
  padding: 16px;
  display: none;
  z-index: 300;
  font-family: var(--font-sans);
}

.edit-panel.open { display: block; }

.edit-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--brown-text);
  font-weight: 600;
  margin-bottom: 6px;
}

.edit-panel-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--brown-text);
  line-height: 1;
}

.edit-panel-note {
  font-size: 0.75rem;
  color: var(--brown-mid);
  margin: 0 0 10px;
}

.edit-panel-list {
  width: 100%;
  font-family: monospace;
  font-size: 0.72rem;
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 8px;
  resize: vertical;
  color: var(--brown-text);
  background: var(--card-bg);
}

.edit-panel-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.edit-panel-actions button {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--border-soft);
  background: var(--card-bg);
  color: var(--brown-text);
}

@media (max-width: 480px) {
  .edit-panel { left: 12px; right: 12px; width: auto; }
  .edit-toolbar { width: min(260px, calc(100vw - 40px)); }
}
