/* ============================================================
   Xilean — style.css
   Light theme · navy accent #1E3A8A · warm off-white background
   ============================================================ */

:root {
  --bg: #F8F7F4;
  --bg-soft: #F0EFEA;
  --surface: #FFFFFF;
  --ink: #1B2330;
  --ink-soft: #4B5568;
  --ink-faint: #7A8494;
  --navy: #1E3A8A;
  --navy-bright: #1D4ED8;
  --navy-mid: #3B5BDB;
  --navy-tint: #E6EAF6;
  --line: #E3E1DA;
  --footer-bg: #141B2E;
  --footer-ink: #C9D1E3;
  --font-sans: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------------- Brand (top-left plain text) ---------------- */
.brand {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 60;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy);
  text-decoration: none;
}

/* ---------------- Floating icon capsule rail ---------------- */
.rail {
  position: fixed;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.rail-toggle {
  display: none;
}

.rail-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink-faint);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rail-link:hover,
.rail-link.active {
  background-color: var(--navy);
  color: #FFFFFF;
}

.rail-link::after {
  content: attr(data-label);
  position: absolute;
  left: 54px;
  top: 50%;
  transform: translateY(-50%);
  padding: 4px 10px;
  background-color: var(--ink);
  color: #FFFFFF;
  font-size: 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.rail-link:hover::after {
  opacity: 1;
}

/* ---------------- Layout ---------------- */
.home-main {
  padding-left: 96px;
}

section[id] { scroll-margin-top: 24px; }

/* ---------------- Hero: mixed-weight typography ---------------- */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 8% 80px;
}

.hero-kicker {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy-bright);
  font-weight: 700;
  margin-bottom: 28px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8.5vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 15ch;
  margin-bottom: 36px;
}

.w-heavy {
  font-weight: 800;
  color: var(--navy);
}

.w-light {
  font-weight: 300;
  color: #9AA3B2;
}

.w-italic {
  font-weight: 800;
  font-style: italic;
  color: var(--navy-mid);
}

.hero-sub {
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.hero-sub-2 {
  margin-top: -24px;
}

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

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-solid {
  background-color: var(--navy);
  color: #FFFFFF;
}

.btn-solid:hover {
  background-color: var(--navy-bright);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-ghost:hover {
  background-color: var(--navy-tint);
}

/* ---------------- Statement ---------------- */
.statement-section {
  padding: 110px 8%;
  background-color: var(--bg-soft);
  position: relative;
}

.statement-mark {
  font-family: var(--font-serif);
  font-size: 88px;
  line-height: 1;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 16px;
}

.statement-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 28px;
}

.statement-body {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* ---------------- Section heads ---------------- */
.section-head {
  margin-bottom: 56px;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--navy-bright);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------------- Services (numbered list) ---------------- */
.services-section {
  padding: 110px 8%;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.service-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.service-index {
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.service-name {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.service-text {
  max-width: 640px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------------- Process (timeline) ---------------- */
.process-section {
  padding: 110px 8%;
  background-color: var(--navy-tint);
}

.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 34px;
  counter-reset: step;
}

.process-step {
  display: grid;
  grid-template-columns: 72px 220px 1fr;
  gap: 24px;
  align-items: baseline;
  padding-bottom: 34px;
  border-bottom: 1px solid #D3DAEC;
}

.process-step:last-child { border-bottom: none; padding-bottom: 0; }

.step-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--navy-bright);
}

.step-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.step-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------------- Results (counter band) ---------------- */
.results-section {
  padding: 110px 8%;
  background-color: var(--footer-bg);
}

.results-section .section-eyebrow { color: #7C9BFF; }
.results-section .section-title { color: #FFFFFF; }

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.result-card {
  background-color: var(--surface);
  border-radius: 14px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.result-value {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.result-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.results-note {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.7;
  color: #AEB8CF;
}

/* ---------------- Contact ---------------- */
.contact-section {
  padding: 110px 8%;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.contact-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink-soft);
  margin-bottom: 24px;
  line-height: 1.6;
}

.contact-addr-label {
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 4px;
}

.contact-line {
  margin-bottom: 8px;
}

.contact-line a {
  color: var(--navy-bright);
  text-decoration: none;
  font-weight: 700;
}

.contact-line a:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-bright);
}

.field textarea { resize: vertical; }

.form-note {
  font-size: 14px;
  color: var(--navy-bright);
  min-height: 20px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-ink);
  padding: 72px 8% 32px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.footer-wordmark {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.02em;
  line-height: 1;
}

.footer-cols {
  display: flex;
  gap: 72px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #7C8BB0;
  margin-bottom: 8px;
}

.footer-col a {
  color: var(--footer-ink);
  text-decoration: none;
  font-size: 15px;
}

.footer-col a:hover { color: #FFFFFF; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #27304A;
  padding-top: 24px;
  font-size: 14px;
  color: #8A96B0;
}

.footer-bottom a {
  color: #8A96B0;
  text-decoration: none;
}

.footer-bottom a:hover { color: #FFFFFF; }

/* ---------------- Scroll reveal ---------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .home-main { padding-left: 0; }

  .brand { top: 18px; left: 20px; }

  .rail {
    top: 16px;
    left: 16px;
    transform: none;
    border-radius: 999px;
    padding: 8px;
  }

  .rail-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background-color: var(--navy);
    color: #FFFFFF;
    cursor: pointer;
  }

  .rail-menu {
    display: none;
    flex-direction: column;
    gap: 8px;
  }

  .rail.open .rail-menu {
    display: flex;
  }

  .rail-link::after { display: none; }

  .hero-section { padding: 110px 24px 64px; }
  .statement-section { padding: 72px 24px; }
  .services-section { padding: 72px 24px; }
  .process-section { padding: 72px 24px; }
  .results-section { padding: 72px 24px; }
  .contact-section { padding: 72px 24px; }

  .service-item { grid-template-columns: 1fr; gap: 12px; }
  .process-step { grid-template-columns: 1fr; gap: 8px; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-cols { gap: 36px; }
  .footer-wordmark { font-size: 52px; }
}

@media (max-width: 480px) {
  .results-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
}
