/* Enable smooth scrolling for in-page anchors */
html { scroll-behavior: smooth; }

/* Offset target position to account for fixed navbar height */
#contactSection { scroll-margin-top: 90px; }

/* avanti-inspired clean design */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.hero-section {
  padding: 100px 0 80px;
  background-color: rgb(23, 43, 82) !important;
  background-image: none !important;
  color: rgb(255, 255, 255) !important;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-section h1,   
.hero-section h2,
.hero-section p,
.hero-section .section-title,
.hero-section .section-subtitle {
  color: rgb(255, 255, 255) !important;
}

.hero-content {
  max-width: 600px;
  position: relative; /* ensure it creates a stacking context */
  z-index: 2; /* above ::before overlay */
}

/* Ensure overlay does not intercept clicks */
.hero-section::before { pointer-events: none !important; }

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.maribel-image {
  max-width: 50%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Make testimonial card in CEO section match image size */
.section-padding .testimonial-card {
  background: #f8f9fa;
  border-left: 4px solid #e67e22;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  height: auto;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-padding {
  padding: 80px 0;
}

.btn-primary-custom {
  background-color: rgb(23, 43, 82);
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  background-color: rgba(23, 43, 82, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(23, 43, 82, 0.3);
}

.service-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.testimonial-card {
  background: #f8f9fa;
  border-left: 4px solid #e67e22;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: rgb(23, 43, 82);
  margin-bottom: 20px;
}

.section-subtitle {
  color: #ffffff;
  margin-bottom: 40px;
}

.contact-section {
  background-color: rgb(23, 43, 82);
  color: white;
}

.form-control-custom {
  border: none;
  border-bottom: 2px solid #e67e22;
  border-radius: 0;
  background: transparent;
  color: white;
  padding: 10px 0;
}

.form-control-custom::placeholder {
  color: rgba(255,255,255,0.7);
}

.form-control-custom:focus {
  background: transparent;
  border-color: #e67e22;
  box-shadow: none;
  color: white;
}

/* Icon sizing fixes */
.hero-icon {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px;
  max-height: 36px;
  display: block;
  margin: 0 auto;
}

.cardIcon {
  text-align: center;
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.cardIcon .hero-icon {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px;
  max-height: 48px;
  display: block;
  margin: 0 auto;
}

.iconContainer {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iconContainer .hero-icon {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px;
  max-height: 36px;
  display: block;
  margin: 0 auto;
}

svg.hero-icon {
  width: 36px !important;
  height: 36px !important;
  display: block;
  margin: 0 auto;
}

/* Moving client logo marquee */
.logo-marquee {
  background-color: rgb(23, 43, 82);
  padding: 70px 0;
  overflow: hidden;
}

.logo-marquee .marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content; /* allow content to be wider than container */
  animation: marquee-scroll 30s linear infinite;
}

.logo-marquee img {
  height: 40px;
  width: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1);
}

@media (min-width: 992px) {
  .logo-marquee img { height: 56px; }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Testimonials grid with overlay text */
.testimonial-grid .card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0f2350; /* fallback while image loads */
}

.testimonial-grid .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-grid .card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

.testimonial-grid .card .overlay-content {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  color: #fff;
}

/* Default focal point for first testimonial image across all sizes */
.testimonial-grid .card img.face-down { object-position: center 30%; }

.testimonial-quote {
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 10px 0;
  font-size: 1.125rem;
  color: white;
}

.testimonial-author { 
  margin: 0; 
  opacity: 0.95;
  color: white; 
}

.testimonial-company { 
  margin: 0; 
  opacity: 0.85;
  color: white; 
}

/* Responsive testimonial card height: slightly taller across sizes */
.testimonial-card-aspect { height: clamp(320px, 26vw, 600px); }

/* Testimonials section theming */
#testimonials { background-color: rgb(23, 43, 82); }
#testimonials .section-title,
#testimonials .section-subtitle { color: #fff; }

@media (min-width: 992px) {
  .testimonial-quote { font-size: 1.25rem; }
}

/* Slightly larger vertical spacing for the testimonials section */
#testimonials.section-padding { padding-top: 56px; padding-bottom: 64px; }

/* Mobile tweaks to better center faces in testimonial images */
@media (max-width: 991.98px) {
  .testimonial-grid .card img {
    /* Default mobile focal point */
    object-position: center 35%;
  }
  /* Use class-based targeting only (no structural selectors) */
  .testimonial-grid .card img.face-down { object-position: center 25%; }
}

@media (max-width: 575.98px) {
  /* Slightly taller cards on very small screens to avoid cutting heads */
  .testimonial-card-aspect { height: 320px; }
  /* Class-based targeting only on xs */
  .testimonial-grid .card img.face-down { object-position: center 22%; }
}

/* Tablet breakpoint: make testimonial cards taller as well */
@media (min-width: 576px) and (max-width: 991.98px) {
  .testimonial-card-aspect { height: 360px; }
}

/* CMPLZ hidden class */
.cmplz-hidden {
  display: none !important;
}

/* Force orange icons in the services section(s) */
/* Applies to both the grid (#services) and the cards block (#serviceSection) */
#serviceSection .hero-icon,
#serviceSection .hero-icon *,
#services .hero-icon,
#services .hero-icon * {
  color: #FF8E3C !important; /* for stroke=currentColor */
  stroke: #FF8E3C !important; /* ensure stroke is orange even if set inline */
  fill: none !important;      /* keep heroicons outlined */
}

/* Big testimonial card */
.big-quote-card {
  background: #34D1FF; /* bright blue */
  color: #172B52;      /* navy text */
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.big-quote-icon {
  color: rgba(255,255,255,0.8);
  font-size: 28px;
  line-height: 1;
}

.big-quote-text {
  font-size: clamp(1.25rem, 2vw + 0.5rem, 2rem);
}

.big-quote-author { margin-top: 1.5rem; }

/* DRID-style compact list look for the eight service lines */
#serviceSection .showCardContainer {
  box-shadow: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 16px 8px !important; /* more compact */
  display: grid !important;
  grid-template-columns: 56px 1fr;
  grid-template-areas:
    "icon title"
    "icon desc";
  column-gap: 16px;
  align-items: start;
  height: auto !important; /* shrink to content */
  min-width: 0 !important;
}

#serviceSection .showCardContainer:hover { 
  background: transparent !important; 
  box-shadow: none !important; 
}

#serviceSection .showCardContainer .cardIcon { 
  margin: 0; 
  display: flex; 
  align-items: flex-start; 
  justify-content: center; 
  grid-area: icon; 
}

#serviceSection .showCardContainer .hero-icon { 
  width: 36px !important; 
  height: 36px !important; 
}

#serviceSection .showCardContainer h3 { 
  margin: 0 0 6px 0; 
  font-size: 1.08rem; 
  font-weight: 700; 
  line-height: 1.25; 
  height: auto !important; 
  grid-area: title; 
  min-width: 0; 
  white-space: normal; 
  word-break: keep-all; 
  overflow-wrap: normal; 
}

#serviceSection .showCardContainer .pt-2 { 
  padding-top: 0.2rem !important; 
  grid-area: desc; 
  min-width: 0; 
}

#serviceSection .showCardContainer .pt-2 br { display: none; }

#serviceSection .showCardContainer .pt-2 p { 
  display: inline; 
  margin: 0; 
  color: #082041; 
  font-size: 0.98rem; 
  line-height: 1.45; 
  white-space: normal; 
  word-break: keep-all; 
  overflow-wrap: normal; 
}

#serviceSection .showCardContainer .pt-2 p + p::before { content: " "; }
#serviceSection .col-xxl-6 > .showCardContainer { width: 100% !important; }

/* light container look like mockup */
#serviceSection .row.py-5 { 
  background: transparent; 
  border: none; 
  border-radius: 0; 
  padding: 24px !important;
  margin-bottom: 16px; /* create separation from next section */
}

/* Leistungen section theme */
#serviceSection { 
  background-color: #172b52 !important; 
  color: #ffffff; 
}

#serviceSection h2,
#serviceSection h3,
#serviceSection p,
#serviceSection li,
#serviceSection .section-subtitle,
#serviceSection .text-muted { 
  color: #ffffff !important; 
}

/* Override earlier card text color for compact list items */
#serviceSection .showCardContainer .pt-2 p { color: #ffffff !important; }
#serviceSection .showCardContainer h3 { color: #ffffff !important; }

/* Tooltip for navbar brand icon */
.navbar-brand.tooltip-info { 
  position: relative; 
  display: inline-flex; 
  align-items: center; 
}

.navbar-brand.tooltip-info::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  background: #43bede; /* turquoise */
  color: #172B52;      /* navy text for contrast */
  padding: 12px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  width: min(480px, 92vw);
  white-space: pre-line; /* allow newlines */
  line-height: 1.35;
  font-size: 0.95rem;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.navbar-brand.tooltip-info:hover::after,
.navbar-brand.tooltip-info:focus::after { 
  opacity: 1; 
  transform: translateY(0); 
}
