﻿/* Custom Design System for Herpes.net.br */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --font-sans: 'Outfit', sans-serif;
  
  /* Color Palette - Premium Teal and Amber Accent */
  --bg-primary: #ffffff;
  --bg-secondary: #f4f8f8;
  --bg-dark: #0f172a; /* For YouTube highlight section and dark theme elements */
  
  --primary: #0f6f7b; /* Soothing medical teal */
  --primary-hover: #0b525b;
  --primary-light: #e6f4f5;
  
  --accent: #e05a2b; /* Warm premium coral/orange for purchase */
  --accent-hover: #c2410c;
  
  --text-dark: #1e293b; /* Slate 800 */
  --text-muted: #64748b; /* Slate 500 */
  --text-light: #f8fafc;
  
  --border-color: #e2e8f0;
  
  /* Shadows and Transitions */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(15, 111, 123, 0.08), 0 4px 6px -2px rgba(15, 111, 123, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.06), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 16px;
  --border-radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

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

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

h2.underlined::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  margin-bottom: 12px;
}

p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(15, 111, 123, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 111, 123, 0.3);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 4px 12px rgba(224, 90, 43, 0.2);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(224, 90, 43, 0.3);
}

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

.btn-outline:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.btn-whatsapp:hover {
  background-color: #1ebd59;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.btn-youtube {
  background-color: #ff0000;
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.2);
}

.btn-youtube:hover {
  background-color: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 0, 0, 0.3);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Header & Navbar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

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

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Nav Menu Button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--text-dark);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px 0;
  background: linear-gradient(135deg, #f0f7f6 0%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 span {
  color: var(--primary);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 480px;
  border-radius: 12px;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* Features Grid Section */
.features-section h2 {
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(15, 111, 123, 0.2);
}

.feature-icon-wrapper {
  margin-bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-weight: 700;
  color: var(--text-dark);
}

.feature-card p {
  margin-bottom: 0;
  font-size: 1rem;
}

.feature-card p strong {
  color: var(--text-dark);
}

/* YouTube Highlights Section */
.youtube-section {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.youtube-section h2 {
  color: var(--text-light);
}

.youtube-section p {
  color: #94a3b8; /* slate 400 */
}

.youtube-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.youtube-content {
  max-width: 550px;
}

.youtube-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 0, 0, 0.15);
  color: #ff4d4d;
  padding: 6px 14px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 0, 0, 0.25);
}

.youtube-card-preview {
  position: relative;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 30px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.youtube-logo-large {
  font-size: 4rem;
  color: #ff0000;
  margin-bottom: 20px;
}

.youtube-logo-large svg {
  filter: drop-shadow(0 4px 12px rgba(255, 0, 0, 0.3));
}

.youtube-card-preview h3 {
  color: var(--text-light);
  margin-bottom: 10px;
}

.youtube-card-preview p {
  color: #94a3b8;
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 400px;
}

/* Author Section */
.author-section {
  background-color: var(--bg-primary);
}

.author-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
  align-items: center;
  background-color: var(--bg-secondary);
  padding: 50px;
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.author-img-wrapper {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1.2;
}

.author-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.author-card:hover .author-img {
  transform: scale(1.03);
}

.author-info h3 {
  font-size: 2rem;
  margin-bottom: 6px;
}

.author-title {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.author-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.author-socials {
  margin-top: 24px;
}

/* Cookie Alert Banner */
.cookie-banner {
  position: fixed;
  bottom: -200px;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08);
  padding: 20px 0;
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(-200px);
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cookie-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.cookie-text a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Footer Section */
footer {
  background-color: #f1f5f9; /* slate 100 */
  border-top: 1px solid var(--border-color);
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.footer-company {
  max-width: 450px;
}

.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links-column {
  justify-self: end;
}

.footer-links-column h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

/* Privacy Policy Page Styles */
.privacy-page {
  padding-top: 120px;
}

.privacy-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.privacy-header p {
  font-size: 1.1rem;
  margin-top: 10px;
}

.btn-back {
  margin-bottom: 30px;
}

.privacy-content {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.privacy-content h2 {
  font-size: 1.5rem;
  margin: 35px 0 15px 0;
  color: var(--text-dark);
}

.privacy-content h2:first-of-type {
  margin-top: 0;
}

.privacy-content p {
  margin-bottom: 20px;
  font-size: 1.05rem;
  color: var(--text-dark);
  text-align: justify;
}

.privacy-content ul {
  margin-bottom: 24px;
  padding-left: 24px;
}

.privacy-content li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.privacy-content a {
  color: var(--primary);
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .youtube-grid, .author-card {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-content, .youtube-content {
    max-width: 100%;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    order: -1;
  }
  
  .author-img-wrapper {
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1/1;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-links-column {
    justify-self: start;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  /* Mobile Menu logic */
  .nav-toggle {
    display: block;
    z-index: 1100;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 40px 40px 40px;
    gap: 24px;
    transition: var(--transition);
    z-index: 1050;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-actions {
    display: none; /* Hide action buttons on mobile, or merge inside links */
  }
  
  /* Mobile Navigation overlay when active */
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }
  
  .nav-overlay.active {
    opacity: 1;
    visibility: visible;
  }
  
  /* Animate menu toggle icon */
  .nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .cookie-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .cookie-actions {
    width: 100%;
  }
  
  .cookie-actions .btn {
    flex: 1;
  }
  
  .author-card {
    padding: 30px 20px;
  }
  
  .privacy-content {
    padding: 24px 16px;
  }
}