/* ==========================================================================
   Scalora365 — global stylesheet
   Design tokens taken directly from the approved design file.
   ========================================================================== */

:root {
  --bg:        #FAF5EF;
  --bg-alt:    #F3ECE3;
  --ink:       #2A2420;
  --muted:     #6E6459;
  --faint:     #9A9082;
  --line:      #E3D9CB;
  --accent:    #C9633C;

  --dark-bg:    #2A2420;
  --dark-line:  #3A342E;
  --dark-text:  #FAF5EF;
  --dark-muted: #B8AEA2;
  --dark-dim:   #8A8074;
  --dark-link:  #C9C0B4;

  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --gutter: clamp(20px, 5vw, 48px);
  --shell:  1200px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: var(--accent); color: var(--bg); }

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

input, select, textarea, button { font-family: var(--sans); }

a { color: var(--ink); }
a:hover { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--dark-text);
  padding: 12px 18px;
  z-index: 100;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; top: 12px; color: var(--dark-text); }

/* ---------- layout helpers ---------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.shell--narrow { max-width: 900px; }
.shell--prose  { max-width: 800px; }

.section        { padding-top: clamp(72px, 10vw, 120px); padding-bottom: clamp(72px, 10vw, 120px); }
.section--tight { padding-top: clamp(64px, 9vw, 100px); padding-bottom: clamp(64px, 9vw, 100px); }
.section--hero  { padding-top: clamp(72px, 12vw, 140px); padding-bottom: clamp(56px, 8vw, 96px); }
.section--flush-top { padding-top: 0; }

.band     { background: var(--bg-alt); }
.band--ink { background: var(--dark-bg); }

/* ---------- typography ---------- */

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); }

.h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  max-width: 800px;
}
.h1--home { font-size: clamp(2.6rem, 6.5vw, 4.4rem); line-height: 1.08; margin-bottom: 28px; }
.h1--bare { margin-bottom: 0; }

.h2 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
  line-height: 1.15;
  margin: 0 0 20px;
}
.h2--sm { font-size: clamp(1.9rem, 4.2vw, 2.6rem); }
.h2--xs { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.h2--spaced { margin-bottom: 48px; }
.h2--spaced-lg { margin-bottom: 56px; }

.accent-italic { color: var(--accent); font-style: italic; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 40px;
  max-width: 620px;
}
.lead--tight { margin-bottom: 0; max-width: 600px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); }

.body-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0;
}
.pullquote--lg { font-size: 1.3rem; }

.footnote {
  font-size: 13px;
  font-style: italic;
  color: var(--faint);
  margin: 32px 0 0;
}
.footnote--center { text-align: center; }

.measure { max-width: 760px; }
.measure--sm { max-width: 700px; }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 30px;
  border-radius: 2px;
  min-height: 48px;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--solid  { background: var(--ink); color: var(--bg); }
.btn--solid:hover  { background: var(--accent); color: var(--bg); }
.btn--accent { background: var(--accent); color: var(--bg); }
.btn--accent:hover { background: #B4552F; color: var(--bg); }
.btn--ghost  { border-color: var(--ink); color: var(--ink); background: none; }
.btn--ghost:hover  { background: var(--ink); color: var(--bg); }
.btn--sm { font-size: 14.5px; padding: 13px 24px; }
.btn--nav { font-size: 14px; padding: 11px 22px; min-height: 44px; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
  min-height: 48px;
  white-space: nowrap;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 28px;
}

.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.split--mt { margin-top: 48px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 239, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }

.nav-desktop { display: flex; align-items: center; gap: 36px; }
.nav-desktop nav { display: flex; align-items: center; gap: 28px; }

.nav-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 4px;
}
.nav-link:hover { color: var(--accent); }
.nav-link.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child  { transform: translateY(-3.25px) rotate(-45deg); }

.nav-mobile {
  display: none;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 8px var(--gutter) 24px;
  flex-direction: column;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a.nav-link {
  font-size: 17px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 16px; font-size: 15px; padding: 14px 22px; }

@media (max-width: 859px) {
  .nav-desktop { display: none; }
  .nav-toggle  { display: flex; }
}

/* ---------- trust strip ---------- */

.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip .shell {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
}
.trust-strip span { font-size: 13px; color: var(--muted); }

/* ---------- tag row ---------- */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin: 0 0 72px;
  padding: 0;
  list-style: none;
}
.tag-row li { font-size: 14px; color: var(--ink); padding-bottom: 2px; }

/* ---------- numbered list rows ---------- */

.rows { border-top: 1px solid var(--line); }

.row-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.row-item__num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent);
  font-style: italic;
}
.row-item h3 { font-size: 1.3rem; margin: 0 0 8px; }
.row-item p  { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0; max-width: 640px; }

@media (max-width: 520px) {
  .row-item { grid-template-columns: 1fr; gap: 8px; }
}

/* stacked rows without a number column */
.stack-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.stack-item h3 { font-size: 1.25rem; margin: 0; }
.stack-item p  { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 4px 0 0; max-width: 680px; }

/* ---------- feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 48px;
}
.grid--work  { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; }
.grid--promise { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 32px; }

.feature__num {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-style: italic;
  color: var(--accent);
  margin: 0 0 16px;
}
.feature__num--sm { font-size: 2rem; margin-bottom: 14px; }
.feature h3 { font-size: 1.2rem; margin: 0 0 10px; }
.feature h3.is-sm { font-size: 1.15rem; margin-bottom: 8px; }
.feature p  { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; }
.feature p.is-sm { font-size: 14px; line-height: 1.6; }

/* ---------- clients ---------- */

.client-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}
.client-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px;
}
.client-item h3 { font-size: 1.4rem; margin: 0; }
.client-item p  { font-size: 14px; color: var(--muted); margin: 2px 0 0; }

.status { font-size: 12.5px; color: var(--accent); }

/* ---------- services page ---------- */

.service-block {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}
.service-block h3 { font-size: 1.5rem; margin: 0 0 14px; }
.service-block__desc { font-size: 15px; line-height: 1.65; color: var(--muted); margin: 0 0 16px; max-width: 680px; }
.service-block__incl { font-size: 13.5px; line-height: 1.7; color: var(--faint); margin: 0; max-width: 680px; }
.service-block__note { font-size: 13px; font-style: italic; color: var(--accent); margin: 10px 0 0; }

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.price-row__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 16px; }
.price-row h3 { font-size: 1.15rem; margin: 0; }
.price-row__desc  { font-size: 14px; color: var(--muted); }
.price-row__price { font-size: 15px; color: var(--accent); font-weight: 500; white-space: nowrap; }

.section-note { font-size: 14.5px; color: var(--muted); margin: 0 0 40px; }

/* ---------- portfolio ---------- */

.project__thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(135deg, #F3ECE3, #F3ECE3 10px, #EDE4D8 10px, #EDE4D8 20px);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}
.project__thumb img { width: 100%; height: 100%; object-fit: cover; }
.project__thumb span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--faint); text-align: center; padding: 0 12px; }

.project__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.project h3 { font-size: 1.35rem; margin: 0; }
.project__type { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.project__services { font-size: 13.5px; color: var(--faint); margin: 0 0 12px; }
.project__quote { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.6; color: var(--ink); margin: 0; }

/* ---------- about ---------- */

.prose-stack { display: flex; flex-direction: column; gap: 48px; }
.prose-stack h2 { font-size: 1.4rem; margin: 0 0 14px; }

.promise-item {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--ink);
}
.promise-item::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* ---------- contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 64px;
}

.contact-details { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.contact-details__label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.contact-details a,
.contact-details p { font-size: 16px; color: var(--ink); text-decoration: none; margin: 0; line-height: 1.5; }
.contact-details a:hover { color: var(--accent); }

.contact-actions { display: flex; flex-direction: column; gap: 14px; max-width: 280px; }

.form { display: flex; flex-direction: column; gap: 20px; }
.form label.field-label {
  display: block;
  font-size: 12.5px;
  color: var(--faint);
  margin-bottom: 6px;
}
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--line);
  background: none;
  font-size: 15px;
  padding: 10px 2px;
  min-height: 44px;
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); }
.form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: none;
  font-size: 15px;
  padding: 12px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  border-radius: 0;
}
.checks { display: flex; flex-direction: column; gap: 10px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
  min-height: 24px;
}
.check input { width: 16px; height: 16px; accent-color: var(--accent); }

.form .btn { align-self: flex-start; margin-top: 8px; }
.form-note { font-size: 13px; color: var(--faint); margin: 4px 0 0; }

.form-status { font-size: 14px; margin: 0; }
.form-status--error { color: #B4402A; }
.form-status[hidden] { display: none; }

.form-success { padding: 40px 0; }
.form-success p:first-child {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0 0 12px;
}
.form-success p:last-child { font-size: 15px; color: var(--muted); margin: 0; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- dark CTA band ---------- */

.cta-band { text-align: center; }
.cta-band h2 { color: var(--dark-text); margin: 0 0 20px; font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
.cta-band p  { font-size: 1.05rem; line-height: 1.7; color: var(--dark-muted); margin: 0 0 36px; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--dark-bg);
  border-top: 1px solid var(--dark-line);
}
.site-footer__cols {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 88px) var(--gutter) 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}
.site-footer__brand {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 10px;
  text-decoration: none;
  display: inline-block;
}
.site-footer__brand:hover { color: var(--accent); }
.site-footer p { font-size: 13px; color: var(--dark-dim); margin: 0; line-height: 1.6; }
.site-footer__heading {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-dim);
  margin-bottom: 16px;
}
.site-footer__list { display: flex; flex-direction: column; gap: 10px; }
.site-footer__list a,
.site-footer__list span { font-size: 14px; color: var(--dark-link); text-decoration: none; }
.site-footer__list a:hover { color: var(--accent); }
.site-footer__legal { border-top: 1px solid var(--dark-line); }
.site-footer__legal p {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--gutter);
  font-size: 12.5px;
  color: var(--dark-dim);
}

/* ---------- floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  z-index: 60;
  transition: transform .18s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: var(--bg); }

/* ---------- 404 ---------- */

.error-page { text-align: center; padding: clamp(96px, 16vw, 180px) var(--gutter); }
.error-page .h1 { margin-left: auto; margin-right: auto; }
.error-page .lead { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media print {
  .site-header, .wa-float, .site-footer { display: none; }
}
