/* ============================================
   ÓTICA BANDEIRANTES — DESIGN SYSTEM
   ============================================ */

:root {
  /* Cores */
  --color-primary: #007BC7;
  --color-primary-dark: #005f99;
  --color-dark: #1A3A52;
  --color-white: #FFFFFF;
  --color-light-gray: #F5F5F5;
  --color-gold: #D4AF37;
  --color-text: #33454F;
  --color-whatsapp: #25D366;

  /* Tipografia */
  --font-heading: 'Montserrat', 'Poppins', sans-serif;
  --font-body: 'Inter', 'Roboto', sans-serif;

  /* Espaçamento */
  --space-baseline: 16px;
  --radius-lg: 8px;
  --radius-sm: 4px;

  --container-width: 1200px;
  --header-height: 76px;
}

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  overflow-x: hidden;
  width: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.2;
}

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

.eyebrow {
  display: inline-block;
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

section { padding: 96px 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-family: var(--font-heading);
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 123, 199, 0.35);
}
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}
.btn--outline:hover { background: var(--color-dark); color: var(--color-white); }
.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}
.btn--outline-light:hover { background: var(--color-white); color: var(--color-dark); }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }
.btn--full { width: 100%; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: var(--color-white);
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s ease;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--color-dark);
}
.header__logo span { color: var(--color-primary); }
.header__logo-img { height: 66px; width: auto; }
.footer__logo { color: var(--color-white); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav__list { display: flex; gap: 28px; }
.nav__link {
  font-weight: 500;
  color: var(--color-dark);
  position: relative;
  padding-bottom: 4px;
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.25s ease;
}
.nav__link:hover::after { width: 100%; }
.nav__cta { padding: 10px 22px; min-height: 40px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--color-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('../assets/images/fachada.jpg') center/cover no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,58,82,0.75), rgba(26,58,82,0.55));
}
.hero__content { position: relative; z-index: 2; color: var(--color-white); max-width: 720px; }
.hero__title {
  color: var(--color-white);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.hero__subtitle {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 32px;
  opacity: 0.95;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: var(--color-white);
  font-size: 1.4rem;
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ===== ABOUT ===== */
.about { background: var(--color-white); }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about__image img { border-radius: var(--radius-lg); box-shadow: 0 20px 40px rgba(0,0,0,0.12); }
.about__text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 20px; }
.about__text p { margin-bottom: 16px; }

.stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
.stat-badge { display: flex; flex-direction: column; }
.stat-badge__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--color-primary);
}
.stat-badge__label { font-size: 0.85rem; color: var(--color-text); }

/* ===== SERVICES ===== */
.services { background: var(--color-light-gray); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--color-white);
  padding: 40px 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(26,58,82,0.06);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0,123,199,0.15);
}
.service-card__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 20px;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.2rem; }

/* ===== BRANDS ===== */
.brands { background: var(--color-dark); padding: 64px 0; overflow: hidden; }
.brands__phrase {
  text-align: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 40px;
  font-size: 1.1rem;
}
.brands__track { display: flex; width: max-content; animation: scroll-brands 25s linear infinite; }
.brands__slide { display: flex; gap: 64px; padding-right: 64px; }
.brands__slide span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-gold);
  opacity: 0.85;
  white-space: nowrap;
}
@keyframes scroll-brands {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== GALLERY ===== */
.gallery { background: var(--color-white); }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px;
  background: linear-gradient(0deg, rgba(26,58,82,0.85), transparent);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery__item:hover .gallery__caption { opacity: 1; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--color-light-gray); }
.testimonials__swiper { padding-bottom: 48px; }
.testimonial-card {
  background: var(--color-white);
  padding: 32px;
  border-radius: var(--radius-lg);
  height: 100%;
  box-shadow: 0 4px 16px rgba(26,58,82,0.06);
}
.testimonial-card__stars { color: var(--color-gold); margin-bottom: 16px; font-size: 0.9rem; }
.testimonial-card p { margin-bottom: 24px; font-style: italic; color: var(--color-text); }
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}
.testimonial-card__author strong { display: block; font-size: 0.95rem; color: var(--color-dark); }
.testimonial-card__author span { font-size: 0.8rem; color: #7A8A94; display: flex; align-items: center; gap: 5px; }
.testimonial-card__author span i { color: #4285F4; }
.swiper-pagination-bullet-active { background: var(--color-primary) !important; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-dark));
  padding: 80px 0;
}
.cta-section__inner { text-align: center; color: var(--color-white); }
.cta-section__inner h2 { color: var(--color-white); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 28px; }
.cta-section__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-section__urgency { margin-top: 20px; font-size: 0.9rem; opacity: 0.85; }

/* ===== CONTACT ===== */
.contact { background: var(--color-white); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact__map { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.contact__list { margin-bottom: 20px; }
.contact__list li {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  font-size: 0.95rem;
}
.contact__list i { color: var(--color-primary); width: 18px; }
.contact__hours { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.contact__hours td { padding: 8px 0; border-bottom: 1px solid var(--color-light-gray); font-size: 0.9rem; }
.contact__hours td:last-child { text-align: right; font-weight: 600; color: var(--color-dark); }
.contact__socials { display: flex; gap: 12px; }
.contact__socials a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-light-gray);
  color: var(--color-dark);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.contact__socials a:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-3px); }

.contact__form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; position: relative; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--color-dark); }
.form-group input,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid #D8DFE3;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,123,199,0.15);
}
.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) { border-color: #E24C4C; }
.form-error { display: none; color: #E24C4C; font-size: 0.78rem; }
.form-group.has-error .form-error { display: block; }
.form-group.has-error input,
.form-group.has-error textarea { border-color: #E24C4C; }
.form-group--checkbox { flex-direction: row; align-items: center; gap: 10px; }
.form-group--checkbox input { width: 18px; height: 18px; }
.form-group--checkbox label { font-weight: 500; }
.form-success {
  display: none;
  color: #1F9254;
  background: #E9F9EF;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  text-align: center;
}
.form-success.is-visible { display: block; }

/* ===== FOOTER ===== */
.footer { background: var(--color-dark); color: #C7D3DA; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 40px;
}
.footer__brand p { margin-top: 8px; font-size: 0.9rem; opacity: 0.75; }
.footer__links h4,
.footer__socials h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}
.footer__links ul li { margin-bottom: 10px; }
.footer__links a { font-size: 0.9rem; opacity: 0.8; transition: opacity 0.2s ease; }
.footer__links a:hover { opacity: 1; color: var(--color-primary); }
.footer .contact__socials a { background: rgba(255,255,255,0.08); color: var(--color-white); }
.footer__bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  z-index: 999;
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================
   RESPONSIVE — TABLET (768px - 1024px)
   ============================================ */
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--color-white);
    padding: 24px;
    gap: 20px;
    transform: translateY(-150%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }
  .nav.is-open { transform: translateY(0); opacity: 1; }
  .nav__list { flex-direction: column; gap: 16px; text-align: center; }
  .nav__cta { text-align: center; }
  .hamburger { display: flex; }

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

/* ============================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================ */
@media (max-width: 767px) {
  section { padding: 64px 0; }

  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__image { order: -1; }

  .services__grid { grid-template-columns: 1fr; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .hero__actions,
  .cta-section__buttons { flex-direction: column; width: 100%; }
  .hero__actions .btn,
  .cta-section__buttons .btn { width: 100%; }

  .footer__inner { grid-template-columns: 1fr; text-align: center; }
  .footer .contact__socials { justify-content: center; }

  .whatsapp-float { width: 54px; height: 54px; font-size: 1.5rem; bottom: 16px; right: 16px; }
}
