/* ==========================================================================
   PLEXUS AVIATION - Component Styles
   Reusable UI components across the theme
   Version: 1.0.0
   ========================================================================== */

/* ==========================================================================
   1. PLEXUS CARD - Service / Feature Cards
   ========================================================================== */

.plexus-card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: default;
}

.plexus-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Subtle purple top border accent */
.plexus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.plexus-card:hover::before {
  opacity: 1;
}

.plexus-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.plexus-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.plexus-card:hover .plexus-card__image img {
  transform: scale(1.06);
}

/* Image overlay gradient */
.plexus-card__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.plexus-card:hover .plexus-card__image::after {
  opacity: 1;
}

.plexus-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: rgba(107, 47, 160, 0.08);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  transition: background 0.3s ease, transform 0.3s ease;
}

.plexus-card:hover .plexus-card__icon {
  background: rgba(107, 47, 160, 0.15);
  transform: scale(1.05);
}

.plexus-card__icon svg,
.plexus-card__icon img {
  width: 28px;
  height: 28px;
  color: var(--color-primary);
}

.plexus-card__body {
  padding: var(--space-lg);
}

.plexus-card__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: var(--space-2xs);
}

.plexus-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-medium);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2xs);
  transition: color 0.3s ease;
}

.plexus-card:hover .plexus-card__title {
  color: var(--color-primary);
}

.plexus-card__text {
  font-size: var(--fs-body);
  color: var(--color-mid-gray);
  line-height: var(--lh-body);
  margin-bottom: 0;
}

.plexus-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: var(--space-sm);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.3s ease;
}

.plexus-card__link:hover {
  gap: 0.625rem;
}

.plexus-card__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s ease;
}

.plexus-card__link:hover svg {
  transform: translateX(3px);
}

/* Dark card variant */
.plexus-card--dark {
  background: var(--color-secondary);
}

.plexus-card--dark .plexus-card__title {
  color: var(--color-white);
}

.plexus-card--dark .plexus-card__text {
  color: rgba(255, 255, 255, 0.6);
}

.plexus-card--dark .plexus-card__icon {
  background: rgba(107, 47, 160, 0.2);
}

.plexus-card--dark:hover .plexus-card__title {
  color: var(--color-primary-light);
}

/* Compact card variant */
.plexus-card--compact .plexus-card__body {
  padding: var(--space-md);
}

.plexus-card--compact .plexus-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-sm);
}

.plexus-card--compact .plexus-card__icon svg {
  width: 22px;
  height: 22px;
}


/* ==========================================================================
   2. STAT COUNTER - Statistics Number Display
   ========================================================================== */

.stat-counter {
  text-align: center;
  padding: var(--space-lg);
}

.stat-counter__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2xs);
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.125em;
}

.stat-counter__value {
  display: inline-block;
  /* This will be animated via JS */
  transition: transform 0.3s ease;
}

.stat-counter__prefix,
.stat-counter__suffix {
  font-size: 0.6em;
  font-weight: var(--fw-semibold);
  color: var(--color-primary-light);
}

.stat-counter__label {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--color-mid-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Stat counter on dark bg */
.section--dark .stat-counter__number {
  color: var(--color-white);
}

.section--dark .stat-counter__prefix,
.section--dark .stat-counter__suffix {
  color: var(--color-primary-light);
}

.section--dark .stat-counter__label {
  color: rgba(255, 255, 255, 0.6);
}

/* Stat counter row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-lg);
}

/* Stat counter with divider */
.stat-row .stat-counter {
  position: relative;
}

.stat-row .stat-counter:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.section:not(.section--dark) .stat-row .stat-counter:not(:last-child)::after {
  background: var(--color-light-gray);
}

/* Animated underline for stat */
.stat-counter__bar {
  width: 40px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin: var(--space-sm) auto 0;
  transform: scaleX(0);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-counter.is-counted .stat-counter__bar {
  transform: scaleX(1);
}


/* ==========================================================================
   3. CERTIFICATION BADGE
   ========================================================================== */

.cert-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cert-badge:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107, 47, 160, 0.2);
}

.cert-badge__logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.cert-badge:hover .cert-badge__logo {
  filter: grayscale(0%);
}

.cert-badge__name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-3xs);
}

.cert-badge__detail {
  font-size: var(--fs-small);
  color: var(--color-mid-gray);
}

/* Badge grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
}

/* Dark variant */
.cert-badge--dark {
  background: var(--color-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

.cert-badge--dark .cert-badge__name {
  color: var(--color-white);
}

.cert-badge--dark .cert-badge__detail {
  color: rgba(255, 255, 255, 0.5);
}

.cert-badge--dark:hover {
  border-color: rgba(107, 47, 160, 0.4);
}


/* ==========================================================================
   4. ORGANIZATIONAL CHART
   ========================================================================== */

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: var(--space-lg) 0;
}

/* Chart level row */
.org-chart__level {
  display: flex;
  justify-content: center;
  gap: var(--space-xl);
  position: relative;
  padding: var(--space-lg) 0;
}

/* Connecting lines */
.org-chart__level::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: var(--space-lg);
  background: rgba(107, 47, 160, 0.3);
}

.org-chart__level:first-child::before {
  display: none;
}

/* Horizontal connector */
.org-chart__level--multi::after {
  content: '';
  position: absolute;
  top: 0;
  height: 2px;
  background: rgba(107, 47, 160, 0.3);
  /* Width calculated based on children */
}

/* Org chart node */
.org-chart__node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  min-width: 160px;
}

/* Vertical line from node up to connector */
.org-chart__node::before {
  content: '';
  position: absolute;
  top: -var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: var(--space-lg);
  background: rgba(107, 47, 160, 0.3);
}

.org-chart__level:first-child .org-chart__node::before {
  display: none;
}

.org-chart__avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-circle);
  overflow: hidden;
  margin-bottom: var(--space-xs);
  border: 3px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(107, 47, 160, 0.2);
}

.org-chart__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.org-chart__name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  margin-bottom: 0.125rem;
}

.org-chart__role {
  font-size: var(--fs-small);
  color: var(--color-primary);
  font-weight: var(--fw-medium);
}

/* Head/CEO node - larger */
.org-chart__node--head .org-chart__avatar {
  width: 96px;
  height: 96px;
  border-width: 4px;
}

.org-chart__node--head .org-chart__name {
  font-size: 1.0625rem;
}

/* Dark variant */
.section--dark .org-chart__node .org-chart__name {
  color: var(--color-white);
}

.section--dark .org-chart__level::before,
.section--dark .org-chart__node::before {
  background: rgba(107, 47, 160, 0.5);
}


/* ==========================================================================
   5. PARTNER GRID
   ========================================================================== */

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-md);
  align-items: center;
}

.partner-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  min-height: 100px;
}

.partner-grid__item:hover {
  border-color: rgba(107, 47, 160, 0.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.partner-grid__item img {
  max-width: 120px;
  max-height: 50px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.4s ease;
}

.partner-grid__item:hover img {
  filter: grayscale(0%) opacity(1);
}

/* Dark background partner grid */
.section--dark .partner-grid__item {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.section--dark .partner-grid__item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(107, 47, 160, 0.3);
}

.section--dark .partner-grid__item img {
  filter: grayscale(100%) brightness(2) opacity(0.4);
}

.section--dark .partner-grid__item:hover img {
  filter: grayscale(0%) brightness(1) opacity(1);
}


/* ==========================================================================
   6. PORTAL GRID - Employee Portal Redirect Cards
   ========================================================================== */

.portal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
}

.portal-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.portal-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.portal-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: rgba(107, 47, 160, 0.08);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.portal-card:hover .portal-card__icon {
  background: var(--color-primary);
}

.portal-card__icon svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  transition: color 0.3s ease;
}

.portal-card:hover .portal-card__icon svg {
  color: var(--color-white);
}

.portal-card__content {
  flex: 1;
  min-width: 0;
}

.portal-card__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.portal-card__desc {
  font-size: var(--fs-small);
  color: var(--color-mid-gray);
  line-height: 1.5;
}

.portal-card__arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-gray);
  transition: transform 0.3s ease, color 0.3s ease;
}

.portal-card:hover .portal-card__arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

/* Dark portal card */
.portal-card--dark {
  background: var(--color-secondary);
  border-color: rgba(255, 255, 255, 0.08);
}

.portal-card--dark .portal-card__title {
  color: var(--color-white);
}

.portal-card--dark .portal-card__desc {
  color: rgba(255, 255, 255, 0.5);
}

.portal-card--dark:hover {
  border-color: var(--color-primary);
}


/* ==========================================================================
   7. GALLERY GRID - Photo Gallery Masonry Layout
   ========================================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  grid-auto-rows: 250px;
}

.gallery-grid__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
}

/* Spanning items for masonry effect */
.gallery-grid__item--wide {
  grid-column: span 2;
}

.gallery-grid__item--tall {
  grid-row: span 2;
}

.gallery-grid__item--featured {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-grid__item:hover img {
  transform: scale(1.08);
}

/* Gallery overlay */
.gallery-grid__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 20, 0.7) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-md);
}

.gallery-grid__item:hover .gallery-grid__overlay {
  opacity: 1;
}

.gallery-grid__caption {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-medium);
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.gallery-grid__subcaption {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.6);
}

/* Lightbox icon */
.gallery-grid__zoom {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-grid__item:hover .gallery-grid__zoom {
  opacity: 1;
  transform: scale(1);
}

.gallery-grid__zoom svg {
  width: 16px;
  height: 16px;
  color: var(--color-white);
}


/* ==========================================================================
   8. TEAM MEMBER CARD
   ========================================================================== */

.team-member {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.team-member__photo {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-circle);
  overflow: hidden;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--color-off-white);
  transition: border-color 0.3s ease;
}

.team-member:hover .team-member__photo {
  border-color: var(--color-primary);
}

.team-member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.team-member:hover .team-member__photo img {
  transform: scale(1.05);
}

.team-member__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  margin-bottom: 0.25rem;
}

.team-member__role {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.team-member__bio {
  font-size: var(--fs-caption);
  color: var(--color-mid-gray);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.team-member__social {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
}

.team-member__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background: var(--color-off-white);
  color: var(--color-mid-gray);
  transition: all 0.3s ease;
}

.team-member__social a:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.team-member__social a svg {
  width: 14px;
  height: 14px;
}

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-lg);
}


/* ==========================================================================
   9. QUOTE FORM
   ========================================================================== */

.quote-form {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

/* Decorative accent */
.quote-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.quote-form__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.quote-form__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2xs);
}

.quote-form__subtitle {
  font-size: var(--fs-body);
  color: var(--color-mid-gray);
}

.quote-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.quote-form__grid .form-group--full {
  grid-column: 1 / -1;
}

.quote-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--space-lg);
  gap: var(--space-md);
}

.quote-form__footer .btn {
  min-width: 200px;
}

.quote-form__privacy {
  font-size: var(--fs-small);
  color: var(--color-mid-gray);
  max-width: 300px;
}

.quote-form__privacy a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Dark quote form */
.quote-form--dark {
  background: var(--color-secondary);
}

.quote-form--dark .quote-form__title {
  color: var(--color-white);
}

.quote-form--dark .quote-form__subtitle {
  color: rgba(255, 255, 255, 0.6);
}


/* ==========================================================================
   10. CONTACT FORM
   ========================================================================== */

.contact-form {
  max-width: 700px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.contact-form__grid .form-group--full {
  grid-column: 1 / -1;
}

.contact-form__submit {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* Contact info aside */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info__item {
  display: flex;
  gap: var(--space-md);
}

.contact-info__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(107, 47, 160, 0.08);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 22px;
  height: 22px;
  color: var(--color-primary);
}

.contact-info__label {
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-mid-gray);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-size: var(--fs-body);
  color: var(--color-charcoal);
  font-weight: var(--fw-medium);
}

.contact-info__value a {
  color: var(--color-charcoal);
  text-decoration: none;
}

.contact-info__value a:hover {
  color: var(--color-primary);
}

/* Dark contact info */
.section--dark .contact-info__icon {
  background: rgba(107, 47, 160, 0.2);
}

.section--dark .contact-info__label {
  color: rgba(255, 255, 255, 0.5);
}

.section--dark .contact-info__value {
  color: var(--color-white);
}

.section--dark .contact-info__value a {
  color: var(--color-white);
}


/* ==========================================================================
   11. WHATSAPP FAB - Floating Action Button
   ========================================================================== */

.whatsapp-fab {
  position: fixed;
  bottom: var(--space-lg);
  right: calc(var(--space-lg) + 60px);
  z-index: var(--z-sticky);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  border: none;
  border-radius: var(--radius-circle);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
  color: var(--color-white);
  fill: var(--color-white);
}

/* Pulse ring animation */
.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-circle);
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: whatsapp-ring 2s ease-out infinite;
}

@keyframes whatsapp-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Tooltip on hover */
.whatsapp-fab__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-charcoal);
  background: var(--color-white);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateY(-50%) translateX(5px);
}

.whatsapp-fab:hover .whatsapp-fab__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.whatsapp-fab__tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: var(--color-white);
}




/* ==========================================================================
   13. BREADCRUMB
   ========================================================================== */

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding: var(--space-sm) 0;
  font-size: var(--fs-small);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.breadcrumb__link {
  color: var(--color-mid-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb__link:hover {
  color: var(--color-primary);
}

.breadcrumb__separator {
  color: var(--color-gray);
  font-size: 0.625rem;
}

.breadcrumb__current {
  color: var(--color-charcoal);
  font-weight: var(--fw-medium);
}

/* Breadcrumb on dark backgrounds */
.section--dark .breadcrumb__link {
  color: rgba(255, 255, 255, 0.4);
}

.section--dark .breadcrumb__link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.section--dark .breadcrumb__separator {
  color: rgba(255, 255, 255, 0.2);
}

.section--dark .breadcrumb__current {
  color: rgba(255, 255, 255, 0.9);
}


/* ==========================================================================
   14. SECTION DIVIDER
   ========================================================================== */

.section-divider {
  position: relative;
  height: 1px;
  background: var(--color-light-gray);
  margin: 0;
  border: none;
  overflow: visible;
}

/* Center diamond accent */
.section-divider--diamond {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  background: transparent;
}

.section-divider--diamond::before,
.section-divider--diamond::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-light-gray);
}

.section-divider--diamond .divider-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0 var(--space-md);
  transform: rotate(45deg);
  border: 1.5px solid var(--color-primary);
  border-radius: 3px;
}

.section-divider--diamond .divider-icon::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 1px;
}

/* Gradient line divider */
.section-divider--gradient {
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--color-primary) 50%,
    transparent 100%
  );
  height: 1px;
}

/* Wave divider */
.section-divider--wave {
  height: auto;
  background: transparent;
  overflow: hidden;
}

.section-divider--wave svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Dots divider */
.section-divider--dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  height: auto;
  background: transparent;
}

.section-divider--dots::before,
.section-divider--dots::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-light-gray);
}

.section-divider--dots .dots {
  display: flex;
  gap: 6px;
  padding: 0 var(--space-sm);
}

.section-divider--dots .dots span {
  width: 5px;
  height: 5px;
  background: var(--color-primary);
  border-radius: var(--radius-circle);
  opacity: 0.5;
}

.section-divider--dots .dots span:nth-child(2) {
  opacity: 0.8;
}

.section-divider--dots .dots span:nth-child(3) {
  opacity: 1;
}

/* Dark divider variants */
.section--dark .section-divider {
  background: rgba(255, 255, 255, 0.08);
}

.section--dark .section-divider--diamond::before,
.section--dark .section-divider--diamond::after {
  background: rgba(255, 255, 255, 0.08);
}

.section--dark .section-divider--dots::before,
.section--dark .section-divider--dots::after {
  background: rgba(255, 255, 255, 0.08);
}

.section--dark .section-divider--gradient {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(107, 47, 160, 0.5) 50%,
    transparent 100%
  );
}


/* ==========================================================================
   15. NEWS / BLOG CARDS
   ========================================================================== */

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.news-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.news-card__date {
  font-size: var(--fs-small);
  color: var(--color-mid-gray);
}

.news-card__category {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  background: rgba(107, 47, 160, 0.08);
  border-radius: var(--radius-sm);
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2xs);
  line-height: 1.4;
}

.news-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.news-card__title a:hover {
  color: var(--color-primary);
}

.news-card__excerpt {
  flex: 1;
  font-size: var(--fs-caption);
  color: var(--color-mid-gray);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.news-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-decoration: none;
  margin-top: auto;
  transition: gap 0.3s ease;
}

.news-card__read-more:hover {
  gap: 0.625rem;
}

.news-card__read-more svg {
  width: 14px;
  height: 14px;
}


/* ==========================================================================
   16. TIMELINE (for About/History)
   ========================================================================== */

.timeline {
  position: relative;
  padding: var(--space-lg) 0;
}

/* Center line */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-light-gray);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-xl);
  position: relative;
}

.timeline__item:nth-child(odd) {
  flex-direction: row-reverse;
  text-align: right;
}

.timeline__content {
  width: 45%;
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline__content:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.timeline__dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: var(--color-primary);
  border: 4px solid var(--color-white);
  border-radius: var(--radius-circle);
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(107, 47, 160, 0.15);
}

.timeline__year {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-primary);
  margin-bottom: var(--space-2xs);
}

.timeline__title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  margin-bottom: var(--space-2xs);
}

.timeline__text {
  font-size: var(--fs-caption);
  color: var(--color-mid-gray);
  line-height: 1.6;
}

/* Dark timeline */
.section--dark .timeline::before {
  background: rgba(255, 255, 255, 0.1);
}

.section--dark .timeline__content {
  background: var(--color-secondary-light);
}

.section--dark .timeline__title {
  color: var(--color-white);
}

.section--dark .timeline__dot {
  border-color: var(--color-secondary);
}


/* ==========================================================================
   17. LIGHTBOX / MODAL
   ========================================================================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: var(--radius-circle);
  color: var(--color-white);
  cursor: pointer;
  transition: background 0.3s ease;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox__close svg {
  width: 20px;
  height: 20px;
}


/* ==========================================================================
   18. ACCORDION / FAQ
   ========================================================================== */

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.accordion__item {
  background: var(--color-white);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.accordion__item.is-open {
  border-color: rgba(107, 47, 160, 0.2);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-charcoal);
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

.accordion__trigger:hover {
  color: var(--color-primary);
}

.accordion__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}

.accordion__item.is-open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion__item.is-open .accordion__content {
  max-height: 500px;
}

.accordion__body {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--fs-body);
  color: var(--color-mid-gray);
  line-height: var(--lh-body);
}

/* Dark accordion */
.section--dark .accordion__item {
  background: var(--color-secondary-light);
  border-color: rgba(255, 255, 255, 0.06);
}

.section--dark .accordion__trigger {
  color: var(--color-white);
}

.section--dark .accordion__body {
  color: rgba(255, 255, 255, 0.6);
}

.section--dark .accordion__item.is-open {
  border-color: rgba(107, 47, 160, 0.3);
}

/* ================================================================
   Cookie Consent Banner
   ================================================================ */

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-black);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
    font-family: var(--font-body);
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
}

/* ── Main banner view ──────────────────────────────────────────── */

.cookie-consent__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
}

.cookie-consent__content {
    flex: 1;
}

.cookie-consent__text {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--fs-body);
    line-height: 1.6;
    margin: 0;
}

.cookie-consent__link {
    color: var(--color-primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 0.25em;
    transition: color var(--transition-base);
}

.cookie-consent__link:hover {
    color: var(--color-white);
}

.cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

/* ── Preferences panel ─────────────────────────────────────────── */

.cookie-consent__preferences {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
}

.cookie-consent__prefs-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.cookie-consent__prefs-title {
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: var(--fw-semibold);
    margin: 0;
}

.cookie-consent__prefs-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: var(--space-3xs);
    border-radius: var(--radius-sm);
    transition: color var(--transition-base);
}

.cookie-consent__prefs-close:hover {
    color: var(--color-white);
}

/* ── Category rows ─────────────────────────────────────────────── */

.cookie-consent__categories {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.cookie-consent__category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.cookie-consent__category-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cookie-consent__category-name {
    color: var(--color-white);
    font-size: var(--fs-body);
    font-weight: var(--fw-semibold);
}

.cookie-consent__category-desc {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--fs-small);
}

/* ── Toggle switch ─────────────────────────────────────────────── */

.cookie-consent__toggle {
    position: relative;
    display: inline-flex;
    cursor: pointer;
    flex-shrink: 0;
}

.cookie-consent__toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-consent__toggle-track {
    width: 44px;
    height: 24px;
    background: var(--color-dark-gray);
    border-radius: 12px;
    position: relative;
    transition: background 0.25s ease;
}

.cookie-consent__toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--color-white);
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track {
    background: var(--color-primary);
}

.cookie-consent__toggle input:checked + .cookie-consent__toggle-track::after {
    transform: translateX(20px);
}

.cookie-consent__toggle--disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ── Preferences footer ────────────────────────────────────────── */

.cookie-consent__prefs-footer {
    display: flex;
    justify-content: flex-end;
}

/* ── Responsive: Tablet (below 1024px) ─────────────────────────── */

@media (max-width: 1023px) {
    .cookie-consent__main {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        padding: var(--space-md);
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__actions .btn {
        flex: 1;
        text-align: center;
    }
}

/* ── Responsive: Mobile (below 768px) ──────────────────────────── */

@media (max-width: 767px) {
    .cookie-consent__main {
        padding: var(--space-sm);
        gap: var(--space-xs);
    }

    .cookie-consent__actions {
        flex-direction: column;
    }

    .cookie-consent__actions .btn {
        width: 100%;
    }

    .cookie-consent__preferences {
        padding: var(--space-sm);
    }

    .cookie-consent__category {
        padding: var(--space-xs) var(--space-sm);
    }
}

/* ================================================================
   Legal Pages (Privacy, Terms, Cookie Policy) — Typography & Spacing
   ================================================================ */

.page-template-page-privacy-policy .inner-container p,
.page-template-page-privacy-policy .inner-container h2,
.page-template-page-privacy-policy .inner-container h3,
.page-template-page-privacy-policy .inner-container ul,
.page-template-page-terms-of-service .inner-container p,
.page-template-page-terms-of-service .inner-container h2,
.page-template-page-terms-of-service .inner-container h3,
.page-template-page-terms-of-service .inner-container ul,
.page-template-page-cookie-policy .inner-container p,
.page-template-page-cookie-policy .inner-container h2,
.page-template-page-cookie-policy .inner-container h3,
.page-template-page-cookie-policy .inner-container ul {
    max-width: 100%;
}

.page-template-page-privacy-policy .wp-block-list,
.page-template-page-terms-of-service .wp-block-list,
.page-template-page-cookie-policy .wp-block-list {
    list-style: disc;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-md);
}

.page-template-page-privacy-policy .wp-block-list li,
.page-template-page-terms-of-service .wp-block-list li,
.page-template-page-cookie-policy .wp-block-list li {
    margin-bottom: var(--space-2xs);
}

.page-template-page-privacy-policy h2.wp-block-heading,
.page-template-page-terms-of-service h2.wp-block-heading,
.page-template-page-cookie-policy h2.wp-block-heading {
    font-size: 1.75rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.page-template-page-privacy-policy h3.wp-block-heading,
.page-template-page-terms-of-service h3.wp-block-heading,
.page-template-page-cookie-policy h3.wp-block-heading {
    font-size: 1.375rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.page-template-page-privacy-policy p,
.page-template-page-terms-of-service p,
.page-template-page-cookie-policy p {
    margin-bottom: var(--space-sm);
}
