/* Fortuna Bautec – static site */
:root {
  --blue: #004ea1;
  --blue-dark: #00356e;
  --blue-light: #157ae5;
  --blue-grad: linear-gradient(90deg, rgba(0, 78, 161, 1) 50%, rgba(86, 91, 215, 1) 100%);
  --navy: #020e28;
  --ink: #3f485d;
  --ink-dark: #020d26;
  --soft: #eaeff3;
  --soft-2: #cbdce9;
  --muted: #777777;
  --white: #ffffff;
  --radius: 0;
  --shadow-soft: 10px 10px #eaeff3;
  --max: 1200px;
  --font: "Open Sans", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
}

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

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

a:hover {
  color: var(--blue-dark);
}

h1,
h2,
h3,
h4 {
  color: var(--ink-dark);
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: var(--blue);
  color: var(--white) !important;
  border: 1px solid var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.btn-outline {
  background: transparent;
  color: var(--blue) !important;
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white) !important;
}

/* Top bar */
.topbar {
  background: var(--navy);
  color: #a3a5aa;
  font-size: 0.9rem;
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: flex-end;
  padding: 0.65rem 0;
}

.topbar a {
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.topbar a:hover {
  color: #f6f5f5;
}

.topbar img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

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

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

.logo img {
  height: 56px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-dark);
  margin: 6px 0;
  transition: 0.2s;
}

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

.nav > li,
.nav-dropdown {
  list-style: none;
  position: relative;
}

.nav,
.nav-sub {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav > li > a,
.nav > li > button.has-sub {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--ink-dark);
  font-weight: 500;
  background: none;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.nav > li > a:hover,
.nav > li > button.has-sub:hover,
.nav > li > a.is-active {
  color: var(--blue);
}

.nav-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #dee2e6;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: 0.2s;
  z-index: 50;
}

.nav-dropdown:hover .nav-sub,
.nav-dropdown:focus-within .nav-sub,
.nav-dropdown.open .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav-sub a {
  display: block;
  padding: 0.65rem 1.1rem;
  color: var(--ink-dark);
}

.nav-sub a:hover {
  color: var(--blue);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(72vh, 640px);
  overflow: hidden;
  background: #0b4295;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 14, 40, 0.55), rgba(2, 14, 40, 0.15));
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 3rem 0;
}

.hero-panel {
  background: var(--blue-grad);
  color: var(--white);
  padding: 1.75rem 2rem;
  max-width: 720px;
  box-shadow: 10px 10px rgba(0, 0, 0, 0.25);
  clip-path: polygon(0% 75px, 75px 0%, 100% 0%, 100% 100%, 0 100%);
}

.hero-panel .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
  padding-left: 15px;
}

.hero-panel h1 {
  color: var(--white);
  font-weight: 300;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  margin: 0;
  text-transform: uppercase;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.hero-dots button.is-active {
  background: var(--blue);
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

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

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.section-lead {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
  color: var(--muted);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-media img {
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.about-media img:first-child {
  grid-column: 1 / -1;
  height: 280px;
}

.about-card {
  background: var(--blue-grad);
  color: var(--white);
  padding: 1.75rem;
  margin-top: -1.5rem;
}

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

.about-card p {
  margin: 0;
}

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

.feature-card {
  background: var(--soft);
  box-shadow: 10px 10px var(--soft-2);
  padding: 1.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-top: 2.5rem;
}

.feature-row.reverse .feature-copy {
  order: 2;
}

.feature-row img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border: 1px solid #e8eef3;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 4px 4px 1px var(--soft);
}

.service-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 50px 50px 0 0;
}

.service-card .body {
  padding: 1.25rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card h3 {
  margin-top: 0.25rem;
}

.service-card p {
  flex: 1;
  color: var(--muted);
}

.career {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
  background: var(--blue-grad);
  color: var(--white);
  padding: 2.5rem;
}

.career h2,
.career p {
  color: var(--white);
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 50px;
  aspect-ratio: 1;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-item span {
  position: absolute;
  inset: auto 0 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(2, 14, 40, 0.75));
  color: var(--white);
  font-size: 0.9rem;
}

.contact-band {
  background: var(--soft) url("../images/about/footer_bg_bleu.jpg") no-repeat 100% 50%;
  background-size: cover;
  border-top: 10px solid var(--soft-2);
}

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

.contact-card {
  background: rgba(255, 255, 255, 0.92);
  padding: 1.5rem;
  text-align: center;
  box-shadow: 4px 4px 4px rgba(0, 0, 0, 0.12);
}

.contact-card img {
  margin: 0 auto 0.75rem;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* Page hero (inner) */
.page-hero {
  background: var(--blue-grad);
  color: var(--white);
  padding: 3rem 0;
}

.page-hero h1 {
  color: var(--white);
  margin: 0;
  font-weight: 500;
}

.breadcrumb {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.content-main img.featured {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.sidebar-box {
  background: var(--soft);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}

.sidebar-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.85rem;
}

.sidebar-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-box li {
  border-top: 1px solid var(--soft-2);
}

.sidebar-box li:first-child {
  border-top: 0;
}

.sidebar-box a {
  display: block;
  padding: 0.65rem 0;
  color: var(--ink-dark);
}

.sidebar-box a:hover {
  color: var(--blue);
}

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

.check-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.6rem;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--blue);
  border-radius: 50%;
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 720px;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--ink-dark);
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid #d5dde5;
  font: inherit;
  color: var(--ink);
  background: var(--white);
}

.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form .checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
}

.form .checkbox input {
  width: auto;
  margin-top: 0.3rem;
}

.form .honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.map-embed {
  margin-top: 2rem;
}

.map-embed iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.legal-content h2,
.legal-content h3 {
  margin-top: 1.75rem;
}

.legal-content {
  max-width: 900px;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #a3a5aa;
  padding: 3rem 0 1.5rem;
}

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

.site-footer h3 {
  color: var(--white);
  font-size: 1.05rem;
}

.site-footer a {
  color: #a3a5aa;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-brand img {
  height: 64px;
  margin-bottom: 0.75rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.back-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  z-index: 90;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 980px) {
  .about-grid,
  .feature-grid,
  .services-grid,
  .feature-row,
  .feature-row.reverse .feature-copy,
  .career,
  .content-layout,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .feature-row.reverse .feature-copy {
    order: 0;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-panel {
    clip-path: none;
    max-width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid #e8eef3;
    display: none;
  }

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

  .nav-sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    background: var(--soft);
  }

  .nav-dropdown.open .nav-sub {
    display: block;
  }
}

@media (max-width: 640px) {
  .topbar-inner {
    justify-content: flex-start;
  }

  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo img {
    height: 44px;
  }
}
