:root {
  --navy: #293e90;
  --navy-dark: #0b1f32;
  --navy-light: #3f57b3;
  --light-bg: #f0f5fa;
  --gray-200: #e2e8f0;
  --gray-600: #5a6a85;
  --text-dark: #2e2e2e;
  --white: #ffffff;
  --radius: 5px;
  --max-width: 1120px;
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--white);
}

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

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--navy);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
  box-shadow: 0 1px 0 rgba(11, 31, 50, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.logo span {
  font-weight: 600;
  color: var(--navy-light);
}

#main-nav ul {
  display: flex;
  gap: 32px;
}

#main-nav a {
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
}

#main-nav a:hover {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: 0 8px 20px rgba(41, 62, 144, 0.3);
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(11, 31, 50, 0.92) 0%, rgba(41, 62, 144, 0.88) 100%),
    url("OPS-Puzzle.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 110px 0;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--gray-200);
  margin-bottom: 36px;
}

/* Sections */
section {
  padding: 90px 0;
}

section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto 50px;
  font-size: 1.05rem;
}

/* Services */
.services {
  background: var(--light-bg);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 4px 16px rgba(11, 31, 50, 0.06);
  border: 1px solid var(--gray-200);
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(11, 31, 50, 0.12);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray-600);
  font-size: 0.98rem;
}

/* About */
.about {
  background: var(--white);
}

.about-inner {
  max-width: 760px;
  text-align: center;
}

.about p {
  color: var(--gray-600);
  font-size: 1.08rem;
}

/* Contact */
.contact {
  background: var(--navy-dark);
  color: var(--white);
  text-align: center;
}

.contact h2 {
  color: var(--white);
}

.contact .section-sub {
  color: var(--gray-200);
}

.contact-details {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy-light);
  font-weight: 600;
}

.contact-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-item:hover .contact-value {
  color: var(--navy-light);
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: var(--gray-200);
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-dark);
  color: var(--gray-200);
  box-shadow: 0 -4px 20px rgba(11, 31, 50, 0.25);
  z-index: 200;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 20px 24px;
}

.cookie-banner p {
  font-size: 0.92rem;
  max-width: 760px;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner .btn {
  padding: 10px 22px;
  font-size: 0.92rem;
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .cookie-banner-actions {
    justify-content: center;
  }
}

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

  #main-nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(11, 31, 50, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #main-nav.open {
    max-height: 240px;
  }

  #main-nav ul {
    flex-direction: column;
    padding: 12px 24px 20px;
    gap: 18px;
  }

  .hero {
    padding: 80px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }

  .contact-details {
    gap: 28px;
  }
}
