/* ==========================================================================
   Xsist — design tokens
   Clean, light, airy palette (soft lavender/purple on white), replacing the
   heavier look of the Hostinger AI build. Fonts match the original site's
   actual choices: Sulphur Point (display) + Source Sans 3 (body).
   ========================================================================== */
:root {
  --color-bg: #fbf9fe;
  --color-surface: #ffffff;
  --color-surface-alt: #f3ecfb;
  --color-text: #2e2a38;
  --color-muted: #726a7e;
  --color-border: #e9dff5;
  --color-accent: #8a5cc9;
  --color-accent-dark: #6f3fae;
  --color-accent-light: #c9a8ee;

  --font-display: "Sulphur Point", "Source Sans 3", sans-serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --max-width: 1100px;
  --radius: 16px;
  --shadow-sm: 0 1px 3px rgba(46, 42, 56, 0.08);
  --shadow-md: 0 16px 36px rgba(111, 63, 174, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

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

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75em;
}

.section { padding: 5rem 0; }
.section--alt { background: var(--color-surface-alt); }

.section-head { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

.prose p { color: var(--color-text); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 1.8em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-accent); color: #fff; }
.btn--primary:hover { background: var(--color-accent-dark); }
.btn--outline { background: transparent; border-color: var(--color-accent); color: var(--color-accent-dark); }
.btn--outline:hover { background: var(--color-accent); color: #fff; }
.btn--light { background: #fff; color: var(--color-accent-dark); }
.btn--sm { padding: 0.55em 1.2em; font-size: 0.85rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn--disabled { background: transparent; border-color: var(--color-border); color: var(--color-muted); cursor: default; pointer-events: none; }
.btn--disabled:hover { transform: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 254, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}
.brand img { height: 32px; width: 32px; }
.site-footer .brand img { height: 28px; width: 28px; }
.main-nav { display: flex; align-items: center; gap: 1.75rem; }
.main-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--color-text); }
.main-nav a.is-active, .main-nav a:hover { color: var(--color-accent-dark); }
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer; padding: 0.4rem;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--color-text); margin: 5px 0;
}
@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: 64px 0 0 0; background: var(--color-bg);
    flex-direction: column; align-items: stretch; padding: 1.5rem; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.25s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--color-border); }
  .main-nav a { display: block; padding: 0.9rem 0.25rem; }
}

/* Hero */
.hero { padding: 4rem 0 2rem; text-align: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 5.5rem); }

/* Feature panel (alternating image/text) */
.feature-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.feature-panel.image-right .panel-image { order: 2; }
@media (max-width: 800px) {
  .feature-panel { grid-template-columns: 1fr; }
  .feature-panel.image-right .panel-image { order: 0; }
}
.panel-image img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* Grids / cards */
.grid { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card__cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: calc(var(--radius) - 4px); margin-bottom: 0.4rem; }
.card h3 { margin: 0; }
.card__meta { color: var(--color-accent-dark); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.card p { color: var(--color-muted); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* CTA band */
.cta-band { background: var(--color-accent-dark); color: #fff; text-align: center; padding: 4.5rem 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 560px; margin: 0 auto 1.5rem; }
.cta-band .btn-row { justify-content: center; }

/* Scheduler */
.scheduler-wrap {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  min-height: 300px;
}

/* Footer */
.site-footer { background: var(--color-text); color: rgba(255, 255, 255, 0.78); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 {
  color: #fff; font-family: var(--font-body); font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { text-decoration: none; color: inherit; }
.footer-grid a:hover { color: #fff; }
.site-footer .brand { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.25rem; font-size: 0.85rem; text-align: center; }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: #fff; }

.text-center { text-align: center; }
.muted { color: var(--color-muted); }
.badge {
  display: inline-block; background: var(--color-surface-alt); color: var(--color-accent-dark);
  border-radius: 999px; padding: 0.25em 0.8em; font-size: 0.8rem; font-weight: 700;
}

/* Forms */
.form { display: grid; gap: 1rem; max-width: 560px; }
.form label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 0.4rem; }
.form input, .form textarea {
  width: 100%; padding: 0.75em 0.9em; border-radius: 8px; border: 1px solid var(--color-border);
  font-family: inherit; font-size: 1rem; background: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.notice {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-accent-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
