/* ==========================================================================
   Waatim — Global stylesheet
   ========================================================================== */

:root {
  --ink: #0a1020;
  --ink-2: #121a2e;
  --ink-3: #1c2540;
  --text: #1b2333;
  --muted: #5c6779;
  --line: #e5e8f0;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --accent: #c79a3a;
  --accent-soft: #f6efdd;
  --accent-dark: #a97f26;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 16, 32, 0.06), 0 4px 12px rgba(10, 16, 32, 0.05);
  --shadow-md: 0 12px 32px rgba(10, 16, 32, 0.10);
  --wrap: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica,
    Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

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

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

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

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

a {
  color: var(--ink);
  text-decoration: none;
}

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

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

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--ink);
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.1em;
}

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  font-size: 1.16rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-top: 3px;
}

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

.nav a {
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
  background: #eef1f8;
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -6px;
}

.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

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

  .nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 22px 18px;
    box-shadow: var(--shadow-md);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 13px 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-cta {
    margin: 14px 0 0;
  }

  .nav-cta .btn {
    width: 100%;
  }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: var(--ink-3);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: var(--accent);
  color: #241a04;
}

.btn-accent:hover {
  background: #d8a94a;
  color: #241a04;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-outline {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.42;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, rgba(10, 16, 32, 0.94) 12%, rgba(10, 16, 32, 0.68) 58%, rgba(10, 16, 32, 0.5) 100%);
}

.hero-inner {
  padding: 108px 0 96px;
  max-width: 720px;
}

.hero h1 {
  color: #fff;
  margin-bottom: 0.35em;
}

.hero .lede {
  font-size: 1.14rem;
  color: rgba(255, 255, 255, 0.84);
  margin-bottom: 1.9em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  display: block;
}

.hero .eyebrow {
  color: #e9c877;
}

.hero .eyebrow::before {
  background: #e9c877;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  list-style: none;
  padding-left: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ---------- Page header (inner pages) ---------- */

.page-head {
  background: var(--ink);
  color: #fff;
  padding: 66px 0 60px;
}

.page-head h1 {
  color: #fff;
  margin-bottom: 0.25em;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}

.page-head p {
  color: rgba(255, 255, 255, 0.75);
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Sections ---------- */

section {
  padding: 78px 0;
}

.section-alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 660px;
  margin-bottom: 46px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Grid & cards ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 980px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d5dbe8;
}

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eef1f6;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 0.45em;
}

.card-body p {
  color: var(--muted);
  font-size: 0.97rem;
}

.card-body .tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}

.card-link {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-top: 8px;
}

.card-link::after {
  content: "→";
  transition: transform 0.16s ease;
}

.card-link:hover::after {
  transform: translateX(3px);
}

/* ---------- Feature list ---------- */

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 0.97rem;
  color: var(--text);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid #e7d5a8;
}

.checklist li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 0.62em;
  width: 5px;
  height: 8px;
  border-right: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(42deg);
}

/* ---------- Split layout ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 980px) {
  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

.split-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

/* ---------- Service detail blocks ---------- */

.service-block {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.service-block:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.service-index {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

.stats li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
}

.stats strong {
  display: block;
  font-size: 1.75rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stats span {
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
}

.step {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-weight: 700;
  color: var(--accent-dark);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.step h3 {
  margin-bottom: 0.3em;
  font-size: 1.08rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

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

.cta-band {
  background: var(--ink-2);
  color: #fff;
  border-radius: var(--radius);
  padding: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.25em;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cta-band p {
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
  max-width: 520px;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 46px;
  align-items: start;
}

@media (max-width: 980px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.info-card + .info-card {
  margin-top: 18px;
}

.info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.info-value {
  font-size: 1.08rem;
  font-weight: 600;
  word-break: break-word;
}

.info-value a {
  border-bottom: 1px solid var(--accent);
}

.info-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 8px 0 0;
}

form.stack {
  display: grid;
  gap: 16px;
}

label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.97rem;
  padding: 12px 14px;
  border: 1px solid #d8dde9;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(199, 154, 58, 0.16);
}

.form-note {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 0;
}

.form-status {
  font-size: 0.9rem;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid #e7d5a8;
  color: #6b5210;
  display: none;
}

.form-status.is-visible {
  display: block;
}

/* ---------- Legal pages ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 52px;
  align-items: start;
}

@media (max-width: 980px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.toc {
  position: sticky;
  top: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.toc h2 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.toc ol {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
}

.toc li {
  margin-bottom: 7px;
}

.toc a {
  color: var(--muted);
}

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

@media (max-width: 980px) {
  .toc {
    position: static;
  }
}

.legal-body {
  max-width: 780px;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin-top: 2.1em;
  padding-top: 1.1em;
  border-top: 1px solid var(--line);
  scroll-margin-top: 96px;
}

.legal-body h2:first-of-type {
  margin-top: 1.4em;
}

.legal-body h3 {
  font-size: 1.03rem;
  margin-top: 1.7em;
}

.legal-body ul,
.legal-body ol {
  padding-left: 22px;
  color: var(--text);
}

.legal-body li {
  margin-bottom: 9px;
}

.meta-line {
  font-size: 0.86rem;
  color: var(--muted);
}

.callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 24px 0;
  font-size: 0.96rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.placeholder {
  background: var(--accent-soft);
  border-bottom: 1px dashed var(--accent-dark);
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 62px 0 30px;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.site-footer .brand {
  color: #fff;
  margin-bottom: 14px;
}

.site-footer .brand small {
  color: rgba(255, 255, 255, 0.5);
}

.site-footer h3 {
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom ul {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

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

.notfound {
  text-align: center;
  padding: 120px 0;
}

.notfound .code {
  font-size: 4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.04em;
}
