/* ============================================
   ESCOLA RITMO - Static Site Stylesheet
   ============================================ */

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

:root {
  --orange: #e67e22;
  --orange-dark: #d35400;
  --brown: #4a3728;
  --brown-light: #6b4f3a;
  --cream: #fdf6ee;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #888;
  --gray-dark: #333;
  --text: #444;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --max-width: 1170px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--orange-dark); }
ul { list-style: none; }
h1, h2, h3, h4 { color: var(--brown); line-height: 1.3; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
#main-header {
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

#main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
  gap: 20px;
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

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

.logo-area .descricao {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: var(--brown);
  line-height: 1.3;
}

.logo-area .descricao .linha-2 {
  font-style: italic;
  color: var(--orange);
}

/* Navigation */
#main-nav ul {
  display: flex;
  gap: 4px;
}

#main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--brown);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

#main-nav a:hover,
#main-nav .active a {
  background: var(--orange);
  color: var(--white);
}

.header-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.8rem;
  color: var(--brown);
  flex-shrink: 0;
}

.header-contact .phone { font-weight: 600; }
.header-contact .whatsapp { color: #25d366; font-weight: 600; }
.header-contact .social a {
  color: #3b5998;
  font-size: 1.2rem;
  margin-left: 8px;
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: var(--orange);
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 4px;
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: var(--brown);
  max-height: 500px;
}

.hero-slider .slides {
  display: flex;
  transition: transform 0.6s ease;
}

.hero-slider .slide {
  min-width: 100%;
  position: relative;
}

.hero-slider .slide img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.hero-slider .slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  padding: 60px 40px 40px;
}

.hero-slider .slide-content h2 {
  color: white;
  font-size: 2.2rem;
  margin-bottom: 8px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero-slider .slide-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dots button {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-dots button.active {
  background: var(--orange);
  border-color: var(--orange);
}

/* --- Sections --- */
.section {
  padding: 60px 0;
}

.section-orange {
  background: var(--orange);
  color: white;
}

.section-orange h2,
.section-orange h3 {
  color: white;
}

.section-white {
  background: var(--white);
}

.section-cream {
  background: var(--cream);
}

.section-brown {
  background: var(--brown);
  color: var(--cream);
}

.section-brown h2 {
  color: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 700px;
  margin: 0 auto;
}

.section-orange .section-header p {
  color: rgba(255,255,255,0.85);
}

/* --- Intro text (homepage) --- */
.intro-text {
  text-align: center;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

/* --- Course Grid --- */
.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}

.course-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.course-card .card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.course-card .card-img .category {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--orange);
  color: white;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.course-card .card-body {
  padding: 18px;
}

.course-card .card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.course-card .card-body p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.btn-orange {
  background: var(--orange);
  color: white;
}

.btn-orange:hover {
  background: var(--orange-dark);
  color: white;
}

.btn-white {
  background: white;
  color: var(--orange);
}

.btn-white:hover {
  background: var(--cream);
  color: var(--orange-dark);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--orange);
  color: var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: white;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.85rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--brown);
  padding: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  text-align: center;
}

.cta-banner img {
  height: 50px;
}

.cta-banner a {
  color: white;
  font-size: 1.15rem;
}

.cta-banner strong {
  color: var(--orange);
}

/* --- Professor Grid --- */
.prof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
}

.prof-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}

.prof-card:hover {
  transform: translateY(-3px);
}

.prof-card .prof-img {
  height: 240px;
  background-size: cover;
  background-position: center top;
}

.prof-card .prof-body {
  padding: 15px;
}

.prof-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.prof-card .prof-role {
  font-size: 0.8rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
}

.prof-card .prof-courses {
  font-size: 0.8rem;
  color: var(--gray);
}

/* --- Course Detail --- */
.course-hero {
  height: 350px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.course-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,0,0,0.6));
}

.course-hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: 30px;
}

.course-hero h1 {
  color: white;
  font-size: 2.5rem;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.course-hero .category-badge {
  display: inline-block;
  background: var(--orange);
  color: white;
  padding: 4px 14px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.course-content {
  max-width: 800px;
}

.course-content p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.course-teachers {
  margin-top: 30px;
}

.course-teachers h3 {
  margin-bottom: 15px;
}

.teacher-list {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.teacher-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  padding: 8px 16px 8px 8px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.teacher-chip img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info-block {
  margin-bottom: 25px;
}

.contact-info-block h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-info-block h3 .icon {
  color: var(--orange);
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 4px;
  color: var(--brown);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 15px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--orange);
}

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

.map-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* --- About page --- */
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin: 30px 0;
}

.about-feature {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.about-feature h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.about-gallery img {
  border-radius: 8px;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* --- Events --- */
.event-list {
  max-width: 800px;
  margin: 0 auto;
}

.event-item {
  background: var(--white);
  padding: 25px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

.event-date {
  background: var(--orange);
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  flex-shrink: 0;
  min-width: 70px;
}

.event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.event-date .year {
  font-size: 0.7rem;
  opacity: 0.8;
}

.event-date .day {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

/* --- Books --- */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.book-card {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}

.book-card h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.book-card .author {
  font-size: 0.85rem;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 6px;
}

.book-card .desc {
  font-size: 0.85rem;
  color: var(--gray);
}

.book-card .price {
  margin-top: 8px;
  font-weight: 700;
  color: var(--brown);
}

/* --- Footer --- */
#main-footer {
  background: var(--brown);
  color: var(--cream);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--orange);
  font-size: 0.95rem;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--cream);
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-col a:hover {
  opacity: 1;
  color: var(--orange);
}

.footer-col p,
.footer-col li {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer-col .icon {
  color: var(--orange);
  margin-right: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0.7;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 35px;
  filter: brightness(1.5);
}

/* --- Utilities --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  z-index: 999;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  #main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow);
    z-index: 99;
  }

  #main-nav.open {
    display: block;
  }

  #main-nav ul {
    flex-direction: column;
    padding: 10px;
  }

  #main-nav a {
    padding: 12px 16px;
  }

  .menu-toggle {
    display: block;
  }

  .header-contact {
    display: none;
  }

  #main-header .container {
    flex-wrap: wrap;
  }

  .hero-slider {
    max-height: 300px;
  }

  .hero-slider .slide img {
    height: 300px;
  }

  .hero-slider .slide-content {
    padding: 40px 20px 30px;
  }

  .hero-slider .slide-content h2 {
    font-size: 1.5rem;
  }

  .course-hero {
    height: 250px;
  }

  .course-hero h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .section {
    padding: 40px 0;
  }

  .event-item {
    flex-direction: column;
    text-align: center;
  }

  .hero-slider {
    max-height: 220px;
  }

  .hero-slider .slide img {
    height: 220px;
  }

  .hero-slider .slide-content {
    padding: 40px 20px 20px;
  }

  .hero-slider .slide-content h2 {
    font-size: 1.15rem;
  }

  .hero-slider .slide-content h2 br {
    display: none;
  }

  .hero-slider .slide-content p {
    font-size: 0.9rem;
  }

  .hero-dots {
    bottom: 8px;
  }

  .hero-dots button {
    width: 10px;
    height: 10px;
  }

  .cta-banner {
    flex-direction: column;
    padding: 20px;
  }

  .cta-banner a {
    font-size: 1rem;
  }

  .intro-text {
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 400px) {
  .hero-slider {
    max-height: 180px;
  }

  .hero-slider .slide img {
    height: 180px;
  }

  .hero-slider .slide-content {
    padding: 30px 15px 15px;
  }

  .hero-slider .slide-content h2 {
    font-size: 1rem;
  }

  .hero-slider .slide-content p {
    font-size: 0.8rem;
  }

  .course-hero {
    height: 180px;
  }

  .course-hero h1 {
    font-size: 1.4rem;
  }

  .logo-area img {
    height: 35px;
  }
}

/* --- Facebook CTA --- */
.facebook-cta {
  font-size: 1.2rem;
}

.facebook-cta a {
  color: var(--brown);
}

.facebook-cta strong {
  color: var(--orange);
}
