/* ========================================================
   DI KUAN — Swiss Modern / Brutalist Typographic
   ======================================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #FAF8F5;
  --primary: #1A3C34;
  --accent: #D4A853;
  --text: #1A1A1A;
  --muted: #5B6E7A;
  --green-section-text: #F5F0E8;
  --border-thin: rgba(26, 60, 52, 0.15);
  --font-sans: 'Helvetica Neue', 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
}

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

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 1000;
  padding: 8px 20px;
  background: var(--primary);
  color: var(--green-section-text);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 4px 4px;
}

.skip-link:focus {
  top: 0;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

p {
  margin-bottom: 1em;
}

.text-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}

.text-link:hover {
  color: var(--accent);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border-thin);
  padding: 0 48px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--primary);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* --- Navigation --- */
.main-nav {
  position: relative;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-list a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 4px;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  width: 100%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Section Markers --- */
.section-marker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

/* --- Section Headings --- */
.section-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 56px;
}

/* ========================================================
   HERO — Asymmetric Split
   ======================================================== */
.hero {
  padding: 120px 48px 96px;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: start;
}

.hero-label {
  padding-top: 16px;
}

.hero-label-line {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 20px;
}

.hero-label-text {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero-title-block {
  text-align: left;
}

.hero-heading {
  font-size: clamp(4rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.92;
  color: var(--primary);
  margin-bottom: 32px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 40px;
}

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-underline {
  padding: 4px 0;
  background: none;
  color: var(--primary);
  border-bottom: 2px solid var(--accent);
}

.btn-underline:hover,
.btn-underline:focus-visible {
  color: var(--accent);
}

/* ========================================================
   PHILOSOPHY — Full-width bold statement
   ======================================================== */
.philosophy {
  padding: 96px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.phil-block {
  max-width: 900px;
}

.phil-text {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  quotes: none;
}

.phil-cite {
  font-style: normal;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ========================================================
   SERVICES — 2-column asymmetric pairs
   ======================================================== */
.services {
  padding: 96px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.services-list {
  display: flex;
  flex-direction: column;
}

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

.service-item:last-child {
  border-bottom: 1px solid var(--border-thin);
}

.service-left {
  padding-top: 4px;
}

.service-stat {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
  color: var(--text);
}

.service-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 560px;
}

/* ========================================================
   PROCESS — 3 horizontal steps with connecting lines
   ======================================================== */
.process {
  padding: 96px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.process-step {
  flex: 1;
  max-width: 360px;
}

.process-connector {
  flex: 0 0 80px;
  padding-top: 28px;
}

.process-connector svg {
  width: 100%;
  height: 8px;
}

.process-num {
  font-family: var(--font-mono);
  font-size: 48px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}

.process-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process-desc {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

/* ========================================================
   INDUSTRIES — Text-only tag list with dividers
   ======================================================== */
.industries {
  padding: 96px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.industry-item {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  padding: 20px 0;
  border-bottom: 1px solid var(--border-thin);
  letter-spacing: -0.01em;
}

.industry-divider {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ========================================================
   APPROACH — Full-bleed green section
   ======================================================== */
.approach {
  background: var(--primary);
  color: var(--green-section-text);
  padding: 120px 48px;
  margin: 0;
}

.app-block {
  max-width: 1400px;
  margin: 0 auto 48px;
}

.app-quote {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--green-section-text);
  max-width: 900px;
  margin-bottom: 24px;
}

.app-cite {
  font-style: normal;
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.app-detail {
  max-width: 1400px;
  margin: 0 auto;
}

.app-detail p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.85);
  max-width: 640px;
}

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

/* ========================================================
   CONTACT — Clean minimal form
   ======================================================== */
.contact {
  padding: 96px 48px;
  max-width: 1400px;
  margin: 0 auto;
}

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

.contact-intro {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 400px;
  margin-bottom: 32px;
}

.contact-address {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-style: normal;
}

.contact-link {
  font-size: 16px;
  color: var(--muted);
}

.contact-link:hover {
  color: var(--primary);
}

/* --- Form --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input {
  font-family: var(--font-sans);
  font-size: 16px;
  padding: 14px 0;
  color: var(--text);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-thin);
  outline: none;
  transition: border-color 0.25s ease;
  border-radius: 0;
}

.form-input:focus {
  border-bottom-color: var(--primary);
}

.form-input::placeholder {
  color: #B0B8BE;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* ========================================================
   FOOTER — Minimal, split left/right with thin border top
   ======================================================== */
.site-footer {
  border-top: 1px solid var(--border-thin);
  padding: 40px 48px;
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--primary);
  margin-bottom: 4px;
}

.footer-legal-name {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-right {
  text-align: right;
}

.footer-nav {
  display: flex;
  gap: 24px;
  margin-bottom: 8px;
}

.footer-link {
  font-size: 14px;
  color: var(--muted);
}

.footer-link:hover {
  color: var(--primary);
}

.footer-contact {
  margin-top: 4px;
}

/* ========================================================
   LEGAL PAGES
   ======================================================== */
.legal-page {
  padding: 80px 48px 96px;
  max-width: 1400px;
  margin: 0 auto;
}

.legal-header {
  margin-bottom: 64px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 32px;
}

.legal-breadcrumb {
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  margin-bottom: 12px;
}

.legal-date {
  font-size: 14px;
  color: var(--muted);
}

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

.legal-section {
  margin-bottom: 48px;
}

.legal-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  color: var(--primary);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-thin);
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 12px;
  margin-top: 24px;
  color: var(--text);
}

.legal-section p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
}

.legal-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.legal-section li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  padding: 6px 0 6px 20px;
  position: relative;
}

.legal-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 0;
  background: var(--accent);
}

.legal-address {
  font-style: normal;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

/* ========================================================
   INTERSECTION OBSERVER ANIMATIONS
   ======================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease 0.2s, transform 0.7s ease 0.2s;
}

.fade-in-delay.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================================
   RESPONSIVE
   ======================================================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-label {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 0;
  }

  .hero-label-line {
    margin-bottom: 0;
  }

  .hero-label-text {
    font-size: 13px;
  }

  .process-steps {
    flex-direction: column;
    gap: 0;
  }

  .process-step {
    max-width: none;
  }

  .process-connector {
    flex: 0 0 40px;
    padding-top: 0;
    padding-left: 24px;
    width: 48px;
  }

  .process-connector svg {
    transform: rotate(90deg);
    width: 40px;
    height: 8px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .industry-item {
    font-size: 1.2rem;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .site-header {
    padding: 0 20px;
  }

  .hero {
    padding: 80px 20px 64px;
  }

  .hero-heading {
    font-size: clamp(2.8rem, 10vw, 4rem);
  }

  .philosophy {
    padding: 64px 20px;
  }

  .services,
  .process,
  .industries,
  .contact {
    padding: 64px 20px;
  }

  .approach {
    padding: 80px 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-list {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 100;
  }

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

  .nav-list a {
    font-size: 24px;
    font-weight: 700;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-right {
    text-align: left;
  }

  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }

  .legal-page {
    padding: 64px 20px;
  }

  .legal-body {
    max-width: 100%;
  }

  .phil-text {
    font-size: 1.5rem;
  }

  .section-heading {
    margin-bottom: 36px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .hero-actions {
    gap: 16px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-delay {
    transition: none;
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- Focus Visible --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Selection --- */
::selection {
  background: var(--primary);
  color: var(--green-section-text);
}
