:root {
  --primary: #0f3b5c;
  --primary-dark: #0b2942;
  --accent: #d89a27;
  --text: #1a1a1a;
  --muted: #5d6470;
  --light: #f5f7fa;
  --white: #ffffff;
  --border: #e6ebf1;
  --shadow: 0 12px 30px rgba(12, 32, 52, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

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

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--primary);
}

.section-header p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.main-nav a {
  color: var(--primary-dark);
  font-weight: 600;
  transition: color 0.2s ease;
  position: relative;
}

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

/* Premium Mega Menu Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-item-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-item-dropdown > a::after {
  content: "▼";
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.nav-item-dropdown:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 900px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 4px solid var(--accent);
  border-radius: 0.8rem;
  box-shadow: 0 20px 50px rgba(12, 32, 52, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-15px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  z-index: 2000;
  margin-top: 0.75rem;
  overflow: hidden;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  color: var(--primary-dark);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: none;
  background: var(--white);
  position: relative;
}

.dropdown-menu a::before {
  content: "";
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.3s ease;
  margin-top: 0.3rem;
}

.dropdown-menu a:hover {
  background: var(--light);
  color: var(--accent);
  padding-left: 2rem;
}

.dropdown-menu a:hover::before {
  height: 1.2rem;
}

.dropdown-menu a span {
  display: block;
}

.dropdown-menu a span:first-child {
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
}

.dropdown-menu a span:last-child {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 0.2rem;
}

/* Mega Menu Footer */
.dropdown-menu::after {
  content: "";
  grid-column: 1 / -1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
}

.dropdown-menu-footer {
  grid-column: 1 / -1;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(15, 59, 92, 0.02) 0%, rgba(216, 154, 39, 0.02) 100%);
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

.dropdown-menu-footer a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
}

.hamburger {
  display: none;
  border: 0;
  background: transparent;
  width: 42px;
  height: 42px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  margin: 5px auto;
  border-radius: 2px;
}

.hero {
  position: relative;
  background:
    linear-gradient(rgba(11, 41, 66, 0.7), rgba(11, 41, 66, 0.7)),
    url("https://images.unsplash.com/photo-1517048676732-d65bc937f952?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-content {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  color: var(--white);
  padding: 4rem 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: #dfeaf7;
  margin-bottom: 1rem;
}

.hero-copy {
  max-width: 760px;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-copy p {
  max-width: 700px;
  font-size: 1.15rem;
  color: rgba(255,255,255,0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 0.5rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: 0.2s ease;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: #c98712;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
}

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

.service-link-btn {
  color: var(--accent);
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-block;
  margin-top: 1rem;
}

.service-link-btn:hover {
  transform: translateX(4px);
}

.company-info-bar {
  background: var(--primary);
  color: var(--white);
  padding: 1.8rem 0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.info-item h3 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
}

.info-item p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
  align-items: start;
}

.content-box, .feature-panel, .info-card, .contact-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  padding: 2rem;
}

.feature-panel h3 {
  color: var(--primary);
  margin-top: 0;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card h3 {
  color: var(--primary);
  margin: 0 0 0.75rem;
}

.card ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin-bottom: 1rem;
}

/* Service Featured Grid */
.services-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-featured-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-featured-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-featured-card:hover {
  box-shadow: 0 16px 40px rgba(12, 32, 52, 0.15);
  transform: translateY(-4px);
}

.service-featured-card:hover::before {
  transform: scaleX(1);
}

.service-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
}

.service-featured-card h3 {
  color: var(--primary);
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.service-featured-card > p {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.service-featured-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.service-featured-card li {
  padding: 0.4rem 0 0.4rem 1.5rem;
  color: var(--muted);
  position: relative;
  font-size: 0.9rem;
}

.service-featured-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Services Core Grid */
.services-core-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.core-service {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 0.75rem;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: all 0.2s ease;
}

.core-service:hover {
  border-left-color: var(--primary);
  box-shadow: 0 12px 32px rgba(12, 32, 52, 0.12);
}

.core-service h4 {
  color: var(--primary);
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.core-service p {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Service Lifecycle */
.service-lifecycle {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1rem;
}

.lifecycle-step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 0.75rem;
  box-shadow: 0 4px 12px rgba(12, 32, 52, 0.15);
}

.lifecycle-step h4 {
  color: var(--primary);
  margin: 0.5rem 0 0.25rem;
  font-size: 0.95rem;
}

.lifecycle-step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.85rem;
}

.lifecycle-step:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -0.75rem;
  top: 24px;
  width: 1.5rem;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.benefit {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.benefit h4 {
  margin-top: 0;
  color: var(--primary);
}

.vision-mission {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.page-hero {
  background: linear-gradient(135deg, #0f3b5c 0%, #1a4d71 100%);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-hero p {
  margin: 0;
  opacity: 0.9;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.focus-item {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--white);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  font-weight: 600;
  color: var(--primary-dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.team-card h3,
.team-card .position,
.team-card .bio {
  padding-left: 1rem;
  padding-right: 1rem;
}

.team-card h3 {
  margin: 1rem 0 0.35rem;
  color: var(--primary);
}

.position {
  margin: 0;
  color: var(--accent);
  font-weight: 700;
}

.bio {
  margin: 0.7rem 0 1.2rem;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
}

.contact-form, .newsletter-form {
  display: grid;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  font: inherit;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-status {
  margin-top: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.contact-info-block {
  margin-bottom: 1.25rem;
}

.contact-info-block h4 {
  margin: 0 0 0.4rem;
  color: var(--primary);
}

.contact-info-block p {
  margin: 0.25rem 0;
  color: var(--muted);
}

.cta-block {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(15, 59, 92, 0.05) 0%, rgba(216, 154, 39, 0.05) 100%);
  border-radius: 1rem;
  border: 2px solid var(--border);
}

.cta-block h2 {
  margin: 0 0 1rem;
  color: var(--primary);
}

.cta-block p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-footer {
  background: #0c2031;
  color: var(--white);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h4 {
  margin-top: 0;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-grid a {
  color: rgba(255,255,255,0.8);
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2rem;
  padding: 1rem 0 2rem;
  color: rgba(255,255,255,0.8);
  text-align: center;
}

@media (max-width: 1200px) {
  .dropdown-menu {
    min-width: 750px;
  }

  .services-featured-grid {
    grid-template-columns: 1fr;
  }

  .service-lifecycle {
    grid-template-columns: repeat(4, 1fr);
  }

  .lifecycle-step:nth-child(4n)::after {
    display: none;
  }

  .lifecycle-step:nth-child(n+5)::before {
    content: "";
    position: absolute;
    left: 24px;
    top: -1rem;
    width: 2px;
    height: 1rem;
    background: linear-gradient(180deg, var(--accent), transparent);
  }
}

@media (max-width: 980px) {
  .cards-grid,
  .team-grid,
  .benefits-grid,
  .focus-grid,
  .vision-mission,
  .contact-layout,
  .split-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-core-grid {
    grid-template-columns: 1fr;
  }

  .dropdown-menu {
    min-width: 600px;
    grid-template-columns: 1fr;
  }

  .dropdown-menu a {
    padding: 1rem;
  }
}

@media (max-width: 760px) {
  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: var(--white);
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--border);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    padding: 0.5rem 0;
  }

  .hamburger {
    display: block;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: var(--light);
    border: none;
    border-top: none;
    box-shadow: none;
    margin: 0.5rem 0 0 0;
    min-width: auto;
    grid-template-columns: 1fr;
  }

  .dropdown-menu a {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .dropdown-menu a span {
    font-size: 0.85rem;
  }

  .dropdown-menu a span:first-child {
    font-size: 0.95rem;
  }

  .nav-item-dropdown:hover .dropdown-menu {
    transform: none;
  }

  .cards-grid,
  .team-grid,
  .benefits-grid,
  .focus-grid,
  .vision-mission,
  .contact-layout,
  .split-grid,
  .footer-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .service-lifecycle {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .lifecycle-step:not(:last-child)::after {
    display: none;
  }

  .lifecycle-step:nth-child(odd)::before {
    content: "";
    position: absolute;
    right: -1rem;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
  }

  .lifecycle-step:nth-child(even)::before {
    content: "";
    position: absolute;
    left: -1rem;
    top: 50%;
    width: 2rem;
    height: 2px;
    background: linear-gradient(270deg, var(--accent), transparent);
  }

  .hero {
    min-height: 520px;
  }

  .services-featured-grid {
    grid-template-columns: 1fr;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .lifecycle-step h4 {
    font-size: 0.85rem;
  }

  .lifecycle-step p {
    font-size: 0.75rem;
  }
}