/* ============================================
   Buffet Quitutes da Ana – Stylesheet
   ============================================ */

/* ---- CSS Custom Properties ---- */
:root {
  --primary: #b86b4b;
  --primary-hover: #a05a3d;
  --secondary: #8a4b34;
  --gold: #c9a46a;
  --gold-light: #e8d5a8;
  --light: #faf7f3;
  --dark: #2e2e2e;
  --dark-light: #4a4a4a;
  --white: #ffffff;
  --off-white: #f5f0eb;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition: 0.3s ease;
  --container: 1160px;
  --container-narrow: 720px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* ---- Skip Link ---- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  z-index: 9999;
  font-weight: 600;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 16px;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

/* ---- Section ---- */
.section {
  padding: 80px 0;
}

.section--light {
  background: var(--light);
}

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

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--secondary);
  text-align: center;
  margin-bottom: 8px;
}

.section--dark h2 {
  color: var(--white);
}

.section--gold h2 {
  color: var(--secondary);
}

.section__subtitle {
  text-align: center;
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--dark-light);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section__cta {
  text-align: center;
  margin-top: 40px;
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: 24px;
}

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

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  justify-content: center;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(184, 107, 75, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--primary-hover);
  box-shadow: 0 6px 20px rgba(184, 107, 75, 0.45);
  transform: translateY(-2px);
}

.btn--large {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn i {
  font-size: 1.2em;
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 0;
}

.header__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.header__logo-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav a {
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.header__nav a:hover,
.header__nav a:focus-visible {
  color: var(--primary);
  background: rgba(184, 107, 75, 0.06);
}

.header__nav .nav-cta {
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.header__nav .nav-cta:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
}

/* Hamburger */
.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
  min-height: calc(100vh - 72px);
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  color: var(--primary);
}

.hero__desc {
  font-size: 1rem;
  color: var(--dark-light);
  max-width: 540px;
  line-height: 1.7;
}

.hero__image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__img {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ---- Benefícios ---- */
.beneficios-grid {
  counter-reset: beneficio;
}

.beneficio-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.beneficio-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--primary);
}

.beneficio-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary);
}

.beneficio-card p {
  font-size: 0.92rem;
  color: var(--dark-light);
  line-height: 1.6;
}

/* ---- Serviços ---- */
.service-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--secondary);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--secondary);
}

.service-card p {
  font-size: 0.92rem;
  color: var(--dark-light);
  line-height: 1.6;
}

/* ---- Como Funciona / Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12%;
  right: 12%;
  height: 2px;
  background: var(--gold);
  opacity: 0.3;
}

.step {
  text-align: center;
  position: relative;
}

.step__number {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--gold);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.step__content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gold);
}

.step__content p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

/* ---- Depoimentos ---- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all var(--transition);
}

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

.testimonial-card__stars {
  color: #f1c40f;
  font-size: 1rem;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.testimonial-card blockquote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--dark-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-card cite {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--secondary);
}

/* ---- Galeria / Carrossel ---- */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 960px;
  margin: 0 auto;
}

.carousel {
  flex: 1;
  overflow: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}

.carousel:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.carousel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s ease;
}

.carousel__item {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.carousel__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.carousel__item:hover .carousel__img {
  transform: scale(1.06);
}

.carousel__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark);
  font-size: 1.1rem;
  transition: all var(--transition);
  flex-shrink: 0;
  z-index: 2;
}

.carousel__btn:hover,
.carousel__btn:focus-visible {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.carousel__btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---- FAQ ---- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-item__question {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__icon {
  font-size: 0.85rem;
  color: var(--primary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

details[open] .faq-item__icon {
  transform: rotate(180deg);
}

details[open] .faq-item__question {
  color: var(--primary);
}

.faq-item__answer {
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--dark-light);
  line-height: 1.7;
}

/* ---- Form ---- */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form__group {
  width: 100%;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(184, 107, 75, 0.15);
}

.form textarea {
  resize: vertical;
  min-height: 80px;
}

.form .btn {
  width: 100%;
  margin-top: 8px;
}

.form__info {
  font-size: 0.82rem;
  color: var(--secondary);
  text-align: center;
  opacity: 0.8;
}

/* Screen-reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Footer ---- */
.footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, 0.9);
  padding: 64px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__logo-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin: 8px 0 4px;
}

.footer__tagline {
  font-size: 0.9rem;
  opacity: 0.75;
  max-width: 280px;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  transition: opacity var(--transition);
}

.footer__list a:hover,
.footer__list a:focus-visible {
  opacity: 0.8;
}

.footer__list i {
  width: 20px;
  text-align: center;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

.whatsapp-float::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: pulse-wpp 2s infinite;
}

@keyframes pulse-wpp {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 60px 24px;
  }

  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__content .btn {
    align-self: center;
  }

  .hero__img {
    max-width: 100%;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }

  .steps::before {
    display: none;
  }

  .carousel__item {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .carousel__btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header__container {
    height: 64px;
  }

  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__nav a {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
  }

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

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .carousel__item {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer__tagline {
    margin: 0 auto;
  }

  .footer__list {
    align-items: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .section {
    padding: 56px 0;
  }

  .section__subtitle {
    margin-bottom: 32px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero__img {
    min-height: 200px;
  }

  .carousel__item {
    flex: 0 0 100%;
  }

  .carousel__btn {
    display: none;
  }

  .container {
    padding: 0 16px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form input,
  .form select,
  .form textarea {
    padding: 12px 14px;
  }
}
