/* =====================================================================
   Critical Thinking In Action — shared styles
   ===================================================================== */

:root {
  --font-primary: 'Roboto', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --nav-link-color: #0d141a;
  --nav-link-font-size: 16px;
  --max-width: 1240px;
  --bg-dark: rgb(6, 23, 38);
  --bg-dark-2: rgb(16, 24, 64);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-secondary);
  color: #0d141a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #ffffff;
  width: 100%;
}

.header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.header__logo {
  display: inline-flex;
  align-items: center;
}

.header__logo img {
  width: 55px;
  height: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header__nav a {
  font-size: var(--nav-link-font-size);
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.5;
  color: var(--nav-link-color);
  transition: opacity .2s ease;
}

.header__nav a:hover { opacity: .7; }

.header__nav a.is-active { font-weight: 500; }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--nav-link-color);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- Footer ---------- */
.footer {
  background-color: var(--bg-dark);
  padding: 16px 16px;
}

.footer__inner {
  max-width: 1224px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 52px;
}

.footer__copy {
  color: rgb(255, 255, 255);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 400;
}

/* ---------- Mobile dropdown ---------- */
.header__nav--mobile {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  padding: 24px 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
}

body.nav-open .header__nav--mobile { display: flex; }

body.nav-open .header__burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .header__burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .header__burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Home: hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  min-height: 895px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 60px;
}

.hero__image {
  width: 632px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
}

.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  min-width: 130px;
  height: 50px;
  padding: 0 40px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  background-color: rgb(76, 120, 255);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.buy-button:hover { background-color: rgb(29, 30, 32); }

/* ---------- Contact page ---------- */
.contact {
  background: var(--bg-dark);
  min-height: 765px;
  padding: 80px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact__title {
  color: #ffffff;
  font-size: 48px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  margin-bottom: 40px;
}

.contact__form {
  width: 100%;
  max-width: 560px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact__field { display: flex; flex-direction: column; }

.contact__label {
  color: #0d141a;
  font-size: 14px;
  margin-bottom: 6px;
}

.contact__input,
.contact__textarea {
  width: 100%;
  background-color: #ffffff;
  color: #0d141a;
  font-family: var(--font-secondary);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid rgb(184, 192, 204);
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease;
}

.contact__input:focus,
.contact__textarea:focus { border-color: #0d141a; }

.contact__textarea { min-height: 150px; resize: none; }

.contact__submit {
  align-self: center;
  margin-top: 10px;
  padding: 16px 40px;
  font-family: var(--font-secondary);
  font-size: 16px;
  font-weight: 400;
  color: #ffffff;
  background-color: #101840;
  border: 0;
  border-radius: 50px;
  cursor: pointer;
  transition: background-color .2s ease;
}

.contact__submit:hover { background-color: #1c2860; }

.contact__status {
  text-align: center;
  color: #6ee7b7;
  font-size: 15px;
  min-height: 20px;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .header__inner { padding: 24px 16px; }
  .header__nav { display: none; }
  .header__burger { display: flex; }

  .hero {
    min-height: auto;
    padding: 16px 16px 56px;
  }

  .hero__image {
    width: 328px;
    max-width: 100%;
  }

  .footer__inner { min-height: 60px; }

  .contact { min-height: auto; padding: 48px 16px; }

  .contact__title { font-size: 32px; }
}
