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

:root {
  --primary-red: #9a0000;
  --primary-blue: #044ba6;
  --dark-gray: #333;
  --light-gray: #666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --shadow: rgba(154, 0, 0, 0.15);
  --navbar-height: 72px;
}

:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

html {
  scroll-padding-top: var(--navbar-height);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.25;
  color: var(--dark-gray);
  padding-bottom: 80px;
}

/* HEADER */
.header {
  min-height: 45vh;
  background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-blue) 100%);
  color: var(--white);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 0.5rem 0.5rem;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 20px var(--shadow);
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}


h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
}

h3 {
  font-size: 1.3rem;
  color: var(--primary-red);
}

h4 {
  font-size: 1rem;
  color: var(--primary-blue);
  font-weight: normal;
}

p {
  font-size: 0.85rem;
}

.hero h2 {
  font-size: 1.6rem;
  color: var(--white);
}

.logo h3 {
  font-size: 1rem;
}

.logo p {
  font-size: 0.65rem;
  opacity: 0.9;
  color: var(--primary-blue);
  font-weight: bold;
}

.nav-links {
  top: var(--navbar-height);
  display: flex;
  list-style: none;
  gap: 1rem;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem;
  border-radius: 25px;
  transition: all 0.3s;
}

.nav-links a:hover {
  background: var(--primary-blue);
  color: var(--white);
}

.hero {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.cta-btn {
  margin-top: 2rem;
  font-size: 1rem;
  background: var(--primary-red);
  color: var(--white);
  padding: 0.25rem 3rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: all 0.3s;
  box-shadow: 0 10px 30px var(--shadow);
}

.cta-btn:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(154, 0, 0, 0.3);
}

/* SECTIONS */
.section {
  padding: 2.5rem 0;
  text-align: center;
}

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

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

.focus-view {
  display: none;
}

.focus-view.active {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  animation: fadeSlipUp 0.35s easeboth;
}

.card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 20px 60px var(--shadow);
  transition: all 0.3s;
  border-top: 5px solid var(--light-gray);
  display: flex;
  flex-direction: column;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card h4 {
  color: var(--primary-blue);
  font-weight: bold;
  margin-bottom: 1rem;
}

.card p {
  color: var(--dark-gray);
  flex: 1;
}

.functions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding-top: 1rem;
  }

  .fn {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f3f4f6;
    color: var(--light-gray);
  }

/* ── Active (relevant) state ── */
  .fn.active {
    background: var(--primary-blue);
    color: var(--white);
    font-weight: 600;
  }

/* VIEW TOGGLE */
.view-toggle {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  background: rgba(4, 75, 166, 0.08);
  border-radius: 50px;
  padding: 0.25rem;
  width: fit-content;
  margin: 0 auto 2.5rem auto;
}

.toggle-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--primary-blue);
  transition: all 0.25s ease;
}

.toggle-btn.active {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(4, 75, 166, 0.25);
}

.toggle-btn:not(.active):hover {
  background: rgba(4, 75, 166, 0.12);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* CLIENTS CAROUSEL */
.clients-carousel {
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-track {
  display: flex;
  width: max-content;
  animation: none;
}

.client-slide {
  min-width: 300px;
  text-align: center;
  padding: 2rem;
  flex-shrink: 0;
}

.client-slide img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid var(--primary-blue);
}

.client-info h3 {
  margin-bottom: 0.5rem;
}

.client-info h4 {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.client-info p {
  color: var(--dark-gray);
  margin-bottom: 0.25rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ABOUT */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}

.mission {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow);
  border-top: 5px solid var(--primary-blue);
}

.mission h3 {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--primary-red);
  position: relative;
}

.mission h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-blue);
  border-radius: 2px;
}

.mission h4 {
  font-size: 1rem;
  color: var(--dark-gray);
  font-weight: normal;
}

.team-profiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.team-profile {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px var(--shadow);
  border-top: 5px solid var(--primary-red);
  transition: all 0.3s;
}

.team-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary-blue);
  flex-shrink: 0;
}

.team-info h3 {
  margin-bottom: 0.5rem;
}

.team-info p {
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.team-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: bold;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-blue);
  border-radius: 25px;
  transition: all 0.3s;
  font-size: 1rem;
}

.team-linkedin:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.form-container iframe {
  width: 500px;      /* Adjust width as needed */
  height: 600px;     /* Adjust height as needed */
  border: none;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  z-index: 1003;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* BOTTOM BAR */
.bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -5px 25px var(--shadow);
  z-index: 999;
  padding: 0.5rem 0;
}

.bar-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.bar-item {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s;
}

.bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
}

.bar-label {
  display: inline;
}

.bar-item:hover {
  background: var(--primary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

.bar-separator {
  color: var(--light-gray);
  font-weight: normal;
}

.form-container {
  width: 100%;
  max-width: 800px;   /* cap width on large screens */
  margin: 0 auto;
}

.form-container iframe {
  width: 100%;
  height: 1000px;      /* fixed height — adjust to your form's length */
  border: none;
  display: block;
}


/* MOBILE */
@media (max-width: 768px) {
  .section {
    padding: 1rem 0;
  }

  h2 {
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-blue);
  }

  h3 {
    font-size: 0.85rem;
    color: var(--primary-red);
  }

  h4 {
    font-size: 0.5rem;
    color: var(--primary-blue);
    font-weight: normal;
  }

  p {
    font-size: 0.55rem;
  }

  .logo-img {
  width: 25px;
  height: 25px;
  border-radius: 40%;
  margin-right:0.2rem;
  }

  .navbar {
    padding: 0.5rem 0.75rem;
    gap: 0.3rem;
    overflow: visible;
  }

  .logo {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.3rem;
  }

  .logo h3 {
    display: none;
  }

  .logo p {
    font-size: 0.5rem;
  }

  .menu-toggle {
    display: flex;
  }

  .hero h2 {
    font-size: 1rem;
    line-height: 1;
    margin-bottom: 0;
  }

   .cta-btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.65rem;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    gap: 0;
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 500px;
    padding: 1rem 1rem 0.5rem;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #f5f5f5;
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 0.45rem 0;
    font-size: 0.65rem;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .nav-links a:hover {
    background: var(--bg-light);
    color: var(--dark-gray);
    padding-left: 1rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .grid-2x3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .focus-view.active{
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .focus-view{
    display: none;
  }

  .card {
    padding: 0.5rem 0.5rem;
    width: 95%;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }

  .icon {
    font-size: 1.25rem;
  }

  .card h3 {
    margin-bottom: 0.25rem;
  }

  .about-content {
    gap: 1rem;
    padding: 0.5rem 0.5rem;
    width: 95%;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
  }

  .mission {
    padding: 1rem 1rem;
  }

  .mission h3 {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .mission h4 {
    font-size: 0.65rem;
    color: var(--dark-gray);
  }

  .team-profiles {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-profile {
    padding: 0.5rem 0.75rem;
    width: 95%;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;    
    gap: 1rem;
    flex-direction: column;
  }

  .team-img {
    width: 60px;
    height: 60px;
  }

  .team-linkedin {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;

  }

  .client-slide {
    min-width: 250px;
    padding: 0.75rem;
  }

  .client-slide img {
    width: 90px;
    height: 60px;
  }

  .container {
    padding: 0 1rem;
  }

.toggle-btn {
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 0.5rem;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--primary-blue);
  transition: all 0.25s ease;
}

.toggle-btn.active {
  background: var(--primary-blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(4, 75, 166, 0.25);
}

.toggle-btn:not(.active):hover {
  background: rgba(4, 75, 166, 0.12);
}

  .bottom-bar {
    padding: 0.05rem 0.05rem;
  }

  .bar-content {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.3rem 0;
    -webkit-overflow-scrolling: touch;
  }

  .bar-item {
    justify-content: center;
    padding: 0.35rem 0.45rem;
    gap: 0;
    flex-shrink: 0;
    min-width: auto;
  }

  .bar-label {
    display: none;
  }

  .bar-icon {
    font-size: 0.75rem;
  }

  .bar-separator {
    display: inline;
    font-size: 0.85rem;
  }

  .team-info p,
  .card p,
  .client-info p { 
    font-size: 0.65rem; 
    color: var(--dark-gray);
  }

  .functions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
    padding-top: 0.5rem;
  }

  .fn {
    font-size: 0.65rem;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    background: #f3f4f6;
    color: var(--light-gray);
  }

  .client-info h3 {
    color: var(--primary-red);
  }

  .client-info h4 {
    color: var(--dark-gray);
  }

  body {
    padding-bottom: 65px;
  }
}
