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

:root {
  --bg: #12181C;
  --panel: #1A2228;
  --panel-light: #212B32;
  --accent: #3A6273;
  --accent-bright: #7DB4C9;
  --text-body: #C9C2BA;
  --text-heading: #F2EFEA;
  --border: rgba(125, 180, 201, 0.18);

  --font-heading: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

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

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

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  font-weight: 600;
}

h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.6rem; }

a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: var(--text-heading); }

p { max-width: 60ch; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 720px; }

.section-label {
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.center { text-align: center; margin-left: auto; margin-right: auto; }
h2.center, p.section-label.center { text-align: center; }

.btn {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-accent {
  background: var(--accent-bright);
  color: #0D1215;
}
.btn-accent:hover {
  background: #96C6D8;
  color: #0D1215;
}

/* ===== Diagonal Dividers ===== */
.divider {
  position: relative;
  height: 70px;
  background: var(--panel);
  overflow: hidden;
  z-index: 1;
}
.divider::before {
  content: "";
  position: absolute;
  inset: -50% 0;
  background: var(--bg);
  transform: skewY(-3deg);
}
.divider-alt::before { transform: skewY(3deg); }

/* ===== Header ===== */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-top {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-heading);
}
.logo-text span { color: var(--accent-bright); font-weight: 500; }

.header-bottom {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-top: 1px solid var(--border);
}
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
.main-nav a {
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 500;
}
.main-nav a:hover { color: var(--accent-bright); }

.header-cta { padding: 0.5rem 1.3rem; font-size: 0.85rem; }

.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-heading);
  display: block;
}

/* ===== Hero ===== */
.hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  background: var(--bg);
}
.hero-inner {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 3rem 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}
.hero-content { max-width: 540px; }
.eyebrow {
  color: var(--accent-bright);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}
.hero-tagline {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
}
.hero-graphic svg { width: 100%; height: auto; }

/* ===== Stats ===== */
.stats {
  background: #0D1216;
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--accent-bright);
}
.stat-label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-body);
}

/* ===== Zig-zag (About) ===== */
.zigzag-section { background: var(--panel); padding: 5rem 0; }
.zigzag-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.zigzag-media { border-radius: 6px; overflow: hidden; }
.zigzag-media svg { width: 100%; height: auto; }
.zigzag-text p { margin-bottom: 1rem; }

/* ===== Services ===== */
.services { background: var(--bg); padding: 5rem 0; }
.services h2 { margin-bottom: 3rem; }

.service-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-child { border-bottom: none; }
.service-row.reverse { direction: rtl; }
.service-row.reverse .service-text { direction: ltr; }
.service-row.reverse .service-number { direction: ltr; text-align: right; }

.service-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.service-text p { max-width: 55ch; }

/* ===== Timeline ===== */
.timeline-section { background: var(--panel); padding: 5rem 0; }
.timeline-section h2 { margin-bottom: 3.5rem; }

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding-left: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  transform: translateX(-50%);
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2.5rem 3rem 0;
}
.timeline-item.reverse {
  margin-left: 50%;
  padding: 0 0 3rem 2.5rem;
}
.timeline-item::after {
  content: "";
  position: absolute;
  top: 0.3rem;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px var(--panel);
}
.timeline-item.reverse::after { right: auto; left: -6px; }

.timeline-card {
  background: var(--panel-light);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem 1.7rem;
}
.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--accent-bright);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.timeline-card p { margin: 0; font-size: 0.95rem; }

/* ===== FAQ ===== */
.faq { background: var(--bg); padding: 5rem 0; }
.faq h2 { margin-bottom: 2.5rem; }

.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 1.3rem 0;
  cursor: pointer;
  text-align: left;
}
.accordion-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-left: 1rem;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: var(--accent-bright);
  transition: transform 0.2s ease;
}
.accordion-icon::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.accordion-icon::after { left: 50%; top: 0; width: 2px; height: 100%; transform: translateX(-50%); }
.accordion-trigger[aria-expanded="true"] .accordion-icon::after { transform: translateX(-50%) scaleY(0); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion-panel p { padding-bottom: 1.3rem; font-size: 0.95rem; }

/* ===== Contact ===== */
.contact { background: var(--panel); padding: 5rem 0; }
.contact-card {
  position: relative;
  background: #0F1519;
  border-radius: 10px;
  padding: 3rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.contact-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(var(--accent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 70%);
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  pointer-events: none;
}
.contact-intro, .contact-form { position: relative; z-index: 1; }
.contact-intro h2 { margin-bottom: 0.8rem; }
.contact-intro p { margin-bottom: 2rem; }

.contact-form {
  background: var(--panel-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
}
.form-row { margin-bottom: 1.2rem; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 0.4rem;
}
.form-row input, .form-row textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.7rem 0.9rem;
  color: var(--text-heading);
  font-family: var(--font-body);
  font-size: 0.95rem;
  resize: vertical;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(125, 180, 201, 0.2);
}
.form-submit { width: 100%; margin-top: 0.4rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 1.6rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-heading);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
}
.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}
.footer-links a { color: var(--text-body); font-size: 0.88rem; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { color: var(--text-body); }
.footer-social a:hover { color: var(--accent-bright); }
.footer-copyright { font-size: 0.82rem; color: #7A8288; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: left; }
  .hero-graphic { max-width: 340px; }
  .zigzag-row { grid-template-columns: 1fr; }
  .zigzag-row .zigzag-media { order: -1; }
  .contact-card { padding: 2rem 1.5rem; }
}

@media (max-width: 768px) {
  .header-bottom { padding: 0 20px; position: relative; }
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 10;
  }
  .main-nav.is-open ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 20px 1rem;
  }
  .main-nav.is-open a {
    display: block;
    padding: 0.7rem 0;
  }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }

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

  .service-row { grid-template-columns: 1fr; gap: 0.8rem; }
  .service-row.reverse { direction: ltr; }
  .service-row.reverse .service-number { text-align: left; }

  .timeline::before { left: 20px; }
  .timeline-item, .timeline-item.reverse {
    width: 100%;
    margin-left: 0;
    padding: 0 0 2rem 3rem;
  }
  .timeline-item::after, .timeline-item.reverse::after {
    left: 14px;
    right: auto;
  }

  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .contact-card { padding: 1.5rem 1.2rem; }
  .contact-form { padding: 1.4rem; }
}
