@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary: #2c1810;
  --secondary: #d4af37;
  --accent: #8b4513;
  --light: #f5f1e8;
  --dark: #1a0f0a;
  --text: #3d2817;
  --border: #c9b896;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(44, 24, 16, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  font-size: 2rem;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 35px;
  align-items: center;
}

nav a {
  color: var(--light);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #2c1810 0%, #4a2c1a 100%);
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../img/hero-pattern.webp') center/cover;
  opacity: 0.1;
  animation: subtleMove 20s ease-in-out infinite;
}

@keyframes subtleMove {
  0%, 100% { transform: scale(1) translateY(0); }
  50% { transform: scale(1.05) translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 40px 20px;
}

.hero h1 {
  font-size: 4.5rem;
  color: var(--secondary);
  margin-bottom: 25px;
  animation: fadeInUp 1s ease;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.3rem;
  color: var(--light);
  margin-bottom: 40px;
  animation: fadeInUp 1s ease 0.2s backwards;
  line-height: 1.8;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.btn {
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  background: var(--secondary);
  color: var(--dark);
}

.btn-primary:hover {
  background: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
  background: transparent;
  border-color: var(--light);
  color: var(--light);
}

.btn-secondary:hover {
  background: var(--light);
  color: var(--dark);
  transform: translateY(-2px);
}

.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 700px;
  margin: 25px auto 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.feature-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
  font-size: 3.5rem;
  color: var(--secondary);
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text);
  line-height: 1.7;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 35px;
}

.course-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.course-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.course-content {
  padding: 25px;
}

.course-content h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.course-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: var(--accent);
}

.course-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.course-content p {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.course-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--secondary);
  font-family: 'Playfair Display', serif;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  padding: 20px;
  overflow-y: auto;
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.4s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--secondary);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: white;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  transform: rotate(90deg);
  background: var(--accent);
}

.modal-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}

.modal-body {
  padding: 40px;
}

.modal-body h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.modal-body .course-meta {
  margin-bottom: 25px;
}

.modal-body p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.modal-body ul {
  list-style: none;
  margin: 25px 0;
}

.modal-body ul li {
  padding: 10px 0;
  padding-left: 30px;
  position: relative;
}

.modal-body ul li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.story-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.story-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.story-content {
  padding: 30px;
}

.story-content h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.story-subtitle {
  color: var(--secondary);
  font-style: italic;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.story-content p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 15px;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 25px;
}

.contact-info p {
  margin-bottom: 30px;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 15px;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--secondary);
  margin-top: 5px;
}

.contact-item div h4 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-item div p {
  color: var(--text);
  margin: 0;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

footer {
  background: var(--primary);
  color: var(--light);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-section p,
.footer-section a {
  color: var(--light);
  line-height: 1.8;
  display: block;
  margin-bottom: 10px;
}

.footer-section a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

.company-info {
  background: rgba(255,255,255,0.05);
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 30px;
  border-left: 4px solid var(--secondary);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.company-info-section {
  display: flex;
  flex-direction: column;
}

.company-info h4 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.company-info p {
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
}

.company-info strong {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--secondary);
}

@media (max-width: 968px) {
  nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    flex-direction: column;
    background: var(--primary);
    width: 100%;
    padding: 30px;
    gap: 20px;
    transition: left 0.3s ease;
  }

  nav ul.active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .features-grid,
  .courses-grid,
  .stories-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 60px 0;
  }

  .modal-body {
    padding: 25px;
  }
}