/* =========================================================
   MONTENEGRIN SPORTS ACADEMY
   MAIN STYLESHEET
========================================================= */

/* VARIABLES */

:root {
  --white: #ffffff;
  --background: #f8f8f6;
  --surface: #f0f0ed;

  --text: #1c1c1c;
  --muted: #777a7b;

  --red: #bd2536;
  --red-dark: #981d2b;

  --border: #e5e5e1;
  --dark: #191b1d;

  --font: "DM Sans", sans-serif;
  --display: "Manrope", sans-serif;
}

/* RESET */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

::selection {
  background: var(--red);
  color: white;
}

.container {
  width: min(100% - 80px, 1320px);
  margin-inline: auto;
}

/* =========================================================
   GENERAL TYPOGRAPHY
========================================================= */

.section {
  padding: 115px 0;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 70px;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--red);
  white-space: nowrap;
}

.heading-line {
  height: 1px;
  background: var(--border);
  flex: 1;
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.8vw, 70px);
  line-height: 1.16;
  letter-spacing: -0.065em;
  font-weight: 800;
}

.section-title em {
  color: var(--red);
  font-style: normal;
}

/* =========================================================
   LOADING SCREEN
========================================================= */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);

  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.loader-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  animation: loader-spin 2.4s ease-in-out infinite;
}

@keyframes loader-spin {
  0% {
    transform: rotateY(0deg);
  }

  100% {
    transform: rotateY(360deg);
  }
}

.loader-name {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
}

.loader-progress {
  width: 160px;
  height: 2px;
  background: #ededed;
  overflow: hidden;
}

.loader-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--red);
}

/* =========================================================
   HEADER / NAVBAR
========================================================= */

.header {
  position: relative;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 94px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand span,
.footer-brand span {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 35px;
}

.desktop-nav a {
  font-size: 13px;
  font-weight: 600;
  transition: color 0.25s;
}

.desktop-nav a:hover {
  color: var(--red);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 20px;

  border-radius: 7px;
  padding: 14px 19px;

  background: var(--red);
  color: white;

  font-size: 13px;
  font-weight: 700;

  transition:
    background 0.3s,
    transform 0.3s;
}

.nav-contact:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.menu-button,
.mobile-menu {
  display: none;
}

/* =========================================================
   BUTTONS
========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;

  min-height: 53px;
  padding: 15px 23px;

  border-radius: 7px;

  font-size: 13px;
  font-weight: 700;

  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn span {
  font-size: 18px;
  line-height: 1;
  transition: transform 0.3s;
}

.btn:hover span {
  transform: translate(3px, -3px);
}

.btn-primary {
  background: var(--red);
  color: white;
}

.btn-primary:hover {
  background: var(--red-dark);
  box-shadow: 0 12px 25px rgba(189, 37, 54, 0.13);
}

.btn-outline {
  border: 1px solid #d8d8d5;
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--text);
  background: var(--white);
}

/* =========================================================
   HERO
========================================================= */

.hero {
  min-height: 690px;
  display: flex;
  align-items: center;

  background: linear-gradient(120deg, #ffffff 0%, #f8f8f6 60%, #f0f0ed 100%);

  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 65px;

  padding-top: 95px;
  padding-bottom: 105px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 13px;

  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;

  margin-bottom: 30px;
}

.eyebrow-line {
  width: 28px;
  height: 2px;
  background: var(--red);
}

.hero-title {
  margin: 0;

  font-family: var(--display);
  font-size: clamp(54px, 6.6vw, 103px);
  font-weight: 800;

  letter-spacing: -0.085em;
  line-height: 1.08;
}

.hero-line {
  display: block;
  overflow: hidden;
  padding: 0.05em 0.06em 0.08em;
  margin: -0.05em -0.06em -0.08em;
}

.hero-line > span {
  display: block;
}

.hero-title em {
  font-style: normal;
  color: var(--red);
}

.hero-description {
  max-width: 510px;
  margin: 33px 0 35px;

  color: #686b6b;
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-frame {
  width: min(100%, 470px);
  min-height: 465px;

  background: linear-gradient(145deg, #f0f0ed, #e8e8e4);

  border: 1px solid #e5e5e0;
  border-radius: 15px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  position: relative;
  overflow: hidden;
}

.hero-visual-frame::before {
  content: "";
  position: absolute;

  width: 260px;
  height: 260px;
  border-radius: 50%;

  background: rgba(189, 37, 54, 0.055);
  filter: blur(65px);
}

.hero-logo {
  width: min(66%, 290px);
  height: auto;
  object-fit: contain;

  position: relative;
  z-index: 1;

  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.09));
}

.hero-visual-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;

  display: flex;
  justify-content: space-between;
  gap: 10px;

  color: #8c8c88;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

/* =========================================================
   ABOUT
========================================================= */

.about {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 100px;
  align-items: start;
}

.about-copy {
  padding-top: 8px;
}

.about-copy p {
  margin: 0 0 22px;

  color: #626565;
  font-size: 16px;
  line-height: 1.9;
}

.simple-link {
  display: inline-flex;
  gap: 22px;
  align-items: center;

  font-size: 13px;
  font-weight: 800;

  padding-bottom: 10px;
  border-bottom: 1px solid var(--red);
  margin-top: 15px;

  transition: color 0.25s;
}

.simple-link span {
  color: var(--red);
  font-size: 17px;
}

.simple-link:hover {
  color: var(--red);
}

/* =========================================================
   OUR WORK
========================================================= */

.work {
  background: var(--background);
}

.work-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;

  margin-bottom: 45px;
}

.work-header > p {
  max-width: 310px;

  color: var(--muted);
  line-height: 1.8;
  margin: 0;
  font-size: 15px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;

  padding: 37px 32px;
  min-height: 280px;

  transition:
    transform 0.35s,
    box-shadow 0.35s,
    border-color 0.35s;
}

.work-card:hover {
  transform: translateY(-8px);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.045);

  border-color: #d5d5d1;
}

.work-card-icon {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  color: var(--red);
  background: #fbf1f2;

  border-radius: 12px;
  margin-bottom: 40px;
}

.work-card-icon svg {
  width: 34px;
  height: 34px;
}

.work-card h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;

  margin: 0 0 12px;
}

.work-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0;
}

/* =========================================================
   SCIENTIFIC JOURNALS
========================================================= */

.journals {
  background: var(--white);
}

.journals-header {
  margin-bottom: 55px;
}

.journals-header p {
  max-width: 570px;

  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;

  margin: 20px 0 0;
}

.journals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.journal {
  display: block;
  min-width: 0;
}

.journal-image {
  height: 400px;

  background: #f4f4f2;
  border: 1px solid #eeeeeb;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 25px;
  overflow: hidden;

  transition:
    background 0.35s,
    border-color 0.35s;
}

.journal-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.journal:hover .journal-image {
  background: #efefec;
  border-color: #deded9;
}

.journal:hover .journal-image img {
  transform: translateY(-9px) scale(1.035);
}

.journal-details {
  padding: 24px 0;

  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.journal-short {
  display: block;

  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;

  margin-bottom: 10px;
}

.journal-details h3 {
  margin: 0;

  font-family: var(--display);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.journal-arrow {
  width: 40px;
  height: 40px;

  border: 1px solid var(--border);
  border-radius: 50%;

  display: grid;
  place-items: center;

  font-size: 19px;
  flex-shrink: 0;

  transition:
    background 0.3s,
    color 0.3s,
    transform 0.3s;
}

.journal:hover .journal-arrow {
  background: var(--red);
  color: white;
  transform: rotate(45deg);
}

/* =========================================================
   MSA 2027 CONFERENCE
========================================================= */

.conference {
  background: var(--dark);
  color: white;
  overflow: hidden;
}

.conference-layout {
  min-height: 570px;

  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 70px;

  padding-top: 95px;
  padding-bottom: 95px;
}

.conference-eyebrow {
  color: #f18d96;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.conference-copy h2 {
  font-family: var(--display);
  font-size: clamp(85px, 11vw, 160px);

  line-height: 0.95;
  letter-spacing: -0.09em;
  font-weight: 800;

  margin: 28px 0 22px;
}

.conference-copy h2 em {
  font-style: normal;
  color: #e54c60;
}

.conference-edition {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;

  margin: 0 0 25px;
}

.conference-text {
  color: #b3b6b6;
  font-size: 16px;
  line-height: 1.8;

  max-width: 490px;
  margin: 0 0 25px;
}

.conference-info {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;

  margin-bottom: 35px;

  color: #d6d6d6;
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.btn-light {
  background: white;
  color: var(--text);
}

.btn-light:hover {
  background: #f5e8e9;
}

.conference-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.conference-visual img {
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
  opacity: 0.92;

  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
}

/* =========================================================
   CONTACT
========================================================= */

.contact {
  background: var(--background);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr;
  gap: 90px;
}

.contact-description {
  color: var(--muted);
  max-width: 510px;

  font-size: 16px;
  line-height: 1.8;

  margin: 25px 0 35px;
}

.contact-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 15px;
}

.contact-side > span {
  font-size: 11px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.contact-side strong,
.contact-side a {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 35px;
}

.contact-side a:hover {
  color: var(--red);
}

/* =========================================================
   FOOTER
========================================================= */

.footer {
  background: var(--white);
  border-top: 1px solid var(--border);
}

.footer-inner {
  min-height: 125px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.footer-brand span {
  font-size: 10px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 600;
  transition: color 0.25s;
}

.footer-links a:hover {
  color: var(--red);
}

.footer p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {
  .desktop-nav {
    gap: 20px;
  }

  .hero-layout {
    gap: 30px;
  }

  .hero-title {
    font-size: clamp(54px, 6.5vw, 85px);
  }

  .hero-visual-frame {
    min-height: 380px;
  }

  .about-grid {
    gap: 55px;
  }

  .journal-image {
    height: 340px;
  }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 850px) {
  .container {
    width: min(100% - 42px, 1320px);
  }

  .header-inner {
    min-height: 80px;
  }

  .brand img {
    width: 49px;
    height: 49px;
  }

  .brand span {
    font-size: 10px;
  }

  .desktop-nav,
  .nav-contact {
    display: none;
  }

  .menu-button {
    width: 44px;
    height: 44px;

    border: 1px solid var(--border);
    background: white;
    border-radius: 7px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    cursor: pointer;
  }

  .menu-button span {
    display: block;
    width: 19px;
    height: 2px;

    background: var(--text);
    transition: transform 0.3s;
  }

  .menu-open .menu-button span:first-child {
    transform: translateY(4px) rotate(45deg);
  }

  .menu-open .menu-button span:last-child {
    transform: translateY(-4px) rotate(-45deg);
  }

  .mobile-menu {
    position: absolute;
    display: flex;
    flex-direction: column;

    top: 100%;
    left: 0;
    right: 0;

    padding: 20px 24px 35px;

    background: white;
    border-bottom: 1px solid var(--border);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);

    transition:
      opacity 0.3s,
      visibility 0.3s,
      transform 0.3s;
  }

  .menu-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-menu a {
    padding: 15px 0;
    border-bottom: 1px solid var(--border);

    font-size: 18px;
    font-weight: 700;
  }

  .section {
    padding: 85px 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    padding-top: 70px;
    padding-bottom: 70px;
    gap: 55px;
  }

  .hero-title {
    font-size: clamp(57px, 9vw, 90px);
  }

  .hero-visual-frame {
    min-height: 330px;
    max-width: 520px;
    margin: auto;
  }

  .hero-logo {
    width: 200px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .work-header {
    display: block;
  }

  .work-header > p {
    margin-top: 20px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-card {
    min-height: 0;
  }

  .work-card-icon {
    margin-bottom: 24px;
  }

  .journals-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .conference-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .conference-visual img {
    width: 210px;
  }

  .footer-inner {
    flex-wrap: wrap;
    padding: 30px 0;
  }
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {
  .container {
    width: min(100% - 36px, 1320px);
  }

  .section-heading {
    margin-bottom: 45px;
  }

  .hero-title {
    font-size: clamp(45px, 11.5vw, 68px);
  }

  .hero-description {
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    gap: 16px;
    padding: 14px 17px;
  }

  .hero-visual-frame {
    min-height: 290px;
  }

  .hero-logo {
    width: 175px;
  }

  .hero-visual-caption {
    left: 20px;
    right: 20px;
    bottom: 20px;
    font-size: 9px;
  }

  .section-title {
    font-size: 40px;
  }

  .about-copy p {
    font-size: 15px;
  }

  .journals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .journal-image {
    height: 380px;
  }

  .conference-copy h2 {
    font-size: 90px;
  }

  .conference-layout {
    padding-top: 75px;
    padding-bottom: 75px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* =========================================================
   REDUCED MOTION
========================================================= */

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

  .loader-logo {
    animation: none !important;
  }
}
