/* ============================================
   Escola de Moda Salles — styles.css
   Paleta: quente, elegante, acolhedora
   ============================================ */

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

:root {
  --color-bg: #faf8f5;
  --color-bg-alt: #f3ede6;
  --color-bg-dark: #2c2420;
  --color-text: #3d3229;
  --color-text-light: #7a6e63;
  --color-heading: #2c2420;
  --color-primary: #c4856a;
  --color-primary-dark: #a86b52;
  --color-primary-light: #f0d5c4;
  --color-accent: #d4a088;
  --color-gold: #c9a96e;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #1ebe57;
  --color-white: #ffffff;
  --color-overlay: rgba(44, 36, 32, 0.65);

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  --shadow-sm: 0 2px 8px rgba(44, 36, 32, 0.06);
  --shadow-md: 0 4px 20px rgba(44, 36, 32, 0.08);
  --shadow-lg: 0 8px 40px rgba(44, 36, 32, 0.12);
  --shadow-xl: 0 16px 60px rgba(44, 36, 32, 0.15);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
}

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section base --- */
.section {
  padding: 100px 0;
}

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

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.logo-salles {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 3px;
  transition: color var(--transition);
}

.navbar.scrolled .logo-salles {
  color: var(--color-heading);
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.navbar.scrolled .logo-sub {
  color: var(--color-text-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.navbar.scrolled .nav-links a {
  color: var(--color-text);
}

.navbar.scrolled .nav-links a:hover {
  color: var(--color-primary);
}

.btn-nav {
  background: var(--color-primary) !important;
  color: var(--color-white) !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.btn-nav:hover {
  background: var(--color-primary-dark) !important;
  transform: translateY(-1px);
}

.btn-nav::after {
  display: none !important;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
  flex-direction: column;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-heading);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('assets/img/hero/cursos.jpg') center/cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(44, 36, 32, 0.75) 0%,
    rgba(44, 36, 32, 0.55) 50%,
    rgba(196, 133, 106, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 80px;
  max-width: 700px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  color: var(--color-white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.15;
}

.hero h1 .highlight {
  color: var(--color-primary-light);
  position: relative;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.9);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(196, 133, 106, 0.35);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(196, 133, 106, 0.45);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* ============================================
   SOBRE
   ============================================ */
.sobre {
  background: var(--color-white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.sobre-text p {
  margin-bottom: 18px;
  font-size: 1rem;
  color: var(--color-text);
}

.sobre-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.stat-card {
  background: var(--color-bg);
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============================================
   MÉTODO
   ============================================ */
.metodo {
  background: var(--color-bg);
}

.metodo-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.metodo-step {
  background: var(--color-white);
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(196, 133, 106, 0.1);
}

.metodo-step:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.metodo-step h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.metodo-step p {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.65;
}

.metodo-highlight {
  text-align: center;
  background: var(--color-white);
  padding: 24px 32px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-primary);
  font-size: 1rem;
}

.metodo-highlight p {
  color: var(--color-text);
}

/* ============================================
   CURSOS
   ============================================ */
.cursos {
  background: var(--color-white);
}

.cursos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.curso-card {
  background: var(--color-bg);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  border: 1px solid transparent;
}

.curso-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.curso-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 0.3px;
}

.curso-destaque {
  background: linear-gradient(135deg, var(--color-white), var(--color-primary-light));
  border-color: var(--color-primary-light);
}

.curso-emoji {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.curso-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.curso-card h3 small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-light);
  margin-top: 4px;
}

.curso-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.curso-details {
  list-style: none;
  padding: 0;
}

.curso-details li {
  font-size: 0.85rem;
  color: var(--color-text);
  padding: 4px 0;
  padding-left: 20px;
  position: relative;
}

.curso-details li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

.curso-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--color-bg);
  padding: 20px;
  border-radius: var(--radius-md);
  transition: transform var(--transition);
}

.info-item:hover {
  transform: translateY(-2px);
}

.info-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.info-item p {
  font-size: 0.82rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ============================================
   GALERIA
   ============================================ */
.galeria {
  background: var(--color-bg);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.galeria-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.galeria-item.galeria-large {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

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

.galeria-item:hover img {
  transform: scale(1.08);
}

.galeria-more {
  text-align: center;
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.galeria-more a {
  font-weight: 600;
  color: var(--color-primary);
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, #4a3830 100%);
  padding: 80px 0;
}

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

.cta-box h2 {
  color: var(--color-white);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 12px;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   CONTATO
   ============================================ */
.contato {
  background: var(--color-white);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contato-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(196, 133, 106, 0.12);
}

.contato-item:last-child {
  border-bottom: none;
}

.contato-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.contato-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.contato-item p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin: 0;
}

.contato-item a {
  color: var(--color-primary);
}

.contato-mapa iframe {
  border-radius: var(--radius-lg);
  width: 100%;
  min-height: 380px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  padding: 60px 0 32px;
  color: rgba(255, 255, 255, 0.65);
}

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

.footer-brand .logo-salles {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 4px;
  color: var(--color-white);
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-links h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-primary-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--color-accent);
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--color-white);
}

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 1024px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cursos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

/* ============================================
   RESPONSIVE — Mobile
   ============================================ */
@media (max-width: 768px) {
  .section {
    padding: 64px 0;
  }

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

  /* Navbar mobile */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 0;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition);
    align-items: flex-start;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    color: var(--color-text);
    font-size: 1rem;
    border-bottom: 1px solid rgba(196, 133, 106, 0.1);
  }

  .nav-links a::after {
    display: none;
  }

  .btn-nav {
    margin-top: 16px;
    display: inline-block;
    color: var(--color-white) !important;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .navbar.scrolled .nav-toggle span,
  .nav-toggle.active span {
    background: var(--color-heading);
  }

  /* Hero */
  .hero-content {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    text-align: center;
    justify-content: center;
  }

  .hero-badges {
    gap: 6px;
  }

  .badge {
    font-size: 0.72rem;
    padding: 5px 12px;
  }

  /* Sobre */
  .sobre-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 20px 12px;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  /* Método */
  .metodo-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .metodo-step {
    padding: 28px 20px;
  }

  /* Cursos */
  .cursos-grid {
    grid-template-columns: 1fr;
  }

  .curso-info {
    grid-template-columns: 1fr;
  }

  /* Galeria */
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .galeria-item.galeria-large {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 2/1;
  }

  /* CTA */
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  /* Contato */
  .contato-mapa iframe {
    min-height: 280px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* Float button */
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ============================================
   RESPONSIVE — Small mobile
   ============================================ */
@media (max-width: 400px) {
  .container {
    padding: 0 16px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .sobre-cards {
    grid-template-columns: 1fr;
  }
}
