/* ==========================================================================
   Loja do Gesseiro — estilos globais
   ========================================================================== */

:root {
  --color-blue: #2c4399;
  --color-blue-dark: #1f3070;
  --color-red: #c33137;
  --color-green: #04aa5f;
  --color-green-dark: #038a4d;
  --color-black: #1a1a1a;
  --color-white: #ffffff;
  --color-gray-bg: #f5f6fa;
  --color-gray-border: #e5e7eb;
  --color-text: #2b2b2f;
  --color-text-muted: #5b5f6b;

  --font-heading: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --container-max: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(20, 20, 40, 0.08);
  --shadow-md: 0 10px 30px -8px rgba(20, 30, 70, 0.18);
  --shadow-lg: 0 20px 45px -15px rgba(20, 30, 70, 0.3);

  --header-h: 128px;
}

/* ------------------------- reset & base ------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  line-height: 1.6;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-black);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 600;
}

p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-white);
  color: var(--color-blue);
  padding: 0.75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
  padding-block: clamp(3.5rem, 6vw, 6rem);
}

.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.bg-white { background: var(--color-white); }
.bg-gray { background: var(--color-gray-bg); }
.bg-blue { background: var(--color-blue); color: var(--color-white); }

.section-head {
  max-width: 700px;
  margin: 0 auto clamp(2rem, 4vw, 3.5rem);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow--blue { background: rgba(44,67,153,0.1); color: var(--color-blue); }
.eyebrow--red { background: rgba(195,49,55,0.1); color: var(--color-red); }
.eyebrow--green { background: rgba(4,170,95,0.1); color: var(--color-green-dark); }

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

/* ------------------------- buttons ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.btn--green { background: var(--color-green); color: #fff; box-shadow: var(--shadow-sm); }
.btn--green:hover { background: var(--color-green-dark); box-shadow: var(--shadow-md); }

.btn--red { background: var(--color-red); color: #fff; box-shadow: var(--shadow-sm); }
.btn--red:hover { background: #a72930; box-shadow: var(--shadow-md); }

.btn--blue { background: var(--color-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--blue:hover { background: var(--color-blue-dark); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; border-color: rgba(255,255,255,0.6); color: #fff; }
.btn--outline:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(20,20,40,0.06);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-block: 0.5rem;
  border-bottom: 1px solid var(--color-gray-border);
}
.topbar__contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
}
.topbar__contacts a,
.topbar__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease;
}
.topbar__contacts a:hover,
.topbar__social a:hover { color: var(--color-blue); }
.topbar__contacts svg { width: 1em; height: 1em; }
.topbar__social { display: flex; gap: 0.75rem; }
.topbar__social svg { width: 1.1em; height: 1.1em; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.6rem;
}

.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand img { height: 56px; width: auto; }

.nav-desktop { display: none; }
.nav-desktop ul { display: flex; gap: 0.25rem; }
.nav-link {
  position: relative;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  color: var(--color-black);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: var(--color-blue); background: rgba(44,67,153,0.06); }
.nav-link[aria-current="page"] { color: var(--color-blue); font-weight: 600; }
.nav-mobile a[aria-current="page"] { color: var(--color-blue); font-weight: 600; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--color-black);
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: rgba(0,0,0,0.05); }
.nav-toggle svg { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }

.nav-mobile {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  border-top: 1px solid var(--color-gray-border);
}
.nav-mobile ul { display: flex; flex-direction: column; padding-block: 0.5rem; }
.nav-mobile a {
  display: block;
  padding: 0.85rem 0.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--color-gray-border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--color-blue); }

.site-header.is-open .nav-toggle .icon-menu { display: none; }
.site-header.is-open .nav-toggle .icon-close { display: inline-flex; }

@media (min-width: 900px) {
  .nav-desktop { display: block; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none; }
  .brand img { height: 68px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  color: #fff;
  padding-block: calc(var(--header-h) + 3rem) 5rem;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(120deg, rgba(31,48,112,0.94), rgba(44,67,153,0.88)), var(--hero-image);
  background-size: cover;
  background-position: center;
}
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.12;
  background-image: radial-gradient(circle at 20% 20%, #04aa5f 0, transparent 40%),
                     radial-gradient(circle at 85% 75%, #c33137 0, transparent 45%);
}

.hero__content {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero__badge svg { width: 1.1em; height: 1.1em; color: var(--color-green); }

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero h1 span { color: #7fe6ae; }

.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  max-width: 620px;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 640px;
  margin-inline: auto;
}
.hero__stat {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
}
.hero__stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  color: #fff;
}
.hero__stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
}

.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: auto; display: block; }

/* ==========================================================================
   About
   ========================================================================== */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 960px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-list { display: grid; gap: 1.4rem; margin: 1.8rem 0 2.2rem; }
.about-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.about-item__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(4,170,95,0.12);
  color: var(--color-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.about-item__icon svg { width: 20px; height: 20px; }
.about-item h4 { margin-bottom: 0.2rem; font-size: 1.05rem; }
.about-item p { color: var(--color-text-muted); margin: 0; }

.about-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.about-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius);
  padding: 1.6rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.about-card strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-blue);
}
.about-card span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.about-card:nth-child(1) { border-top: 4px solid var(--color-blue); }
.about-card:nth-child(2) { border-top: 4px solid var(--color-red); }
.about-card:nth-child(3) { border-top: 4px solid var(--color-green); }
.about-card:nth-child(4) { border-top: 4px solid var(--color-blue); }

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-gray-border);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(195,49,55,0.1);
  color: var(--color-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.service-card__icon svg { width: 28px; height: 28px; }
.service-card h3 { font-size: 1.15rem; }
.service-card p { color: var(--color-text-muted); margin: 0; }

.cta-center { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ==========================================================================
   Products
   ========================================================================== */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  border: 1px solid var(--color-gray-border);
  background: var(--color-white);
  color: var(--color-text);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 500;
  transition: all 0.2s ease;
}
.filter-btn:hover { background: var(--color-gray-bg); }
.filter-btn.is-active {
  background: var(--color-blue);
  border-color: var(--color-blue);
  color: #fff;
}

.products-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-border);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card__img { aspect-ratio: 4/3; overflow: hidden; background: var(--color-gray-bg); }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card__img img { transform: scale(1.06); }
.product-card__body { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.1rem; }
.product-card p { color: var(--color-text-muted); font-size: 0.95rem; flex: 1; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 0.75rem; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(44,67,153,0.1);
  color: var(--color-blue);
}
.link-cta {
  font-weight: 600;
  color: var(--color-green-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.link-cta:hover { text-decoration: underline; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  max-width: 960px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}
.contact-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--color-gray-border);
}
.contact-card__head {
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card__head svg { width: 44px; height: 44px; color: #fff; }
.contact-card__head--green { background: var(--color-green); }
.contact-card__head--blue { background: var(--color-blue); }
.contact-card__head--red { background: var(--color-red); }
.contact-card__body { padding: 1.5rem; }
.contact-card__body p.small { color: var(--color-text-muted); margin-bottom: 1rem; }

.contact-panel {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-border);
  padding: clamp(1.25rem, 3vw, 2.5rem);
  max-width: 960px;
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}
@media (min-width: 800px) {
  .contact-panel { grid-template-columns: 1fr 1fr; }
}
.info-row { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.info-row__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--color-gray-bg);
  color: var(--color-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.info-row__icon svg { width: 22px; height: 22px; }
.hours-list { display: grid; gap: 0.5rem; }
.hours-list li { display: flex; justify-content: space-between; color: var(--color-text-muted); }
.hours-list li strong { color: var(--color-text); font-weight: 600; }
.map-frame { border-radius: var(--radius-sm); overflow: hidden; height: 100%; min-height: 260px; border: 1px solid var(--color-gray-border); }
.map-frame iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--color-blue); color: rgba(255,255,255,0.92); }
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-block: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
}
.site-footer h3 { color: #fff; font-size: 1.15rem; margin-bottom: 1.25rem; }
.footer-brand img { height: 52px; margin-bottom: 1rem; background: #fff; padding: 8px 14px; border-radius: 10px; }
.footer-contact li { display: flex; gap: 0.7rem; margin-bottom: 0.9rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; }
.footer-contact a:hover { color: var(--color-red); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a:hover { color: var(--color-red); }
.footer-hours li { display: flex; justify-content: space-between; margin-bottom: 0.5rem; color: rgba(255,255,255,0.85); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  transition: background 0.2s ease;
}
.footer-social a:hover { background: var(--color-red); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  text-align: center;
  padding-block: 1.25rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
}
.footer-bottom a { text-decoration: underline; }

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.float-whatsapp {
  position: fixed;
  right: clamp(0.75rem, 3vw, 2rem);
  bottom: clamp(0.75rem, 3vw, 2rem);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.float-whatsapp__label {
  background: var(--color-green);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
  transition: all 0.3s ease;
}
.float-whatsapp.is-open .float-whatsapp__label {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.float-whatsapp__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: var(--color-green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(4,170,95,0.45);
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.float-whatsapp__btn:hover { transform: scale(1.06); background: var(--color-green-dark); }
.float-whatsapp__btn svg { width: 28px; height: 28px; }
.float-whatsapp.is-open .float-whatsapp__btn { background: var(--color-red); }

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(4,170,95,0.55); }
  100% { box-shadow: 0 0 0 16px rgba(4,170,95,0); }
}
.float-whatsapp__btn.is-pulsing { animation: pulse-ring 1.6s ease-out; }

/* ==========================================================================
   Utility animations
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
