/* ============================================================
   Rasmus Kautto — rasmuskautto.fi
   Warm Scandinavian editorial. Hand-written, no framework.
   ============================================================ */

:root {
  /* palette */
  --paper:      #F6F2EA;
  --paper-2:    #EFE8DA;
  --card:       #FCFAF5;
  --ink:        #1B1714;
  --ink-soft:   #4C453C;
  --ink-mute:   #6E665B;
  --line:       #E0D8C8;
  --line-strong:#D2C8B5;
  --accent:     #C2522C;   /* burnt sienna */
  --accent-deep:#9F3F1E;
  --accent-soft:#F0D9CC;
  --pine:       #2C5345;   /* secondary deep green */

  /* type */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* metrics */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(27,23,20,.04), 0 14px 40px -22px rgba(27,23,20,.28);
  --shadow-lg: 0 30px 70px -34px rgba(27,23,20,.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
}
.skip-link:focus { left: 16px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn.full { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(159,63,30,.7);
}
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(27,23,20,.03); transform: translateY(-2px); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px -20px rgba(27,23,20,.5);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
}
.brand-mark {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.footer-brand .brand-mark { width: 40px; height: 40px; border-radius: 11px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links > a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .22s ease;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-links > a.active::after,
.nav-links > a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.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); }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.subhead { margin-top: clamp(56px, 8vw, 92px); }
.section-head.left { margin-bottom: 0; }

.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker.accent-light { color: var(--accent-soft); }

h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section-sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-mute);
  max-width: 56ch;
}
.section-sub a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }

.card-grid { display: grid; gap: 22px; }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(48px, 7vw, 90px);
  padding-bottom: clamp(56px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 88% 12%, rgba(194,82,44,.10), transparent 60%),
    radial-gradient(46% 50% at 8% 96%, rgba(44,83,69,.08), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--pine);
  background: rgba(44,83,69,.09);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(33px, 6vw, 66px);
  font-weight: 600;
  letter-spacing: -.025em;
}
.lead {
  margin-top: 22px;
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink-soft);
  max-width: 50ch;
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.trust-strip {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
}
.trust-strip li {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  padding-left: 24px;
}
.trust-strip li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* hero browser mockup */
.hero-visual { position: relative; }
.browser {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
.hero-visual:hover .browser { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 13px 16px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.browser-bar .dot:nth-child(1) { background: #E5836B; }
.browser-bar .dot:nth-child(2) { background: #E7C16B; }
.browser-bar .dot:nth-child(3) { background: #8FB89E; }
.browser-url {
  margin-left: 10px;
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
  color: var(--ink-mute);
  padding: 5px 12px;
}
.browser-body { padding: 20px; }
.mock-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.mock-logo { width: 56px; height: 14px; border-radius: 4px; background: var(--ink); }
.mock-links { display: flex; align-items: center; gap: 10px; }
.mock-links i { width: 26px; height: 7px; border-radius: 3px; background: var(--line-strong); }
.mock-cta { width: 40px; height: 16px; border-radius: 5px; background: var(--accent); }
.mock-hero { padding: 6px 0 22px; }
.mock-h1 { height: 17px; width: 86%; border-radius: 5px; background: var(--ink); margin-bottom: 9px; }
.mock-h1.short { width: 58%; }
.mock-text { height: 8px; width: 90%; border-radius: 4px; background: var(--line-strong); margin-top: 14px; }
.mock-text.w70 { width: 66%; margin-top: 8px; }
.mock-btn { width: 96px; height: 24px; border-radius: 7px; background: var(--accent); margin-top: 18px; }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock-card { height: 64px; border-radius: 10px; background: var(--paper-2); border: 1px solid var(--line); }

.badge-stamp {
  position: absolute;
  bottom: -18px;
  left: -14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  padding: 11px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.badge-stamp svg { color: var(--accent); }

/* ---------- outcomes ---------- */
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
.feature-icon svg {
  width: 24px; height: 24px;
  fill: none;
  stroke: var(--accent-deep);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { font-size: 21px; margin-bottom: 8px; }
.feature p { font-size: 15.5px; color: var(--ink-mute); }

/* ---------- sofia (dark band) ---------- */
.sofia {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  margin-inline: var(--gutter);
  padding-inline: clamp(28px, 5vw, 72px);
}
.sofia .container { padding-inline: 0; }
.sofia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.sofia h2 { color: var(--paper); font-size: clamp(28px, 3.8vw, 42px); }
.sofia-body p { color: rgba(246,242,234,.78); font-size: 17px; }
.sofia-body p + p { margin-top: 16px; }
.sofia-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.sofia-stats li {
  flex: 1 1 130px;
  background: rgba(246,242,234,.06);
  border: 1px solid rgba(246,242,234,.12);
  border-radius: 14px;
  padding: 18px 20px;
}
.sofia-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.sofia-stats span { font-size: 13.5px; color: rgba(246,242,234,.7); margin-top: 6px; display: block; }

/* ---------- pricing ---------- */
.price-grid { align-items: stretch; }
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-lg);
}
.price-card header h3 { font-size: 23px; }
.price-card.featured header h3 { color: var(--paper); }
.ideal { font-size: 14px; color: var(--ink-mute); margin-top: 8px; min-height: 2.6em; }
.price-card.featured .ideal { color: rgba(246,242,234,.7); }
.ribbon {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
}
.price { margin: 22px 0 24px; }
.price .amount { font-family: var(--serif); font-size: 42px; font-weight: 600; letter-spacing: -.02em; }
.price.small .amount { font-size: 34px; }
.price .per { font-size: 16px; color: var(--ink-mute); margin-left: 4px; }
.price-card.featured .price .per { color: rgba(246,242,234,.65); }
.vat {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--ink-mute);
}
.price-card.featured .vat { color: rgba(246, 242, 234, .58); }

.ticklist { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.ticklist li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--ink-soft);
}
.price-card.featured .ticklist li { color: rgba(246,242,234,.85); }
.ticklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.price-card.featured .ticklist li::before { background: var(--accent); }

.care-h { font-size: clamp(22px, 3vw, 30px); font-family: var(--serif); font-weight: 600; }
.care-grid { margin-top: 8px; }
.care-card {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease;
}
.care-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.care-card h4 { font-size: 19px; font-family: var(--serif); font-weight: 600; }
.care-card .price { margin: 14px 0 14px; }
.care-desc { font-size: 14.5px; color: var(--ink-mute); }

/* ---------- process ---------- */
.process { background: var(--paper-2); }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.step-num {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .08em;
}
.step h3 { font-size: 20px; margin: 14px 0 4px; }
.step-time {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--pine);
  background: rgba(44,83,69,.09);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.step p:not(.step-time) { font-size: 15px; color: var(--ink-mute); }

/* ---------- examples ---------- */
.demo-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.demo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.demo-thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  cursor: pointer;
  overflow: hidden;
}
.demo-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}
.demo-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(27, 23, 20, 0);
  transition: background .22s ease;
  z-index: 1;
}
.demo-card:hover .demo-thumb::before { background: rgba(27, 23, 20, .12); }
.thumb-rak { background: linear-gradient(150deg, #2C5345, #1d3a30); }
.thumb-kau { background: linear-gradient(150deg, #B86B5A, #8d4a3d); }
.thumb-b2b { background: linear-gradient(150deg, #2f4a63, #21384c); }
.demo-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(27, 23, 20, .42) 0%, transparent 28%);
  pointer-events: none;
}
.demo-tag {
  position: relative;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: #fff;
  background: rgba(27,23,20,.5);
  backdrop-filter: blur(4px);
  padding: 6px 12px;
  border-radius: 999px;
}
.demo-meta { padding: 22px 24px 26px; }
.demo-meta h3 { font-size: 21px; margin-bottom: 8px; }
.demo-meta p { font-size: 15px; color: var(--ink-mute); margin-bottom: 16px; }
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent-deep);
}
.link-arrow span { transition: transform .2s ease; }
.link-arrow:hover span { transform: translate(3px, -3px); }
.demo-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.link-muted {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-mute);
  border-bottom: 1px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}
.link-muted:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.examples-note {
  margin-top: 34px;
  text-align: center;
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-inline: auto;
}

/* ---------- faq ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line-strong);
  padding: 4px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--serif);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex: none;
  width: 22px; height: 22px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M11 5h2v6h6v2h-6v6h-2v-6H5v-2h6z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  overflow: hidden;
  padding: 0 4px 22px;
}
.faq-answer p { font-size: 15.5px; color: var(--ink-mute); max-width: 56ch; }

/* ---------- contact ---------- */
.contact { background: var(--ink); color: var(--paper); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact h2 { color: var(--paper); }
.contact-copy > p { margin-top: 18px; color: rgba(246,242,234,.78); font-size: 17px; max-width: 46ch; }
.booking-card {
  margin-top: 30px;
  padding: 22px 22px 24px;
  background: rgba(246, 242, 234, .06);
  border: 1px solid rgba(246, 242, 234, .14);
  border-radius: 16px;
}
.booking-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.booking-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(194, 82, 44, .18);
  color: #EC8C64;
}
.booking-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.booking-card h3 { font-size: 19px; color: var(--paper); margin-bottom: 6px; }
.booking-card p { font-size: 14.5px; color: rgba(246, 242, 234, .72); max-width: none; }

.contact-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(246, 242, 234, .5);
}
.contact-or::before,
.contact-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(246, 242, 234, .14);
}

.contact-direct { margin-top: 30px; display: flex; flex-direction: column; gap: 18px; }
.contact-direct li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid rgba(246,242,234,.14);
  padding-top: 16px;
}
.cd-label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(246,242,234,.55);
}
.contact-direct a { color: var(--accent); font-weight: 600; font-size: 18px; width: fit-content; }
.contact-direct a:hover { color: var(--accent-soft); }
.contact-direct li > span:not(.cd-label) { color: rgba(246,242,234,.85); }

.contact-form {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 38px);
  box-shadow: var(--shadow-lg);
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 11px;
  padding: 13px 15px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-mute); opacity: .8; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(194,82,44,.12);
}
.field input.invalid,
.field textarea.invalid { border-color: #c0392b; box-shadow: 0 0 0 4px rgba(192,57,43,.1); }
.form-note { margin-top: 14px; font-size: 14.5px; font-weight: 500; min-height: 1.2em; }
.form-note.ok { color: var(--pine); }
.form-note.err { color: #c0392b; }

/* ---------- footer ---------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-block: 48px 28px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-family: var(--serif); font-weight: 600; font-size: 18px; }
.footer-tag { font-size: 14px; color: var(--ink-mute); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { font-size: 14.5px; color: var(--ink-soft); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ink-mute);
}

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .browser { animation: none !important; }
}

/* gentle idle float for the hero mockup (used on touch/mobile where there is no hover) */
@keyframes browserFloat {
  0%, 100% { transform: perspective(1200px) rotateX(3deg) translateY(0); }
  50%      { transform: perspective(1200px) rotateX(3deg) translateY(-12px); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .card-grid.four { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; }
  .browser {
    transform: perspective(1200px) rotateX(3deg);
    animation: browserFloat 5.5s ease-in-out infinite;
  }
  .hero-visual:hover .browser { transform: perspective(1200px) rotateX(3deg); }
  .sofia-grid,
  .faq-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .sofia-grid { gap: 8px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter) 26px;
    box-shadow: 0 24px 40px -28px rgba(27,23,20,.5);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-links .btn { margin-top: 12px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card-grid.four,
  .card-grid.three,
  .steps { grid-template-columns: 1fr; }
  .sofia { margin-inline: 14px; border-radius: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .badge-stamp { left: 50%; transform: translateX(-50%); }
}
