/* ==========================================================================
   Entarch Composables — corporate site design system
   Light, modern, tech-forward. Single stylesheet shared by every page.
   ========================================================================== */

:root {
  /* Color */
  --bg: #f6f8fb;
  --bg-elevated: #ffffff;
  --bg-elevated-2: #eef1f6;
  --border: #e1e6ef;
  --border-soft: #eaedf3;
  --text: #10131c;
  --text-muted: #5a6272;
  --text-faint: #8891a0;
  --accent: #0c8aa8;
  --accent-3: #15a35d;
  --gradient: var(--accent);
  --gradient-soft: rgba(12, 138, 168, 0.08);
  --shadow-glow:
    0 0 0 1px rgba(12, 138, 168, 0.16),
    0 20px 45px -20px rgba(12, 138, 168, 0.28);
  --shadow-card:
    0 1px 2px rgba(16, 19, 28, 0.04), 0 8px 24px -12px rgba(16, 19, 28, 0.08);

  /* Type */
  --font-display:
    "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --max-width: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Background texture: soft radial glow, applied once behind the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      700px 420px at 12% -8%,
      rgba(12, 138, 168, 0.07),
      transparent 60%
    ),
    radial-gradient(
      600px 400px at 100% 10%,
      rgba(12, 138, 168, 0.05),
      transparent 60%
    );
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #ffffff;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

/* ── Top nav ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(246, 248, 251, 0.78);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ── Eyebrow / pill labels ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}
.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}
/* Optional photo backdrop for the homepage hero — add assets/hero-bg.jpg and
   this class (already applied in index.html) will pick it up automatically.
   Light overlay keeps hero text legible over a busy photo. */
.hero--photo {
  background-image:
    linear-gradient(
      180deg,
      rgba(246, 248, 251, 0.93) 0%,
      rgba(246, 248, 251, 0.86) 45%,
      rgba(246, 248, 251, 0.97) 100%
    ),
    url("../assets/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 850px;
  margin: 0 auto 22px;
}
.hero h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .lede {
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 18px;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.page-hero {
  padding: 72px 0 56px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
}
.page-hero .eyebrow {
  margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  max-width: 720px;
}
.page-hero .lede {
  max-width: 620px;
  font-size: 17px;
  margin: 0;
}

/* ── Stat strip ──────────────────────────────────────────────────────── */
.stat-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 36px 0;
  background: var(--bg-elevated);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-grid .num {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-grid .label {
  font-size: 13.5px;
  color: var(--text-faint);
  margin-top: 4px;
}

/* ── Sections ────────────────────────────────────────────────────────── */
.section {
  padding: 88px 0;
}
.section-tight {
  padding: 56px 0;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head.left {
  margin-left: 0;
  text-align: left;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

/* ── Cards / grids ───────────────────────────────────────────────────── */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(12, 138, 168, 0.35);
  box-shadow: var(--shadow-glow);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--accent);
}
.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.card p {
  margin: 0;
  font-size: 14.5px;
}

.card-flat {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

/* ── Value list ──────────────────────────────────────────────────────── */
.value-row {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border-soft);
}
.value-row:last-child {
  border-bottom: none;
}
.value-row .num {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.value-row h3 {
  font-size: 16.5px;
  margin-bottom: 6px;
}
.value-row p {
  margin: 0;
  font-size: 14.5px;
}

/* ── Split layout (image/copy) ───────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}
.split.reverse .split-media {
  order: 2;
}
.split-copy .eyebrow {
  margin-bottom: 16px;
}
.split-copy h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

/* ── Placeholder media blocks (swap for real logo/screenshots) ─────── */
.media-frame {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-card);
}
.media-frame img {
  border-radius: calc(var(--radius) - 1px);
}
.media-placeholder {
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(160deg, rgba(12, 138, 168, 0.06), rgba(124, 58, 237, 0.06)),
    repeating-linear-gradient(
      135deg,
      rgba(16, 19, 28, 0.025) 0 2px,
      transparent 2px 14px
    );
  color: var(--text-faint);
  text-align: center;
  padding: 24px;
}
.media-placeholder .ph-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: var(--bg-elevated);
}
.media-placeholder .ph-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.media-placeholder .ph-sub {
  font-size: 12px;
  color: var(--text-faint);
  max-width: 260px;
}

/* ── CTA banner ──────────────────────────────────────────────────────── */
.cta-banner {
  border-radius: 20px;
  padding: 56px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  max-width: 560px;
  margin: 0 auto 14px;
}
.cta-banner p {
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ── Tag pills ───────────────────────────────────────────────────────── */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Timeline / process ──────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.process-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.process-step p {
  font-size: 14px;
  margin: 0;
}

/* ── Logo strip ──────────────────────────────────────────────────────── */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.tech-pill {
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ── Contact form ────────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  gap: 18px;
}
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}
input,
textarea,
select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  transition: border-color 0.15s ease;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
}
textarea {
  resize: vertical;
  min-height: 130px;
}
.form-note {
  font-size: 13px;
  color: var(--text-faint);
  margin-top: 8px;
}

/* Contact page layout: form + info cards side by side */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-card);
}
.contact-form .form-row {
  display: flex;
  flex-direction: column;
}
.form-status {
  font-size: 13.5px;
  min-height: 1.4em;
  margin: 0;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--bg-elevated);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
}
.contact-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-soft);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.contact-card h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
}
.contact-card p {
  margin: 0;
  font-size: 14px;
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 32px;
  margin-top: 40px;
  background: var(--bg-elevated);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand .brand {
  margin-bottom: 14px;
}
.footer-brand p {
  font-size: 14px;
  max-width: 260px;
}
.footer-col h4 {
  font-size: 13px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border-soft);
  font-size: 13px;
  color: var(--text-faint);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
}

/* ── Utility ─────────────────────────────────────────────────────────── */
.text-center {
  text-align: center;
}
.mt-0 {
  margin-top: 0;
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media {
    order: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 20px 28px;
    gap: 18px;
    box-shadow: var(--shadow-card);
  }
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .form-row-2 {
    grid-template-columns: 1fr;
  }
  .process-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 72px 0 56px;
  }
  .section {
    padding: 64px 0;
  }
  .cta-banner {
    padding: 36px 22px;
  }
}
