/* ==========================================================================
   Structured Insight: site stylesheet
   Design by Cassie; ported from the React build to plain HTML.
   Changes from the original: self-hosted fonts (was a render-blocking
   Google Fonts @import), fixed invalid flex values, and responsive rules.
   ========================================================================== */

/* Self-hosted fonts ------------------------------------------------------ */
@font-face {
  font-family: 'Syncopate';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/syncopate-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Syncopate';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/syncopate-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Quicksand';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/quicksand-500.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #1b1a1a;
  background-color: #e5e7eb;
  min-height: 100vh;
}

/* Navbar ----------------------------------------------------------------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  border-bottom: 1px solid #cccccc;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
}

.navbar .logo {
  display: flex;
  align-items: flex-start;   /* was `left`, invalid, silently ignored */
  justify-content: flex-start;
  min-width: 150px;
}

.navbar .logo img {
  display: block;
  height: 70px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links li a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 24px;
  font-weight: 500;
  font-family: 'Quicksand', sans-serif;
}

.nav-links li a:hover,
.nav-links li a[aria-current='page'] {
  color: #2f5f8f;
}

/* Buttons ---------------------------------------------------------------- */
.contact-btn {
  display: inline-block;
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  font-size: 24px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.6s ease, background-color 0.2s ease;
}

.contact-btn:hover {
  background-color: #333;
  transform: translateY(0) scale(1.15);
}

/* Hero button fades in on load. `visibility` keeps it unclickable while
   invisible, which the original did with a React state flag. */
.company-header .contact-btn {
  opacity: 0;
  transform: translateY(20px);
  visibility: hidden;
  animation: hero-btn-in 3s ease 2s forwards;
}

@keyframes hero-btn-in {
  to {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
}

/* Hero ------------------------------------------------------------------- */
.company-header {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 100px;
  border-bottom: 1px solid #cccccc;
  background-color: #111111;
}

.company-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translateX(100%);
  transition: transform 1.2s ease-in-out;
  z-index: 0;
}

.hero-slide--active {
  transform: translateX(0);
}

.company-header-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.company-header-title {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: 'Syncopate', sans-serif;
  color: #ffffff;
}

/* Content ---------------------------------------------------------------- */
.content-section {
  position: relative;
  padding: 80px 10%;
  overflow: hidden;
}

/* Stacked sections (home page only). The 80px padding on each side doubles to
   a 160px gap, and the content-body adds another 40px below it, so two
   sections sat 200px apart. Collapse the doubling so stacked sections keep the
   same rhythm as the single-section pages. Single-section pages are unaffected:
   their only section is also the last of type. */
.content-section + .content-section {
  padding-top: 0;
}

.content-section:not(:last-of-type) .content-body {
  margin-bottom: 0;
}

.square-pattern {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(24, 95, 165, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 95, 165, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

.content-heading {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 60px;
}

.content-heading h1,
.content-heading h2 {
  font-family: 'Syncopate', sans-serif;
  font-size: 42px;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.content-heading p {
  max-width: 700px;
  margin: auto;
  color: #555;
  font-size: 18px;
  line-height: 1.7;
}

.content-body {
  position: relative;
  z-index: 2;
  margin: 0 100px 40px;
  padding: 0 10px 10px;
  font-size: 18px;
  line-height: 1.7;
  color: #333333;
}

.content-body p + p {
  margin-top: 12px;
}

.content-body ul {
  padding-left: 22px;
}

.content-body li + li {
  margin-top: 8px;
}

/* Cards ------------------------------------------------------------------ */
.content-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.content-icon {
  color: #2f5f8f;
  margin-bottom: 20px;
}

.content-icon svg {
  display: block;
}

.card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 20px;
  padding: 35px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
}

.card:hover {
  transform: translateY(-10px);
  border-color: #2f5f8f;
  box-shadow: 0 18px 45px rgba(47, 95, 143, 0.25);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

.card p {
  font-size: 17px;
  line-height: 1.6;
  color: #444;
}

/* Contact ---------------------------------------------------------------- */
.contact-principal {
  text-align: center;
  font-size: 20px;
  margin-bottom: 14px;
  color: #555;
}

.contact-list {
  list-style: none;
  text-align: center;
}

.contact-list li {
  font-size: 20px;
  margin-bottom: 14px;
}

.contact-list a {
  color: #2f5f8f;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1100px) {
  .content-body {
    margin: 0 40px 40px;
  }
}

@media (max-width: 900px) {
  .navbar {
    padding: 12px 20px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .navbar .logo {
    min-width: auto;
  }

  .navbar .logo img {
    height: 52px;
  }

  /* Nav links drop to their own row rather than overflowing. */
  .nav-links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
  }

  .nav-links li a {
    font-size: 18px;
  }

  .contact-btn {
    font-size: 18px;
    padding: 8px 16px;
  }

  .company-header {
    min-height: 320px;
    padding: 60px 20px 70px;
  }

  .company-header-title {
    font-size: 40px;
  }

  .content-section {
    padding: 60px 6%;
  }

  .content-heading {
    margin-bottom: 40px;
  }

  .content-heading h1,
  .content-heading h2 {
    font-size: 32px;
  }

  .content-body {
    margin: 0 10px 30px;
    font-size: 17px;
  }

  .content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .navbar .logo img {
    height: 44px;
  }

  .nav-links {
    gap: 14px;
  }

  .nav-links li a {
    font-size: 16px;
  }

  .contact-btn {
    font-size: 16px;
  }

  .company-header {
    min-height: 260px;
    padding: 50px 16px 60px;
  }

  .company-header-title {
    font-size: 26px;
    letter-spacing: 0;
  }

  .content-section {
    padding: 40px 20px;
  }

  .content-heading h1,
  .content-heading h2 {
    font-size: 24px;
  }

  .content-heading p {
    font-size: 16px;
  }

  .card {
    padding: 24px;
  }

  .contact-list li {
    font-size: 17px;
    word-break: break-word;
  }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-slide {
    transition: none;
  }

  .company-header .contact-btn {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }

  .card,
  .contact-btn {
    transition: none;
  }
}
