/*
  style.css
  Стили для сайта "Курсы по инвестициям в Аргентине"
  Дизайн-система: Минималистичный, Объемные элементы UI
  Цветовая схема: Нейтральная
  Анимации: 3D-эффекты
*/

/* 1. CSS-переменные
--------------------------------------------------------------------------------*/
:root {
  /* Шрифты */
  --font-primary: 'Source Sans Pro', sans-serif;
  --font-secondary: 'Playfair Display', serif;

  /* Цветовая схема: Нейтральная с яркими акцентами */
  --color-primary: #3b82f6; /* Синий (Tailwind blue-500) */
  --color-primary-dark: #1d4ed8; /* Темно-синий (Tailwind blue-800) */
  --color-accent: #14b8a6; /* Бирюзовый (Tailwind teal-500) */
  --color-accent-dark: #0f766e; /* Темно-бирюзовый (Tailwind teal-700) */
  
  --color-text-dark: #1f2937; /* Очень темный серый (Tailwind gray-800) */
  --color-text-base: #374151; /* Базовый серый (Tailwind gray-700) */
  --color-text-muted: #6b7280; /* Приглушенный серый (Tailwind gray-500) */
  
  --color-bg-light: #f9fafb; /* Очень светлый серый (Tailwind gray-50) */
  --color-bg-white: #ffffff;
  --color-bg-dark: #111827; /* Темный фон футера (Tailwind gray-900) */

  --border-radius-md: 0.75rem; /* 12px */
  --border-radius-lg: 1rem; /* 16px */

  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* 2. Глобальные стили и типографика
--------------------------------------------------------------------------------*/
body {
  font-family: var(--font-primary);
  background-color: var(--color-bg-light);
  color: var(--color-text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--color-text-dark);
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* 3. Переиспользуемые компоненты
--------------------------------------------------------------------------------*/

/* Кнопки с 3D-эффектом */
.btn-3d, button[type="submit"] {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-weight: 700;
  color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
  user-select: none;
}

.btn-3d.bg-blue-600, button[type="submit"] {
    background-color: var(--color-primary);
    border-bottom: 4px solid var(--color-primary-dark);
}

.btn-3d.bg-blue-600:hover, button[type="submit"]:hover {
    background-color: #4b8ef7; /* Немного светлее при наведении */
    transform: translateY(-2px);
}

.btn-3d.bg-teal-500 {
    background-color: var(--color-accent);
    border-bottom: 4px solid var(--color-accent-dark);
}
.btn-3d.bg-teal-500:hover {
    background-color: #2dd4bf; /* Немного светлее при наведении */
    transform: translateY(-2px);
}

.btn-3d:active, button[type="submit"]:active {
  transform: translateY(1px);
  border-bottom-width: 2px;
}

/* Карточки с 3D-эффектом */
.card-3d {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-3d:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
}

.card {
    text-align: center;
}

.card .card-image {
    width: 100%;
    height: 20rem; /* Фиксированная высота для контейнера изображения */
    overflow: hidden;
    margin: 0 auto;
}

.card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Изображение покрывает контейнер, сохраняя пропорции */
    object-position: center;
}

.card .card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Формы */
input[type="text"],
input[type="email"],
textarea {
    appearance: none;
    background-color: #f3f4f6; /* gray-100 */
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.05);
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

/* 4. Стили для секций
--------------------------------------------------------------------------------*/

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh; /* Используем vh для hero, чтобы занимал весь экран */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax эффект */
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-section h1 {
    color: var(--color-bg-white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-section p {
    color: var(--color-bg-white);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    margin: 1.5rem auto 2.5rem;
}

/* Timeline (Success Stories) */
.timeline-item {
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: -0.6rem; /* (20px/2) - (4px/2) = 8px + 2px border? Check Tailwind conversion */
  transform: translateX(-50%);
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  border-radius: 9999px;
  background-color: var(--color-bg-white);
  border: 4px solid var(--color-primary);
  z-index: 1;
}

/* Media Logos */
#media img {
    transition: filter 0.3s ease, transform 0.3s ease;
}
#media img:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* External Resources */
#recursos a.group h3 {
    transition: color 0.3s ease;
}
#recursos .group:hover h3 {
    color: var(--color-primary-dark);
}

/* 5. Хедер и футер
--------------------------------------------------------------------------------*/
header {
    transition: box-shadow 0.3s ease;
}

footer a {
    color: #9ca3af; /* gray-400 */
}

footer a:hover {
    color: var(--color-bg-white);
    text-decoration: underline;
}

/* 6. Стили для отдельных страниц
--------------------------------------------------------------------------------*/
/* Страница успеха (success.html) */
.success-page-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.success-card {
    background: var(--color-bg-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 600px;
}

/* Страницы с контентом (privacy.html, terms.html) */
.legal-page-content {
    padding-top: 10rem;
    padding-bottom: 5rem;
    max-width: 800px;
    margin: 0 auto;
}

.legal-page-content h1, .legal-page-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.legal-page-content p, .legal-page-content li {
    margin-bottom: 1rem;
}
.legal-page-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

/* 7. Анимации и служебные классы
--------------------------------------------------------------------------------*/
/* Для ScrollReveal.js */
.reveal {
  visibility: hidden;
}

/* Медиа-запросы для адаптивности (в дополнение к Tailwind) */
@media (max-width: 768px) {
  section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .hero-section h1 {
    font-size: 2.5rem; /* Tailwind text-4xl */
  }

  .hero-section p {
    font-size: 1rem;
  }

  .legal-page-content {
    padding-top: 8rem;
  }
}