/* ==========================================
   ALLOEIDOS — EDITORIAL DESIGN
   Joomla Cassiopeia
   ========================================== */

/* 1. Design tokens */

:root {
  --cassiopeia-color-primary: #303030;
  --cassiopeia-color-link: #555555;
  --cassiopeia-color-hover: #111111;

  --ae-ink: #292929;
  --ae-muted: #6f6f6f;
  --ae-line: #e3e3e3;
  --ae-link: #555555;
  --ae-link-hover: #000000;
}

/* 2. Base layout */

body {
  background: #fff;
  color: var(--ae-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

.container-component {
  padding-top: 0;
  padding-bottom: 5rem;
}

/* 3. Header */

.container-header {
  background: #fff;
  background-image: none;
  box-shadow: none;
  border-bottom: 1px solid var(--ae-line);
}

.container-header .navbar-brand,
.container-header .navbar-brand a {
  color: var(--ae-ink);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.container-header .site-description {
  color: var(--ae-muted);
}

/* 4. Homepage */

.ae-home {
  max-width: 1120px;
  margin: 0 auto;
}

.ae-eyebrow {
  margin-bottom: 2rem;
  color: #888;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}

/* Hero */

.ae-hero {
  padding: 7rem 0 8rem;
}

.ae-hero h1 {
  margin: 0 0 3rem;
  color: var(--ae-ink);
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.ae-lead {
  max-width: 700px;
  margin-bottom: 2rem;
  color: #424242;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.5;
}

.ae-intro {
  max-width: 650px;
  color: var(--ae-muted);
}

/* Sections */

.ae-section {
  padding: 5rem 0;
  border-top: 1px solid var(--ae-line);
}

.ae-section h2 {
  margin-bottom: 3rem;
  color: var(--ae-ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

/* Services */

.ae-services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.ae-number {
  display: block;
  margin-bottom: 1.5rem;
  color: #aaa;
  font-size: 0.8rem;
}

.ae-services h3 {
  margin-bottom: 1.2rem;
  color: var(--ae-ink);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

.ae-services p,
.ae-about p,
.ae-contact p {
  max-width: 680px;
  color: var(--ae-muted);
}

/* Contact */

.ae-contact-link {
  margin-top: 2.5rem;
}

.ae-contact-link a {
  font-size: 1.1rem;
  font-weight: 500;
  padding-bottom: 0.35rem;
}

/* 5. Links and hover effects */

a,
a:link,
a:visited {
  color: var(--ae-link);
  text-decoration: none !important;
  border-bottom: none !important;
}

/* Scale only actual text links, not every Joomla link */
.container-header .navbar-brand a,
.ae-home a,
.ae-footer a {
  display: inline-block;
  transform-origin: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

a:hover,
a:focus-visible {
  color: var(--ae-link-hover) !important;
  background: transparent !important;
  text-decoration: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}

.container-header .navbar-brand a:hover,
.ae-home a:hover,
.ae-footer a:hover {
  transform: scale(1.08);
}

/* Footer links grow toward the left */
.ae-footer-right a {
  transform-origin: right center;
}

/* 6. Footer */

.container-footer {
  background: #f7f7f7;
  background-image: none;
  color: #666;
  border-top: 1px solid var(--ae-line);
}

.container-footer .grid-child {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}

.container-footer .mod-custom {
  width: 100%;
}

.container-footer .ae-footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 2rem;
  width: 100%;
}

.container-footer .ae-footer-right {
  width: 100%;
  margin: 0;
  text-align: right;
  justify-self: end;
}

.container-footer .ae-footer-right > a,
.container-footer .ae-footer-right > p {
  display: block;
  text-align: right;
}

/* Legal links below copyright */

.container-footer .ae-footer-legal {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.container-footer .ae-footer-legal a {
  display: inline-block;
}

.container-footer .ae-separator {
  margin: 0 0.5rem;
  color: #aaa;
}

/* 7. Hide article navigation */

.pagenavigation,
.com-content-article__navigation {
  display: none !important;
}

/* 8. Mobile */

@media (max-width: 768px) {
  .ae-hero {
    padding: 4rem 0 5rem;
  }

  .ae-hero h1 {
    letter-spacing: -0.045em;
  }

  .ae-section {
    padding: 3.5rem 0;
  }

  .ae-services {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .container-footer .ae-footer {
    grid-template-columns: 1fr;
  }

  .container-footer .ae-footer-right,
  .container-footer .ae-footer-right > a,
  .container-footer .ae-footer-right > p,
  .container-footer .ae-footer-legal {
    text-align: left;
  }

  .ae-footer-right a {
    transform-origin: left center;
  }
}

/* 9. Accessibility */

@media (prefers-reduced-motion: reduce) {
  .container-header .navbar-brand a,
  .ae-home a,
  .ae-footer a {
    transition: none;
  }

  .container-header .navbar-brand a:hover,
  .ae-home a:hover,
  .ae-footer a:hover {
    transform: none;
  }
}
/* AlloEidos – Consistent legal links */

.container-footer .ae-footer-legal a,
.container-footer .ae-footer-legal a:visited {
  font-size: 0.8rem !important;
  font-weight: 400 !important;
  line-height: 1.5;
  color: #555555;
  display: inline-block;
  transform-origin: center;
}

.container-footer .ae-footer-legal a:hover {
  color: #000000 !important;
  transform: scale(1.08);
}

/* ==========================================
   ALLOEIDOS — WHO WE ARE
   ========================================== */

/* Main section */

.ae-team {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 0;
  color: var(--ae-ink, #292929);
}

/* Section introduction */

.ae-team-intro {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.ae-team-intro h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 4.5vw, 4.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ae-ink, #292929);
}

.ae-team-intro p {
  margin: 0;
  color: var(--ae-muted, #6f6f6f);
  line-height: 1.7;
}

/* Four-column team layout */

.ae-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Portraits */

.ae-team-photo {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
  background: #e9e9e9;
}

.ae-team-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ae-team-photo-pending {
  display: grid;
  place-items: center;
  padding: 1rem;
  color: #888888;
  font-size: 0.8rem;
  text-align: center;
}

/* Team member details */

.ae-team-details {
  padding-top: 1.25rem;
}

.ae-team-details h3 {
  margin: 0 0 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ae-ink, #292929);
}

.ae-team-role {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--ae-muted, #6f6f6f);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ae-team-details > a {
  display: inline-block;
  font-size: 0.85rem;
  text-decoration: none;
}

.ae-team-details p {
  margin-top: 1.25rem;
  color: var(--ae-muted, #6f6f6f);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* Future chat interface indicator */

.ae-team-status {
  display: block;
  margin-top: 1rem;
  color: #888888;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* AI transparency disclosure */

.ae-team-disclosure {
  margin-top: 2rem;
  color: #888888;
  font-size: 0.75rem;
  line-height: 1.6;
}

/* Tablet */

@media (max-width: 900px) {
  .ae-team-intro {
    gap: 2rem;
  }

  .ae-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
  }
}

/* Mobile */

@media (max-width: 600px) {
  .ae-team {
    padding: 3.5rem 0;
  }

  .ae-team-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

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

  .ae-team-details h3 {
    font-size: 1.5rem;
  }
}
/* AlloEidos — Who We Are typography */

.ae-team {
  font-family: inherit;
}

.ae-team h1,
.ae-team h2,
.ae-team h3,
.ae-team h4,
.ae-team .ae-team-name {
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.ae-team-intro h2 {
  line-height: 1.12;
}

.ae-team-member h3 {
  font-size: 1.55rem;
  line-height: 1.2;
}

.ae-team p {
  font-family: inherit;
}
/* AlloEidos — remove frame around Who We Are */

.ae-team {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.container-bottom-a,
.container-bottom-a .mod-custom,
.container-bottom-a .card {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* ALLOEIDOS — Who We Are section divider */

.container-bottom-a .ae-team {
  border-top: 1px solid #d9d9d9 !important;
  padding-top: 55px;
}
/* ALLOEIDOS — Who We Are horizontal alignment */

.container-bottom-a .ae-team {
  max-width: 1120px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
/* ALLOEIDOS — consistent spacing before Who We Are */

body.itemid-101 .ae-home > section:last-child {
  padding-bottom: 0rem !important;
}
/* AlloEidos — improve team portrait cropping */

.ae-team-photo img {
  object-fit: cover;
  object-position: center top;
}