/* ============================================
   Tweenly - BEM Stylesheet
   Lightweight CSS using modern features
   ============================================ */

/* ============================================
   1. CSS Custom Properties (Variables)
   ============================================ */
:root {
  /* Teal palette */
  --color-teal-pastel: #aaebe5;
  --color-teal-light: #2dd8c9;
  --color-teal-primary: #15ac9e;
  --color-teal-dark: #007a6f;

  /* Blue palette */
  --color-blue-light: #0eb0dc;
  --color-blue-primary: #0b95bb;
  --color-blue-dark: #007a98;
  --color-sky: #99dcf0;

  /* Neutrals */
  --color-black: #000000;
  --color-dark: #1f1e1f;
  --color-gray-dark: #272629;
  --color-gray: #4c4b4c;
  --color-gray-light: #e2e4e5;
  --color-gray-lighter: #f2f3f4;
  --color-white: #ffffff;

  /* Mint */
  --color-mint: #92e3de;
  --color-mint-light: #bdffc7;

  /* Typography */
  --font-heading:
    "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;
  --font-body:
    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 3rem;

  /* Container max-widths */
  --container-max: 1320px;
  --container-padding: 3rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-special: 40px 10px 60px 10px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.5s ease;

  /* Z-index layers */
  --z-navbar: 100;
  --z-tooltip: 200;
}

/* ============================================
   2. Base/Reset Styles
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-gray-lighter);
  background-color: var(--color-dark);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--color-white);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-sky);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-sky);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--color-gray-light);
  padding-bottom: 0.5rem;
}

h5 {
  font-size: 1.375rem;
  color: var(--color-mint);
}

h6 {
  font-size: 1.125rem;
  color: var(--color-gray-light);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--color-gray-lighter);
}

a {
  color: var(--color-mint-light);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

a:hover {
  color: var(--color-teal-pastel);
}

/* Animated underline for text links */
a:not(.btn):not(.navbar__link):not(.navbar__brand):not(.link--image) {
  position: relative;
}

a:not(.btn):not(.navbar__link):not(.navbar__brand):not(.link--image)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

a:not(.btn):not(.navbar__link):not(.navbar__brand):not(.link--image):hover::after {
  transform: scaleX(1);
}

img,
svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

button:focus:not(:focus-visible) {
  outline: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ============================================
   3. Layout - Container
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* ============================================
   4. Layout - Grid
   ============================================ */
.grid {
  display: grid;
  gap: 2rem;
}

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

.grid--cols-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid--cols-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid--cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 992px) {
  .grid--cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid--cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   5. Component - Navbar
   ============================================ */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  background-color: var(--color-black);
  z-index: var(--z-navbar);
}

.navbar > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.navbar__brand {
  display: inline-block;
}

.navbar__brand img {
  width: 174px;
  height: auto;
  margin-right: var(--space-3);
}

.navbar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  background: transparent;
  border: none;
  cursor: pointer;
}

.navbar__toggle-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  background-image: url("../assets/white-hamburger-icon.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

.navbar__toggle-icon--close::before {
  content: "\00d7";
  font-size: 2rem;
  color: var(--color-white);
}

.navbar__toggle-icon--close {
  background-image: none;
}

.navbar__menu {
  display: none;
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

.navbar__menu--open {
  display: flex;
  flex-direction: column;
}

.navbar__nav {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.navbar__item {
  margin: 0;
}

.navbar__link {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-white);
  font-weight: 400;
  text-decoration: none;
  transition: color var(--transition-fast);
  position: relative;
}

.navbar__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-normal);
}

.navbar__link:hover::after,
.navbar__link:focus-visible::after {
  transform: scaleX(1);
}

.navbar__link:hover,
.navbar__link:focus {
  color: var(--color-white);
}

.navbar__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-left: 0;
}

@media (min-width: 992px) {
  .navbar__toggle {
    display: none;
  }

  .navbar__menu {
    display: flex;
    flex-basis: auto;
    flex-direction: row;
    justify-content: space-between;
  }

  .navbar__nav {
    flex-direction: row;
    margin-bottom: 0;
  }

  .navbar__link {
    padding: 0.5rem 1rem;
  }

  .navbar__link::after {
    left: 1rem;
    width: calc(100% - 2rem);
  }

  .navbar__actions {
    flex-direction: row;
    margin-left: auto;
    gap: 4px;
  }
}

/* Mobile menu full-width buttons */
@media (max-width: 991px) {
  .navbar__actions .btn--outline {
    width: 100%;
    background-color: var(--color-white);
    color: var(--color-black);
    margin-bottom: 0.75rem;
  }

  .navbar__actions .btn--primary {
    width: 100%;
  }
}

/* ============================================
   6. Component - Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: var(--color-white);
  background-color: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn--primary {
  background-color: var(--color-blue-primary);
  color: var(--color-white);
  border-radius: 0 var(--radius-sm) var(--radius-lg) 0;
}

.btn--primary:hover {
  background-color: var(--color-blue-dark);
  color: var(--color-white);
}

.btn--outline {
  color: var(--color-white);
  border: 0.5px solid var(--color-white);
  border-radius: var(--radius-md) 0 0 var(--radius-sm);
}

.btn--outline:hover {
  color: var(--color-sky);
  border-color: var(---color-sky);
}

.btn--link {
  padding: 0;
  color: var(--color-teal-pastel);
  background: none;
  border: none;
}

.btn--link:hover {
  color: var(--color-teal-pastel);
}

/* ============================================
   7. Component - Sections
   ============================================ */
.section {
  padding: var(--space-5) 0;
}

.section--dark {
  background-color: var(--color-dark);
}

.section--black {
  background-color: var(--color-black);
}

.section--teal {
  background-color: var(--color-blue-dark);
  border-radius: var(--radius-special);
}

.section__header {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: var(--space-5);
}

.section__subheadline {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-teal-pastel);
  margin-bottom: 0.5rem;
}

.section__content {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   8. Component - Hero
   ============================================ */
.hero {
  padding: var(--space-5) 0;
  background-color: var(--color-dark);
}

.hero__content {
  max-width: 1320px;
  margin: 0 auto;
  text-align: center;
  padding: 7rem 2rem;
  background-color: var(--color-blue-primary);
  border-radius: var(--radius-special);
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 0.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: 1.5rem;
  color: var(--color-sky);
  margin-bottom: var(--space-3);
}

/* ============================================
   9. Component - Cards
   ============================================ */
.card {
  background-color: var(--color-gray-dark);
  padding: 2.5rem;
  border-radius: var(--radius-special);
  height: 100%;
}

.card__title {
  text-align: left;
}

.card__text {
  text-align: left;
}

/* ============================================
   10. Component - Feature Grid
   ============================================ */
.features {
  padding: var(--space-5) 0;
}

.features__item {
  margin-bottom: var(--space-4);
  text-align: center;
}

@media (min-width: 992px) {
  .features__item {
    text-align: left;
  }
}

.features__title {
  text-align: left;
}

.features__text {
  text-align: left;
  margin-bottom: 0;
}

/* ============================================
   11. Component - Accordion (Native)
   ============================================ */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion__item {
  border: none;
  border-bottom: 1px solid var(--color-gray);
  background: transparent;
}

.accordion__item[open] .accordion__header::before {
  content: "-";
}

.accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--color-mint-light);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.accordion__header::-webkit-details-marker {
  display: none;
}

.accordion__header::marker {
  display: none;
  content: "";
}

.accordion__header::before {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-mint-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--color-mint-light);
  font-weight: bold;
  font-size: 1rem;
  line-height: 1;
}

.accordion__body {
  padding: 0 0 1rem 0;
  color: var(--color-gray-lighter);
}

/* ============================================
   12. Component - Pricing Table
   ============================================ */
.pricing {
  overflow-x: auto;
}

.pricing__table {
  width: 100%;
  color: var(--color-white);
  border-collapse: collapse;
}

.pricing__table th,
.pricing__table td {
  padding: 0.75rem 1rem;
  text-align: center;
  border: none;
}

.pricing__table th:first-child,
.pricing__table td:first-child {
  text-align: left;
}

.pricing__table tbody tr:nth-child(odd) {
  background-color: var(--color-gray-dark);
}

.pricing__table tbody tr:nth-child(even) {
  background-color: #222122;
}

.pricing__header {
  text-align: center;
  padding: 1.5rem;
  font-weight: 400;
}

.pricing__header img {
  display: block;
  margin: 0 auto 0.75rem;
}

.pricing__header span {
  display: block;
  font-size: 1.25rem;
  color: var(--color-sky);
}

.pricing__header .pricing__price {
  font-size: 2.5rem;
  color: var(--color-mint);
  margin: 0.5rem 0;
}

.pricing__header p {
  font-size: 1rem;
  color: #dcdcdc;
  margin: 0;
}

.pricing__category {
  color: var(--color-mint) !important;
  font-weight: 400;
  background: transparent !important;
}

/* Mobile pricing cards */
.pricing-mobile {
  display: none;
}

.pricing-mobile__card {
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-mobile__header {
  margin-bottom: 1rem;
}

.pricing-mobile__header img {
  margin-bottom: 0.5rem;
}

.pricing-mobile__header span {
  display: block;
  font-size: 1.25rem;
  color: var(--color-teal-pastel);
}

.pricing-mobile__header .pricing__price {
  font-size: 2.5rem;
  color: var(--color-mint);
}

.pricing-mobile__toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: var(--color-teal-pastel);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
}

.pricing-mobile__toggle img {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-fast);
}

.pricing-mobile__toggle--open img {
  transform: rotate(180deg);
}

.pricing-mobile__content {
  display: none;
}

.pricing-mobile__content--open {
  display: block;
}

@media (max-width: 767px) {
  .pricing-desktop {
    display: none;
  }

  .pricing-mobile {
    display: block;
  }
}

/* ============================================
   13. Component - Map
   ============================================ */
.map {
  position: relative;
}

.map__image {
  width: 100%;
}

.map__point {
  position: absolute;
  display: block;
}

.map__point--praha {
  top: 58%;
  left: 0%;
  width: 50%;
  height: 100px;
}

.map__point--olomouc {
  top: 60%;
  left: 4.5%;
  width: 50%;
  height: 100px;
}

.map__point--poprad {
  top: 62%;
  left: 10%;
  width: 50%;
  height: 100px;
}

.map__marker {
  position: absolute;
  width: 15px;
  height: 15px;
  background-color: var(--color-teal-light);
  border-radius: 50%;
  right: 0;
  top: 0;
  z-index: 2;
  transform: translate(50%, -50%);
  cursor: pointer;
}

.map__radar {
  position: absolute;
  top: 0;
  right: 0;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(45, 216, 201, 0.2);
  background-color: rgba(45, 216, 201, 0.1);
  border-radius: 50%;
  transform: translate(50%, -50%);
  opacity: 0;
  animation: radar-pulse 3.5s ease-out infinite;
}

@keyframes radar-pulse {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
    width: 15px;
    height: 15px;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    width: 150px;
    height: 150px;
  }
}

.map__tooltip {
  position: absolute;
  right: 0.5px;
  top: -140px;
  z-index: var(--z-tooltip);
  width: 150px;
  background-color: var(--color-gray-dark);
  box-shadow: 0 0 30px rgba(30, 38, 56, 0.15);
  text-align: center;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0;
  transform: translate(50%);
  margin-top: 12px;
  display: none;
  transition: var(--transition-slow);
}

.map__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 45%;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 5px solid var(--color-gray-dark);
}

.map__tooltip img {
  margin-bottom: 0.5rem;
}

.map__tooltip h3 {
  font-size: 12px;
  font-weight: 600;
  color: #e7e7e7;
  margin: 0;
}

.map__point:hover .map__tooltip {
  display: block;
}

/* ============================================
   14. Component - Footer
   ============================================ */
.footer {
  padding: var(--space-5) 0;
  background-color: var(--color-dark);
  color: #dcdcdc;
}

.footer a:hover {
  color: var(--color-teal-pastel);
}

.footer__logo {
  text-align: center;
  margin-bottom: 1rem;
}

.footer__links {
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer__links span {
  margin: 0 0.25rem;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer__copyright {
  margin: 0;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
}

.footer__social a {
  margin: 5px;
  color: var(--color-mint);
}

.footer__social img {
  width: 25px;
  height: 25px;
}

/* ============================================
   15. Component - Divider
   ============================================ */
.divider {
  height: 2rem;
  border-bottom: 4px solid var(--color-gray-dark);
}

/* ============================================
   16. Component - Video
   ============================================ */
.video {
  width: 100%;
  border-radius: var(--radius-lg);
  filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

/* ============================================
   17. Component - References
   ============================================ */
.references {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.references__item {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 3 / 2;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   18. Component - About Images
   ============================================ */
.about-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 2rem;
}

.about-images__item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-images__item img {
  max-width: 100%;
  height: auto;
}

/* ============================================
   19. Utilities
   ============================================ */
.text--center {
  text-align: center;
}

.text--left {
  text-align: left;
}

.text--start {
  text-align: left;
}

.text--lead {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text--teal {
  color: var(--color-teal-pastel);
}

.text--mint {
  color: var(--color-mint-light);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Margin utilities */
.mb-0 {
  margin-bottom: 0;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 1rem;
}
.mb-4 {
  margin-bottom: 1.5rem;
}
.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-3 {
  margin-top: 1rem;
}
.mt-4 {
  margin-top: 1.5rem;
}
.mt-5 {
  margin-top: 3rem;
}

.my-3 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.my-5 {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.pb-3 {
  padding-bottom: 1rem;
}
.pb-5 {
  padding-bottom: 3rem;
}

.p-3 {
  padding: 1rem;
}

/* Width utilities */
.w-100 {
  width: 100%;
}

/* Flex utilities */
.d-flex {
  display: flex;
}
.justify-center {
  justify-content: center;
}
.align-center {
  align-items: center;
}
.gap-5 {
  gap: 3rem;
}

/* Display utilities */
.view-desktop {
  display: block;
}

.view-mobile {
  display: none;
}

@media (max-width: 767px) {
  .view-desktop {
    display: none;
  }

  .view-mobile {
    display: block;
  }
}

/* Link style for mint color */
.link--mint {
  color: var(--color-mint-light);
}

.link--mint:hover {
  color: var(--color-teal-pastel);
}

/* Link style for images */
.link--image img {
  transition:
    transform var(--transition-normal),
    opacity var(--transition-normal);
}

.link--image:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}