/* ===== Tokens ===== */
:root {
  --ink: #1B2A4A;
  --ink-2: #12203a;
  --paper: #FBF6EF;
  --paper-2: #F2EBDF;
  --coral: #FF7A59;
  --coral-2: #E35D3E;
  --gold: #E8AC42;
  --teal: #3E7C79;
  --line: rgba(27, 42, 74, 0.12);
  --line-dark: rgba(251, 246, 239, 0.16);

  --font-display: "Newsreader", serif;
  --font-body: "Sora", sans-serif;
  --font-mono: "Space Mono", monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-card: 0 18px 40px -22px rgba(27, 42, 74, 0.35);
  --shadow-lift: 0 24px 48px -20px rgba(27, 42, 74, 0.45);
}

/* ===== Reset ===== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(27, 42, 74, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.brand-mark { width: 32px; height: 32px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--paper);
  letter-spacing: -0.01em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-menu > a:not(.btn-login) {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--paper);
  opacity: 0.82;
  transition: opacity 0.2s ease;
}
.nav-menu > a:not(.btn-login):hover { opacity: 1; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(251, 246, 239, 0.55);
  padding: 4px 2px;
}
.lang-btn.is-active { color: var(--coral); font-weight: 700; }
.lang-sep { color: rgba(251, 246, 239, 0.35); }

.btn-login {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-login:hover { background: #fff; transform: translateY(-1px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  border: 1.5px solid transparent;
}

.btn--primary {
  background: var(--coral);
  color: var(--ink-2);
}
.btn--primary:hover { background: var(--coral-2); color: var(--paper); transform: translateY(-2px); }

.btn--ghost {
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.section--contact .btn--ghost:hover,
.hero .btn--ghost:hover { background: rgba(251, 246, 239, 0.1); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--paper);
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--coral);
  margin-bottom: 18px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(251, 246, 239, 0.78);
  max-width: 46ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Signature element: weekly calendar strip */
.hero-visual {
  display: flex;
  justify-content: center;
}

.calendar-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  background: rgba(251, 246, 239, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  transform: rotate(-2.2deg);
  box-shadow: var(--shadow-lift);
  width: 100%;
  max-width: 420px;
}

.strip-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 190px;
}

.day-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: rgba(251, 246, 239, 0.5);
  margin-bottom: 4px;
}

.appt-block {
  width: 100%;
  border-radius: 7px;
  display: flex;
  align-items: flex-start;
  padding: 6px 4px;
  opacity: 0;
  transform: translateY(6px);
}

.appt-time {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  color: var(--ink);
  opacity: 0.75;
  writing-mode: vertical-rl;
}

.h-sm { height: 40px; }
.h-md { height: 68px; }
.h-lg { height: 104px; }

.appt-block--coral { background: var(--coral); }
.appt-block--gold { background: var(--gold); }
.appt-block--teal { background: var(--teal); }
.appt-block--teal .appt-time { color: var(--paper); opacity: 0.85; }
.appt-block--paper { background: var(--paper); }

@media (prefers-reduced-motion: no-preference) {
  .appt-block {
    animation: appt-in 0.6s cubic-bezier(.2,.7,.3,1) forwards;
  }
  .strip-day:nth-child(1) .appt-block:nth-child(2) { animation-delay: 0.05s; }
  .strip-day:nth-child(1) .appt-block:nth-child(3) { animation-delay: 0.15s; }
  .strip-day:nth-child(2) .appt-block { animation-delay: 0.1s; }
  .strip-day:nth-child(3) .appt-block:nth-child(2) { animation-delay: 0.2s; }
  .strip-day:nth-child(3) .appt-block:nth-child(3) { animation-delay: 0.3s; }
  .strip-day:nth-child(4) .appt-block { animation-delay: 0.22s; }
  .strip-day:nth-child(5) .appt-block:nth-child(2) { animation-delay: 0.28s; }
  .strip-day:nth-child(5) .appt-block:nth-child(3) { animation-delay: 0.38s; }
  .strip-day:nth-child(6) .appt-block { animation-delay: 0.34s; }
}
@media (prefers-reduced-motion: reduce) {
  .appt-block { opacity: 1; transform: none; }
}

@keyframes appt-in {
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--alt { background: var(--paper-2); }
.section--dark {
  background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%);
  color: var(--paper);
}

.eyebrow--section { color: var(--coral-2); }
.section--dark .eyebrow { color: var(--coral); }

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.01em;
  max-width: 34ch;
  margin-bottom: 48px;
}

.section-sub {
  font-size: 1.02rem;
  color: rgba(251, 246, 239, 0.78);
  max-width: 48ch;
  margin: -30px 0 34px;
}

/* Features grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.section--alt .feature-card { background: var(--paper); }
.js-ready .feature-card { opacity: 0; transform: translateY(14px); }
.js-ready .feature-card.in-view { opacity: 1; transform: none; }
.feature-card:hover {
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 122, 89, 0.35);
}

.feature-icon {
  width: 30px;
  height: 30px;
  color: var(--coral-2);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(27, 42, 74, 0.72);
}

/* Steps (real sequence -> numbered) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 8px;
  border-top: 2px solid var(--coral);
}

.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--coral-2);
  margin-bottom: 16px;
}

.step h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: rgba(27, 42, 74, 0.72);
}

/* Roles */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.role-card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px 26px;
}

.role-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(62, 124, 121, 0.14);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.role-card p {
  font-size: 0.96rem;
  line-height: 1.55;
  color: rgba(27, 42, 74, 0.78);
}

/* Contact */
.section--contact { text-align: center; }
.contact-inner { display: flex; flex-direction: column; align-items: center; }
.section--contact h2 { max-width: 26ch; margin-left: auto; margin-right: auto; }
.section--contact .section-sub { margin-left: auto; margin-right: auto; text-align: center; }
.contact-actions { justify-content: center; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink-2);
  color: rgba(251, 246, 239, 0.6);
  padding: 26px 0;
  font-size: 0.85rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  text-align: center;
}
.footer-sep { opacity: 0.5; }

/* ===== Responsive ===== */
@media (max-width: 1180px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }
  .nav-menu.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 12px; }
  .calendar-strip { max-width: 340px; transform: rotate(-1.4deg); }
  .strip-day { min-height: 150px; }

  .card-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .roles-grid { grid-template-columns: 1fr; }

  .section { padding: 72px 0; }
  .section-sub { margin-top: -20px; }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 72px; }
  .calendar-strip { padding: 16px 10px; gap: 6px; }
  .strip-day { min-height: 120px; }
  .h-lg { height: 76px; }
  .h-md { height: 52px; }
  .h-sm { height: 32px; }
}
