/* Sketch Workshop — site styles
   Palette: cutting-mat green (nudged toward the logo's teal), mat grid yellow, paper, graphite, marker yellow */
:root {
  --mat: #185a4f;
  --mat-deep: #12493f;
  --mat-line: rgba(236, 222, 120, 0.16);
  --mat-line-major: rgba(236, 222, 120, 0.32);
  --paper: #f4f6f3;
  --sheet: #ffffff;
  --graphite: #23272b;
  --pencil: #5f666c;
  --rule: #d9ddd8;
  --marker: #f2c230;
  --marker-deep: #d9a90f;
  --whatsapp: #1f9d55;
  --error: #b3261e;
  --radius-sheet: 6px;
  --radius-control: 4px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

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

a { color: inherit; }

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

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

/* ---------- Header ---------- */
.site-header {
  background: var(--mat-deep);
  color: #fff;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-stretch: 112%;
  font-size: 19px;
  letter-spacing: -0.01em;
  margin-right: auto;
}

.brand img { width: auto; height: 46px; flex: none; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}

.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.site-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--marker); border-radius: 0; }

/* language dropdown: the current language shows on the button */
.lang-picker { position: relative; }

.lang-current {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 14px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-control);
  padding: 6px 10px;
  cursor: pointer;
}

.lang-current:hover,
.lang-current[aria-expanded="true"] { border-color: #fff; }
.lang-current svg { width: 12px; height: 12px; transition: transform 0.15s ease; }
.lang-current[aria-expanded="true"] svg { transform: rotate(180deg); }
.lang-code { display: none; }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--sheet);
  border-radius: var(--radius-sheet);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.45);
  z-index: 40;
}

.lang-menu[hidden] { display: none; }

.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  font: inherit;
  font-size: 15px;
  text-align: left;
  color: var(--graphite);
  background: transparent;
  border: 0;
  border-radius: var(--radius-control);
  padding: 9px 10px;
  cursor: pointer;
}

.lang-menu button:hover { background: var(--paper); }
.lang-menu button[aria-current="true"] { font-weight: 650; }
.lang-menu button[aria-current="true"]::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--mat);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
}

.menu-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  border-radius: var(--radius-control);
  padding: 13px 22px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary { background: var(--marker); color: var(--graphite); }
.btn-primary:hover { background: var(--marker-deep); }
.btn-primary[disabled] { opacity: 0.6; cursor: progress; }

.btn-ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}

.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Cutting mat (signature surface) ---------- */
.mat {
  position: relative;
  background-color: var(--mat);
  background-image:
    linear-gradient(var(--mat-line-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line-major) 1px, transparent 1px),
    linear-gradient(var(--mat-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--mat-line) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  color: #fff;
}

/* ruler scale along the top edge of the mat */
.mat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 14px;
  background-image:
    repeating-linear-gradient(90deg, rgba(236, 222, 120, 0.75) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(90deg, rgba(236, 222, 120, 0.55) 0 1px, transparent 1px 24px);
  background-size: 100% 14px, 100% 7px;
  background-repeat: no-repeat;
  background-position: -1px 0, -1px 0;
  pointer-events: none;
}

/* ---------- Home hero ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: 56px;
  align-items: start;
  padding-top: 72px;
  padding-bottom: 80px;
}

.hero-copy { padding-top: 24px; }

.hero h1,
.page-hero h1 {
  font-stretch: 118%;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}

.hero h1 { font-size: clamp(40px, 5.4vw, 66px); max-width: 12ch; }

.hero-lead {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
  margin: 0 0 36px;
}

.direct {
  border-top: 1px solid rgba(236, 222, 120, 0.4);
  padding-top: 20px;
  max-width: 46ch;
}

.direct p { margin: 0 0 14px; color: rgba(255, 255, 255, 0.8); font-size: 15px; }

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

/* ---------- Sheet (the quote form sits on the mat like paper) ---------- */
.sheet {
  background: var(--sheet);
  color: var(--graphite);
  border-radius: var(--radius-sheet);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 18px 40px -18px rgba(4, 28, 24, 0.6);
  padding: 32px;
}

.sheet h2 {
  font-stretch: 110%;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.sheet-intro { margin: 0 0 24px; color: var(--pencil); font-size: 15px; }

/* ---------- Form ---------- */
.field { margin-bottom: 18px; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

label,
.legend {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.optional { font-weight: 400; color: var(--pencil); }

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--graphite);
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-control);
  padding: 10px 12px;
}

textarea { min-height: 120px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--mat);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 90, 79, 0.18);
}

fieldset { border: 0; margin: 0 0 18px; padding: 0; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }

.choice { position: relative; }

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: block;
  font-size: 14px;
  padding: 8px 12px;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}

.choice input:checked + span {
  background: var(--mat);
  border-color: var(--mat);
  color: #fff;
}

.choice input:focus-visible + span { outline: 3px solid var(--marker); outline-offset: 2px; }

.file-drop {
  border: 1.5px dashed #b9c0ba;
  border-radius: var(--radius-control);
  padding: 14px;
  background: var(--paper);
}

.file-drop input { font-size: 14px; max-width: 100%; }

.hint { font-size: 13px; color: var(--pencil); margin: 6px 0 0; }

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

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

.form-actions .btn { width: 100%; }

.form-status {
  margin: 16px 0 0;
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--radius-control);
}

.form-status:empty { display: none; }
.form-status.is-ok { background: #e3f1e9; color: #134a33; }
.form-status.is-error { background: #fbe9e7; color: var(--error); }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--rule); }

.section h2 {
  font-stretch: 112%;
  font-size: clamp(28px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 40px;
}

/* process: a real sequence, so it is numbered */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 0 22px 0 0;
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--mat);
  color: var(--mat);
  font-weight: 700;
  background: var(--paper);
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
}

/* dimension-line connector between steps */
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 44px;
  right: 8px;
  border-top: 1.5px dashed #9aa79f;
}

.steps h3 { font-size: 17px; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--pencil); font-size: 15px; }

/* services summary */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--graphite);
}

.service-list a {
  display: block;
  text-decoration: none;
  padding: 26px 28px 28px 0;
  border-bottom: 1px solid var(--rule);
}

.service-list a:nth-child(odd) { border-right: 1px solid var(--rule); }
.service-list a:nth-child(even) { padding-left: 28px; }

.service-list h3 { font-stretch: 108%; font-size: 21px; margin: 0 0 6px; }
.service-list p { margin: 0 0 12px; color: var(--pencil); max-width: 44ch; }
.service-list .more { font-size: 14px; font-weight: 650; color: var(--mat); text-decoration: underline; text-underline-offset: 3px; }
.service-list a:hover h3 { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- Inner page hero ---------- */
.page-hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.page-hero h1 { font-size: clamp(38px, 5vw, 58px); }
.page-hero p { margin: 0; max-width: 52ch; font-size: 19px; color: rgba(255, 255, 255, 0.86); }

/* ---------- Services page ---------- */
.svc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  padding: 64px 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 20px;
}

.svc:last-of-type { border-bottom: 0; }

.svc h2 { font-stretch: 112%; font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; }
.svc-lead { margin: 0 0 24px; color: var(--pencil); }

.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.svc-cols h3 { font-size: 15px; margin: 0 0 10px; padding-bottom: 8px; border-bottom: 2px solid var(--graphite); }
.svc-cols ul { margin: 0; padding: 0; list-style: none; }
.svc-cols li { padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 16px; }

/* ---------- Work page ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }

.filter {
  font: inherit;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: #fff;
  color: var(--graphite);
  cursor: pointer;
}

.filter[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 32px;
}

.work-item[hidden] { display: none; }

.work-photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sheet);
  overflow: hidden;
  margin-bottom: 16px;
}

.work-photo img { width: 100%; height: 100%; object-fit: cover; }

.work-photo.placeholder {
  display: grid;
  place-items: center;
}

.work-photo.placeholder svg { width: 72px; height: 72px; opacity: 0.85; }

.work-tag { font-size: 13px; font-weight: 650; color: var(--mat); margin: 0 0 4px; }
.work-item h3 { font-stretch: 108%; font-size: 21px; margin: 0 0 6px; }
.work-item p { margin: 0; color: var(--pencil); max-width: 48ch; }

/* ---------- Closing CTA ---------- */
.closing .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-top: 56px;
  padding-bottom: 56px;
}

.closing h2 { font-stretch: 112%; font-size: clamp(26px, 3vw, 34px); margin: 0 0 6px; letter-spacing: -0.02em; }
.closing p { margin: 0; color: rgba(255, 255, 255, 0.84); }
.closing-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--graphite);
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.site-footer a { color: #fff; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.45);
  z-index: 20;
}

.wa-float svg { width: 28px; height: 28px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .hero-copy { padding-top: 0; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 52px; }
  .steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after { top: 42px; bottom: -22px; left: 18px; right: auto; border-top: 0; border-left: 1.5px dashed #9aa79f; }
  .svc { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .menu-toggle {
    display: inline-flex;
    font: inherit;
    font-size: 14px;
    color: #fff;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-control);
    padding: 6px 10px;
    cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    background: var(--mat-deep);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    z-index: 30;
  }
  .site-nav.is-open { display: flex; }
  .site-header { position: relative; }
  .site-header .wrap { gap: 10px; }
  .brand img { height: 40px; }
  .sheet { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 64px 0; }
  .service-list { grid-template-columns: 1fr; }
  .service-list a:nth-child(odd) { border-right: 0; }
  .service-list a:nth-child(even) { padding-left: 0; }
  .svc-cols { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand { font-size: 17px; gap: 8px; }
  .lang-name { display: none; }
  .lang-code { display: inline; }
}

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