/* Google Fonts - Quicksand */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* CSS Variables - Brand Colors */
:root {
  /* Brand Colors */
  --brand-wine: hsl(5, 85%, 26%);
  --brand-blue: hsl(204, 71%, 16%);
  --brand-cream: hsl(36, 21%, 92%);
  
  /* Semantic Tokens */
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(204, 71%, 16%);
  --card: hsl(36, 21%, 97%);
  --card-foreground: hsl(204, 71%, 16%);
  --primary: hsl(5, 85%, 26%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(204, 71%, 16%);
  --secondary-foreground: hsl(0, 0%, 100%);
  --muted: hsl(36, 21%, 92%);
  --muted-foreground: hsl(204, 40%, 35%);
  --accent: hsl(36, 21%, 92%);
  --accent-foreground: hsl(204, 71%, 16%);
  --border: hsl(36, 15%, 88%);
  --input: hsl(36, 15%, 88%);
  --ring: hsl(5, 85%, 26%);
  --radius: 0.5rem;
  
  /* WhatsApp */
  --whatsapp: hsl(142, 70%, 45%);
  --whatsapp-hover: hsl(142, 70%, 38%);
  
  /* Shadows */
  --shadow-soft: 0 2px 15px -3px rgba(12, 47, 70, 0.08), 0 10px 20px -2px rgba(12, 47, 70, 0.04);
  --shadow-card: 0 4px 20px -4px rgba(12, 47, 70, 0.1);
  --shadow-elevated: 0 20px 40px -10px rgba(12, 47, 70, 0.15);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Quicksand', system-ui, -apple-system, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .header-content {
    height: 80px;
  }
}

.logo-img {
  width: 240px;
  height: auto;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.header-cta-desktop {
  display: none;
  align-items: center;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .header-cta-desktop {
    display: flex;
  }
}

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--secondary);
  transition: background-color 0.2s;
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle:hover {
  background-color: var(--accent);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--border);
  background-color: var(--background);
  animation: fadeIn 0.3s ease-out;
}

.nav-mobile.open {
  display: block;
}

.nav-mobile-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link-mobile {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.nav-link-mobile:hover,
.nav-link-mobile.active {
  background-color: var(--accent);
  color: var(--primary);
}

.nav-mobile-cta {
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(142, 70%, 45%, 0.3);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: hsl(5, 85%, 22%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  border: 1px solid var(--input);
  background-color: var(--background);
  color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background-color: hsl(204, 71%, 14%);
}

.btn-lg {
  height: 48px;
  padding: 0 2rem;
  font-size: 1rem;
  border-radius: 0.5rem;
}

.btn-xl {
  height: 56px;
  padding: 0 2.5rem;
  font-size: 1.125rem;
  border-radius: 0.5rem;
}

.btn-full {
  width: 100%;
}

.btn-flex {
  flex: 1;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-cream) 0%, hsl(0, 0%, 100%) 100%);
}

.hero-content {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 1rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 6rem 1rem 8rem;
  }
}

.hero-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
}

.text-primary {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .hero-ctas {
    flex-direction: row;
  }
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
}

.highlight-item .icon {
  color: var(--primary);
  width: 1.25rem;
  height: 1.25rem;
}

.hero-image {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
}

.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Hero compacto (sem imagem) */
.hero-compact .hero-content {
  padding: 2rem 1rem;
}

@media (min-width: 1024px) {
  .hero-compact .hero-content {
    padding: 2.5rem 1rem 3rem;
  }
}

.hero-content-single {
  grid-template-columns: 1fr !important;
  max-width: 42rem;
}

.hero-compact .hero-title {
  margin-bottom: 0.75rem;
}

@media (min-width: 1024px) {
  .hero-compact .hero-title {
    font-size: 2rem;
  }
}

.hero-compact .hero-subtitle {
  margin-bottom: 1.25rem;
}

.hero-compact .hero-ctas {
  margin-bottom: 1.5rem;
}

.hero-highlights-inline {
  flex-wrap: nowrap;
  justify-content: flex-start;
}

@media (max-width: 639px) {
  .hero-highlights-inline {
    flex-wrap: wrap;
  }
}

/* Carousel Banner */
.carousel-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.carousel-track {
  position: relative;
  width: 100%;
  display: flex;
  transition: transform 1s ease-in-out;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .carousel-slide {
    min-height: 380px;
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    min-height: 420px;
  }
}

.carousel-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.carousel-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 47, 70, 0.85) 0%, rgba(12, 47, 70, 0.5) 60%, transparent 100%);
}

@media (min-width: 768px) {
  .carousel-slide-overlay {
    background: linear-gradient(90deg, rgba(12, 47, 70, 0.88) 0%, rgba(12, 47, 70, 0.4) 50%, transparent 100%);
  }
}

.carousel-slide-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .carousel-slide-content {
    padding: 3rem 1rem;
    max-width: 36rem;
  }
}

.carousel-slide-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(36, 21%, 92%);
  margin-bottom: 0.5rem;
}

.carousel-slide-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .carousel-slide-title {
    font-size: 1.75rem;
  }
}

.carousel-slide-summary {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  max-width: 28rem;
}

@media (min-width: 768px) {
  .carousel-slide-summary {
    font-size: 1rem;
  }
}

.carousel-slide-date {
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(36, 21%, 92%);
  margin-bottom: 1.5rem;
}

.carousel-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.carousel-slide-content .btn {
  box-shadow: var(--shadow-card);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.9);
  color: #fff;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow-soft);
}

.carousel-btn:hover {
  background: #fff;
  color: var(--primary);
}

.carousel-btn-prev {
  left: 0.75rem;
}

.carousel-btn-next {
  right: 0.75rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.carousel-dots button {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.carousel-dots button:hover,
.carousel-dots button.active {
  background: #fff;
}

/* Section */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section {
    padding: 6rem 0;
  }
}

.bg-muted {
  background-color: hsla(36, 21%, 92%, 0.5);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .section-header {
    margin-bottom: 4rem;
  }
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.section-title-small {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-subtitle {
    font-size: 1.125rem;
  }
}

/* Cards */
.card-medical {
  background-color: var(--card);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .card-medical {
    padding: 2rem;
  }
}

.card-medical:hover {
  box-shadow: var(--shadow-elevated);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  text-align: center;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.75rem;
  background-color: rgba(119, 22, 14, 0.1);
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.feature-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Courses Grid */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.course-card {
  overflow: hidden;
  padding: 0;
}

.course-image {
  position: relative;
  height: 12rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .course-image {
    height: 14rem;
  }
}

.course-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(12, 47, 70, 0.6), transparent);
  pointer-events: none;
}

.course-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.course-card:hover .course-img {
  transform: scale(1.05);
}

.course-content {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .course-content {
    padding: 2rem;
  }
}

.course-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .course-title {
    font-size: 1.5rem;
  }
}

/* Cards compactos (cursos em destaque com data) */
.courses-grid-compact {
  gap: 1.25rem;
}

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

.course-card-compact {
  display: flex;
  flex-direction: column;
}

.course-image-compact {
  height: 8rem;
}

@media (min-width: 768px) {
  .course-image-compact {
    height: 9rem;
  }
}

.course-card-compact .course-content {
  padding: 1rem;
}

.course-title-compact {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.course-summary-compact {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.course-date-compact {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.course-actions-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.course-actions-compact .btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
}

.btn-sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
}

.btn-sm .icon {
  width: 14px;
  height: 14px;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.course-meta-item .icon {
  color: var(--primary);
}

.course-highlights {
  list-style: none;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.course-highlights li::before {
  content: '';
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background-color: var(--primary);
  margin-top: 0.375rem;
  flex-shrink: 0;
}

.course-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .course-actions {
    flex-direction: row;
  }
}

.mt-10 {
  margin-top: 2.5rem;
}

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

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

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

.testimonial-card {
  position: relative;
}

.testimonial-quote {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2rem;
  height: 2rem;
  color: rgba(119, 22, 14, 0.1);
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-rating .star {
  width: 1rem;
  height: 1rem;
  color: var(--primary);
  fill: var(--primary);
}

.testimonial-content {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--secondary);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.testimonial-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  font-style: italic;
  margin-top: 0.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--brand-wine) 0%, hsl(5, 85%, 20%) 100%);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-section {
    padding: 5rem 1rem;
  }
}

.cta-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 1.875rem;
  }
}

@media (min-width: 1024px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Page Header */
.page-header {
  background-color: hsla(36, 21%, 92%, 0.5);
  border-bottom: 1px solid var(--border);
  padding: 3rem 1rem;
}

@media (min-width: 768px) {
  .page-header {
    padding: 4rem 1rem;
  }
}

.page-title {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .page-title {
    font-size: 3rem;
  }
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
}

/* Recurrence Grid */
.recurrence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.recurrence-section {
  padding: 2rem 0;
}

@media (min-width: 768px) {
  .recurrence-section {
    padding: 3rem 0;
  }
}

.recurrence-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.recurrence-card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-elevated);
}

.recurrence-card-link:hover .recurrence-title {
  color: var(--primary);
}

.recurrence-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background-color: rgba(119, 22, 14, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all 0.3s;
}

.recurrence-card-link:hover .recurrence-icon {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.recurrence-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.recurrence-text {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Course Detail */
.course-section {
  border-top: 1px solid var(--border);
}

.course-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .course-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.course-detail-reverse {
  direction: rtl;
}

.course-detail-reverse > * {
  direction: ltr;
}

.course-detail-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.course-detail-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.course-detail-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .course-detail-title {
    font-size: 1.875rem;
  }
}

.course-detail-intro,
.course-detail-text {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.course-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  background-color: var(--muted);
  color: var(--muted-foreground);
}

.badge .icon {
  color: var(--primary);
}

.course-detail-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  margin-top: 2rem;
}

.course-detail-list {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.course-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.course-detail-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.course-detail-features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.course-detail-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.feature-icon-small {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: rgba(119, 22, 14, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.course-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .course-detail-actions {
    flex-direction: row;
  }
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-section-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-card {
  margin-bottom: 1.5rem;
}

.contact-card-whatsapp {
  background-color: rgba(142, 70%, 45%, 0.05);
  border: 1px solid rgba(142, 70%, 45%, 0.2);
}

.contact-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-card-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.75rem;
  background-color: rgba(119, 22, 14, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-card-icon-whatsapp {
  background-color: var(--whatsapp);
  color: white;
}

.contact-card-text {
  flex: 1;
}

.contact-card-title {
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.contact-card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.contact-method-value {
  font-weight: 500;
  color: var(--secondary);
  transition: color 0.2s;
  line-height: 1.6;
}

.contact-method-value:hover {
  color: var(--primary);
}

/* Form */
.contact-form-wrapper {
  width: 100%;
}

.contact-form-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.form-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-family: inherit;
  background-color: var(--background);
  color: var(--foreground);
  transition: border-color 0.2s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 2px rgba(119, 22, 14, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Footer */
.footer {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
}

.footer-cta {
  background: linear-gradient(135deg, var(--brand-wine) 0%, hsl(5, 85%, 20%) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta .container {
  padding: 3rem 1rem;
  text-align: center;
}

.footer-cta-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .footer-cta-title {
    font-size: 1.875rem;
  }
}

.footer-cta-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1.5rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-main {
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

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

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-title {
  color: white;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-contact-item:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2rem;
  padding-top: 1.5rem;
  text-align: center;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background-color: var(--whatsapp);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.2s;
}

.whatsapp-float:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

.whatsapp-float .icon {
  width: 1.5rem;
  height: 1.5rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.5s ease-out forwards;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Utilities */
.gradient-hero {
  background: linear-gradient(135deg, var(--brand-cream) 0%, hsl(0, 0%, 100%) 100%);
}

.gradient-cta {
  background: linear-gradient(135deg, var(--brand-wine) 0%, hsl(5, 85%, 20%) 100%);
}
