/* Theme variables */
:root {
    --primary-color: #153459;
    --primary-gradient-start: #1C539E;
    --primery-fill: #e3f2fd;
    --secondary-color: #ffc107;
    --success-color: #25D366;
    --light-color: #FFFFFF;
    --tertiary-color: #F1F4F8;
    --text-dark: #101213;
    --text-secondary: #57636C;
    --border-color: #E0E3E7;
    --font-family: 'Cairo', sans-serif;
}

body {
    font-family: 'Cairo', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Professional Marquee Animation */
@keyframes marquee {
    0% {
        transform: translate3d(0%, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

/* Marquee Component */
.marquee-component {
    background: var(--light-color);
    width: 100%;
    overflow: hidden;
    /* Remove edge fading to avoid perceived gaps */
    -webkit-mask-image: none;
    mask-image: none;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content; /* width equals content width */
    /* animation: marquee 30s linear infinite;  -- disabled, GSAP drives animation */
    will-change: transform;
    direction: ltr; /* force left-to-right flow for consistent animation */
}

.marquee-track:hover {
    animation-play-state: running; /* keep running on hover */
}

.marquee-content {
    display: flex;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    padding-block: 10px;
    width: auto; /* natural width */
    flex-shrink: 0;
    justify-content: flex-start; /* avoid outer edge gaps */
    direction: ltr;
}

.marquee-content img {
    height: clamp(60px, 10vw, 100px);
    width: auto;
    max-width: 220px;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.marquee-content img:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* Legacy support */
.animate-scroll {
    animation: marquee 30s linear infinite;
}

/* Start animation only when JS adds this class (not required anymore, kept for compatibility) */
.marquee-track.running { animation-play-state: running; }

/* GSAP logo-wrapper stage (client logos) */
#client-logos-stage {
    position: relative;
    overflow: hidden;
    /* Match previous logo band height */
    height: clamp(60px, 10vw, 100px);
    /* Make the logo band full-bleed across the screen */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    direction: ltr; /* avoid RTL interference */
}
/* Track-based marquee inside stage */
#client-logos-stage .logos-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    align-items: center;
    gap: clamp(40px, 6vw, 80px);
    will-change: transform;
}
#client-logos-stage .logo-cell {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
#client-logos-stage .logo-cell img {
    height: clamp(60px, 10vw, 100px);
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
    transition: transform 0.2s ease;
}
#client-logos-stage .logo-cell img:hover {
    transform: scale(1.05);
}

.logo-wrapper {
    width: 20%; /* 5 across */
    position: absolute;
    visibility: hidden; /* shown by GSAP */
    top: 0;
    height: 100%;
    left: 0; /* anchor to left so xPercent positioning lines up */
}
.logo-wrapper .logo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 2vw, 16px);
}
.logo-wrapper .logo img {
    height: clamp(60px, 10vw, 100px); /* match old size */
    width: auto;
    max-width: 220px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.08));
    transition: transform 0.2s ease;
}
.logo-wrapper .logo img:hover {
    transform: scale(1.05);
}

/* Custom scrollbar for fleet categories */
.category-scrollbar::-webkit-scrollbar {
    height: 4px;
}
.category-scrollbar::-webkit-scrollbar-track {
    background: #f1f4f8;
}
.category-scrollbar::-webkit-scrollbar-thumb {
    background: #153459;
    border-radius: 2px;
}

/* Fade-in animation for sections on scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* FadeIn keyframes to support .animated sections like the old design */
@keyframes ff-fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animated { opacity: 0; }
.fade-in { animation: ff-fadeIn 0.8s ease-out forwards; }

/* Old design: Fleet categories and products styles */
.categories-container-new {
  display: flex;
  justify-content: flex-start;
  gap: clamp(8px, 2.2vw, 16px);
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px 12px 15px;
  margin-bottom: 24px;
  min-height: 150px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 12px;
}
.categories-container-new::-webkit-scrollbar { display: none; }

.products-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
  justify-items: center;
  min-height: 330px;
}

.category-card-new {
  width: clamp(140px, 28vw, 190px);
  flex-shrink: 0;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--light-color);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
}
.category-card-new:hover,
.category-card-new.active {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
.category-card-image-wrapper {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  bottom: 44px; /* leave space for title */
  width: auto;
  height: auto;
  background-color: transparent;
  z-index: 0; /* keep image layer below title */
}
.category-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* do not crop; fit inside 4:3 area */
  object-position: center;
  background-color: transparent;
  display: block;
  transform: none; /* avoid zoom that may crop */
  will-change: transform;
}
.category-card-title {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: clamp(16px, 3.5vw, 22px);
  font-weight: 600;
  color: var(--primary-color);
  z-index: 1; /* ensure above image */
}

/* New unified category card styles (without Tailwind @apply) */
.category-card {
  width: 190px;
  flex-shrink: 0;
  height: 150px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--light-color);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  text-align: center;
  box-shadow: none; /* Match product card (no base shadow) */
}
.category-card:hover,
.category-card.active { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0,0,0,0.2); }
.category-card.active { border-color: var(--secondary-color); }
.category-card.active .category-title { color: var(--primary-color); }
.category-image-wrapper { width: 140px; height: 130px; position: absolute; top: -5px; left: 50%; transform: translateX(-50%); overflow: hidden; z-index: 0; }
.category-image-wrapper img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; }
.category-card:hover .category-image-wrapper img { transform: scale(1.05); }
.category-title { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 20px; font-weight: 700; color: #475569; }

/* Categories strip container to white */
#hero-categories {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
}
/* If the list itself needs white background */
#hero-categories-list {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
}

.product-card-new {
  width: 300px;
  height: 330px;
  border: 1px solid var(--text-secondary);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: var(--light-color);
}
.product-card-new:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); }
.product-card-img-container { height: 210px; padding: 5px; background-color: var(--light-color); }
.product-svg { width: 100%; height: 100%; object-fit: contain; }
.product-card-details { height: 120px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.product-title { font-size: 20px; font-weight: 600; color: var(--text-dark); }
.product-spec { font-size: 14px; color: var(--text-secondary); }
.product-contact-btn { align-self: flex-end; margin-top: auto; background-color: var(--primary-color); color: var(--light-color); padding: 5px 16px; border-radius: 8px; text-decoration: none; font-size: 14px; transition: background-color 0.3s; }
.product-contact-btn:hover { background-color: var(--primary-gradient-start); }
.product-contact-btn { margin-bottom: 6px; }

/* Map section (old design) */
.map-section { position: relative; width: 100%; height: 600px; background-color: var(--border-color); }
.map-section iframe { width: 100%; height: 100%; border: 0; }
.map-info-box { position: absolute; top: 12px; left: 12px; width: clamp(200px, 60%, 286px); background-color: var(--tertiary-color); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); padding: 10px; display: flex; gap: 10px; }

/* Responsive tweaks aligning old design */
@media (max-width: 1440px) {
  .products-grid-new { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}
@media (max-width: 1024px) {
  .products-grid-new { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .product-card-img-container { height: 160px; }
}
@media (max-width: 768px) {
  .products-grid-new { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .product-card-img-container { height: 140px; }
  .product-card-details { padding: 4px; gap: 3px; }
  .map-info-box { display: none; }
}

/* Product swiper styles to mimic provided structure */
.bd { width: 100%; }
.bd_swiper { position: relative; }
.bd_swiper .item { background: var(--light-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; align-items: stretch; height: 100%; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.bd_swiper .tit_box { margin-bottom: 8px; }
.bd_swiper .tit1 a { font-size: 18px; font-weight: 700; color: var(--primary-color); text-decoration: none; }
.bd_swiper .img_ { margin: 8px 0; }
.bd_swiper .rect-73 { position: relative; width: 100%; padding-top: 73%; overflow: hidden; border-radius: 8px; background: #fff; }
.bd_swiper .rect-73 img._full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.bd_swiper .more { margin-top: 8px; }
.bd_swiper .more a { color: var(--primary-color); font-weight: 600; text-decoration: none; }

/* Swiper arrows */
.swiper-button { width: 44px; height: 44px; border-radius: 50%; background: rgba(21,52,89,0.1); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.swiper-button:hover { background: rgba(21,52,89,0.2); }
.swiper-button::after { display: none; }
.swiper-button-prev, .swiper-button-next { color: var(--primary-color); }

/* Footer tax widget: smaller, rounded logo + readable number */
footer .textwidget { margin-top: 8px; }
footer .textwidget .images {
  width: 48px;
  height: 48px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
footer .textwidget .images img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
footer .textwidget .tax {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

/* Hero-style product section */
.product-hero { position: relative; text-align: center; padding: 80px 20px; background: radial-gradient(circle, #f9f9f9, #eaeaea); overflow: hidden; }
.product-hero .product-container { max-width: 1200px; margin: 0 auto; position: relative; }
.product-hero .product-title { font-size: 2.5rem; font-weight: 800; color: var(--primary-color); position: relative; z-index: 2; letter-spacing: 1px; }
.product-hero .product-image-wrapper { position: relative; z-index: 2; margin-top: 12px; }
.product-hero .product-image { max-width: 100%; height: auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.12)); }
.product-hero .background-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(3rem, 14vw, 10rem); color: rgba(28, 83, 158, 0.07); font-weight: 900; z-index: 1; pointer-events: none; letter-spacing: 4px; white-space: nowrap; }
.product-hero .read-more-button { display: inline-block; margin-top: 30px; padding: 12px 28px; background-color: var(--primary-color); color: #fff; font-weight: 800; text-decoration: none; border-radius: 10px; transition: background 0.3s ease, transform 0.2s ease; }
.product-hero .read-more-button:hover { background-color: var(--primary-gradient-start); transform: translateY(-2px); }

/* Product Section Slider (Flutter-like) */
.product-section {
  position: relative;
  min-height: clamp(420px, 68vh, 720px);
  background: #ffffff; /* set product section background to white */
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  z-index: 1; /* ensure above any previous overlapping elements */
  --slide-w: min(95vw, 1100px); /* unified slide/image width for positioning */
  display: flex;            /* help center child layer */
  align-items: center;      /* vertical center */
  justify-content: center;  /* horizontal center */
  /* Make full-bleed width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-top: clamp(16px, 2vh, 24px);
  padding-bottom: clamp(88px, 14vh, 128px); /* space for indicators/CTAs */
}
/* Ensure the dynamic slides container fills and anchors positioning */
#hero-slides-container { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.product-slide { position: absolute; inset: 0; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; opacity: 0; transition: opacity 0.5s ease-in-out; padding: 0; z-index: 3; }
.product-slide.active { opacity: 1; }
/* Fallback: ensure first slide visible if JS hasn't activated any */
.product-section #hero-slides-container > .product-slide:first-child { opacity: 1; }
/* Hide content of inactive slides */
.product-slide:not(.active) .product-title-overlay { display: none; }
.product-slide.active .product-title-overlay { display: block; }
.product-slide:not(.active) .product-image { display: none; }
.product-slide.active .product-image { display: block; }
.brand-background { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: clamp(3rem, 12vw, 8em); font-weight: 900; color: rgba(0,0,0,0.05); letter-spacing: clamp(6px, 2vw, 20px); z-index: 1; white-space: nowrap; pointer-events: none; }
.product-title { font-size: clamp(1.75rem, 5vw, 3em); font-weight: 800; color: #333; margin: 0 auto 24px; z-index: 3; position: relative; letter-spacing: 1px; text-align: center; }
.product-image { width: var(--slide-w); height: auto; margin: 0 auto; z-index: 3; position: relative; overflow: hidden; display: flex; flex: 0 1 auto; align-items: center; justify-content: center; max-height: calc(100% - 160px); }

/* Product title above the image */
.product-title-overlay {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  color: #153459;
  padding: 0;
  margin: 0;
  border-radius: 0;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800;
  text-align: center;
  z-index: 5;
  box-shadow: none;
  backdrop-filter: none;
  width: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}
@media (max-width: 640px) {
  .product-title-overlay { top: clamp(40px, 10vh, 120px); }
}
@media (max-width: 430px) {
  .product-title-overlay { top: clamp(56px, 12vh, 140px); }
}
.product-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.product-image img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display: block; }
.equipment-icon { font-size: clamp(3rem, 12vw, 8em); color: #4a5568; }

/* Read more button for product slides */
.read-more-btn {
  display: inline-block;
  background: #153459;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 16px;
  z-index: 4;
  position: relative;
}
.read-more-btn:hover {
  background: #1C539E;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.read-more-btn { background: #333; color: #90EE90; padding: 15px 40px; border: none; border-radius: 5px; font-size: 1.1em; font-weight: 800; letter-spacing: 2px; cursor: pointer; transition: all 0.3s ease; z-index: 3; position: relative; text-decoration: none; display: inline-block; }
.read-more-btn:hover { background: #555; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }

/* Arrows */
.swiper-button { position: absolute; top: 50%; transform: translateY(-50%); width: 100px; height: 100px; background: rgba(255,255,255,0.9); border: 2px solid #ddd; border-radius: 50%; cursor: pointer; z-index: 10; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; font-size: 3em; color: #666; }
.swiper-button:hover { background: #fff; border-color: var(--secondary-color); color: var(--primary-color); transform: translateY(-50%) scale(1.05); }
.swiper-button-prev { left: 30px; }
.swiper-button-next { right: 30px; }
.swiper-button-prev::before { content: "\00AB"; }
.swiper-button-next::before { content: "\00BB"; }

/* CTA buttons below slider */
.product-ctas { position: absolute; bottom: clamp(12px, 2vh, 24px); left: 50%; transform: translateX(-50%); display: flex; gap: clamp(8px, 2vw, 16px); z-index: 11; flex-wrap: nowrap; align-items: center; justify-content: center; padding: 0 12px; width: var(--slide-w); white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.product-ctas a { white-space: nowrap; }
.cta-btn { display: inline-block; padding: 12px 20px; border-radius: 8px; font-weight: 800; letter-spacing: 1px; text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.cta-browse { background: var(--secondary-color); color: var(--primary-color); }
.cta-quote { background: var(--primary-color); color: #fff; }
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,0.12); }

/* Categories strip spacing on slider */
#hero-categories-list { margin-top: 8px; }

.product-indicators { position: absolute; bottom: clamp(56px, 10vh, 96px); left: 50%; transform: translateX(-50%); display: flex; gap: clamp(8px, 1.2vw, 14px); z-index: 10; width: var(--slide-w); justify-content: center; }
.indicator { width: 15px; height: 15px; border-radius: 50%; background: rgba(255,255,255,0.5); cursor: pointer; transition: all 0.3s ease; }
.indicator.active { background: #90EE90; transform: scale(1.2); }
@media (max-width: 768px) {
  .product-title { font-size: 2rem; letter-spacing: 1px; }
  .product-image { width: var(--slide-w); height: auto; }
  .brand-background { font-size: 4em; letter-spacing: 10px; }
  .swiper-button { width: 60px; height: 60px; font-size: 2em; }
  .swiper-button-prev { left: 12px; }
  .swiper-button-next { right: 12px; }
  /* Keep CTAs side-by-side on mobile as requested */
  .product-ctas { flex-direction: row; gap: 10px; }
}

/* Background image for product section */
.product-section {
  position: relative; /* needed for overlay */
  background-image: url('https://storage.googleapis.com/flutterflow-io-6f20.appspot.com/projects/test-5wu8rw/assets/yuekd3p1lr9v/ipt1_03.jpg');
  background-size: cover;
  background-position: center;
}

/* 20% translucent overlay above the background image, below content */
.product-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1; /* keep below content */
}

/* Responsive product title size */
.product-title { font-size: clamp(1.5rem, 4.5vw, 48px); }

/* Hide the old brand overlay class only (keep #hero-brand-text visible) */
.brand-background { display: none; }

/* Center tiny dot */
.center-dot { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 4px; height: 4px; border-radius: 50%; background: rgba(75, 57, 239, 0.29); z-index: 2; }
@media (max-width: 768px) { .center-dot { display: none; } }

/* Icon-only arrows, larger, RTL position: prev right, next left */
.swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  box-shadow: none !important;
  width: auto;
  height: auto;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(56px, 8vw, 120px);
  color: var(--primary-color);
  line-height: 1;
  padding: 0;
}
.swiper-button:hover { color: var(--secondary-color); }
.product-section .swiper-button:focus-visible,
.product-ctas a:focus-visible,
.cta-button:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 2px; border-radius: 8px; }
/* RTL-friendly: Prev on right (») and Next on left («), anchored to image edges */
.swiper-button-prev { right: calc((100vw - var(--slide-w)) / 2 + 8px); left: auto; }
.swiper-button-next { left: calc((100vw - var(--slide-w)) / 2 + 8px); right: auto; }
/* Double-arrow glyphs: prev points left « , next points right » */
.swiper-button-prev::before { content: '\00AB'; }
.swiper-button-next::before { content: '\00BB'; }
@media (max-width: 1024px) {
  .product-section .swiper-button { font-size: clamp(56px, 7.5vw, 88px); }
}
@media (max-width: 768px) {
  .product-section .swiper-button { font-size: clamp(48px, 9vw, 72px); }
}
@media (max-width: 480px) {
  .product-section .swiper-button { font-size: clamp(36px, 12vw, 56px); }
}
.product-indicators { display: flex; align-items: center; gap: 10px; justify-content: center; }
.product-indicators .indicator { width: 10px; height: 10px; border-radius: 50%; background: #9ca3af; opacity: 0.7; transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease; }
.product-indicators .indicator.active { background: #1e40af; opacity: 1; transform: scale(1.1); box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.25); }

/* CTA buttons (no Tailwind @apply) */
.cta-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 10px; font-weight: 800; font-size: 18px; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.cta-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.cta-button .icon { margin-left: 8px; }
.cta-button.primary { background: var(--secondary-color); color: var(--primary-color); }
.cta-button.primary:hover { background: #ffd54f; }
.cta-button.secondary { background: #374151; color: #fff; }
.cta-button.secondary:hover { background: #1f2937; }

/* Preferred contact radio pills (plain CSS, no Tailwind dependency) */
.pref-group .pref-pill {
  border-width: 1px;
  border-style: solid;
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: transparent;
  font-weight: 400; /* thinner by default */
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
/* Hover (when the input is not checked yet) */
.pref-group input[type="radio"] + .pref-pill:hover {
  transform: translateY(-2px);
}
/* Selected */
.pref-group input[type="radio"]:checked + .pref-pill {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
  font-weight: 400; /* keep same weight when selected */
  transform: translateY(-2px);
}
/* Make sure icons follow current color */
.pref-group .pref-pill i { color: currentColor; }

/* Floating WhatsApp FAB breathing animation */
@keyframes whatsapp-breath {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0.0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.0); }
}

.whatsapp-fab { position: relative; animation: whatsapp-breath 2.2s ease-in-out infinite; }

/* Optional subtle outer ring */
.whatsapp-fab::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.08);
  z-index: 0;
  pointer-events: none;
  animation: whatsapp-breath 2.2s ease-in-out infinite;
}

/* Periodic bounce every ~30s applied to wrapper to avoid transform conflicts */
@keyframes whatsapp-bounce-periodic {
  0%, 96% { transform: translateY(0); }
  97% { transform: translateY(-8px); }
  98% { transform: translateY(0); }
  99% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

.whatsapp-fab-wrap { animation: whatsapp-bounce-periodic 30s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab, .whatsapp-fab::after, .whatsapp-fab-wrap { animation: none !important; }
}

/* Responsive sizing for floating WhatsApp button */
/* Base (tablet default): ~56px button, 32px icon */
.whatsapp-fab { width: 56px; height: 56px; }
.whatsapp-fab i { font-size: 32px; line-height: 1; }
/* Ensure wrapper offsets override Tailwind utilities */
.whatsapp-fab-wrap { position: fixed; bottom: calc(2rem + env(safe-area-inset-bottom)); right: 2rem; z-index: 11005; pointer-events: auto; }

/* Mobile (<=640px): smaller button and closer to edges */
@media (max-width: 640px) {
  .whatsapp-fab { width: 56px; height: 56px; }
  .whatsapp-fab i { font-size: 28px; }
  .whatsapp-fab-wrap { bottom: calc(1rem + env(safe-area-inset-bottom)); right: 1rem; }
}

/* Desktop (>=1024px): slightly larger than base but smaller than before */
@media (min-width: 1024px) {
  .whatsapp-fab { width: 60px; height: 60px; }
  .whatsapp-fab i { font-size: 32px; }
  .whatsapp-fab-wrap { bottom: 2.25rem; right: 2.25rem; }
}

/* Very large screens (>=1536px): slightly larger than desktop */
@media (min-width: 1536px) {
  .whatsapp-fab { width: 68px; height: 68px; }
  .whatsapp-fab i { font-size: 36px; }
  .whatsapp-fab-wrap { bottom: 2.75rem; right: 2.75rem; }
}

/* Header CTA + language cluster */
.header-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--secondary-color); /* yellow */
  color: var(--primary-color); /* blue text */
  border-radius: 8px; /* rounded-lg */
  padding: 10px 24px; /* match subpages: px-6 py-2.5 */
  font-weight: 700; /* match subpages font-bold */
  font-size: 1rem; /* text-base */
  line-height: 1.25;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 44px; /* minimum interactive size */
  min-height: 44px;
}
.header-button:hover { transform: scale(1.05); box-shadow: 0 4px 12px rgba(0,0,0,0.12); }

@media (min-width: 640px) {
  .header-button { padding: 10px 24px; min-width: 44px; min-height: 44px; }
}
@media (min-width: 768px) {
  .header-button { padding: 10px 24px; min-width: 44px; min-height: 44px; }
}

.primary-btn { /* semantic alias for button variant */
  font: inherit; /* avoid empty ruleset lint, no visual change */
}

.border-left { width: 1px; height: 28px; background: rgba(21, 52, 89, 0.25); }
@media (min-width: 640px) { .border-left { height: 32px; } }

.language-link { color: var(--primary-color); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px; }
/* Hover: yellow */
.language-link:hover { color: var(--secondary-color); }
.globe-svg svg { width: 20px; height: 20px; }
@media (min-width: 640px) { .globe-svg svg { width: 24px; height: 24px; } }

/* Unify language switcher styles (header + subheader) */
.language-switcher a,
.language-nav__item--en.language-nav__item,
.language-nav__item.language-link { color: var(--primary-color); font-weight: 700; text-decoration: none; }
.language-switcher a:hover,
.language-nav__item--en.language-nav__item:hover { color: var(--secondary-color); }

/* On hero: white base, hover yellow */
.header-on-hero .language-link { color: #ffffff; }
.header-on-hero .language-link:hover { color: var(--secondary-color); }
/* Apply same hero behavior to sub-header language switcher */
.header-on-hero .language-switcher a,
.header-on-hero .language-nav__item { color: #ffffff; }
.header-on-hero .language-switcher a:hover { color: var(--secondary-color); }
/* On hero: nav links and burger icon turn white for contrast */
.header-on-hero #nav-links .nav-link { color: #ffffff !important; }
.header-on-hero #nav-links .nav-link:hover { color: var(--secondary-color) !important; }
.header-on-hero #menu-toggle-button { color: #ffffff !important; }
.header-on-hero .border-left { background: rgba(255,255,255,0.65); }
#site-header.header-on-hero { background-color: transparent !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
#site-header.header-on-hero:hover { background-color: transparent !important; }

/* Header logo behavior: default normal, invert to white while over hero */
.brand-logo { filter: none; transition: filter 0.2s ease; }
#site-header.header-on-hero .brand-logo { filter: brightness(0) invert(1) contrast(105%); }

/* Index overlay behavior uses header.about-override while over hero */
header.about-override .language-link { color: #ffffff !important; }
header.about-override .language-link:hover { color: var(--secondary-color) !important; }
/* Ensure CTA stays styled over hero */
header.about-override .header-button { background: var(--secondary-color) !important; color: var(--primary-color) !important; }

/* Ensure header is always above hero overlays and hoverable */
#site-header { z-index: 10010 !important; position: fixed; }
.hero__overlay { pointer-events: none; }
.hero__bg { pointer-events: none; }
