:root {
  --bg: #050814;
  --bg-alt: #0b1020;
  --card-bg: #0f172a;
  --accent: #2f7de1;
  --accent-soft: #1d4ed8;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: #1f2937;
  --radius: 8px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top, #0b1220 0, #020617 55%, #000 100%);
  color: var(--text);
  font-family: var(--font-sans);
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 8, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo a {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: var(--text);
}

.main-nav a {
  margin-left: 1.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

/* Hero */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  background-image: url("../img/hero.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.9));
}

.hero-content {
  position: relative;
  text-align: left;
  max-width: 820px;
  padding: 4rem 1.5rem;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: #e5e7eb;
  margin-bottom: 2rem;
  max-width: 32rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #f9fafb;
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  box-shadow: 0 14px 40px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  margin-left: 0.75rem;
  background: transparent;
  border-color: rgba(148, 163, 184, 0.6);
  color: #e5e7eb;
}

.btn-secondary:hover {
  border-color: #e5e7eb;
}

/* Sections */

main {
  padding-bottom: 4rem;
}

.intro {
  padding: 4rem 1.5rem 2rem;
}

.intro h2 {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.intro p {
  color: var(--muted);
  line-height: 1.6;
  max-width: 46rem;
}

/* Services summary */

.services-summary {
  padding: 2rem 0 4rem;
}

.services-summary h2 {
  text-align: left;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.section-lead {
  color: var(--muted);
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.card-link {
  display: inline-flex;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

/* CTA band */

.cta-band {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 1.5rem;
  gap: 1.5rem;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
}

/* Page layout */

.page-main {
  padding: 3rem 0 4rem;
}

.page-hero {
  padding: 0 1.5rem;
}

.page-hero h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.page-lead {
  color: var(--muted);
  max-width: 40rem;
}

.text-block {
  padding: 1rem 1.5rem 0;
}

.text-block p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 46rem;
}

/* Services page */

.service-section {
  padding: 2rem 1.5rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 2rem;
}

.service-section h2 {
  margin-top: 0;
}

.service-section p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 46rem;
}

.service-section ul {
  color: var(--muted);
  padding-left: 1.2rem;
}

/* Contact */

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 2rem;
  padding: 1rem 1.5rem 0;
}

.contact-details p {
  color: var(--muted);
  line-height: 1.6;
}

.contact-note {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-form label {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  background: #020617;
  border-radius: var(--radius);
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.6rem 0.7rem;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  background: #020617;
}

.footer-inner {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-meta {
  margin-top: 0.25rem;
}

/* Responsive */

@media (max-width: 720px) {
  .hero {
    min-height: 60vh;
  }

  /* Correct mobile hero heading */
  .hero-content h1 {
    font-size: 1.7rem;
    line-height: 1.2;
  }

  .cta-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-section {
    grid-template-columns: 1fr;
  }

  /* Fix nav wrapping */
  .main-nav a {
    font-size: 0.9rem;
    margin-left: 0.75rem;
  }

  /* Page hero headings */
  .page-hero h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  /* Section headings */
  h2 {
    font-size: 1.4rem;
    line-height: 1.3;
  }

  /* Paragraphs */
  p {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

}
