@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=Barlow+Condensed:wght@300;600;800&display=swap');

/* ===== Brand Tokens ===== */
:root {
  --navy-deep:  #050d1a;
  --navy:       #0a1628;
  --navy-mid:   #112240;
  --blue-dark:  #1a3561;
  --blue:       #1e4d8c;
  --blue-mid:   #2e6bb0;
  --blue-light: #4a90d9;
  --blue-pale:  #8ab8e8;
  --blue-frost: #c8dff5;
  --page-bg:    #f0f4f8;
  --border:     #c2d3e3;
  --ink:        #050d1a;
  --grey-4:     #5d7494;
  --grey-5:     #8da4bf;
  --grey-6:     #b8cad9;
  --grey-7:     #dde7f0;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Space Mono', monospace;
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== Typography ===== */
h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--navy);
  line-height: 1.1;
}

h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--navy);
}

h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 6px;
  color: var(--grey-4);
}

p { color: var(--grey-4); font-size: 0.9rem; letter-spacing: 0.5px; }

a {
  color: var(--blue-mid);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ===== Layout ===== */
main {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* ===== Header & Nav ===== */
header {
  background: var(--navy);
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--navy-mid);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav .logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-pale);
}
nav ul a:hover,
nav ul a.active {
  color: #ffffff;
  text-decoration: none;
}

/* ===== Dropdown Nav ===== */
nav ul li.has-dropdown {
  position: relative;
}

nav ul li.has-dropdown .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--navy-mid);
  border: 1px solid var(--blue-dark);
  border-radius: 2px;
  min-width: 220px;
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 0 0.5rem;
  z-index: 100;
}

nav ul li.has-dropdown:hover .dropdown {
  display: flex;
}

nav ul li.has-dropdown .dropdown li {
  width: 100%;
}

nav ul li.has-dropdown .dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  white-space: nowrap;
  letter-spacing: 3px;
  font-size: 0.8rem;
}

nav ul li.has-dropdown .dropdown a:hover {
  background: var(--blue-dark);
  color: #ffffff;
}

/* ===== Hamburger ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.2s;
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .nav-toggle {
    display: flex;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    border-top: 1px solid var(--navy-mid);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    z-index: 200;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li,
  nav ul li.has-dropdown {
    width: 100%;
  }

  nav ul a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  nav ul li.has-dropdown .dropdown {
    display: flex;
    position: static;
    background: var(--navy-mid);
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: unset;
    width: 100%;
  }

  nav ul li.has-dropdown .dropdown a {
    padding-left: 2.5rem;
  }

  header {
    position: relative;
  }
}

/* ===== Hero ===== */
.hero {
  text-align: center;
  padding: 5rem 1rem;
}

.hero h1 { margin-bottom: 1.25rem; }
.hero p  {
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Button ===== */
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  cursor: pointer;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.btn:hover {
  background: var(--blue-mid);
  text-decoration: none;
}

/* ===== Features ===== */
.features {
  display: flex;
  flex-direction: column;
  margin-top: 3rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}

.feature--reverse {
  flex-direction: row-reverse;
}

.feature-image {
  flex: 0 0 44%;
  aspect-ratio: 4 / 3;
  background: var(--navy);
  border: 1px solid var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-image:has(img) {
  background: transparent;
  border-color: transparent;
}

.feature-image img {
  width: 300px;
  height: 300px;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.feature-text p {
  font-size: 0.95rem;
  line-height: 2;
  margin-bottom: 1.5rem;
}

.feature-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-light);
}

.feature-link:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ===== Fade In ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 700px) {
  .feature,
  .feature--reverse {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 0;
  }

  .feature-image {
    width: 100%;
    flex: none;
  }
}

/* ===== Page Header ===== */
.page-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}

/* ===== Services ===== */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}

.service {
  background: #ffffff;
  padding: 1.75rem;
  border: 1px solid var(--border);
}
.service h2 { margin-bottom: 0.75rem; }
.service h2 a { color: var(--navy); }
.service h2 a:hover { color: var(--blue-mid); text-decoration: none; }

/* ===== Service Detail ===== */
.service-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-header .intro {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  max-width: 720px;
  color: var(--grey-4);
}

.service-section {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 1.75rem;
}

.service-section h2 {
  margin-bottom: 1rem;
}

.service-section ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.service-section ul li {
  margin-bottom: 0.4rem;
  color: var(--grey-4);
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* ===== About ===== */
.about-content p {
  max-width: 720px;
  margin-bottom: 1rem;
}

/* ===== Contact Form ===== */
.contact-content form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--navy);
}

input, textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border);
  background: #ffffff;
  font-size: 0.9rem;
  font-family: 'Space Mono', monospace;
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: 2px solid var(--blue-light);
  border-color: transparent;
}

/* ===== Footer ===== */
footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-mid);
}

footer p {
  color: var(--grey-5);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
}
