/* ============================================================
   NORTE CALHAS — DESIGN SYSTEM
   ============================================================ */

:root {
  /* cores */
  --color-primary: #1A3C21;
  --color-primary-dark: #122B18;
  --color-accent: #E0A538;
  --color-accent-dark: #C08A26;
  --color-white: #FFFFFF;
  --color-surface: #F7F5F0;
  --color-text-dark: #14201A;
  --color-whatsapp: #25D366;

  /* tipografia */
  --font-body: "Sora", -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-h1: clamp(2.2rem, 5vw, 3.8rem);
  --fs-h2: clamp(1.6rem, 3.5vw, 2.4rem);
  --fs-h3: 1.25rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;

  /* espaçamento */
  --section-padding: clamp(3.5rem, 8vw, 6.5rem);
  --container-width: 1180px;
  --radius: 14px;

  /* sombras */
  --shadow-card: 0 8px 30px rgba(20, 32, 26, 0.08);
  --shadow-card-hover: 0 16px 40px rgba(20, 32, 26, 0.14);

  --header-height: 76px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--color-text-dark);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; color: var(--color-text-dark); text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: balance; }
strong { font-weight: 700; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section { padding: var(--section-padding) 0; }
.section h2 { font-size: var(--fs-h2); text-align: center; margin-bottom: 1.5rem; }
#faq-title { max-width: 700px; margin-left: auto; margin-right: auto; }
.section-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 1rem;
  opacity: 0.85;
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  background: var(--color-accent);
  color: var(--color-text-dark);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 8px 0;
  font-weight: 600;
}
.skip-link:focus {
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
  text-align: center;
  text-wrap: balance;
  max-width: 100%;
}
.btn:hover { transform: translateY(-2px); }

.btn-accent {
  background: var(--color-accent);
  color: var(--color-text-dark);
  box-shadow: var(--shadow-card);
}
.btn-accent:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-card-hover); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-lg {
  padding: 1.1rem 2.2rem;
  font-size: 1.0625rem;
}

.btn-header-cta { font-size: 0.9375rem; padding: 0.7rem 1.3rem; }

.icon-whatsapp { width: 22px; height: 22px; flex: none; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--color-primary);
  z-index: 500;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo img {
  height: 40px;
  width: auto;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.header-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 200ms ease;
}
.header-nav a:hover { color: var(--color-accent); }

@media (min-width: 1180px) {
  .header-nav { display: flex; }
}

/* seções ficam visíveis abaixo do header fixo ao usar links âncora */
#servicos, #diferenciais, #galeria, #faq, #localizacao, #proof {
  scroll-margin-top: var(--header-height);
}

/* ============ FLOATING WHATSAPP (mobile) ============ */
.fab-whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  z-index: 600;
}
.fab-whatsapp svg { width: 32px; height: 32px; }

@media (max-width: 767px) {
  .fab-whatsapp { display: flex; }
  .btn-header-cta span { display: none; }
  .btn-header-cta { padding: 0.7rem; }
}

/* ============ HERO ============ */
.hero {
  background: var(--color-primary) url("assets/bghero.webp") center top / cover no-repeat;
  color: var(--color-white);
  padding: calc(var(--header-height) + 4rem) 0 4.5rem;
  text-align: center;
}

@media (max-width: 767px) {
  .hero {
    background: var(--color-primary) url("assets/bghero-mobi.webp") center top / contain no-repeat;
    padding-top: 50vw;
  }
}
.hero-inner {
  max-width: 980px;
}
.eyebrow {
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--color-white);
  font-size: var(--fs-h1);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 .hl {
  color: var(--color-accent);
}
.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-sub strong { color: var(--color-white); font-weight: 600; }
.hero-cta-wrap {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.hero-cta-note {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* ============ PROVA SOCIAL — WIDGET DE AVALIAÇÕES ============ */
.proof { background: var(--color-surface); }

.reviews-widget {
  max-width: 820px;
  margin: 0 auto;
}

.reviews-header {
  text-align: center;
  margin-bottom: 2rem;
}
.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-white);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-dark);
  box-shadow: var(--shadow-card);
  margin-bottom: 1.25rem;
}
.google-badge svg { width: 18px; height: 18px; flex: none; }

.reviews-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.stars-widget {
  position: relative;
  display: inline-flex;
}
.stars-row {
  display: flex;
  gap: 0.15rem;
}
.stars-row svg { width: 24px; height: 24px; flex-shrink: 0; }
.stars-bg svg path { fill: rgba(20, 32, 26, 0.18); }
.stars-fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}
.stars-fg svg path { fill: var(--color-accent); }

.reviews-carousel {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.reviews-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  flex: 1;
  padding: 0.25rem;
}
.reviews-track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
@media (min-width: 700px) {
  .review-card { flex: 0 0 calc(50% - 0.625rem); }
}
.review-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.review-avatar {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-text-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
.review-card-id { flex: 1; }
.review-name { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.review-stars { display: flex; gap: 0.1rem; color: var(--color-accent); margin-top: 0.2rem; }
.review-stars svg { width: 15px; height: 15px; }
.review-stars svg path { fill: currentColor; }
.review-google-badge { width: 20px; height: 20px; flex: none; }
.review-text {
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}
.review-footer {
  font-size: var(--fs-small);
  color: var(--color-text-dark);
  opacity: 0.55;
  margin: 0;
}

.reviews-arrow {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(20,32,26,0.15);
  background: var(--color-white);
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease;
}
.reviews-arrow:hover { background: var(--color-accent); transform: translateY(-1px); }
.reviews-arrow svg { width: 18px; height: 18px; }
.reviews-arrow:disabled { opacity: 0.35; cursor: default; transform: none; }
.reviews-arrow:disabled:hover { background: var(--color-white); }

.reviews-cta {
  display: flex;
  margin: 2rem auto 0;
  width: max-content;
}

/* ============ SERVIÇOS ============ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  background: var(--color-white);
  border: 1px solid rgba(20,32,26,0.08);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.service-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-card-hover);
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(224, 165, 56, 0.14);
  color: var(--color-accent-dark);
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.service-card p { font-size: 0.95rem; opacity: 0.8; margin: 0; }

.services-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2.25rem 1.5rem;
  background: var(--color-surface);
  border-radius: var(--radius);
}
.services-cta p {
  max-width: 480px;
  margin: 0 auto 1.25rem;
  font-weight: 600;
}

/* ============ POR QUE ============ */
.why { background: var(--color-primary); color: var(--color-white); }
.why h2 { color: var(--color-white); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-item {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(224, 165, 56, 0.2);
  border-radius: var(--radius);
  padding: 2.5rem 2rem 2.25rem;
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}
.why-item:hover {
  transform: translateY(-4px);
  border-color: rgba(224, 165, 56, 0.55);
  background: rgba(255, 255, 255, 0.07);
}
.why-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(224, 165, 56, 0.12);
  border: 1.5px solid rgba(224, 165, 56, 0.35);
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}
.why-icon svg { width: 30px; height: 30px; }
.why-item h3 { position: relative; color: var(--color-white); font-size: var(--fs-h3); margin-bottom: 0.5rem; }
.why-item p { position: relative; color: rgba(255,255,255,0.8); font-size: 0.95rem; margin: 0; font-weight: 400; }
.why-item p strong { color: rgba(255,255,255,0.92); font-weight: 600; }

/* ============ GALERIA ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
.gallery-item {
  aspect-ratio: 4 / 3;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-card-hover);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============ FAQ ============ */
.faq-list {
  max-width: 760px;
  margin: 2.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 0.25rem 1.5rem;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 2rem 1.1rem 0;
  position: relative;
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  display: inline;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}
.faq-item summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.25rem;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-dark);
  border-bottom: 2px solid var(--color-text-dark);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 200ms ease;
}
.faq-item[open] summary::after {
  transform: translateY(-35%) rotate(-135deg);
}
.faq-item p {
  padding-bottom: 1.25rem;
  margin: 0;
  opacity: 0.85;
}

/* ============ LOCALIZAÇÃO ============ */
.location { background: var(--color-surface); }
.location-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 860px) {
  .location-inner { grid-template-columns: 1fr 1.1fr; }
}
.location-text h2 { text-align: left; }
.location-address {
  font-size: 1.1rem;
  font-weight: 600;
}
.location-hours { opacity: 0.75; margin-bottom: 1.5rem; }
.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  line-height: 0;
}
.location-map iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

/* ============ CTA FINAL ============ */
.final-cta {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
}
.final-cta h2 { color: var(--color-white); }
.final-cta p {
  max-width: 480px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,0.85);
}

/* ============ FOOTER ============ */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.75);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}
.footer-logo { height: 32px; width: auto; margin-bottom: 0.75rem; }
.footer-inner p { margin: 0; font-size: var(--fs-small); }
.footer-instagram {
  color: var(--color-accent);
  margin: 0.75rem 0;
  display: inline-flex;
}
.footer-instagram svg { width: 24px; height: 24px; }
.footer-copy { opacity: 0.6; font-size: 0.85rem; margin-top: 0.5rem !important; }

/* ============ ANIMATION HOOKS (initial state, GSAP overrides) ============ */
.hero-reveal,
.reveal {
  opacity: 0;
  transform: translateY(24px);
}

/* pulse handled by GSAP; keep static fallback */
.pulse { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .hero-reveal,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
