/* HI Infra Structures — shared stylesheet */

:root {
  --navy-950: #081119;
  --navy-900: #0d1b2a;
  --navy-800: #15263a;
  --navy-700: #1e2e40;
  --navy-600: #35475c;

  --gold-400: #cbae7c;
  --gold-500: #b89758;
  --gold-600: #967a43;

  --basex-blue: #5b9eff;

  --neutral-50: #faf9f7;
  --neutral-100: #f2efe9;
  --neutral-200: #e4ded2;
  --neutral-400: #a79c8a;
  --neutral-600: #6b6256;
  --neutral-800: #332f28;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-sans: "Inter", "Segoe UI", sans-serif;

  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--navy-900);
  background: var(--neutral-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy-900);
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; color: var(--neutral-800); }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 0.5rem;
  display: block;
}

.lede {
  font-size: 1.1rem;
  color: var(--neutral-600);
  max-width: 42rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--gold-500);
  color: var(--navy-900);
}
.btn-primary:hover { background: var(--gold-600); }

.btn-secondary {
  background: transparent;
  border-color: var(--navy-700);
  color: var(--navy-900);
}
.btn-secondary:hover { background: var(--neutral-100); }

.btn-on-dark {
  border-color: var(--gold-500);
  color: var(--gold-500);
}
.btn-on-dark:hover { background: rgba(184, 151, 88, 0.1); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.97);
  border-bottom: 1px solid var(--neutral-200);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.nav-logo img { height: 32px; }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy-900);
}

.nav-links a[aria-current="page"] {
  color: var(--gold-600);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle svg { width: 24px; height: 24px; }

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  padding: 1rem 0 1.5rem;
}

.mobile-drawer.open { display: block; }

.mobile-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-drawer a {
  text-decoration: none;
  font-size: 1.05rem;
  color: var(--navy-900);
  font-weight: 500;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* Sections */
section {
  padding: 4.5rem 0;
}

@media (max-width: 640px) {
  section { padding: 3rem 0; }
}

.section-alt {
  background: var(--neutral-100);
}

.hero {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.hero .btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  padding: 1.75rem;
  background: #fff;
}

.card h3 { margin-bottom: 0.5rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

.service-category {
  margin-top: 2.5rem;
}

.service-category h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold-600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 640px) {
  .service-list { grid-template-columns: 1fr; }
}

.service-list li {
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  padding: 1.25rem;
  background: #fff;
}

.service-list strong {
  display: block;
  font-family: var(--font-display);
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.service-list span {
  font-size: 0.9rem;
  color: var(--neutral-600);
}

/* BASE X dark sections */
.section-basex {
  background: var(--navy-950);
  color: var(--neutral-200);
}

.section-basex h1, .section-basex h2, .section-basex h3 {
  color: #fff;
}

.section-basex p { color: #c7cdd6; }

.section-basex .eyebrow { color: var(--gold-500); }

.basex-highlight { color: var(--basex-blue); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-grid .feature {
  border: 1px solid var(--navy-700);
  border-radius: 8px;
  padding: 1.25rem;
}

.feature h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.feature p {
  color: var(--basex-blue);
  font-size: 0.9rem;
  margin: 0;
}

.status-badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  background: var(--gold-500);
  color: var(--navy-900);
  text-transform: uppercase;
}

/* Footer */
.site-footer {
  background: var(--navy-900);
  color: var(--neutral-200);
  padding: 3rem 0;
}

.site-footer .footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.site-footer p { color: var(--neutral-400); margin-bottom: 0.25rem; }

.footer-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a {
  text-decoration: none;
  color: var(--neutral-200);
  font-size: 0.9rem;
}

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

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--navy-700);
  font-size: 0.85rem;
  color: var(--neutral-400);
}

/* Contact page */
.contact-methods {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-methods li {
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-methods a {
  text-decoration: none;
  color: var(--gold-600);
  font-weight: 600;
}

.contact-methods .method-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--neutral-600);
  display: block;
  margin-bottom: 0.15rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.001ms !important; animation-duration: 0.001ms !important; }
}
