/* ===========================================================
   BOOKETT — GLOBAL DESIGN SYSTEM
   Final unified stylesheet (layout + assistant + subnav)
=========================================================== */

/* -----------------------------------------------------------
   ROOT TOKENS
----------------------------------------------------------- */
:root {
  /* Brand palette */
  --lavender-deep: #C2A0E8;
  --lavender-soft: #DED7FA;
  --green-soft: #EEF5E1;
  --green-light: #B2D4AB;
  --green-muted: #93BEA4;
  --yellow-warm: #F5E8BA;
  --yellow-bright: #F7D878;

  /* Neutrals */
  --white: #FFFFFF;
  --text-main: #2B2B2B;
  --text-muted: #444444;
  --text-light: #6B7280;
  --border-soft: #D4D4E0;

  /* Layout */
  --max-width: 1140px;
  --radius-lg: 14px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 45px rgba(15,23,42,0.08);
  --shadow-subtle: 0 10px 30px rgba(15,23,42,0.06);

  /* Motion */
  --motion-fast: 180ms;
  --motion-medium: 320ms;
  --motion-slow: 600ms;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

/* -----------------------------------------------------------
   GLOBAL RESET / BASE
----------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-main);

  /* NEW AGREED BACKGROUND:
     Ultra‑subtle diagonal gradient (10–15% intensity)
     White-dominant, neutral, modern, not feminine
  */
  background: linear-gradient(
    135deg,
    rgba(238,245,225,0.12) 0%,
    rgba(255,255,255,1) 70%
  );

  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font-family: inherit;
}

/* -----------------------------------------------------------
   LAYOUT WRAPPER
----------------------------------------------------------- */
.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 60px;
}

/* ===========================================================
   NAVIGATION (PRIMARY)
=========================================================== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0 10px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
}

.site-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: radial-gradient(circle at top left, var(--lavender-deep), var(--green-muted));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--text-muted);
  padding: 4px 0;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: var(--lavender-deep);
  transition: width var(--motion-fast) ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.site-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-cta-secondary {
  background: transparent;
  color: var(--text-main);
  border: none;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
}

.site-cta-primary {
  background: var(--green-muted);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

/* ===========================================================
   SUBNAV (NEW)
=========================================================== */
.subnav {
  margin-top: 6px;
  padding: 8px 0;
  border-top: 1px solid rgba(212,212,224,0.5);
  border-bottom: 1px solid rgba(212,212,224,0.5);
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.subnav a {
  padding: 4px 0;
  color: var(--text-muted);
}

.subnav a:hover,
.subnav a:focus-visible {
  color: var(--lavender-deep);
}
/* ===========================================================
   HERO
=========================================================== */
.hero {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: start;
  padding: 30px 0 40px;
  width: 100%; 
}

.hero-copy-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lavender-deep);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-title {
  font-size: 2.2rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 18px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta-pill {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  font-size: 0.85rem;
  color: var(--text-main);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: start;
  margin-bottom: 10px;
}

.hero-cta-primary {
  border-radius: var(--radius-pill);
  border: none;
  background: var(--green-muted);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.hero-cta-secondary-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: underline;
}
/* ===========================================================
   HERO — TEXT ALIGNMENT
=========================================================== */
.hero-copy-eyebrow,
.hero-title,
.hero-subtitle,
.hero-note,
.hero-cta-row,
.hero-meta-row {
  text-align: start;
}

/* ===========================================================
   HERO — QUICK SCHEDULER (NO BOXES)
=========================================================== */

.hero-quick-scheduler {
  display: flex;
  flex-direction: column;
  align-items: center;     /* ← centers all child elements */
  text-align: center;      /* ← centers text inside labels and fields */
  gap: 14px;
  padding: 0;
  margin-top: 20px;
  max-width: 420px;
}
/* Field group wrapper */
.hero-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Field label */
.hero-field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Field shell (no box, no border) */
.hero-field-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: none;
  background: transparent;
}

/* Icon inside field */
.hero-field-icon {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* Inputs + dropdowns */
.hero-field-shell select,
.hero-field-shell input[type="date"] {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-main);
  font-family: inherit;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-soft); /* subtle underline */
}

.hero-field-shell select:focus,
.hero-field-shell input[type="date"]:focus {
  outline: none;
  border-bottom: 1px solid var(--lavender-deep);
}

/* CTA button */
.hero-schedule-btn {
  background: var(--green-muted);
  color: var(--white);
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
  align-self: start;
}

.hero-schedule-btn:hover {
  background: var(--green-light);
  color: var(--text-main);
}
/* ===========================================================
   HERO — FIELD ROW (DESKTOP)
=========================================================== */
.hero-fields-row {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.hero-fields-row .hero-field-group {
  flex: 1;
}

/* ===========================================================
   MOBILE
=========================================================== */
@media (max-width: 600px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-quick-scheduler {
    max-width: 100%;
  }

  /* stack fields vertically on mobile */
  .hero-fields-row {
    flex-direction: column;
    gap: 14px;
  }

  .hero-schedule-btn {
    width: 100%;
    text-align: start;
  }
}

/* ===========================================================
   HERO NOTE + VISUAL
=========================================================== */
.hero-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 14px;
}

/* Right-side visual box (Live Snapshot) */
.hero-visual {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;        /* full width */
  max-width: 600px;   /* optional: keeps it elegant */
}

/* -----------------------------------------------------------
   TILE GRID
----------------------------------------------------------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.tile {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  box-shadow: var(--shadow-subtle);
  border: 1px solid rgba(194,160,232,0.25);
}

.tile-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lavender-deep);
  margin-bottom: 4px;
}

.tile-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.tile-body {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -----------------------------------------------------------
   CHIPS
----------------------------------------------------------- */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chip {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  border: 1px solid var(--border-soft);
  background: var(--white);
}

.chip-strong {
  background: var(--green-soft);
  border-color: var(--green-light);
}

/* -----------------------------------------------------------
   TRUST PANEL
----------------------------------------------------------- */
.trust-panel {
  margin-top: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}

.trust-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.trust-logo-pill {
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-soft);
  font-size: 0.85rem;
}

/* -----------------------------------------------------------
   STEPS
----------------------------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 14px 16px;
  border: 1px solid rgba(178,212,171,0.6);
}

.step-number {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green-muted);
  margin-bottom: 4px;
}

.step-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.step-body {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* -----------------------------------------------------------
   FAQ
----------------------------------------------------------- */
.faq-list {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  border: 1px solid var(--border-soft);
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 600;
}

.faq-answer {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* -----------------------------------------------------------
   CTA
----------------------------------------------------------- */
.section-cta {
  margin-top: 26px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-cta-text {
  font-size: 1rem;
  font-weight: 600;
}

.section-cta-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-cta button {
  border-radius: var(--radius-pill);
  border: none;
  background: var(--green-muted);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

/* ===========================================================
   FOOTER (NEW LOOK + OLD LINKS)
=========================================================== */
.site-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(212,212,224,0.7);
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--lavender-deep);
}

/* ===========================================================
   AI ASSISTANT — DRAGGABLE PANEL (POLISHED VERSION)
   Restores original professional styling, updated to match
   your current brand palette + keeps draggable behavior.
=========================================================== */

/* -----------------------------------------------------------
   CARD WRAPPER (draggable container)
----------------------------------------------------------- */
.assistant-card {
  position: absolute;
  top: 140px;
  right: 40px;
  width: 360px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--lavender-deep);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  cursor: grab;
  z-index: 50;
  transition: box-shadow .25s ease, transform .25s ease;
}

/* Hover polish */
.assistant-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

/* -----------------------------------------------------------
   RIBBON GLOW (restores original depth)
----------------------------------------------------------- */
.assistant-ribbon {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(194,160,232,0.45),
    transparent 55%
  );
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 0;
}

/* -----------------------------------------------------------
   INNER LAYOUT (keeps content above ribbon)
----------------------------------------------------------- */
.assistant-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* -----------------------------------------------------------
   HEADER BAR (draggable handle)
----------------------------------------------------------- */
.assistant-header-bar {
  background: var(--lavender-soft);
  padding: 14px 20px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: grab;
}

.assistant-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lavender-deep);
  letter-spacing: 0.04em;
}

.assistant-controls {
  display: flex;
  gap: 8px;
}

.assistant-btn {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: var(--yellow-warm);
  border: 1px solid var(--yellow-bright);
  font-size: 14px;
  font-weight: bold;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* -----------------------------------------------------------
   BODY — TOP SECTION (collapsible)
----------------------------------------------------------- */
.assistant-body-top {
  padding: 16px 0 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assistant-card.minimized .assistant-body-top {
  display: none;
}

.assistant-prompt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Badge row */
.assistant-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(194,160,232,0.35);
  font-size: 0.85rem;
  color: #4B3A7A;
}

/* -----------------------------------------------------------
   TYPING SIMULATION + CURSOR
----------------------------------------------------------- */
.assistant-suggestion {
  font-size: 0.9rem;
  color: var(--text-light);
  min-height: 1.2em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease;
  white-space: pre-wrap;
  display: inline-block;
}

.assistant-suggestion.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Blinking cursor */
#assistantSuggestion.show-cursor::after {
  content: "|";
  margin-left: 4px;
  opacity: 1;
  animation: blink 0.8s infinite;
  pointer-events: none;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* -----------------------------------------------------------
   INPUT BAR
----------------------------------------------------------- */
.assistant-input-shell {
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-soft);
  background: var(--white);
}

.assistant-input-shell input {
  border: none;
  background: transparent;
  font-size: 0.95rem;
  width: 100%;
  color: var(--text-main);
}

.assistant-input-shell input::placeholder {
  color: var(--text-light);
}

.assistant-input-shell button {
  border-radius: var(--radius-pill);
  border: none;
  background: var(--green-muted);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 12px;
  cursor: pointer;
}

/* -----------------------------------------------------------
   FOOTER (optional status row)
----------------------------------------------------------- */
.assistant-footer {
  display: flex;
  justify-content: space-between;
  color: var(--text-light);
  font-size: 0.8rem;
  margin-top: 6px;
}

/* -----------------------------------------------------------
   MINIMIZED STATE (PILL)
----------------------------------------------------------- */
.assistant-card.minimized {
  width: auto;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--green-soft);
  border: 1px solid var(--green-muted);
}

.assistant-card.minimized .assistant-header-bar {
  border-radius: var(--radius-pill);
  padding: 10px 16px;
}

/* -----------------------------------------------------------
   CLOSE → REOPEN PILL
----------------------------------------------------------- */
.assistant-card.hidden {
  display: none;
}

.assistant-reopen {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--lavender-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  z-index: 40;
  box-shadow: var(--shadow-soft);
  display: none;
}

/* -----------------------------------------------------------
   DRAGGING
----------------------------------------------------------- */
.assistant-card.dragging {
  cursor: grabbing;
  opacity: 0.9;
}

/* ===========================================================
   RESPONSIVE
=========================================================== */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .assistant-card {
    position: static;
    width: 100%;
    margin-top: 24px;
    cursor: default;
  }

  .assistant-header-bar {
    cursor: default;
  }

  .assistant-reopen {
    bottom: 16px;
    right: 16px;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .subnav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .trust-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

