/* Base */
:root {
  --ink: #1f1c2b;
  --olive: #6e5d72;
  --moss: #c083a2;
  --clay: #d48fa8;
  --logo: #910496;
  --river: #5e7cc7;
  --sand: #f3eef6;
  --paper: #fdf9fc;
  --shadow: 0 16px 36px rgba(31, 28, 43, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

[id] {
  scroll-margin-top: calc(var(--header-height, 0px) + 12px);
}

/* Layout & Background */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Hind", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(212, 143, 168, 0.22), transparent 60%),
    radial-gradient(700px 420px at 90% 20%, rgba(94, 124, 199, 0.18), transparent 65%),
    linear-gradient(140deg, rgba(249, 242, 248, 1) 0%, rgba(239, 233, 245, 1) 55%, rgba(243, 238, 246, 1) 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    url("floral.svg");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: clamp(720px, 120vw, 1400px) auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

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

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

/* Page */
.page {
  display: grid;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  transition: transform 0.35s ease, filter 0.35s ease;
  position: relative;
  z-index: 1;
}

body.is-sticky .page {
  padding-top: calc(32px + var(--header-height, 0px) + 1px);
}

body.bookero-open:not(.nav-open) .page {
  transform: translateX(calc(-1 * min(26vw, 340px))) scale(0.9);
  filter: blur(0.5px);
  transform-origin: left center;
}

.bookero-sticky-plugin-toggle {
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.bookero-open .bookero-sticky-plugin-toggle {
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

/* Header & Navigation */
header {
  padding: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}

header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  width: 100%;
  margin: 0;
  transform: none;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  backdrop-filter: none;
}

header.is-sticky::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  height: 90px;
  background: rgba(255, 255, 255, 0.01);
  backdrop-filter: blur(14px);
  box-shadow: none;
}

header.is-sticky .header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 20px;
}

/* Branding */
.brand {
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 141px;
  max-width: 352px;
}

body.sticky-ready header {
  transition: transform 0.25s ease, padding 0.25s ease;
}

body.sticky-ready header.is-sticky::before {
  transition: height 0.25s ease, backdrop-filter 0.25s ease;
}

body.sticky-ready header.is-sticky .header-inner {
  transition: padding 0.25s ease;
}

body.sticky-ready .brand img {
  transition: height 0.25s ease, max-width 0.25s ease, margin 0.25s ease;
}

header.is-sticky .brand img {
  height: 80px;
  max-width: 220px;
  margin: 5px 0;
}

/* Navigation */
nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

nav a {
  position: relative;
  padding: 6px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--logo);
  transition: color 0.25s ease, transform 0.25s ease;
}

nav a:hover {
  transform: translateY(-2px);
  color: var(--ink);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--logo);
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: right;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

nav a:hover::after,
nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

/* Mobile Navigation */
.nav-panel {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(31, 28, 43, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--logo);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover .nav-toggle-bar {
  transform: scaleX(1.08);
}

header.nav-open .nav-toggle-bar:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

header.nav-open .nav-toggle-bar:nth-child(3) {
  opacity: 0;
}

header.nav-open .nav-toggle-bar:nth-child(4) {
  transform: translateY(-6px) rotate(-45deg);
}

.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;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
  background: var(--paper);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -40px;
  bottom: -60px;
  background: radial-gradient(circle, rgba(212, 143, 168, 0.28), transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(36px, 5vw, 56px);
  margin: 6px 0 12px;
  letter-spacing: 0.01em;
}

.hero h2 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: var(--olive);
  margin: 0 0 18px;
}

.lead {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #2c342f;
}

/* CTA */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--river);
  color: #fdfcf9;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(95, 138, 130, 0.2);
  --tx: 0px;
  --ty: 0px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.cta.secondary {
  border: 1px solid rgba(31, 28, 43, 0.2);
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.cta .ripple {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.65s ease-out;
  background: rgba(255, 255, 255, 0.55);
}

.cta-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.cta-row .cta-uniform {
  width: 220px;
  flex: 0 0 220px;
}

/* Cards */
.hero-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  background: #fefcf8;
  border: 1px solid rgba(31, 28, 43, 0.1);
  border-radius: 14px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.hero-card img {
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(31, 28, 43, 0.12);
}

/* Sections */
.section {
  display: grid;
  gap: 18px;
  padding: 32px;
  border: 1px solid rgba(31, 28, 43, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 14px 28px rgba(31, 28, 43, 0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-style: preserve-3d;
}

.section h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 30px;
  margin: 0;
}

.section h4 {
  margin: 0;
  font-size: 18px;
  color: var(--olive);
  font-weight: 500;
}

.section p {
  margin: 0;
  line-height: 1.7;
}

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

#gestalt .grid-2 > div:first-child {
  display: grid;
  gap: 18px;
}

.list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.8;
}

.quote {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1.6;
  background: linear-gradient(120deg, rgba(212, 143, 168, 0.12), rgba(94, 124, 199, 0.12));
  border-left: 4px solid var(--moss);
  padding: 20px 24px;
  border-radius: 10px;
}

.contact {
  display: grid;
  gap: 12px;
  font-size: 16px;
}

.contact strong {
  font-size: 18px;
}

.contact-role {
  color: #6a4b66;
  font-size: 15px;
}

.contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(31, 28, 43, 0.08);
  box-shadow: 0 10px 18px rgba(31, 28, 43, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(31, 28, 43, 0.12);
  background: rgba(255, 255, 255, 0.9);
}

.contact-icon {
  width: 20px;
  height: 20px;
  fill: rgba(94, 124, 199, 0.85);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact a {
  color: var(--river);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(212, 143, 168, 0.14);
  color: #6a4b66;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.links {
  display: grid;
  gap: 8px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--river);
}

.footer {
  text-align: center;
  font-size: 14px;
  color: rgba(31, 27, 22, 0.7);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: fixed;
  right: 20px;
  bottom: 16px;
  z-index: 89;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(31, 28, 43, 0.12);
  text-decoration: none;
  color: rgba(31, 28, 43, 0.72);
  font-size: 11px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.footer-credit.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.footer-credit span {
  font-size: 11px;
  line-height: 1;
}

.footer-credit img {
  width: 56px;
  height: auto;
  opacity: 0.92;
}

.footer-credit:hover {
  opacity: 0.82;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31, 28, 43, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 999;
  backdrop-filter: blur(6px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(900px, 100%);
  max-height: min(82vh, 720px);
  overflow: hidden;
  border: 1px solid rgba(31, 28, 43, 0.14);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 60px rgba(31, 28, 43, 0.2);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(31, 28, 43, 0.08);
  background: linear-gradient(90deg, rgba(212, 143, 168, 0.12), rgba(94, 124, 199, 0.12));
}

.modal-header h3 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px;
  letter-spacing: 0.02em;
}

.modal-close {
  cursor: pointer;
  padding: 6px 12px;
  border: 1px solid rgba(31, 28, 43, 0.2);
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  background: rgba(31, 28, 43, 0.06);
  transform: translateY(-1px);
}

.modal-body {
  padding: 20px 22px;
  overflow: auto;
  font-size: 15px;
  line-height: 1.7;
  color: #2a2736;
}

.modal-body h4 {
  margin: 0 0 8px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a4b66;
}

.modal-body p {
  margin: 0 0 12px;
}

.modal-body ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  padding: 14px 22px;
  border-top: 1px solid rgba(31, 28, 43, 0.08);
  background: rgba(253, 249, 252, 0.9);
}

.modal-open {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  align-self: start;
  padding: 6px 12px;
  border: 1px solid rgba(31, 28, 43, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  color: rgba(31, 28, 43, 0.75);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.modal-open:hover {
  background: rgba(255, 255, 255, 0.75);
  transform: translateY(-1px);
}

/* Scroll To Top */
.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 78px;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(112, 74, 173, 0.35);
  background: linear-gradient(140deg, rgba(174, 126, 216, 0.9), rgba(108, 87, 191, 0.95));
  box-shadow: 0 14px 26px rgba(108, 87, 191, 0.35);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.scroll-top svg {
  width: 20px;
  height: 20px;
  fill: rgba(255, 255, 255, 0.92);
}

.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(108, 87, 191, 0.45);
}

.fx-card.active {
  box-shadow: 0 18px 35px rgba(31, 28, 43, 0.12);
}


.cta:hover,
.cta.is-hovered,
.cta:focus-visible,
.cta:active {
  transform: translate3d(var(--tx), calc(var(--ty) - 2px), 0) scale(1.01);
  box-shadow: 0 16px 32px rgba(94, 124, 199, 0.25);
  filter: brightness(1.03);
}

.cta.secondary:hover,
.cta.secondary.is-hovered,
.cta.secondary:focus-visible,
.cta.secondary:active {
  box-shadow: 0 12px 22px rgba(31, 28, 43, 0.12);
}


/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ripple {
  to {
    transform: scale(2.8);
    opacity: 0;
  }
}

/* Media Queries */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1050px) {
  .header-inner {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
    margin-top: -10px;
  }

  header nav {
    display: none;
  }

  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: min(80vw, 340px);
    height: 100vh;
    padding: 96px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 0;
    border: 1px solid rgba(31, 28, 43, 0.12);
    box-shadow: -16px 0 40px rgba(31, 28, 43, 0.15);
    opacity: 0;
    transform: translateX(100%);
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 200;
    overflow: hidden;
  }

  .nav-logo {
    width: min(70vw, 220px);
    height: auto;
    margin: -8px 0 8px;
    display: inline-flex;
  }

  .nav-logo img {
    width: 100%;
    height: auto;
    display: block;
  }

  body.nav-open .nav-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-panel > a {
    color: var(--logo);
    font-size: 20px;
    font-weight: 600;
    width: 100%;
    text-align: center;
  }

  .nav-panel > a:hover {
    color: var(--ink);
  }

  .nav-panel > a::after {
    background: var(--logo);
  }

  .nav-panel > a.nav-logo::after {
    background: transparent;
  }

  .nav-cta {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
  }

  .nav-cta .cta {
    justify-content: center;
    width: calc(50% - 5px);
    padding: 8px 14px;
    font-size: 14px;
    min-height: 38px;
    border: 1px solid rgba(31, 28, 43, 0.2);
    background: transparent;
    color: var(--ink);
    box-shadow: none;
  }

  .nav-bookero-btn {
    margin-top: 8px;
    width: 100%;
    min-height: 38px;
    padding: 8px 16px;
    font-size: 14px;
    border: 1px solid rgba(31, 28, 43, 0.2);
    background: transparent;
    color: var(--ink);
    box-shadow: none;
  }

  .nav-toggle.in-panel {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 210;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(31, 28, 43, 0.18);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 24px rgba(31, 28, 43, 0.12);
    margin-top: 0;
  }

  .nav-toggle.in-panel .nav-toggle-bar {
    background: var(--logo);
  }

  .nav-toggle.in-panel .nav-toggle-bar:nth-child(2) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle.in-panel .nav-toggle-bar:nth-child(3) {
    opacity: 0;
  }

  .nav-toggle.in-panel .nav-toggle-bar:nth-child(4) {
    transform: translateY(-6px) rotate(-45deg);
  }

  body.nav-open .page {
    transform: translateX(-280px) scale(0.9);
    filter: blur(0.5px);
    transform-origin: left center;
  }

  .hero {
    padding: 24px;
  }

  .section {
    padding: 24px;
  }
}

@media (max-width: 620px) {
  .header-inner {
    justify-content: space-between;
    gap: 12px;
  }

  .brand img {
    height: auto;
    width: min(70vw, 320px);
  }

  .footer-credit {
    right: 12px;
    bottom: 12px;
    padding: 5px 8px;
  }

  .footer-credit span {
    font-size: 10px;
  }

  .footer-credit img {
    width: 50px;
  }

  .scroll-top {
    right: 12px;
    bottom: 72px;
  }
}
