/* ============================================
   Ana Carolina Saúde Auditiva - Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --orange: #ff6600;
  --peach: #fcbe85;
  --peach-light: #fdd9b3;
  --peach-dark: #e8a860;
  --gray: #a39992;
  --gray-light: #d4cfcb;
  --black: #000000;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', 'Segoe UI', sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--peach);
  color: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--black); }
ul { list-style: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); line-height: 1.2; color: var(--black); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { margin-bottom: 1rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700;800&family=DM+Sans:wght@400;500;600;700&display=swap');

/* --- Skip to Content (A11y) --- */
.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--orange); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius-sm);
  z-index: 10000; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* --- Header / Navigation --- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
}
.site-logo img {
  height: 60px; width: auto;
  transition: transform var(--transition);
}
.site-logo img:hover { transform: scale(1.04); }

/* Desktop nav */
.main-nav ul {
  display: flex; gap: 8px; align-items: center;
}
.main-nav a {
  display: block; padding: 8px 14px;
  font-weight: 600; font-size: 0.88rem;
  color: var(--black); text-transform: uppercase;
  letter-spacing: 0.5px; border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--orange); color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  z-index: 1100;
}
.hamburger span {
  display: block; width: 28px; height: 3px;
  background: var(--black); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px;
    height: 100vh; background: var(--peach);
    padding: 100px 32px 32px;
    transition: right var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    overflow-y: auto;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav a { font-size: 1rem; padding: 14px 16px; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.4);
    z-index: 1040; opacity: 0; pointer-events: none;
    transition: opacity var(--transition);
  }
  .nav-overlay.active { opacity: 1; pointer-events: all; }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 90px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--peach) 0%, var(--peach-light) 50%, var(--peach) 100%);
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.hero-text h1 {
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease both;
}
.hero-text h1 span { color: var(--orange); }
.hero-text p {
  font-size: 1.15rem; color: #444;
  margin-bottom: 32px;
  animation: fadeInUp 0.8s 0.2s ease both;
}
.hero-cta {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.4s ease both;
}
.hero-image {
  position: relative;
  animation: fadeInRight 1s 0.3s ease both;
}
.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

/* Floating shapes */
.hero-shape {
  position: absolute; border-radius: 50%;
  opacity: 0.15; z-index: 1;
}
.hero-shape-1 {
  width: 400px; height: 400px;
  background: var(--orange);
  top: -100px; right: -100px;
}
.hero-shape-2 {
  width: 250px; height: 250px;
  background: var(--gray);
  bottom: 50px; left: -80px;
}

@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-image { order: -1; }
  .hero { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.btn-primary {
  background: var(--orange); color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--black); color: var(--white);
  border-color: var(--black);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,102,0,0.3);
}
.btn-outline {
  background: transparent; color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover {
  background: var(--orange); color: var(--white);
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: #25d366; color: var(--white);
  border-color: #25d366;
}
.btn-whatsapp:hover {
  background: #1da851; border-color: #1da851;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.3);
}

/* --- Section Titles --- */
.section-title {
  text-align: center; margin-bottom: 56px;
}
.section-title h2 {
  position: relative; display: inline-block;
  padding-bottom: 16px;
}
.section-title h2::after {
  content: '';
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px;
  background: var(--orange); border-radius: 2px;
}
.section-title p {
  margin-top: 16px; color: #555; font-size: 1.05rem;
  max-width: 600px; margin-left: auto; margin-right: auto;
}

/* --- Services / Features Cards --- */
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--orange);
  transform: scaleX(0); transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 72px; height: 72px;
  background: var(--peach-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
  font-size: 2rem;
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: #555; font-size: 0.95rem; }
.service-card .btn { margin-top: 16px; font-size: 0.85rem; padding: 10px 24px; }

/* --- About / Empresa Section --- */
.about-section {
  background: var(--white);
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.about-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-text h2 { margin-bottom: 20px; }
.about-text p { color: #555; }
.about-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 24px;
}
.about-feature {
  display: flex; align-items: flex-start; gap: 12px;
}
.about-feature-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--peach);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}
.about-feature span { font-weight: 600; font-size: 0.9rem; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
}

/* --- Testimonials --- */
.testimonials-section { background: var(--peach); }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute; top: 16px; left: 24px;
  font-size: 4rem; color: var(--peach);
  font-family: var(--font-heading);
  line-height: 1;
}
.testimonial-text {
  padding-top: 32px;
  font-style: italic; color: #555;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  background: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.2rem;
}
.testimonial-name { font-weight: 700; }
.testimonial-stars { color: #f5a623; font-size: 0.9rem; margin-top: 2px; }

/* --- Products Grid --- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.product-card img {
  width: 100%; height: 240px;
  object-fit: cover;
}
.product-card-body {
  padding: 28px;
}
.product-card-body h3 { margin-bottom: 12px; }
.product-card-body p { color: #555; font-size: 0.95rem; }
.product-features {
  margin: 16px 0; padding-left: 0;
}
.product-features li {
  padding: 6px 0; padding-left: 24px;
  position: relative; font-size: 0.92rem; color: #444;
}
.product-features li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--orange); font-weight: 700;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--peach-light) 0%, var(--peach) 100%);
  z-index: 0;
}
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 640px; margin: 0 auto; color: #555; font-size: 1.1rem; }

/* --- Contact Section --- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
}
.contact-info-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.contact-item-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: var(--peach);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.contact-item-text h4 { margin-bottom: 4px; font-family: var(--font-body); }
.contact-item-text p, .contact-item-text a { color: #555; font-size: 0.95rem; }
.contact-item-text a:hover { color: var(--orange); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 600; margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--gray-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--orange);
}
.form-group textarea { resize: vertical; min-height: 120px; }

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

/* --- CTA Banner --- */
.cta-banner {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { max-width: 600px; margin: 0 auto 24px; opacity: 0.9; }
.cta-banner .btn-primary {
  background: var(--white); color: var(--orange);
  border-color: var(--white);
}
.cta-banner .btn-primary:hover {
  background: var(--black); color: var(--white);
  border-color: var(--black);
}

/* --- Footer --- */
.site-footer {
  background: var(--black); color: var(--white);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-col h4 {
  color: var(--orange); font-family: var(--font-body);
  font-size: 1rem; text-transform: uppercase;
  margin-bottom: 20px; letter-spacing: 1px;
}
.footer-col p, .footer-col a {
  color: rgba(255,255,255,0.7); font-size: 0.9rem;
  line-height: 2;
}
.footer-col a:hover { color: var(--orange); }
.footer-col ul li { margin-bottom: 4px; }
.footer-logo img {
  height: 50px; margin-bottom: 16px;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 48px; padding: 24px 0;
  text-align: center;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

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

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: pulse 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.5);
}
.whatsapp-float svg { width: 32px; height: 32px; fill: var(--white); }

/* --- Animations --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 24px rgba(37,211,102,0.6); }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--gray);
}
.breadcrumb a { color: var(--orange); }
.breadcrumb span { margin: 0 8px; }

/* --- Blog Grid --- */
.blog-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.blog-card:hover { transform: translateY(-6px); }
.blog-card-img {
  width: 100%; height: 200px;
  object-fit: cover;
}
.blog-card-body { padding: 24px; }
.blog-card-body h3 { margin-bottom: 8px; font-size: 1.1rem; }
.blog-card-body p { color: #555; font-size: 0.9rem; }
.blog-card-body .btn { margin-top: 12px; font-size: 0.8rem; padding: 8px 20px; }

/* --- Utility --- */
.text-center { text-align: center; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.bg-white { background: var(--white); }
.bg-peach { background: var(--peach); }

/* --- Stats Bar --- */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px; padding: 48px 0;
}
.stat-item { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem; font-weight: 800;
  color: var(--orange);
}
.stat-label { font-size: 0.9rem; color: #555; margin-top: 4px; }

@media (max-width: 768px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
}

/* --- Map embed --- */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 32px;
}
.map-container iframe {
  width: 100%; height: 350px; border: 0;
}

/* --- Schema / structured data helper --- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
