/* styles.css - Copacabana Moda Praia */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:wght@300;400;700;900&display=swap');

:root {
  --color-primary: #F4E4C1;
  --color-accent: #FF6B6B;
  --color-dark: #1A2A3A;
  --color-white: #FFFFFF;
  --color-bg: #F4E4C1;
  --color-text: #1A2A3A;
  --color-text-light: #4A5A6A;
  --color-card-bg: #FFFFFF;
  --color-overlay: rgba(26, 42, 58, 0.55);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(26, 42, 58, 0.08);
  --shadow-md: 0 8px 32px rgba(26, 42, 58, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 42, 58, 0.18);
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: #e05555; }
ul { list-style: none; }

/* Typography Global */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p { margin-bottom: 1.2rem; color: var(--color-text); }
strong { font-weight: 700; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* Site Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 42, 58, 0.08);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(26, 42, 58, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-accent), #ff8e8e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--color-white);
  font-weight: 900;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition);
}

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

.nav-links a:hover { color: var(--color-accent); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--header-height) 1.5rem 4rem;
  background: linear-gradient(135deg, rgba(26, 42, 58, 0.6), rgba(26, 42, 58, 0.3)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(244, 228, 193, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: var(--color-white);
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.75rem;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: rgba(255, 255, 255, 0.88);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* Page Hero (inner pages) */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-height) + 2rem) 1.5rem 3rem;
  background: linear-gradient(135deg, rgba(26, 42, 58, 0.65), rgba(26, 42, 58, 0.35)), url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
}

.page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Sections */
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.35);
}

.btn:hover {
  background: #e05555;
  box-shadow: 0 6px 24px rgba(255, 107, 107, 0.45);
  transform: translateY(-2px);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-dark);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(26, 42, 58, 0.04);
}

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

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: var(--color-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-accent);
}

.service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Stats */
.stats {
  background: var(--color-dark);
  padding: clamp(2.5rem, 6vw, 4rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: center;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* CTA */
.cta {
  background: linear-gradient(135deg, var(--color-accent), #ff8e8e);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem) 2rem;
  text-align: center;
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.cta h2 {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.cta p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  max-width: 550px;
  margin: 0 auto 1.8rem;
}

.cta .btn {
  background: var(--color-white);
  color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cta .btn:hover {
  background: var(--color-dark);
  color: var(--color-white);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

/* About Content */
.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.company-info {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.company-info h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.company-info p {
  color: var(--color-text-light);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.value-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--color-accent);
  transition: all var(--transition);
}

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

.value-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-dark);
}

.value-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Legal Content */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.legal-content h3 {
  margin-top: 1.8rem;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.legal-content p {
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.legal-content ul li {
  margin-bottom: 0.4rem;
  color: var(--color-text-light);
}

.legal-toc {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.legal-toc h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.legal-toc ul {
  list-style: none;
  padding-left: 0;
}

.legal-toc ul li {
  margin-bottom: 0.4rem;
}

.legal-toc ul li a {
  color: var(--color-accent);
  font-weight: 500;
}

/* Footer */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: clamp(2.5rem, 6vw, 4rem) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand .brand {
  color: var(--color-white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-grid h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-grid ul li {
  margin-bottom: 0.5rem;
}

.footer-grid ul li a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-grid ul li a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding: 1.25rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.2rem;
}

.footer-bottom p:last-child {
  margin-bottom: 0;
}

/* Fade In Animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ARMADILHA DE HERANÇA - p global */
p { color: var(--color-text); }

.site-footer p,
.footer-bottom p,
.footer-brand p,
.hero p,
.page-hero p,
.stats p,
.cta p {
  color: inherit;
}

/* Responsive */
@media (min-width: 820px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }

  .nav-links {
    display: flex !important;
  }

  .nav-toggle {
    display: none;
  }
}

@media (max-width: 819px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 1.5rem 2rem;
    gap: 1.25rem;
    box-shadow: 0 8px 32px rgba(26, 42, 58, 0.12);
    border-bottom: 1px solid rgba(26, 42, 58, 0.08);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .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);
  }

  .hero {
    min-height: 90vh;
  }

  .page-hero {
    min-height: 35vh;
  }

  .stats-grid {
    gap: 1.5rem;
  }

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

  .footer-brand p {
    margin: 0 auto;
  }
}

/* Accessibility & Performance */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus visible */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Selection */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}