/* ==========================================================
   BASE.CSS – Style Guide Foundation
   Colors | Typography | Tokens | Header | Footer
   ========================================================== */

:root {
  /* === Primary Colors === */
  --dark: #0d1c3d;
  --white: #ffffff;
  --yellow: #fdb61c;
  --red: #d74343;
  --purple: #7a2c57;
  --grey: #f2f2f2;

  /* === Secondary Colors === */
  --white-70: rgba(255, 255, 255, 0.7);
  --white-50: rgba(255, 255, 255, 0.5);
  --white-20: rgba(255, 255, 255, 0.2);
  --dark-50: rgba(13, 28, 61, 0.5);
  --grey-70: rgba(249, 249, 249, 0.7);

  /* === Font Tokens === */
  --font-base: "Aspekta", sans-serif;

  /* Responsive scale: default = mobile (base 375 px) */
  --scale: calc(100vw / 375);
}

/* Switch scaling variable for large (desktop) viewports (desktop base 1440 px) */
@media (min-width: 768px) {
  :root {
    --scale: calc(100vw / 1440);
  }
}

/* === BASE RESET === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--dark);
  background-color: var(--grey);
  font-family: var(--font-base);
  font-weight: 400;
  line-height: 1.5;
  font-feature-settings: "ss02" on, "ss05" on, "ss08" on;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

input,
select,
textarea,
button,
label {
  font: inherit;
}

/* === FONT IMPORTS === */
@font-face {
  font-family: "Aspekta";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/Aspekta-400.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Aspekta";
  font-style: normal;
  font-weight: 450;
  src: url("../fonts/Aspekta-450.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Aspekta";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/Aspekta-500.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Aspekta";
  font-style: normal;
  font-weight: 550;
  src: url("../fonts/Aspekta-550.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Aspekta";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/Aspekta-600.woff2") format("woff2");
  font-display: swap;
}

/* ==========================================================
   TYPOGRAPHY SCALE HEADINGS
   ========================================================== */

/* ---- MOBILE (default) ---- */

h1,
.h1 {
  font-weight: 500;
  font-size: calc(54 * var(--scale));
  line-height: 100%;
  letter-spacing: -0.03em;
}

h2,
.h2 {
  font-weight: 500;
  font-size: calc(46 * var(--scale));
  line-height: 100%;
  letter-spacing: -0.03em;
}

h3,
.h3 {
  font-weight: 500;
  font-size: calc(46 * var(--scale));
  line-height: 90%;
  letter-spacing: -0.03em;
}

h4,
.h4 {
  font-weight: 450;
  font-size: calc(28 * var(--scale));
  line-height: 100%;
  letter-spacing: -0.01em;
}

h5,
.h5 {
  font-size: calc(26 * var(--scale));
  font-weight: 550;
  line-height: 100%;
  letter-spacing: 0;
}

h6,
.h6 {
  font-weight: 450;
  font-size: calc(25 * var(--scale));
  line-height: 110%;
  letter-spacing: 0.02em;
}

.h7 {
  font-weight: 550;
  font-size: calc(26 * var(--scale));
  line-height: 130%;
  letter-spacing: -0.01em;
}

.h8 {
  font-weight: 500;
  font-size: calc(24 * var(--scale));
  line-height: 100%;
  letter-spacing: -0.01em;
}

.h9 {
  font-weight: 450;
  font-size: calc(22 * var(--scale));
  line-height: 110%;
  letter-spacing: 0.01em;
}

.h10 {
  font-weight: 500;
  font-size: calc(20 * var(--scale));
  line-height: 110%;
  letter-spacing: 0;
}

/* ---- DESKTOP (≥768px) ---- */
@media (min-width: 768px) {
  h1,
  .h1 {
    font-weight: 500;
    font-size: calc(80 * var(--scale));
    line-height: 90%;
    letter-spacing: -0.03em;
  }
  h2,
  .h2 {
    font-weight: 500;
    font-size: calc(80 * var(--scale));
    line-height: 100%;
    letter-spacing: -0.03em;
  }

  h3,
  .h3 {
    font-weight: 500;
    font-size: calc(64 * var(--scale));
    line-height: 100%;
    letter-spacing: -0.03em;
  }

  h4,
  .h4 {
    font-weight: 450;
    font-size: calc(50 * var(--scale));
    line-height: 100%;
    letter-spacing: -0.01em;
  }

  h5,
  .h5 {
    font-weight: 500;
    font-size: calc(30 * var(--scale));
    line-height: 100%;
    letter-spacing: -0.01em;
  }

  h6,
  .h6 {
    font-weight: 400;
    font-size: calc(28 * var(--scale));
    line-height: 110%;
    letter-spacing: 0;
  }

  .h7 {
    font-weight: 550;
    font-size: calc(26 * var(--scale));
    line-height: 130%;
    letter-spacing: -0.01em;
  }

  .h8 {
    font-weight: 450;
    font-size: calc(24 * var(--scale));

    line-height: 110%;
    letter-spacing: 0.01em;
  }

  .h9 {
    font-weight: 450;
    font-size: calc(22 * var(--scale));
    line-height: 110%;
    letter-spacing: 0.02em;
  }

  .h10 {
    font-weight: 500;
    font-size: calc(20 * var(--scale));
    line-height: 130%;
    letter-spacing: 0;
  }
}
@media (min-width: 768px) {
  .h1-desktop {
    font-weight: 500;
    font-size: calc(80 * var(--scale));
    line-height: 90%;
    letter-spacing: -0.03em;
  }

  .h2-desktop {
    font-weight: 500;
    font-size: calc(80 * var(--scale));
    line-height: 100%;
    letter-spacing: -0.03em;
  }

  .h3-desktop {
    font-weight: 500;
    font-size: calc(64 * var(--scale));
    line-height: 100%;
    letter-spacing: -0.03em;
  }

  .h4-desktop {
    font-weight: 450;
    font-size: calc(50 * var(--scale));
    line-height: 100%;
    letter-spacing: -0.01em;
  }

  .h5-desktop {
    font-weight: 500;
    font-size: calc(30 * var(--scale));
    line-height: 100%;
    letter-spacing: -0.01em;
  }

  .h6-desktop {
    font-weight: 400 !important;
    font-size: calc(28 * var(--scale)) !important;
    line-height: 110% !important;
    letter-spacing: 0 !important;
  }

  .h7-desktop {
    font-weight: 550;
    font-size: calc(26 * var(--scale));
    line-height: 130%;
    letter-spacing: -0.01em;
  }

  .h8-desktop {
    font-weight: 450;
    font-size: calc(24 * var(--scale));

    line-height: 110%;
    letter-spacing: 0.01em;
  }

  .h9-desktop {
    font-weight: 450;
    font-size: calc(22 * var(--scale));
    line-height: 110%;
    letter-spacing: 0.02em;
  }

  .h10-desktop {
    font-weight: 500;
    font-size: calc(20 * var(--scale));
    line-height: 130%;
    letter-spacing: 0;
  }
}

/* ==========================================================
   TYPOGRAPHY SCALE BODY
   ========================================================== */

.text-b1 {
  font-weight: 400;
  font-size: calc(18 * var(--scale));
  line-height: 130%;
  letter-spacing: 0.02em;
}
.text-b2 {
  font-weight: 500;
  font-size: calc(16 * var(--scale));
  line-height: 130%;
  letter-spacing: 0;
}
.text-b3 {
  font-weight: 400;
  font-size: calc(16 * var(--scale));
  line-height: 130%;
  letter-spacing: 0.02em;
}
.text-b4 {
  font-weight: 400;
  font-size: calc(14 * var(--scale));
  line-height: 100%;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .text-b1 {
    font-weight: 500;
    font-size: calc(18 * var(--scale));
    line-height: 130%;
    letter-spacing: 0.02em;
  }
  .text-b2 {
    font-weight: 400;
    font-size: calc(18 * var(--scale));
    line-height: 130%;
    letter-spacing: 0.02em;
  }
  .text-b3 {
    font-weight: 500;
    font-size: calc(16 * var(--scale));
    line-height: 130%;
    letter-spacing: 0;
  }
  .text-b4 {
    font-weight: 400;
    font-size: calc(16 * var(--scale));
    line-height: 130%;
    letter-spacing: 0.02em;
  }
}
@media (min-width: 768px) {
  .text-b1-desktop {
    font-weight: 500;
    font-size: calc(18 * var(--scale));
    line-height: 130%;
    letter-spacing: 0.02em;
  }

  .text-b2-desktop {
    font-weight: 400;
    font-size: calc(18 * var(--scale));
    line-height: 130%;
    letter-spacing: 0.02em;
  }

  .text-b3-desktop {
    font-weight: 500;
    font-size: calc(16 * var(--scale));
    line-height: 130%;
    letter-spacing: 0;
  }

  .text-b4-desktop {
    font-weight: 400;
    font-size: calc(16 * var(--scale));
    line-height: 130%;
    letter-spacing: 0.02em;
  }
}

/* ==========================================================
   CTA & Links & Label
   ========================================================== */

.link-1 {
  font-weight: 400;
  font-size: calc(22 * var(--scale));
  line-height: 80%;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .link-1 {
    font-weight: 400;
    font-size: calc(18 * var(--scale));
    line-height: 80%;
    letter-spacing: 0.02em;
  }
}

.link-2 {
  font-weight: 400;
  font-size: calc(14 * var(--scale));
  line-height: 100%;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .link-2,
  .link-2-desktop {
    font-weight: 400;
    font-size: calc(14 * var(--scale));
    line-height: 100%;
    letter-spacing: 0.02em;
  }
}
.nav-link {
  font-weight: 400;
  font-size: calc(15 * var(--scale));
  line-height: 100%;
  letter-spacing: 0;
}

.label-1 {
  font-weight: 600;
  font-size: calc(14 * var(--scale));
  line-height: 100%;
  letter-spacing: 0.03em;
}
@media (min-width: 768px) {
  .label-1 {
    font-weight: 600;
    font-size: calc(14 * var(--scale));
    line-height: 100%;
    letter-spacing: 0.03em;
  }
}

.label-2 {
  font-weight: 400;
  font-size: calc(14 * var(--scale));
  line-height: 100%;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  .label-2 {
    font-weight: 400;
    font-size: calc(14 * var(--scale));
    line-height: 100%;
    letter-spacing: 0.03em;
  }
}

.btn-1 {
  font-weight: 600;
  font-size: calc(13 * var(--scale));
  line-height: 100%;
  letter-spacing: 0.02em;
}

.btn-2 {
  font-weight: 600;
  font-size: calc(10 * var(--scale));
  line-height: 100%;
  letter-spacing: 0.02em;
}
@media (min-width: 768px) {
  .btn-2 {
    font-weight: 600;
    font-size: calc(12 * var(--scale));
    line-height: 100%;
    letter-spacing: 0.02em;
  }
}

/* ======== General ======== */
.container {
  padding: 0 calc(16 * var(--scale));
}
@media (min-width: 768px) {
  .container {
    padding: 0 calc(30 * var(--scale));
  }
}

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

.navbar {
  color: var(--white);
  width: 100%;
  padding: calc(16 * var(--scale)) calc(16 * var(--scale)) calc(10 * var(--scale));
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
.navbar.light-theme .navbar__menu {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Desktop Menu */
.navbar__menu {
  display: none;
}

.navbar__logo {
  width: calc(108 * var(--scale));
  height: auto;
}
.navbar.light-theme .navbar__logo path {
  fill: var(--dark);
}

.navbar__cta {
  text-transform: uppercase;
  background-color: var(--yellow);
  color: var(--dark);
  padding: calc(12 * var(--scale)) calc(16 * var(--scale));
  border-radius: calc(6 * var(--scale));
  text-decoration: none;
  transition: background 0.2s;
  margin-left: auto;
  margin-right: calc(16 * var(--scale));
  display: flex;
}

.navbar__cta-overflow {
  flex-flow: column;
  height: calc(14 * var(--scale));
  display: flex;
  overflow: hidden;
}

.navbar__cta-text {
  flex: none;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: all 0.3s;
  display: flex;
}
.navbar__cta:hover .navbar__cta-text {
  transform: translate(0px, -100%);
}

/* Hamburger (Mobile) */
.navbar__toggle {
  background: none;
  border: none;
  padding: calc(6 * var(--scale)) calc(3 * var(--scale));
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--scale));
  cursor: pointer;
}

.navbar__toggle .bar {
  width: calc(18 * var(--scale));
  height: calc(2 * var(--scale));
  background-color: var(--white);
  border-radius: calc(2 * var(--scale));
}
.navbar.light-theme .navbar__toggle .bar {
  background-color: var(--dark);
}

/* === MOBILE MENU OVERLAY === */
.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(16 * var(--scale));
  color: var(--white);
  z-index: 1001;
  animation: fadeIn 0.3s ease;
  border: calc(1 * var(--scale)) solid rgba(52, 64, 71, 0.8);
  background: rgba(0, 0, 0, 0.8);
}

.menu-overlay__content {
  padding: calc(16 * var(--scale)) calc(16 * var(--scale)) calc(24 * var(--scale));
  background: rgba(43, 46, 54, 0.75);
  border: calc(1 * var(--scale)) solid rgba(52, 64, 71, 0.8);
  border-radius: calc(8 * var(--scale));
  backdrop-filter: blur(22px);
}

.navbar.light-theme + .menu-overlay .menu-overlay__content {
  background-color: rgba(255, 255, 255, 0.95);
}

.menu-overlay__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(24 * var(--scale));
}
.menu-overlay__logo {
  width: calc(108 * var(--scale));
  height: auto;
}
.navbar.light-theme + .menu-overlay .menu-overlay__logo path {
  fill: var(--dark);
}
.navbar.light-theme + .menu-overlay .menu-overlay__close path {
  stroke: var(--dark);
}

.menu-overlay__close {
  background: none;
  border: none;
  font-size: calc(28 * var(--scale));
  color: var(--white);
  cursor: pointer;
}
.menu-overlay__close svg {
  width: calc(22 * var(--scale));
  height: auto;
}

.menu-overlay__links {
  display: flex;
  flex-direction: column;
  margin-bottom: calc(12 * var(--scale));
}

.menu-overlay__links a {
  color: var(--white);
  text-decoration: none;
  padding: calc(20 * var(--scale)) 0;
  border-bottom: calc(1 * var(--scale)) solid rgba(255, 255, 255, 0.1);
}
.navbar.light-theme + .menu-overlay .menu-overlay__links a {
  color: var(--dark);
  border-bottom-color: rgba(13, 28, 61, 0.1);
}
.menu-overlay__links a:last-child {
  border-bottom: 0;
}

.menu-overlay__cta {
  text-transform: uppercase;
  display: inline-block;
  background-color: var(--yellow);
  color: var(--dark);
  padding: calc(12 * var(--scale)) calc(24 * var(--scale));
  border-radius: calc(4 * var(--scale));
  text-align: center;
  text-decoration: none;
  width: 100%;
}

/* === RESPONSIVE === */
@media (min-width: 768px) {
  .navbar__toggle {
    display: none;
  }

  .navbar__menu {
    display: flex;
    gap: calc(12 * var(--scale));
    justify-content: center;
    padding: calc(5 * var(--scale));
    margin: 0 auto;
    border-radius: calc(6 * var(--scale));
    background: var(--white-20, rgba(255, 255, 255, 0.2));
    backdrop-filter: blur(22px);
  }

  .navbar__cta {
    margin-left: 0;
    margin-right: 0;
    padding: calc(15 * var(--scale)) calc(16 * var(--scale));
    border-radius: calc(8 * var(--scale));
  }

  .menu-overlay {
    display: none !important;
  }
  .navbar {
    padding: calc(15 * var(--scale)) calc(30 * var(--scale));
  }
  .navbar__container {
    justify-content: space-between;
  }
  .navbar__logo {
    width: calc(144 * var(--scale));
  }
  .navbar__menu a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.2s;
    padding: calc(9 * var(--scale)) calc(12 * var(--scale));
    border-radius: calc(4 * var(--scale));
  }
  .navbar__menu a:hover {
    background: rgba(0, 0, 0, 0.35);
  }
  .navbar.light-theme .navbar__menu a {
    color: var(--dark);
  }
  .navbar.light-theme .navbar__menu a:hover {
    background-color: var(--grey);
  }
}

/* ==========================================================
   FOOTER SECTION
   ========================================================== */
.footer {
  padding: calc(46 * var(--scale)) calc(26 * var(--scale)) calc(26 * var(--scale));
  margin: calc(16 * var(--scale));
  border-radius: calc(8 * var(--scale));
  background: rgb(0, 4, 14, 0.8);
  backdrop-filter: blur(250px);
}

.footer__wrapper {
  display: flex;
  flex-direction: column;
  gap: calc(62 * var(--scale));
}

/* Top Section */
.footer__top {
  display: flex;
  flex-direction: column;
  gap: calc(78 * var(--scale));
}

/* Logo Column */
.footer__logo {
  text-align: center;
}
.footer__logo img {
  width: calc(161 * var(--scale));
}

.footer__tagline {
  color: white;
  margin-top: calc(18 * var(--scale));
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

/* Navigation */
.footer__nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: calc(60 * var(--scale)) calc(30 * var(--scale));
}

.footer__nav-title {
  font-size: calc(16 * var(--scale));
  font-weight: 400;
  line-height: 1;
  color: var(--white);
  margin-bottom: calc(20 * var(--scale));
}

.footer__nav-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__nav-col li:not(:last-child) {
  margin-bottom: calc(10 * var(--scale));
}

.footer__nav-col a {
  color: var(--white-50);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__nav-col a:hover {
  color: var(--white);
}

/* Footer Bottom Section */
.footer__bottom {
  display: flex;
  align-items: flex-end;
  gap: calc(12 * var(--scale));
}
.footer__credit {
  color: #979797;
  font-size: calc(10 * var(--scale));
  line-height: 1.5;
  text-transform: uppercase;
  opacity: 0.8;
  letter-spacing: 0.15em;
  flex: 1;
}
.footer__credit span {
  color: var(--white);
}

.footer__copyright {
  font-size: calc(16 * var(--scale));
  font-weight: 500;
  line-height: 1.3;
  color: var(--white-50);
  text-align: center;
  flex: 1;
}

.footer__legal {
  display: none;
}

@media (min-width: 768px) {
  .footer {
    padding: calc(60 * var(--scale)) calc(34 * var(--scale)) calc(40 * var(--scale));
    margin: calc(30 * var(--scale));
  }

  .footer__wrapper {
    gap: calc(265 * var(--scale));
  }

  /* Top Section */
  .footer__top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer__logo {
    display: flex;
    text-align: center;
    flex: 1;
    gap: calc(164 * var(--scale));
  }
  .footer__logo img {
    display: block;
    margin: 0 auto;
    width: calc(140 * var(--scale));
  }

  .footer__tagline {
    max-width: 20ch;
    margin-top: 0;
    text-align: left;
    margin-left: 0;
  }

  /* Navigation */
  .footer__nav {
    flex: 1;
    max-width: calc(242 * var(--scale));
    gap: calc(14 * var(--scale));
  }

  .footer__nav-title {
    font-size: calc(14 * var(--scale));
    margin-bottom: calc(12 * var(--scale));
    padding-left: calc(11 * var(--scale));
  }
  .footer__nav-col--legal {
    display: none;
  }

  .footer__nav-col li:not(:last-child) {
    margin-bottom: calc(4 * var(--scale));
  }
  .footer__nav-col a {
    padding: calc(11 * var(--scale));
    display: inline-block;
    border-radius: calc(4 * var(--scale));
  }
  .footer__nav-col a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white-70);
  }

  /* Bottom Section */
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: calc(48 * var(--scale));
  }

  .footer__copyright {
    text-align: left;
  }

  .footer__legal {
    flex: 1;
    display: flex;
    gap: calc(52 * var(--scale));
  }

  .footer__credit {
    text-align: center;
  }
  .footer__copyright {
    font-size: calc(14 * var(--scale));
    letter-spacing: 0.02em;
    text-align: right;
  }

  .footer__legal-link {
    font-size: calc(14 * var(--scale));
    line-height: 1;
    color: var(--white-50);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    letter-spacing: 0.02em;
  }
  .footer__legal-link:not(:first-child)::before {
    content: "|";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6em;
    left: calc(-26 * var(--scale));
  }

  .footer__legal-link:hover {
    color: var(--white);
  }
}
