@import url("/shared/fonts-local.css");
@import url("/shared/tokens.css");

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
  color: var(--color-ink);
  background: var(--color-navy);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 0;
  transform: translateY(-120%);
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--color-gold);
  color: var(--color-navy);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus {
  transform: translateY(0.75rem);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(26, 36, 51, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}
.lang-menu {
  position: relative;
}
.lang-menu > summary {
  list-style: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.06em;
  min-height: var(--touch);
  min-width: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  background: transparent;
}
.lang-menu > summary::-webkit-details-marker {
  display: none;
}
.lang-menu > summary::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.1rem);
  opacity: 0.85;
}
.lang-menu[open] > summary {
  color: var(--color-gold);
  border-color: rgba(254, 207, 52, 0.45);
}
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 40;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  min-width: 12.5rem;
  background: var(--color-navy);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.lang-menu a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0.35rem 0.9rem;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
}
.lang-menu a:hover,
.lang-menu a[aria-current="true"] {
  color: var(--color-gold);
  background: rgba(255, 255, 255, 0.06);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: var(--touch);
}
.brand img {
  width: 36px;
  height: 36px;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: var(--touch);
  min-width: var(--touch);
  min-height: var(--touch);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--color-white);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.site-nav {
  display: none;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0.5rem 0.85rem;
  text-decoration: none;
  color: var(--color-white);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0.92;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--color-gold);
  opacity: 1;
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }
  .brand {
    order: 1;
  }
  .site-nav {
    display: block;
    order: 2;
    margin-left: auto;
  }
  .header-tools {
    order: 3;
    margin-left: 0;
  }
}

@media (max-width: 899px) {
  .site-nav.is-open {
    display: block;
    position: absolute;
    inset: var(--header-h) 0 auto;
    background: var(--color-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-2) var(--gutter) var(--space-3);
  }
  .site-nav.is-open ul {
    flex-direction: column;
  }
}

/* —— Hero: live navy + Armenia map at opacity 0.25 —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--color-white);
  overflow: hidden;
  background: #131e3d; /* live Canva hero fill */
}
.hero__map {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__map img {
  width: 100%;
  height: 130%;
  max-width: none;
  object-fit: cover;
  object-position: center 35%;
  opacity: 0.25; /* same as live site */
  transform: translateY(-8%);
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-6) 0 var(--space-5);
  max-width: 38rem;
}
.hero__brand {
  margin: 0 0 var(--space-2);
  font-size: var(--step-4);
  line-height: 1.05;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.01em;
}
.hero__brand span {
  display: block;
  font-size: 0.55em;
  color: var(--color-white);
  margin-top: 0.2em;
  letter-spacing: 0.04em;
}
.hero__lead {
  margin: 0 0 var(--space-3);
  font-size: var(--step-1);
  line-height: 1.45;
  max-width: 34ch;
  color: rgba(255, 255, 255, 0.92);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 0;
  cursor: pointer;
}
.btn--gold {
  background: var(--color-sand);
  color: var(--color-navy);
}
.btn--gold:hover {
  filter: brightness(1.05);
}
.btn--teal {
  background: var(--color-teal);
  color: var(--color-white);
}

/*
  Photo + text split: full-bleed equal halves so left/right mirrors match.
  Text rail aligns with .wrap; photo reaches the viewport edge.
*/
.section--split-photo {
  background: var(--color-white);
  padding: 0;
  overflow: hidden;
}
.wrap.split-photo {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  container-type: inline-size;
  container-name: split;
}
.split-photo {
  --split-gap: clamp(1.25rem, 3vw, 2.5rem);
  display: grid;
  gap: 0;
  align-items: stretch;
  min-height: min(70vh, 640px);
}
.split-photo__copy {
  /* 100cqw = full split width (container on .wrap.split-photo) */
  --split-rail: max(var(--gutter), calc((100cqw - 1120px) / 2));
  padding: var(--space-5) var(--gutter);
  display: grid;
  gap: var(--space-4);
  align-content: center;
  background: var(--color-white);
}
.split-photo__media {
  margin: 0;
  min-height: 240px;
  background: var(--color-mist);
  overflow: hidden;
}
.split-photo__media img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* About photo: keep student face in the taller half-bleed crop */
.split-photo__media img.split-photo__img--face {
  object-position: 62% 28%;
  transform: scale(1.08);
  transform-origin: 62% 28%;
}
/* Aylagir photo: crop out foreground blue-cap bottle at bottom */
.split-photo__media img.split-photo__img--aylagir {
  object-position: 52% 28%;
  transform: scale(1.15);
  transform-origin: 52% 28%;
}
@media (min-width: 860px) {
  .split-photo,
  .split-photo--goals {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split-photo--goals .split-photo__media {
    order: 0;
  }
  .split-photo--goals .split-photo__copy {
    order: 1;
  }
  .split-photo:not(.split-photo--goals) .split-photo__copy {
    padding: var(--space-6) var(--split-gap) var(--space-6) var(--split-rail);
  }
  .split-photo--goals .split-photo__copy {
    padding: var(--space-6) var(--split-rail) var(--space-6) var(--split-gap);
  }
  .split-photo__media {
    min-height: 100%;
  }
}
@media (max-width: 859px) {
  .split-photo {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* photo first on mobile so image meaning is immediate */
  .split-photo__media {
    order: -1;
    min-height: 220px;
    max-height: 42vh;
  }
  .split-photo--goals .split-photo__media {
    max-height: 36vh;
  }
}
.section--split-photo .section__title {
  color: var(--color-teal);
  max-width: none;
}
.section--split-photo .section__eyebrow {
  color: var(--color-teal);
}

.year-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.75rem;
  margin: 0 0 var(--space-2);
}
.year-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 4.75rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.5rem;
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-teal);
  text-decoration: none;
  border: 1.5px solid var(--color-teal);
  border-radius: 0;
  background: transparent;
  line-height: 1.2;
}
a.year-links__item:hover {
  color: var(--color-navy);
  border-color: var(--color-navy);
  background: rgba(96, 173, 155, 0.08);
}
.year-links__item--soon {
  color: rgba(96, 173, 155, 0.55);
  border-color: rgba(96, 173, 155, 0.45);
  cursor: default;
}
.section__subtitle {
  margin: 0 0 var(--space-2);
  font-size: var(--step-0);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-teal);
}
.section--split-photo .section__subtitle {
  color: var(--color-teal);
}

.section--split-photo .goal-list p,
.section--split-photo .section__text,
.section--split-photo .check-list {
  color: var(--color-ink);
}
.section--split-photo .check-list li::before {
  background: var(--color-gold);
}

.project-list__icon {
  width: 4.5rem;
  height: 4.5rem;
  margin-bottom: 0.65rem;
  object-fit: contain;
  padding: 0.4rem;
  background: var(--color-navy);
  border-radius: var(--radius);
}

/* —— Sections —— */
.section {
  padding: var(--space-5) 0;
  background: var(--color-white);
  color: var(--color-ink);
}
.section--navy {
  background: var(--color-navy);
  color: var(--color-white);
}
.section--mist {
  background: var(--color-mist);
}
.section--teal {
  background: var(--color-teal);
  color: var(--color-white);
}

.section__eyebrow {
  margin: 0 0 var(--space-1);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal);
}
.section--navy .section__eyebrow,
.section--teal .section__eyebrow {
  color: var(--color-gold);
}
.section__title {
  margin: 0 0 var(--space-3);
  font-size: var(--step-3);
  line-height: 1.15;
  font-weight: 700;
  max-width: 22ch;
}
.section__text {
  margin: 0 0 var(--space-3);
  font-size: var(--step-1);
  max-width: 60ch;
  line-height: 1.55;
}

.split {
  display: grid;
  gap: var(--space-4);
}
@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.goal-list,
.project-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 700px) {
  .goal-list {
    grid-template-columns: 1fr 1fr;
  }
  .project-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.goal-list li {
  padding: 0;
  border: 0;
  background: transparent;
}
.goal-list h3,
.project-list h3 {
  margin: 0 0 0.4rem;
  font-size: var(--step-1);
  line-height: 1.3;
}
.goal-list p,
.project-list p {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: var(--step-0);
}
.section--navy .goal-list p {
  color: rgba(255, 255, 255, 0.88);
}

/* —— Services (visual list, brand icons) —— */
.section--teal .section__title {
  color: var(--color-navy);
  max-width: 20ch;
  margin-bottom: var(--space-4);
}
.services-grid {
  display: grid;
  gap: var(--space-5);
}
@media (min-width: 860px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    align-items: start;
  }
}
.services-col__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: var(--space-3);
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--color-gold);
}
.services-col__head img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  flex-shrink: 0;
  padding: 0.35rem;
  background: var(--color-navy);
  border-radius: var(--radius);
}
.services-col__head h3 {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.15;
  color: var(--color-navy);
  letter-spacing: 0.06em;
}
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.service-list li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.75rem;
  align-items: start;
  padding: 0.75rem 0.9rem;
  background: rgba(26, 36, 51, 0.16);
  border-left: 3px solid var(--color-gold);
  transition: background 0.2s ease, transform 0.2s ease;
}
@media (hover: hover) {
  .service-list li:hover {
    background: rgba(26, 36, 51, 0.28);
    transform: translateX(2px);
  }
}
.service-list__n {
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--color-gold);
  line-height: 1.45;
  padding-top: 0.1rem;
}
.service-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: var(--step-0);
  line-height: 1.45;
}

.project-list a {
  display: block;
  text-decoration: none;
  min-height: var(--touch);
  padding-block: 0.35rem;
  border-top: 2px solid var(--color-teal);
}
.project-list a:hover h3 {
  color: var(--color-teal);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.check-list li {
  position: relative;
  padding-left: 1.6rem;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 2px;
  background: var(--color-gold);
}

/* Contact — historical map, kept light enough to read the parchment */
.section--contact {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #2a3545;
}
.contact-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.contact-map img {
  width: 115%;
  height: 130%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
  opacity: 0.14;
  filter: grayscale(0.05) brightness(1.08);
  transform: translate(-4%, -4%);
}
/* veil — map stays faint behind contact text */
.contact-map::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(26, 36, 51, 0.38);
}
.section--contact .contact-grid,
.section--contact .wrap {
  position: relative;
  z-index: 1;
}
.contact-grid {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 700px) {
  .contact-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}
.contact-grid a {
  color: var(--color-gold);
  font-weight: 700;
  text-decoration: none;
}
.contact-grid a:hover {
  text-decoration: underline;
}

.site-footer {
  background: #121820;
  color: rgba(255, 255, 255, 0.85);
  padding: var(--space-4) 0;
  font-size: var(--step--1);
}
.site-footer__inner {
  display: grid;
  gap: var(--space-3);
}
@media (min-width: 700px) {
  .site-footer__inner {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--color-gold);
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.site-footer strong {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--color-white);
}
