/* ==========================================================================
   Os Formigas — Antonina, PR
   Static rebuild. Palette and type mirror the original design.
   ========================================================================== */

:root {
  --bg-deep: #0d0804;
  --bg-base: #1a1008;
  --bg-mid: #2C1F0F;
  --bg-light: #3B2A1A;
  --border: #4A3520;
  --brown: #8B4513;
  --accent: #D2691E;
  --text: #C4A882;
  --cream: #F5E6C8;
  --whatsapp: #25D366;
  --whatsapp-hover: #1ebe5d;

  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;

  --radius: 0.125rem;
  --header-h: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.icon-accent {
  color: var(--accent);
  flex-shrink: 0;
}

/* Layout ------------------------------------------------------------------ */

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.section {
  padding: 6rem 1rem;
}

.section-comida  { background: var(--bg-base); }
.section-atividades { background: var(--bg-mid); }
.section-cursos  { background: var(--bg-light); }
.section-contato {
  position: relative;
  background: var(--bg-base);
  padding: 7rem 1rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(26, 16, 8, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.logo {
  height: auto;
  max-height: 3rem;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-desktop a:hover,
.nav-mobile a:hover {
  color: var(--accent);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  background: var(--brown);
  color: var(--cream) !important;
  font-weight: 700;
  transition: background-color 0.2s ease;
}

.nav-cta:hover {
  background: var(--accent);
  color: var(--cream) !important;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-toggle:hover {
  color: var(--accent);
}

.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(26, 16, 8, 0.98);
}

.nav-mobile.is-open {
  display: flex;
}

.nav-mobile a {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s ease;
}

.nav-mobile .nav-cta {
  margin: 0.5rem 0 0;
  text-align: center;
}

@media (min-width: 768px) {
  .nav-desktop { display: flex; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* Typography -------------------------------------------------------------- */

.kicker {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.kicker-wide {
  letter-spacing: 0.3em;
}

.kicker-hero {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.3em;
}

.heading-1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.heading-2 {
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1.5rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 2rem;
}

.lead-center {
  max-width: 42rem;
  margin: 1rem auto 0;
}

.lead-spaced {
  margin-bottom: 2.5rem;
}

.lead-xl {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .heading-1 { font-size: 4.5rem; }
  .heading-2 { font-size: 3rem; }
  .heading-2-lg { font-size: 3.75rem; }
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
  background: var(--brown);
  color: var(--cream);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
}

.btn-outline {
  gap: 0.5rem;
  border: 2px solid var(--brown);
  color: var(--cream);
}

.btn-outline:hover {
  background: rgba(139, 69, 19, 0.2);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(13, 8, 4, 0.7) 0%,
    rgba(26, 16, 8, 0.5) 50%,
    rgba(26, 16, 8, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
  pointer-events: none;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 1.5rem;
  text-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-place {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 2.5rem;
}

.hero-cta-wrap {
  pointer-events: auto;
}

@media (min-width: 768px) {
  .hero-title { font-size: 8rem; }
  .hero-subtitle { font-size: 1.5rem; }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.scroll-mouse {
  display: flex;
  justify-content: center;
  width: 1.5rem;
  height: 2.5rem;
  padding-top: 0.5rem;
  border: 2px solid rgba(196, 168, 130, 0.5);
  border-radius: 9999px;
  animation: scroll-float 2s ease-in-out infinite;
}

.scroll-dot {
  width: 0.25rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: var(--accent);
}

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

/* Wave dividers ----------------------------------------------------------- */

.wave {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-bottom: -2px;
}

.wave svg {
  width: 100%;
  height: 3.5rem;
}

.wave-flip {
  transform: rotate(180deg);
}

.wave-footer svg {
  height: 3rem;
}

.wave-footer {
  margin-bottom: -0.25rem;
}

/* Comida ------------------------------------------------------------------ */

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

@media (min-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

.dish-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.dish {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.dish .dot {
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  margin-top: 0.375rem;
  border-radius: 9999px;
  background: var(--accent);
}

.dish-name {
  color: var(--cream);
  font-weight: 700;
  font-size: 1.125rem;
}

.dish-desc {
  color: var(--text);
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.note {
  border-left: 2px solid var(--brown);
  padding-left: 1rem;
  font-size: 0.875rem;
  font-style: italic;
  color: rgba(196, 168, 130, 0.7);
}

.figure {
  position: relative;
}

.figure-frame {
  position: absolute;
  inset: -1rem;
  z-index: -1;
  border-radius: var(--radius);
  background: rgba(139, 69, 19, 0.2);
}

.figure-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.figure-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33.333%;
  pointer-events: none;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  background: linear-gradient(to top, rgba(26, 16, 8, 0.6), transparent);
}

/* Atividades -------------------------------------------------------------- */

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.grid-activities {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-activities { grid-template-columns: 1fr 1fr; }
  .activity-tall { grid-row: span 2; }
}

.activity {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.4);
}

.activity-tall {
  min-height: 480px;
}

.activity img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(13, 8, 4, 0.9) 0%,
    rgba(13, 8, 4, 0.3) 50%,
    transparent 100%
  );
}

.activity-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.activity-body svg {
  margin-bottom: 0.5rem;
}

.activity-body h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.activity-body p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}

/* Cursos ------------------------------------------------------------------ */

.figure-courses {
  order: 2;
}

.courses-text {
  order: 1;
}

@media (min-width: 1024px) {
  .figure-courses { order: 1; }
  .courses-text { order: 2; }
}

.figure-img-courses {
  height: 420px;
}

.figure-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  z-index: -1;
  width: 8rem;
  height: 8rem;
  border-radius: var(--radius);
  background: rgba(139, 69, 19, 0.3);
}

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

@media (min-width: 640px) {
  .grid-courses { grid-template-columns: 1fr 1fr; }
}

.course {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-mid);
  transition: border-color 0.2s ease;
}

.course:hover {
  border-color: var(--brown);
}

.course svg {
  margin-bottom: 0.75rem;
}

.course h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.course p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}

/* Contato ----------------------------------------------------------------- */

.contato-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    45deg,
    #8B4513 0px,
    #8B4513 1px,
    transparent 0px,
    transparent 50%
  );
  background-size: 20px 20px;
}

.contato-inner {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.contato-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .contato-actions { flex-direction: row; }
}

.contato-footnote {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.contato-footnote p {
  font-size: 0.875rem;
  color: rgba(196, 168, 130, 0.6);
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
}

.footer-inner {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col:first-child {
  gap: 1rem;
}

.footer-logo {
  height: auto;
  max-height: 3rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.footer-col p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text);
}

.footer-col h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.25rem;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text);
}

.footer-item-center {
  align-items: center;
}

.icon-top {
  margin-top: 0.125rem;
}

.footer-item a,
.footer-link {
  transition: color 0.2s ease;
}

.footer-item a:hover,
.footer-link:hover {
  color: var(--accent);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(196, 168, 130, 0.6);
}

.footer-domain {
  color: rgba(196, 168, 130, 0.4) !important;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; }
}

/* Cookie banner ----------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 640px) {
  .cookie-inner {
    flex-direction: row;
    align-items: center;
    padding: 1rem 1.5rem;
  }
}

.cookie-text {
  flex: 1;
}

.cookie-text h3 {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.cookie-text p {
  font-size: 0.875rem;
  color: #4b5563;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.cookie-btn-secondary {
  background: #f1f5f9;
  color: #0f172a;
}

.cookie-btn-secondary:hover {
  background: #e2e8f0;
}

.cookie-btn-primary {
  background: var(--brown);
  color: var(--cream);
}

.cookie-btn-primary:hover {
  background: var(--accent);
}

/* Reveal on scroll -------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-mouse { animation: none; }
}
