/* =============================================
   WILLBERG GHANA LTD — Brand Colors
   Teal/cyan — matches Willberg Ghana Ltd logo
   ============================================= */
:root {
  --brand-primary:  #00C8C0;
  --brand-dark:     #00a89f;
  --amber:          #00C8C0;
  --amber-dark:     #00a89f;
  --amber-glow:     rgba(0,200,192,0.10);
  --border:         rgba(0,200,192,0.22);
}

/* Page header */
.page-header { border-bottom-color: rgba(0,200,192,0.25); }

/* Label */
.label::before { background: var(--brand-primary); }

/* Divider */
.divider { background: var(--brand-primary); }

/* Solid button: teal bg needs navy text */
.btn--solid {
  background: var(--brand-primary);
  color: var(--navy);
}
.btn--solid::after { background: var(--brand-dark); }
.btn--solid:hover { color: var(--navy); }

/* Highlight */
.highlight { color: var(--brand-primary); }

/* CTA band */
.cta-band { background: var(--brand-primary); }
.cta-band__heading { color: var(--navy); }
.cta-band__sub { color: rgba(11,17,32,0.75); }
.cta-band::before { color: rgba(0,160,155,0.2); }
.cta-band .btn--navy {
  border-color: var(--navy);
  color: var(--navy);
}
.cta-band .btn--navy::after { background: var(--navy); }
.cta-band .btn--navy:hover { color: var(--brand-primary); }

/* Service items */
.service-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: rgba(0,200,192,0.08);
  border: 1px solid rgba(0,200,192,0.18);
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
}

/* =============================================
   CATALOG SECTION
   ============================================= */
.catalog { position: relative; overflow: hidden; }

/* subtle teal grid texture behind catalog */
.catalog::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,200,192,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,192,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* Header row: intro text left, filters right */
.catalog__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.catalog__intro {
  color: var(--grey);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 48ch;
  margin-top: 1.25rem;
}

/* Filter buttons */
.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  flex-shrink: 0;
  max-width: 340px;
}

.catalog__filter {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--grey);
  font-family: var(--font-cond);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.catalog__filter:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.catalog__filter.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: var(--navy);
}

/* 3-column card grid */
.catalog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

/* Card */
.catalog-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
  position: relative;
}
.catalog-card:hover {
  border-color: var(--brand-primary);
  transform: translateY(-4px);
}

/* Image area container */
.catalog-card__img {
  position: relative;
  aspect-ratio: 1 / 1; /* Creates a perfect square */
  overflow: hidden;
  background: #ffffff; /* Matches your product photo backgrounds perfectly */
}

/* The image itself */
.catalog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Fills the square */
  object-position: center;
  display: block;
  padding: 0; /* Removed padding so it stretches edge-to-edge */
  transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* Category badge */
.catalog-card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--brand-primary);
  color: var(--navy);
  font-family: var(--font-cond);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  z-index: 1;
}

/* =============================================
   CATALOG CARD SLIDESHOW — 10 images, crossfade
   ============================================= */
.catalog-card__slideshow .catalog-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.9s ease-in-out, transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94);
  z-index: 0;
}
.catalog-card__slideshow .catalog-slide.active {
  opacity: 1;
  z-index: 0;
}
.catalog-card:hover .catalog-card__slideshow .catalog-slide.active {
  transform: scale(1.06);
}

.catalog-slide-dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.55rem;
  background: rgba(0,0,0,0.4);
  border-radius: 999px;
  backdrop-filter: blur(3px);
  max-width: calc(100% - 1.5rem);
}

.catalog-slide-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.catalog-slide-dot.active {
  background: var(--brand-primary);
  width: 13px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .catalog-slide-dots { gap: 0.25rem; padding: 0.3rem 0.45rem; }
  .catalog-slide-dot { width: 4px; height: 4px; }
  .catalog-slide-dot.active { width: 10px; }
}

/* Teal line at bottom of image */
.catalog-card__img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-primary);
  transition: width 0.35s ease;
}
.catalog-card:hover .catalog-card__img::after {
  width: 100%;
}

/* Body */
.catalog-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.75rem;
}

.catalog-card__title {
  font-family: var(--font-cond);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.catalog-card__desc {
  color: var(--grey);
  font-size: 0.875rem;
  line-height: 1.7;
  flex: 1;
}

/* Tags */
.catalog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.catalog-card__tags li {
  background: rgba(0,200,192,0.08);
  border: 1px solid rgba(0,200,192,0.18);
  color: var(--brand-primary);
  font-family: var(--font-cond);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}

/* Enquire link */
.catalog-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-primary);
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  transition: gap 0.2s, color 0.2s;
}
.catalog-card__cta:hover {
  gap: 0.7rem;
  color: var(--white);
}

/* Footer row */
.catalog__footer {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.catalog__footer p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* =============================================
   MOBILE OPTIMISATION
   ============================================= */
@media (max-width: 1024px) {
  .catalog__grid { grid-template-columns: repeat(2, 1fr); }
  .catalog__header { flex-direction: column; align-items: flex-start; gap: 2rem; }
  .catalog__filters { justify-content: flex-start; max-width: 100%; }
}

@media (max-width: 768px) {
  .page-header { padding: 6rem 0 2.5rem; }
  .page-header .heading-xl { font-size: clamp(2.8rem, 10vw, 5rem); }
  .about__grid { grid-template-columns: 1fr; gap: 2rem; }
  .about__img-main { aspect-ratio: 16/9 !important; }
  .service-item {
    grid-template-columns: 3rem 1fr;
    gap: 1rem;
    padding: 1.25rem 0;
  }
  .service-item__arrow { display: none; }
  .service-item__name { font-size: 0.95rem; }
  .cta-band { padding: 3rem 0; }
  .cta-band__inner { flex-direction: column; text-align: center; gap: 1.5rem; }
  .cta-band__inner > div:last-child { width: 100%; }
  .cta-band__inner .btn { width: 100%; justify-content: center; }
  .section { padding: 3.5rem 0; }

  .catalog__grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .catalog-card:hover { transform: none; }
  .catalog__footer { flex-direction: column; text-align: center; gap: 1.5rem; }
  .catalog__footer .btn { width: 100%; justify-content: center; }
}

@media (max-width: 390px) {
  .service-item { grid-template-columns: 2.5rem 1fr; }
  .service-item__icon { width: 2.5rem; height: 2.5rem; min-width: 2.5rem; padding: 5px; }
  .catalog__filter { font-size: 0.65rem; padding: 0.45rem 0.75rem; }
}
/* =============================================
   ICON HOVER ANIMATIONS — TEAL BRAND
   ============================================= */
@keyframes floatIconTeal {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-7px) rotate(6deg); }
}
.service-item:hover .service-item__icon {
  animation: floatIconTeal 0.9s ease-in-out;
  border-color: var(--brand-primary) !important;
  background: var(--brand-primary) !important;
  box-shadow: 0 8px 20px rgba(0,200,192,0.3) !important;
}
.service-item:hover .service-item__icon svg { stroke: var(--navy) !important; }
.service-item:hover .service-item__name { color: var(--brand-primary); }
.service-item:hover .service-item__arrow { color: var(--brand-primary); }

/* Catalog card image zoom (non-slideshow images) */
.catalog-card:hover .catalog-card__img:not(.catalog-card__slideshow) img {
  transform: scale(1.06);
}

/* Page parallax accent */
.page-header__content {
  animation: fadeUp 0.75s cubic-bezier(0.4,0,0.2,1) 0.1s both;
}

/* ==========================================
   HEADER CAROUSEL
========================================== */

.page-header{
    position:relative;
    min-height:100vh;
    display:flex;
    align-items:center;
    overflow:hidden;
}

.header-slider{
    position:absolute;
    inset:0;
    z-index:1;
}

.slide{
    position:absolute;
    inset:0;
    opacity:0;
    transition:opacity 1.2s ease-in-out;
}

.slide.active{
    opacity:1;
}

.slide img{
    width:100%;
    height:100%;
    object-fit:cover;
    animation:zoomEffect 8s linear infinite;
}

@keyframes zoomEffect{
    from{
        transform:scale(1);
    }
    to{
        transform:scale(1.08);
    }
}

.header-overlay{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.55);
    z-index:2;
}

/* =============================================
   HEADER SLIDER DOT INDICATORS — 10-slide carousel
   ============================================= */
.page-header .slider-dots{
    position:absolute;
    left:50%;
    bottom:2.25rem;
    transform:translateX(-50%);
    z-index:4;
    display:flex;
    align-items:center;
    gap:0.45rem;
    padding:0.5rem 0.85rem;
    background:rgba(0,0,0,0.35);
    border-radius:999px;
    backdrop-filter:blur(4px);
    max-width:calc(100% - 2rem);
}

.page-header .slider-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    border:1.5px solid rgba(255,255,255,0.6);
    background:transparent;
    padding:0;
    cursor:pointer;
    transition:all 0.3s ease;
    flex-shrink:0;
}

.page-header .slider-dot:hover{
    border-color:#fff;
    transform:scale(1.15);
}

.page-header .slider-dot.active{
    background:var(--brand-primary);
    border-color:var(--brand-primary);
    width:18px;
    border-radius:5px;
}

@media(max-width:768px){
    .page-header .slider-dots{
        bottom:1.25rem;
        gap:0.35rem;
        padding:0.4rem 0.65rem;
    }
    .page-header .slider-dot{
        width:6px;
        height:6px;
    }
    .page-header .slider-dot.active{
        width:14px;
    }
}

.page-header .container{
    position:relative;
    z-index:3;
}

.page-header__content{
    max-width:700px;
}

.header-desc{
    color:#fff;
    font-size:1.15rem;
    line-height:1.8;
    margin-top:1.5rem;
}

@media(max-width:768px){

    .page-header{
        min-height:85vh;
    }

    .header-desc{
        font-size:1rem;
    }
}

.linkedin-btn{
  background: #0077B5;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}
/* =============================================
   NAVBAR — navy background only
   ============================================= */
.nav {
  background: var(--navy);
}
.nav.scrolled {
  background: var(--navy);
}