/* =========================================================
   DoFlex — Design System
   ========================================================= */

:root {
  --df-navy: #1A365D;
  --df-navy-deep: #122844;
  --df-cyan: #00A8E8;
  --df-orange: #FF6B00;
  --df-orange-hover: #E55F00;
  --df-graphite: #2D3748;
  --df-muted: #718096;
  --df-light: #F7FAFC;
  --df-white: #FFFFFF;
  --df-border: rgba(26, 54, 93, 0.12);

  --bs-primary: var(--df-navy);
  --bs-link-color: var(--df-cyan);
  --bs-link-hover-color: var(--df-navy);
  --bs-body-color: var(--df-graphite);
  --bs-body-font-family: "DM Sans", system-ui, sans-serif;
  --bs-heading-color: var(--df-navy);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--df-graphite);
  background-color: var(--df-white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

.min-vh-75 {
  min-height: calc(75vh + 2.5cm);
}

.text-accent {
  color: var(--df-orange) !important;
}

/* ---------- Buttons ---------- */

.btn-cta {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--df-orange);
  --bs-btn-border-color: var(--df-orange);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--df-orange-hover);
  --bs-btn-hover-border-color: var(--df-orange-hover);
  --bs-btn-focus-shadow-rgb: 255, 107, 0;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #CC5500;
  --bs-btn-active-border-color: #CC5500;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 0.375rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 107, 0, 0.28);
}

.btn-outline-light {
  font-weight: 600;
  border-width: 2px;
  border-radius: 0.375rem;
}

.btn-outline-light:hover {
  color: var(--df-navy);
}

/* ---------- Navbar ---------- */

.doflex-navbar {
  background: var(--df-navy);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

.doflex-navbar .navbar {
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.logo-nav {
  width: auto;
  height: 110px;
  max-height: 110px;
  object-fit: contain;
}

.doflex-navbar .nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.2s ease;
}

.doflex-navbar .nav-link:hover,
.doflex-navbar .nav-link:focus {
  color: var(--df-cyan) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 232, 0.35);
}

/* ---------- Hero ---------- */

.hero-section {
  position: relative;
  background-color: var(--df-navy);
  background-image: url("../img/hero-bg.png");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--df-white);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      rgba(18, 40, 68, 0.88) 0%,
      rgba(26, 54, 93, 0.72) 38%,
      rgba(26, 54, 93, 0.35) 62%,
      rgba(15, 33, 56, 0.2) 100%
    );
}

.hero-eyebrow {
  color: var(--df-cyan);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

.hero-title {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.85rem, 4.2vw, 3.15rem);
  line-height: 1.15;
  color: var(--df-white);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}

.hero-slogan {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.35rem;
  color: var(--df-cyan);
  margin: 0;
}

/* ---------- Sections ---------- */

.section-eyebrow {
  color: var(--df-cyan);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  color: var(--df-cyan);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-lead {
  color: var(--df-graphite);
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.92;
}

.section-about {
  background: var(--df-light);
}

.section-solutions {
  background: var(--df-white);
}

.section-differentials {
  background: var(--df-light);
}

.section-segments {
  background: var(--df-white);
}

.section-contact {
  background: linear-gradient(180deg, var(--df-light) 0%, #eef2f7 100%);
}

/* ---------- Solution cards ---------- */

.solution-card {
  border: 1px solid var(--df-border);
  border-radius: 0.75rem;
  box-shadow: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 168, 232, 0.35);
  box-shadow: 0 12px 32px rgba(26, 54, 93, 0.1);
}

.solution-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(255, 107, 0, 0.1);
  color: var(--df-orange);
  font-size: 1.35rem;
}

.solution-card .card-title {
  color: var(--df-navy);
  font-weight: 700;
}

.solution-card .card-text {
  color: var(--df-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---------- Differentials ---------- */

.differential-item {
  background: var(--df-white);
  border: 1px solid var(--df-border);
  border-radius: 0.75rem;
  transition: border-color 0.2s ease;
}

.differential-item:hover {
  border-color: rgba(0, 168, 232, 0.4);
}

.differential-icon {
  width: 3.25rem;
  height: 3.25rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.1);
  color: var(--df-orange);
  font-size: 1.4rem;
}

.differential-item h3 {
  color: var(--df-navy);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.differential-item p {
  color: var(--df-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Segments ---------- */

.segment-chip {
  background: var(--df-navy);
  color: var(--df-white);
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.segment-chip:hover {
  background: #214677;
  transform: translateY(-2px);
}

.segment-chip-icon {
  color: var(--df-cyan);
  font-size: 1.75rem;
}

/* ---------- Contact form ---------- */

.contact-aside a {
  color: var(--df-graphite);
  text-decoration: none;
  font-weight: 500;
}

.contact-aside a:hover {
  color: var(--df-cyan);
}

.contact-form-wrap {
  background: var(--df-white);
  border: 1px solid var(--df-border);
  border-radius: 0.85rem;
  box-shadow: 0 8px 28px rgba(26, 54, 93, 0.06);
}

.contact-form-wrap .form-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--df-navy);
}

.contact-form-wrap .form-control {
  border-color: #CBD5E0;
  padding: 0.7rem 0.9rem;
  color: var(--df-graphite);
}

.contact-form-wrap .form-control:focus {
  border-color: var(--df-cyan);
  box-shadow: 0 0 0 0.2rem rgba(0, 168, 232, 0.2);
}

.contact-form-wrap .form-control.is-invalid {
  border-color: #e53e3e;
}

/* ---------- Footer ---------- */

.doflex-footer {
  background: var(--df-navy);
  color: rgba(255, 255, 255, 0.85);
}

.logo-footer {
  width: auto;
  height: 110px;
  max-height: 110px;
  object-fit: contain;
}

.footer-tagline {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.45;
}

.footer-heading {
  color: var(--df-cyan);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.footer-list,
.footer-list a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-list a:hover {
  color: var(--df-cyan);
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.footer-copy {
  color: rgba(255, 255, 255, 0.55);
}

.footer-slogan {
  color: var(--df-cyan);
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero-title,
  .hero-subtitle,
  .hero-slogan,
  .hero-eyebrow,
  .hero-section .btn {
    animation: fadeUp 0.7s ease both;
  }

  .hero-eyebrow { animation-delay: 0.05s; }
  .hero-title { animation-delay: 0.15s; }
  .hero-subtitle { animation-delay: 0.28s; }
  .hero-slogan { animation-delay: 0.38s; }
  .hero-section .btn { animation-delay: 0.48s; }

  .solution-card,
  .differential-item,
  .segment-chip {
    animation: fadeUp 0.55s ease both;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 991.98px) {
  .doflex-navbar .navbar-collapse {
    background: var(--df-navy-deep);
    margin-top: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
  }

  .logo-nav {
    height: 78px;
    max-height: 78px;
  }
}

@media (max-width: 575.98px) {
  .hero-section .btn-lg {
    width: 100%;
  }
}
