/* Base and layout */

:root {
  --blue-main: #2459b8;
  --blue-soft: #e6efff;
  --navy: #152238;
  --grey-bg: #f5f5f7;
  --grey-border: #d0d5e0;
  --text-main: #1f2933;
  --text-muted: #6b7280;
  --radius-card: 14px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: #ffffff;
  line-height: 1.6;
}

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

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

.section {
  padding: 4rem 0;
}

.section-header h2 {
  margin: 0 0 0.4rem;
  font-size: 2rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Header / nav */

.site-header {
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  height: 44px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.brand-tagline {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.main-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 2px;
  background-color: var(--blue-main);
  transition: width 0.15s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  width: 100%;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  cursor: pointer;
  padding: 0.35rem;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background-color: #111827;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, translate 0.2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg);
  translate: 0 5px;
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg);
  translate: 0 -5px;
}

/* Hero */

.hero {
  background: linear-gradient(135deg, #fdfdff 0%, #f1f5ff 55%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
  padding: 3.3rem 0 3.8rem;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 2.6rem;
  align-items: center;
}

.hero-copy h1 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: clamp(2.1rem, 4vw, 2.7rem);
  color: var(--navy);
}

.hero-copy p {
  margin: 0;
  color: var(--text-muted);
  max-width: 30rem;
}

.hero-points {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.point {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  color: #374151;
}

.point-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background-color: var(--blue-main);
  margin-top: 0.3rem;
}

/* Hero panel */

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-image-frame {
  border-radius: 1.2rem;
  overflow: hidden;
  border: 1px solid #d0d5e0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.17);
}

.hero-summary {
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  background-color: #ffffff;
  border: 1px solid #e0e3ee;
}

.hero-summary h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.hero-summary ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* About */

.about {
  background-color: #ffffff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.about-text h2 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.9rem;
}

.about-text p {
  color: var(--text-muted);
}

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

.about-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--grey-border);
  background-color: var(--grey-bg);
  padding: 0.9rem 1rem;
}

.about-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.about-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Services */

.services {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.services-layout {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

/* Left side tabs */

.services-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem;
  border-radius: 1rem;
  background-color: #ffffff;
  border: 1px solid #e0e3ee;
}

.service-tab {
  border-radius: 0.7rem;
  border: none;
  padding: 0.55rem 0.7rem;
  text-align: left;
  background-color: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-tab::after {
  content: "›";
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.service-tab.active {
  background-color: var(--blue-soft);
  color: var(--navy);
  font-weight: 600;
}

.service-tab.active::after {
  opacity: 1;
  transform: translateX(2px);
}

/* Right side panels */

.service-detail {
  border-radius: 1rem;
  padding: 1.1rem 1.2rem;
  background-color: #ffffff;
  border: 1px solid #e0e3ee;
  display: grid;
  gap: 1.2rem;
}

.service-panel {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr);
  gap: 1.4rem;
  align-items: flex-start;
}

.service-panel.active {
  display: grid;
}

.service-media img {
  border-radius: 0.9rem;
  border: 1px solid #d1d5e0;
}

.service-copy h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.service-copy p {
  margin: 0 0 0.6rem;
  color: var(--text-muted);
}

.service-copy ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.93rem;
  color: #374151;
}

/* Sectors */

.sectors {
  background-color: #ffffff;
}

.sector-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
}

.sector-card {
  border-radius: var(--radius-card);
  border: 1px solid var(--grey-border);
  background-color: var(--grey-bg);
  padding: 1rem 1.1rem;
}

.sector-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.sector-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* Contact */

.contact {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr);
  gap: 2.3rem;
  align-items: flex-start;
}

.contact-text h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-size: 1.8rem;
}

.contact-text p {
  color: var(--text-muted);
}

.contact-panel {
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid #e0e3ee;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.9rem;
}

.field label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.field input,
.field textarea {
  border-radius: 0.7rem;
  border: 1px solid #d1d5e0;
  padding: 0.5rem 0.7rem;
  font: inherit;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue-main);
  box-shadow: 0 0 0 1px rgba(36, 89, 184, 0.35);
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  border: none;
  background-color: var(--blue-main);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.3rem;
}

.submit-btn:hover {
  background-color: #1f4ca0;
}

.contact-note {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid #e5e7eb;
  background-color: #ffffff;
  padding: 1rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-top {
  text-decoration: none;
  color: var(--blue-main);
  font-weight: 500;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 1.5rem 1rem;
  }

  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .section {
    padding: 3.4rem 0;
  }

  .services-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .services-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .service-tab {
    min-width: 180px;
  }
}
