/* ============================================
   Web Rádio Falando com Deus - Clone
   CSS3 puro, responsivo, otimizado
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #673de6;
  --primary-dark: #5025d1;
  --primary-light: #ebe4ff;
  --meteorite: #8c85ff;
  --dark: #1d1e20;
  --gray-dark: #36344d;
  --gray: #727586;
  --gray-light: #f2f3f6;
  --gray-border: #dadce0;
  --white: #ffffff;
  --success: #00b090;
  --danger: #fc5185;
  --header-height: 80px;
  --player-height: 72px;
  --font: 'Open Sans', system-ui, -apple-system, sans-serif;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

button, input, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 56px;
  width: auto;
}

.nav-desktop {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-desktop a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-dark);
  position: relative;
  padding: 4px 0;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--primary);
}

.nav-desktop a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 12px;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 16px;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
}

/* ========== PLAYER BAR ========== */
.player-bar {
  background: linear-gradient(90deg, #1a1a4e 0%, #2a2a8a 50%, #1a1a4e 100%);
  color: var(--white);
  position: relative;
  z-index: 900;
}

.player-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  color: var(--dark);
  border-radius: 10px;
  padding: 8px 14px;
  min-width: 260px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.player-info .live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #e53935;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-info .live-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #e53935;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.player-info .station-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.player-info .station-sub {
  font-size: 12px;
  color: var(--gray);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 4px 14px rgba(103, 61, 230, 0.4);
}

.btn-play:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.btn-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.btn-play.playing svg.icon-play { display: none; }
.btn-play:not(.playing) svg.icon-pause { display: none; }

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-wrap button {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.volume-wrap input[type="range"] {
  width: 80px;
  accent-color: var(--meteorite);
  cursor: pointer;
}

.player-social {
  display: flex;
  gap: 10px;
}

.player-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  transition: transform var(--transition);
}

.player-social a:hover {
  transform: scale(1.1);
}

.player-social a.fb { background: #1877f2; }
.player-social a.ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.player-social a.wa { background: #25d366; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 520px;
  background: #0a0a0a url('../img/hero-mic.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 24px;
  max-width: 900px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.video-placeholder {
  background: #111;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.video-placeholder iframe {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  inset: 0;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 0;
}

.section-alt {
  background: #f8f9fc;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 40px;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Quem somos */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray);
  font-size: 1.05rem;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-img img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

/* Missão */
.missao-content {
  max-width: 640px;
  margin-left: auto;
}

.missao-content p {
  color: var(--gray);
  margin-bottom: 18px;
  font-size: 1.05rem;
}

/* Serviços */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Contato section on home */
.contact-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.contact-info p {
  color: var(--gray);
  margin-bottom: 20px;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}

.phone-link:hover {
  color: var(--primary-dark);
}

/* Forms */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--gray-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--gray-border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(103, 61, 230, 0.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gray-border);
  color: var(--gray-dark);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ========== PÁGINAS INTERNAS ========== */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--gray);
  font-size: 1.1rem;
}

/* Programação */
.programas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.programa-card {
  background: #f0f2f8;
  border-radius: var(--radius);
  padding: 36px 28px;
  min-height: 180px;
}

.programa-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.programa-card p {
  color: var(--gray);
}

/* Sobre */
.sobre-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.sobre-content p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 28px;
}

/* Contato page */
.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  max-width: 960px;
  margin: 0 auto;
}

.contato-text h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contato-text p {
  color: var(--gray);
  font-size: 1.05rem;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--dark);
  color: #a0a0b0;
  padding: 40px 0 28px;
  text-align: center;
  font-size: 14px;
}

.site-footer a {
  color: #c0c0d0;
}

.site-footer a:hover {
  color: white;
}

/* ========== WHATSAPP FLOAT ========== */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-grid,
  .contact-home,
  .contato-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .missao-content {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .player-inner {
    justify-content: center;
  }

  .player-info {
    min-width: auto;
    flex: 1;
  }

  .volume-wrap input {
    display: none;
  }

  .hero {
    min-height: 420px;
  }

  .section {
    padding: 56px 0;
  }
}

@media (max-width: 480px) {
  .player-social {
    display: none;
  }

  .player-info {
    padding: 6px 10px;
  }

  .btn-play {
    width: 46px;
    height: 46px;
  }
}

/* Alert messages */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-success {
  background: #def4f0;
  color: #008361;
  border: 1px solid #b2e8df;
}

.alert-error {
  background: #ffe8ef;
  color: #d63163;
  border: 1px solid #ffc2d3;
}