@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

:root {
  --bg:          #07090f;
  --surface:     #0c1120;
  --surface-2:   #111d33;
  --border:      #1b2a45;
  --accent:      #38bdf8;
  --accent-dark: #0284c7;
  --text:        #e8eef7;
  --text-muted:  #6b84a3;
  --header-h:    64px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Utils ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Site header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 9, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo img {
  height: 30px;
  display: block;
  flex-shrink: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}

.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a.active { color: var(--accent); }

.main-nav .nav-divider-v {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
}

.main-nav .projects-link {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-style: italic;
}

/* Mobile-only nav elements — hidden on desktop */
.nav-mobile-tagline,
.nav-mobile-contact { display: none; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-contact {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: 1.5px solid var(--accent);
  padding: 7px 18px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.btn-contact:hover { background: var(--accent); color: #07090f; }

#nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  padding: 7px 11px;
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.12s, border-color 0.12s;
}

#nav-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ── Home: Hero ── */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-bg { position: absolute; inset: 0; }

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(7,9,15,0.93) 0%,
    rgba(7,9,15,0.75) 55%,
    rgba(7,9,15,0.25) 100%
  );
}

.hero > .container {
  position: relative;
  z-index: 1;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero-content { max-width: 560px; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 36px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #07090f;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 8px;
  transition: background 0.15s;
}

.hero-cta:hover { background: var(--accent-dark); color: #fff; }


/* ── Home: Services ── */
.services-section { padding: 80px 0; }

.cta-section {
  padding: 72px 0 88px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta-section .section-title { margin-bottom: 14px; }
.cta-section .hero-desc { margin: 0 auto 28px; }

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

.section-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 22px 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.2s;
}

.service-card:hover {
  border-color: var(--accent);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.card-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.service-card h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.service-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.card-arrow {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
}

.service-card:hover .card-arrow { opacity: 1; }

.card-pdf { border-style: dashed; }
.card-pdf h3, .card-pdf .card-num { color: var(--text-muted); }
.card-pdf:hover { border-color: var(--text-muted); }
.card-pdf:hover .card-arrow { color: var(--text-muted); }

/* ── Inner page header ── */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 52px 0 44px;
}

.breadcrumb {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}

.breadcrumb a:hover { color: var(--accent); }

.breadcrumb-sep { opacity: 0.4; }

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ── Inner page body ── */
.page-body { padding: 60px 0 96px; }

.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.page-layout.full { grid-template-columns: 1fr; max-width: 720px; }

.page-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 18px;
}

.page-text h2 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 28px 0 14px;
}

.page-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.page-text li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.page-text li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 1px;
}

.page-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

/* ── Specs table (supply) ── */
.specs {
  width: 100%;
  max-width: 600px;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-bottom: 24px;
}

.specs td {
  padding: 9px 13px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
  line-height: 1.5;
}

.specs .sh td {
  background: var(--surface-2);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 0;
}

.team-card { text-align: center; }
.team-card a { text-decoration: none; }

.team-card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: block;
  margin: 0 auto 12px;
  transition: border-color 0.15s;
}

.team-card a:hover img { border-color: var(--accent); }

.team-card .name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3px;
}

.team-card .role {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.contact-info {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.contact-info h3 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.contact-info address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 2;
}

.contact-info .btn-contact {
  display: inline-block;
  margin-top: 24px;
}

/* ── Mobile nav overlay ── */
@media (max-width: 860px) {
  #nav-toggle { display: block; }
  .header-actions .btn-contact { display: none;}

  .main-nav {
    position: fixed;
    top: 0;
    left: calc(-1 * min(320px, 85vw));
    width: min(320px, 85vw);
    height: 100vh;
    background: var(--surface);
    border-right: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 0 24px;
    z-index: 200;
    overflow-y: auto;
    transition: left 0.25s ease;
    box-shadow: none;
  }

  .main-nav.open {
    left: 0;
    box-shadow: 12px 0 48px rgba(0, 0, 0, 0.7);
  }

  .main-nav a {
    padding: 11px 22px;
    font-size: 0.875rem;
    border-radius: 0;
    border-left: 2px solid transparent;
  }

  .main-nav a:hover { border-left-color: var(--accent); background: var(--surface-2); }
  .main-nav a.active { border-left-color: var(--accent); background: var(--surface-2); }

  .main-nav .nav-divider-v { display: none; }

  .nav-mobile-tagline {
    display: block;
    padding: 20px 22px 16px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.6;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
  }

  .nav-mobile-contact {
    display: block;
    margin: 16px 22px 4px;
    padding: 10px 16px;
    border: 1.5px solid var(--accent);
    color: var(--accent) !important;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
  }

  .main-nav .projects-link { font-style: italic; border-left-color: transparent !important; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .page-layout { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .hero { min-height: 420px; }
  .hero-overlay { background: rgba(7,9,15,0.86); }
  .hero h1 { font-size: 1.9rem; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Services page ── */
.services-toc {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  overflow-x: auto;
}

.services-toc > .container {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
}

.services-toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s;
}

.services-toc a:hover { color: var(--text); background: var(--surface-2); }

.svc-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--border);
}

.svc-section:nth-child(even) { background: var(--surface); }

.svc-inner {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 64px;
  align-items: start;
}

.svc-inner.no-img { grid-template-columns: 1fr; max-width: 720px; }

.svc-num {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
  opacity: 0.7;
}

.svc-text h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.svc-figure img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

.svc-section:nth-child(even) .svc-inner:not(.no-img) { grid-template-columns: 300px 1fr; }
.svc-section:nth-child(even) .svc-inner:not(.no-img) .svc-text  { order: 2; }
.svc-section:nth-child(even) .svc-inner:not(.no-img) .svc-figure { order: 1; }

@media (max-width: 700px) {
  .svc-inner { grid-template-columns: 1fr; gap: 28px; }
  .svc-section { padding: 48px 0; }
  .svc-section:nth-child(even) .svc-inner:not(.no-img) { grid-template-columns: 1fr; }
  .svc-section:nth-child(even) .svc-inner:not(.no-img) .svc-text,
  .svc-section:nth-child(even) .svc-inner:not(.no-img) .svc-figure { order: initial; }
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 36px;
}

.footer-brand img { height: 26px; margin-bottom: 10px; display: block; }
.footer-brand p { font-size: 0.78rem; color: var(--text-muted); }

.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.footer-nav a:hover { color: var(--accent); }

.footer-nav .footer-btn-contact {
  align-self: flex-start;
  margin-top: 4px;
}
.footer-nav .footer-btn-contact:hover { color: #07090f; }

.footer-address {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.footer-copy { font-size: 0.72rem; color: var(--text-muted); opacity: 0.5; }

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .specs { display: block; overflow-x: auto; }
}
