/* ═══════════════════════════════════════════════════════
   Axiom Systems (SMC-Private) Limited
   Design language: financial document / annual report
   ═══════════════════════════════════════════════════════ */

:root {
  --navy:       #061836;
  --navy-light: #132a47;
  --navy-mid:   #1c3a5e;
  --offwhite:   #f7f5f0;
  --cream:      #edeae3;
  --gold:       #ae8353;
  --gold-muted: #ae835322;
  --green:      #1a7a3a;
  --red:        #b22234;
  --text:       #1a1a2e;
  --text-muted: #5c6370;
  --rule:       #d0ccc3;
  --rule-light: #e5e2db;
  --white:      #ffffff;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--offwhite);
}

/* ── Typography ──────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; letter-spacing: 0.04em; }
h3 { font-size: 1.1rem; }

.mono {
  font-family: 'IBM Plex Mono', 'Courier New', monospace;
}

.label {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.serif-body {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ── Layout ──────────────────────────────────────── */

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

.container--wide {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── Gold top rule ───────────────────────────────── */

.gold-rule {
  height: 3px;
  background: var(--gold);
  width: 100%;
}

/* ── Header ──────────────────────────────────────── */

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.logo-mark {
  width: 54px;
  height: 42px;
}

.logo-text {
  font-family: 'Josefin Sans', 'Century Gothic', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  padding-top: 4px;
}

.logo-text span {
  display: block;
  font-weight: 300;
  font-size: 0.55rem;
  letter-spacing: 0.42em;
  color: var(--text-muted);
  margin-top: 4px;
}

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

.nav a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: var(--navy);
}

/* ── Section spacing & rules ─────────────────────── */

.section {
  padding: 56px 0;
}

.section--tight {
  padding: 36px 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

.section-rule--gold {
  border-color: var(--gold);
}

/* ── Home: statement ─────────────────────────────── */

.statement {
  padding: 64px 0 48px;
}

.statement h1 {
  font-size: 1.65rem;
  line-height: 1.45;
  max-width: 620px;
  font-weight: 400;
  color: var(--navy);
}

.statement h1 strong {
  font-weight: 700;
}

.statement-sub {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.65;
}

/* ── Service rows ────────────────────────────────── */

.service-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule-light);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}

.service-row:first-child {
  border-top: 1px solid var(--rule);
}

a.service-row:hover {
  background: var(--gold-muted);
}

.service-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  padding-top: 2px;
}

.service-content h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.service-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 560px;
}

/* ── Case study preview ──────────────────────────── */

.case-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.case-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-meta h2 {
  font-size: 1.25rem;
}

.case-meta p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.case-screenshot {
  background: var(--navy);
  border: 1px solid var(--rule);
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.case-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-screenshot-placeholder {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: #4a5568;
  text-align: center;
  line-height: 1.6;
}

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

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--text-muted);
  background: var(--white);
}

/* ── Link / arrow ────────────────────────────────── */

.link-arrow {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.link-arrow:hover {
  gap: 10px;
  color: var(--gold);
}

.link-arrow::after {
  content: '→';
}

/* ── Footer ──────────────────────────────────────── */

.site-footer {
  background: var(--navy);
  color: #8a9ab5;
  font-size: 0.78rem;
  padding: 40px 0;
  line-height: 1.7;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #5c7a9e;
  margin-bottom: 12px;
}

.footer-col a {
  color: #8a9ab5;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--offwhite);
}

.footer-company {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 0.82rem;
  color: var(--offwhite);
  margin-bottom: 8px;
}

.footer-legal {
  font-size: 0.72rem;
  color: #5c7a9e;
  margin-top: 6px;
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #1c3a5e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: #5c7a9e;
}

.footer-bottom a {
  color: #5c7a9e;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: var(--offwhite);
}

/* ── Services page ───────────────────────────────── */

.page-header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--rule);
}

.page-header h1 {
  font-size: 1.45rem;
  margin-bottom: 8px;
}

.page-header p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 540px;
}

.service-detail {
  padding: 48px 0;
  border-bottom: 1px solid var(--rule-light);
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail-header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 16px;
}

.service-detail-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
}

.service-detail h2 {
  font-size: 1.2rem;
}

.service-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-left: 64px;
}

.service-detail-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  font-size: 0.85rem;
  padding: 6px 0;
  border-bottom: 1px solid var(--rule-light);
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.feature-list li::before {
  content: '—';
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Work / Case Study page ──────────────────────── */

.case-study-hero {
  padding: 48px 0 40px;
  border-bottom: 2px solid var(--gold);
}

.case-study-hero .label {
  margin-bottom: 12px;
}

.case-study-hero h1 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.case-study-hero p {
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.7;
}

.case-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--rule-light);
}

.case-section:last-child {
  border-bottom: none;
}

.case-section h2 {
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.case-section p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
}

.case-section p + p {
  margin-top: 12px;
}

.arch-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.85rem;
}

.arch-table th {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 10px 16px;
  background: var(--cream);
  border-bottom: 2px solid var(--rule);
  color: var(--text-muted);
}

.arch-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule-light);
  vertical-align: top;
}

.arch-table td:first-child {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--navy);
  white-space: nowrap;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.screenshot-slot {
  background: var(--navy);
  border: 1px solid var(--rule);
  border-radius: 4px;
  aspect-ratio: 16 / 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.screenshot-slot .placeholder {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  color: #4a5568;
  text-align: center;
}

/* ── About page ──────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.about-text p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.about-text p + p {
  margin-top: 14px;
}

.about-sidebar {
  border-left: 2px solid var(--gold);
  padding-left: 24px;
}

.about-fact {
  margin-bottom: 24px;
}

.about-fact .label {
  margin-bottom: 4px;
}

.about-fact p {
  font-size: 0.88rem;
  color: var(--text);
}

.tagline {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--navy);
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-top: 40px;
  text-align: center;
}

/* ── Contact page ────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.contact-method {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule-light);
}

.contact-method .label {
  margin-bottom: 4px;
}

.contact-method a,
.contact-method p {
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
}

.contact-method a:hover {
  color: var(--gold);
}

.contact-form h2 {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.88rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--navy);
}

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

.btn {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn--primary {
  background: var(--navy);
  color: var(--offwhite);
}

.btn--primary:hover {
  background: var(--navy-light);
}

/* ── Status pages (thanks, 404) ──────────────────── */

.status-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.status-body > * {
  width: 100%;
}

.status-main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 72px 0;
}

.status-panel {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.status-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: var(--gold-muted);
}

.status-icon svg {
  width: 24px;
  height: 24px;
}

.status-panel .label {
  color: var(--gold);
  margin-bottom: 10px;
}

.status-panel h1 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.status-panel p {
  color: var(--text-muted);
}

.status-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px auto;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.status-actions .btn {
  text-decoration: none;
  display: inline-block;
}

/* ── Mobile nav overlay ──────────────────────────── */

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 26, 46, 0.95);
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

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

.nav-overlay a {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 1.1rem;
  color: var(--offwhite);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-overlay a:hover {
  color: var(--gold);
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-close svg {
  width: 24px;
  height: 24px;
  stroke: var(--offwhite);
}

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 768px) {
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.15rem; }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-inner {
    padding: 12px 0;
  }

  .statement {
    padding: 40px 0 32px;
  }

  .statement h1 {
    font-size: 1.35rem;
  }

  .case-preview {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-detail-body {
    grid-template-columns: 1fr;
    margin-left: 0;
    margin-top: 12px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-sidebar {
    border-left: none;
    border-top: 2px solid var(--gold);
    padding-left: 0;
    padding-top: 24px;
  }

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

  .screenshot-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .service-row {
    grid-template-columns: 36px 1fr;
    gap: 0 12px;
  }

  .case-tags {
    gap: 6px;
  }

  .service-detail-header {
    gap: 12px;
  }

  .service-detail-num {
    font-size: 1.1rem;
  }
}
