/* ========================================
   Design System - Negócios Internacionais
   Book Cover Landing Page
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #050a14;
  --color-white: #ffffff;
  --color-blue-50: #eff6ff;
  --color-blue-400: #60a5fa;
  --color-slate-900: #0f172a;

  --font-sans: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;

  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   Main Hero Container
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 5rem;

  /* Background image with dark overlay */
  background-image:
    linear-gradient(to bottom, rgba(5, 10, 20, 0.7), rgba(5, 10, 20, 0.85)),
    url('images/background-mapa.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* Fade-in animation */
  opacity: 0;
  animation: heroFadeIn 1.5s ease-in-out 0.1s forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ========================================
   Top Branding Header
   ======================================== */
.top-branding {
  position: absolute;
  top: 2rem;
  width: 100%;
  text-align: center;
}

.top-branding__text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  opacity: 0.6;
  font-weight: 600;
}

/* ========================================
   Hero Content (centered)
   ======================================== */
.hero-content {
  max-width: 64rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ========================================
   Hero Split Layout (Cover + Text)
   ======================================== */
.hero-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* --- Book Cover --- */
.hero-cover {
  flex-shrink: 0;
}

.hero-cover__image {
  width: 100%;
  max-width: 180px;
  height: auto;
  border-radius: 4px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(17, 82, 212, 0.15);
  transition: transform 0.5s ease;
}

.hero-cover__image:hover {
  transform: scale(1.02);
}

/* --- Hero Text (beside cover) --- */
.hero-text {
  text-align: center;
}

/* --- Title --- */
.hero-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.hero-title__second-line {
  display: block;
  opacity: 0.9;
}

/* --- Divider --- */
.hero-divider {
  height: 4px;
  width: 6rem;
  background-color: rgba(255, 255, 255, 0.4);
  margin: 1rem auto;
  border: none;
}

/* --- Subtitle --- */
.hero-subtitle__text {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 300;
  font-style: italic;
  line-height: 1.7;
  color: rgba(239, 246, 255, 0.9);
  text-wrap: balance;
}

/* --- Author --- */
.hero-author {
  margin-bottom: 2rem;
}

.hero-author__text {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-author__diamond {
  color: var(--color-blue-400);
  margin: 0 0.5rem;
}

/* ========================================
   CTA Buttons
   ======================================== */
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 36rem;
  justify-content: center;
}

.btn-academic {
  flex: 1;
  position: relative;
  overflow: hidden;
  padding: 1rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.btn-academic:focus-visible {
  box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--color-bg);
}

/* Button fill animation layer */
.btn-academic__fill {
  position: absolute;
  inset: 0;
  transition: transform 0.3s ease;
}

.btn-academic__label {
  position: relative;
  z-index: 1;
}

/* --- Aluno Button (filled white) --- */
.btn-academic--aluno {
  background-color: var(--color-white);
  color: var(--color-slate-900);
  border: 2px solid var(--color-white);
}

.btn-academic--aluno .btn-academic__fill {
  background-color: var(--color-white);
}

.btn-academic--aluno:hover {
  background-color: transparent;
  color: var(--color-white);
}

.btn-academic--aluno:hover .btn-academic__fill {
  transform: translateY(-100%);
}

/* --- Professor Button (same as Aluno) --- */
.btn-academic--professor {
  background-color: var(--color-white);
  color: var(--color-slate-900);
  border: 2px solid var(--color-white);
}

.btn-academic--professor .btn-academic__fill {
  background-color: var(--color-white);
}

.btn-academic--professor:hover {
  background-color: transparent;
  color: var(--color-white);
}

.btn-academic--professor:hover .btn-academic__fill {
  transform: translateY(-100%);
}

/* ========================================
   Footer
   ======================================== */
.page-footer {
  position: absolute;
  bottom: 1rem;
  width: 100%;
  text-align: center;
  padding: 0 1rem;
}

@media (max-width: 639px) {
  .page-footer {
    position: relative;
    bottom: auto;
    margin-top: 2rem;
    padding-bottom: 1rem;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
    padding-bottom: 1.5rem;
  }
}

.page-footer__content {
  max-width: 56rem;
  margin: 0 auto;
  opacity: 0.5;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: normal;
  flex-wrap: wrap;
}

.page-footer__separator {
  display: inline;
}

/* ========================================
   Modal System
   ======================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(5, 10, 20, 0.85);
  backdrop-filter: blur(6px);
}

.modal-overlay.active {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

.modal {
  background-color: var(--color-white);
  color: var(--color-slate-900);
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modalZoomIn 0.3s ease;
}

.modal__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f8fafc;
}

.modal__title {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.modal__close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: color 0.15s ease;
}

.modal__close:hover {
  color: #475569;
}

/* --- Modal: Em Construção --- */
.modal__body {
  padding: 2rem 1.5rem;
}

.modal__body--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 2rem;
}

.modal__icon {
  font-size: 3.5rem;
  color: var(--color-blue-400);
}

.modal__heading {
  font-family: var(--font-sans);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-slate-900);
}

.modal__text {
  font-size: 0.9375rem;
  color: #64748b;
  line-height: 1.6;
  max-width: 20rem;
}

/* --- Modal: Form --- */
.modal__form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #334155;
}

.form-group__input {
  font-family: var(--font-sans);
  border-radius: 0.5rem;
  border: 1px solid #e2e8f0;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  color: var(--color-slate-900);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-group__input:focus {
  outline: none;
  border-color: var(--color-blue-400);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.form-group__input::placeholder {
  color: #94a3b8;
}

.form-group__file-input {
  display: none;
}

.form-group__upload {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 5rem;
  background-color: var(--color-white);
  border: 2px dashed #cbd5e1;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.form-group__upload:hover {
  border-color: var(--color-blue-400);
}

.form-group__upload-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group__upload-icon {
  color: #94a3b8;
  font-size: 1.5rem;
}

.form-group__upload-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
}

.btn-submit {
  width: 100%;
  padding: 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--color-blue-400);
  color: var(--color-white);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-submit:hover {
  background-color: #3b82f6;
  transform: translateY(-1px);
}

/* --- Modal Animations --- */
@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes modalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ========================================
   Responsive - Tablet+ (640px)
   ======================================== */
@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }

  .hero {
    padding: 4rem 1.5rem 3rem;
  }

  .hero-split {
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .hero-cover__image {
    max-width: 200px;
  }

  .hero-title {
    font-size: 2.25rem;
    letter-spacing: 0.15em;
  }

  .hero-subtitle__text {
    font-size: 1.125rem;
  }

  .hero-author__text {
    font-size: 1.375rem;
  }

  .hero-author {
    margin-bottom: 2.5rem;
  }

  .page-footer__content {
    font-size: 0.5625rem;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
}

/* ========================================
   Responsive - Tablet+ (768px)
   ======================================== */
@media (min-width: 768px) {
  .hero {
    padding: 5rem 2.5rem;
  }

  .hero-split {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
  }

  .hero-text {
    text-align: left;
  }

  .hero-divider {
    margin: 1.25rem 0;
  }

  .hero-cover__image {
    max-width: 240px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-subtitle__text {
    font-size: 1.25rem;
  }

  .hero-author {
    margin-bottom: 3rem;
  }

  .hero-author__text {
    font-size: 1.5rem;
  }

  .top-branding__text {
    font-size: 0.75rem;
  }

  .page-footer__content {
    font-size: 0.625rem;
    gap: 2rem;
  }
}

/* ========================================
   Responsive - Desktop (1024px)
   ======================================== */
@media (min-width: 1024px) {
  .hero {
    padding: 5rem 10rem;
  }

  .hero-split {
    gap: 4rem;
  }

  .hero-cover__image {
    max-width: 280px;
  }

  .hero-title {
    font-size: 4rem;
  }

  .hero-subtitle__text {
    font-size: 1.5rem;
  }

  .hero-author__text {
    font-size: 1.75rem;
  }
}

/* ========================================
   Cookie Consent Banner
   ======================================== */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(10, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.5rem;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  animation: cookieSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.cookie-banner.visible {
  display: flex;
}

@keyframes cookieSlideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner__content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.cookie-banner__icon {
  font-size: 1.5rem;
  color: var(--color-blue-400);
  flex-shrink: 0;
}

.cookie-banner__text {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner__link {
  color: var(--color-blue-400);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.cookie-banner__link:hover {
  color: #93c5fd;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.625rem;
  flex-shrink: 0;
}

.cookie-banner__btn {
  padding: 0.5rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cookie-banner__btn--decline {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner__btn--decline:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 255, 255, 0.4);
}

.cookie-banner__btn--accept {
  background-color: var(--color-blue-400);
  color: #0f172a;
  border: 1px solid transparent;
}

.cookie-banner__btn--accept:hover {
  background-color: #93c5fd;
}

@media (max-width: 639px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: flex-end;
  }
}