@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Roboto+Condensed:wght@300;400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Armenian:wght@400;700&display=swap");
@import url("https://db.onlinewebfonts.com/c/65f00b36a6117d22e09397fd6320b3eb?family=Mardoto");

:root {
  --bg: #f2f2f2;
  --ink: #3e3e3e;
  --muted: #6f6f6f;
  --accent: #f49712;
  --brand: #522583;
  --card-overlay: rgba(44, 25, 66, 0.66);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Roboto", "Arial", sans-serif;
  color: var(--ink);
  background-image: url("../assets/Lratun-WhiteBack-repeat.jpg");
  background-position: left top;
  background-repeat: repeat;
  background-attachment: scroll;
  background-size: 960px 630px;
  background-origin: border-box;
}

/* team.html only — flex sticky footer (short content keeps footer at viewport bottom) */
body.team-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body.team-page > .page-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body.team-page .page-shell > main {
  flex: 1 1 auto;
}

.wrap {
  width: min(1380px, 96%);
  margin: 0 auto;
}

.site-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 50px;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 85px;
}

.logo-row img:first-child {
  height: 80px;
  width: auto;
  max-width: 35vw;
}

.logo-row img:last-child:not(:first-child) {
  width: 145px;
  max-width: 28vw;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  min-width: 45px;
  height: 30px;
  padding: 0 12px;
  line-height: normal;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  box-sizing: border-box;
  font-family: "Mardoto", sans-serif;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  color: var(--brand);
  text-align: right;
  border-left: 1px solid rgba(81, 77, 155, 0.35);
  background-color: rgba(255, 255, 255, 0);
}

.main-nav a:first-child {
  border-left: none;
}

.main-nav a:hover {
  box-sizing: border-box;
  color: #f49712;
}

.main-nav a.active {
  color: #522583;
}

.hero-cards {
  position: relative;
  margin-top: 0;
}

.cards-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 10px;
}

.card {
  border-radius: 12px;
  overflow: hidden;
  min-height: 540px;
  position: relative;
  background: #585858;
}

.card-link {
  display: block;
  text-decoration: none;
}

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

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(transparent 35%, var(--card-overlay)),
    radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.3), transparent 45%),
    linear-gradient(125deg, rgba(18, 18, 18, 0.6), rgba(120, 120, 120, 0.34));
}

.card-content {
  position: absolute;
  inset: auto 10px 60px;
  padding: 0 5px;
  text-align: center;
  color: #eeeeee;
  font-family: "Noto Sans Armenian", sans-serif;
  font-weight: 700;
  line-height: normal;
  z-index: 1;
}

.card-content h2 {
  margin: 0 0 12px;
  font-size: 23px;
  line-height: normal;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "NotoSansArmenian-Bold", "Noto Sans Armenian Bold", "Noto Sans Armenian", sans-serif;
  color: #eeeeee !important;
}

.card-content p {
  margin: 0 0 12px;
  font-size: 15px;
  color: #eeeeeea3;
  font-weight: 100;
}

.card-content p::before {
  content: "";
  display: block;
  width: min(110px, 75%);
  margin: 0 auto 10px;
  border-top: 1px dotted var(--accent);
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  height: 44px;
  padding: 0 24px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  /* font-family: "Mardoto", "Noto Sans Armenian", sans-serif; */
  font-family: "Arial", sans-serif;
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.card:hover .btn-enter,
.card:focus-within .btn-enter {
  background-color: var(--accent);
  border-color: var(--accent);
  color: #000;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: #fff;
  display: none;
  place-items: center;
}

.carousel-arrow.left {
  left: -26px;
}

.carousel-arrow.right {
  right: -26px;
}

.carousel-arrow img {
  width: 14px;
}

.carousel-arrow:disabled,
.carousel-arrow.is-disabled {
  opacity: 0.45;
  cursor: default;
}

.intro {
  width: min(920px, 92%);
  min-height: 120px;
  padding: 0 20px;
  margin: 40px auto 20px;
  background-color: rgba(51, 51, 51, 0);
  box-sizing: border-box;
  text-align: center;
  font-family: "Arial", sans-serif;
  color: #333333;
  line-height: normal;
  font-size: 18px;
}

.intro:hover {
  box-sizing: border-box;
}

.page-main {
  width: min(980px, 94%);
  margin: 28px auto 42px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(120, 120, 120, 0.2);
  border-radius: 14px;
  padding: 28px;
}

.page-main h1 {
  margin: 0 0 14px;
  color: #2f2758;
  font-size: 34px;
}

.page-main p {
  margin: 0 0 26px;
  line-height: 1.6;
}

.about-main {
  width: min(980px, 94%);
  margin: 0 auto 42px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.about-intro {
  width: min(680px, 100%);
  margin: 0 auto;
}

/* About page: main section titles (intro + exhibits block) — same typography */
.about-intro h1,
.about-exhibits h2 {
  background-color: rgba(255, 255, 255, 0);
  box-sizing: border-box;
  font-family: "Roboto Medium", "Roboto", sans-serif;
  font-weight: 500;
  color: #333333;
  line-height: normal;
  font-size: 32px;
  margin: 0 0 35px;
}

.about-exhibits h2{
  margin-bottom: 0;
}

/* About page: body copy — intro + exhibit descriptions share the same rules */
.about-intro p,
.about-exhibit p:not(.about-year) {
  margin: 0 0 26px;
  color: #3f3f3f;
  font-size: 16px;
  line-height: 22px;
  text-align: left;
}

.about-intro p:last-child,
.about-exhibit p:not(.about-year):last-child {
  margin-bottom: 0;
}

.about-divider {
  width: 100%;
  margin: 22px 0 26px;
  border: 0;
  border-top: 1px dashed rgba(90, 90, 90, 0.5);
}

.about-exhibits {
  width: min(680px, 100%);
  margin: 0 auto;
}

.about-exhibit {
  margin-bottom: 28px;
}

.about-exhibit:last-child {
  margin-bottom: 0;
}

/* Exhibit item title */
.about-exhibit h3 {
  margin: 0 0 6px;
  font-family: "Roboto Medium", "Roboto", sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  color: #522583;
  line-height: 22px;
  text-align: left;
}

.about-exhibit h3 a {
  color: inherit;
  text-decoration: none;
}

.about-exhibit h3 a:hover {
  text-decoration: underline;
}

.about-year {
  margin: 0 0 10px;
  color: #3f3f3f;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
}

/* Team page — flat on collage; same horizontal band as .wrap (logo row) */
.team-main {
  width: min(1380px, 96%);
  margin: 0 auto 42px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 0;
}

.page-main.team-main h1 {
  color: #333333;
  display: block;
  font-family: "Noto Sans Armenian Medium", "Noto Sans Armenian", sans-serif;
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 35px;
}

.team-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 48px;
  align-items: start;
  margin-top: 35px;
}

.team-col {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.team-member {
  margin: 0;
}

/* Override .page-main p — otherwise each <p> gets 26px bottom margin */
.page-main.team-main .team-name,
.page-main.team-main .team-role {
  margin: 0;
  line-height: 1.35;
}

.page-main.team-main .team-name {
  margin-bottom: 4px;
}

.team-name {
  color: #333333;
  display: inline;
  font-family: "Noto Sans Armenian Regular", "Noto Sans Armenian", sans-serif;
  font-feature-settings: "kern";
  font-kerning: normal;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  height: auto;
  letter-spacing: normal;
  line-height: normal;
  overflow-wrap: break-word;
  text-align: left;
  text-rendering: optimizelegibility;
  text-transform: none;
  width: auto;
}

.team-role {
  color: rgb(121, 121, 121);
  font-family: "Noto Sans Armenian Regular", "Noto Sans Armenian", sans-serif;
  font-feature-settings: "kern";
  font-kerning: normal;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  height: auto;
  letter-spacing: normal;
  line-height: normal;
  overflow-wrap: break-word;
  text-align: left;
  text-rendering: optimizelegibility;
  text-transform: none;
  transition-behavior: normal;
  transition-delay: 0s;
  transition-duration: 0s;
  transition-property: none;
  transition-timing-function: ease;
  width: auto;
}

.site-footer {
  padding: 0 0 12px;
}

.contacts {
  border-top: 1px dashed rgba(120, 120, 120, 0.45);
  padding: 35px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  color: #787878;
  font-size: 16px;
  border-bottom: 1px dashed rgba(120, 120, 120, 0.45);
  font-family: "Roboto", sans-serif;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.contact-item:nth-child(2) {
  justify-content: center;
}

.contact-item:last-child {
  justify-content: flex-end;
}

.footer-icon {
  display: block;
  flex: 0 0 auto;
}

.footer-icon-email {
  /* width: 29px; */
  height: 24px;
}

.footer-icon-phone {
  /* width: 20px; */
  height: 24px;
}

.footer-icon-map {
  /* width: 19px; */
  height: 25px;
}

.contact-item a {
  color: #522583;
  text-decoration: none;
}

.contact-highlight {
  color: rgb(82, 37, 131);
}

.footer-partners {
  padding: 14px 0 14px 13px;
  text-align: left;
  color: #6b6b6b;
  font-size: 15px;
  line-height: 1.45;
  font-family: "Roboto", "Arial", sans-serif;
  border-bottom: 1px dashed rgba(120, 120, 120, 0.45);
}

.footer-partners p {
  margin: 0;
}

.footer-mic {
  padding: 12px 0 0;
  text-align: center;
}

.footer-mic img {
  height: 89px;
  width: auto;
  display: inline-block;
}

@media (min-width: 768px) and (max-width: 1366px) {
  body {
    overflow-x: hidden;
  }

  .hero-cards {
    width: 100% !important;
    max-width: none !important;
    overflow: hidden;
  }

  .cards-track {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100% !important;
    max-width: none !important;
    transition: transform 0.28s ease;
    will-change: transform;
  }

  .cards-track > .card,
  .cards-track > .card-link {
    flex: 0 0 calc((100% - 10px) / 2);
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
  }

  .carousel-arrow {
    display: grid;
    z-index: 3;
  }

  .carousel-arrow.left {
    left: 8px;
  }

  .carousel-arrow.right {
    right: 8px;
  }
}

@media (max-width: 760px) {
  main.wrap {
    display: flex;
    flex-direction: column;
  }

  .hero-cards {
    order: 2;
  }

  .intro {
    order: 1;
    margin: 14px auto 23px auto;
  }

  .site-header {
    height: auto;
    padding: 12px 0;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 9px;
  }

  /* Full-bleed header band + logo scales to full row width on phones */
  header.wrap.site-header {
    width: 100%;
    max-width: none;
    padding-inline: 12px;
    box-sizing: border-box;
  }

  .logo-row {
    width: 100%;
    height: auto;
    min-height: 0;
    justify-content: center;
  }

  .logo-row img:first-child {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .logo-row img:last-child:not(:first-child) {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav a {
    justify-content: center;
    text-align: center;
  }

  .cards-track {
    display: grid;
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .card picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .card picture .card-media,
  .card > .card-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .intro {
    font-size: 16px;
  }

  /* Section padding — gap under stacked header */
  .page-main.team-main {
    padding-top: 34px;
    font-size: 24px;
  }

  .page-main.team-main h1 {
    display: block;
    font-size: 26px;
    margin: 0 0 26px;
  }

  .team-columns {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .team-col {
    gap: 14px;
  }

  .team-name {
    font-size: 18px;
    line-height: 22px;
  }

  .team-role {
    font-size: 16px;
    line-height: 22px;
  }

  .about-intro,
  .about-exhibits {
    width: min(680px, 100%);
  }

  .about-intro {
    padding-top: 35px;
  }

  .about-intro h1 {
    font-size: 24px;
    margin-bottom: 22px;
  }

  .about-exhibits h2 {
    font-size: 30px;
  }

  .about-intro p,
  .about-exhibit p:not(.about-year) {
    font-size: 18px;
  }

  .about-year {
    font-size: 16px;
    line-height: 22px;
  }

  .contacts {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 5px;
  }

  .footer-partners {
    padding: 12px 16px 0;
    font-size: 14px;
  }

  .contact-item,
  .contact-item:nth-child(2),
  .contact-item:last-child {
    justify-content: center;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 1366px) {
  .site-footer {
    display: flex;
    flex-direction: column;
  }

  .footer-mic {
    order: 1;
    padding: 10px 0 12px;
  }

  .footer-mic img {
    height: 72px;
  }

  .contacts {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 18px;
    padding: 18px 0;
    font-size: 16px;
  }

  .contact-item,
  .contact-item:nth-child(2),
  .contact-item:last-child {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    white-space: normal;
    text-align: left;
    gap: 12px;
  }

  .footer-partners {
    order: 3;
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    border-bottom: none;
  }
}

@media (max-width: 760px) {
  .contacts {
    padding: 15px;
  }
}
