:root {
  /* Paleta oficial Cambará — Manual de Identidade Visual, p. 11 */
  --orange: #F58220;
  --brown-950: #24170e;
  --brown-900: #593B1D;
  --brown-800: #684522;
  --brown-700: #7a5128;
  --brown-600: #925d2c;
  --wood: #B86B24;
  --gold: #F58220;
  --cream: #FFF3E8;
  --white: #ffffff;
  --text: #302116;
  --muted: #725d4b;
  --border: #F0D4BB;
  --green: #25d366;
  --shadow: 0 18px 50px rgba(42, 25, 15, .12);
  --radius: 18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

button { font: inherit; }

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

/* Topbar */
.topbar {
  background: var(--brown-950);
  color: #eee3d8;
  font-size: .82rem;
}

.topbar-content {
  min-height: 38px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
}

.topbar i { color: var(--gold); margin-right: 6px; }

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(60,40,25,.08);
  transition: .25s ease;
}

.header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.08); }

.nav {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.logo-image {
  display: block;
  width: 190px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
}

.logo-mark {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange), var(--brown-900));
  font-size: 1.15rem;
}

.logo strong {
  display: block;
  color: var(--brown-900);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: .08em;
}

.logo small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .55rem;
  font-weight: 800;
  letter-spacing: .08em;
}

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

.menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 13px;
  border-radius: 10px;
  color: #4c4038;
  background: transparent;
  font-size: .9rem;
  font-weight: 650;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.menu a:hover,
.menu a:focus-visible {
  color: #59351d;
  background: #fbe7d7;
  box-shadow: inset 0 0 0 1px #edc7a7;
}

.menu a.is-active {
  color: #fff;
  background: #593b1d;
  box-shadow: 0 4px 12px rgba(89,59,29,.18);
}

.menu a:focus-visible { outline: 2px solid #f58220; outline-offset: 2px; }

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--brown-900);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 21px;
  border-radius: 11px;
  font-weight: 800;
  font-size: .9rem;
  border: 2px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--brown-950);
  box-shadow: 0 10px 25px rgba(215,164,91,.22);
}

.btn-primary:hover { background: #e3b873; }

.btn-whatsapp {
  background: var(--green);
  color: #072c13;
  box-shadow: 0 10px 25px rgba(37,211,102,.2);
}

.btn-whatsapp:hover { background: #42df7a; }

.btn-outline {
  border-color: rgba(255,255,255,.5);
  color: var(--white);
  background: rgba(255,255,255,.07);
}

.btn-large { min-height: 56px; padding-inline: 28px; }

/* Hero */
.hero {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: var(--brown-950);
}

.slides { position: absolute; inset: 0; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
}

.slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-click-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
}
.slide-click-overlay:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -6px;
}
.slide-bg {
  position: absolute;
  inset: 0;
  background-image: var(--banner-desktop-image, none);
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.slide.active .slide-bg {
  animation: heroZoom 7s ease forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: var(--white);
  max-width: 900px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
  font-size: .73rem;
}

.eyebrow.dark { color: var(--wood); }

.hero h1 {
  max-width: 760px;
  font-size: clamp(2.7rem, 6vw, 5.15rem);
  line-height: .99;
  letter-spacing: -.055em;
  margin-bottom: 22px;
}

.hero h1 span, .section-heading h2 span, .about-content h2 span {
  color: var(--gold);
}

.hero p {
  max-width: 650px;
  color: #eadfd6;
  font-size: 1.08rem;
  margin-bottom: 30px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; pointer-events: auto; }
.hero-content a, .hero-content button { pointer-events: auto; }

.slider-btn {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: var(--white);
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: .2s;
}

.slider-btn:hover { background: rgba(255,255,255,.15); }
.slider-btn.prev { left: 22px; }
.slider-btn.next { right: 22px; }

.slider-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.dot {
  width: 30px;
  height: 5px;
  border: 0;
  border-radius: 10px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: .25s;
}

.dot.active { width: 50px; background: var(--gold); }

/* Trust */
.trust-strip {
  position: relative;
  z-index: 10;
  background: var(--brown-900);
  color: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 22px 0;
}

.trust-grid > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-right: 1px solid rgba(255,255,255,.12);
}

.trust-grid > div:last-child { border-right: 0; }

.trust-grid i { color: var(--gold); font-size: 1.25rem; }

.trust-grid strong, .trust-grid small { display: block; }
.trust-grid strong { font-size: .87rem; }
.trust-grid small { color: #cdbeb2; font-size: .73rem; }

/* Sections */
.section { padding: 100px 0; }

.section-heading {
  max-width: 700px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading h2, .about-content h2, .cta h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--brown-900);
}

.section-heading p { color: var(--muted); margin-top: 15px; }

/* Categories */
.categories { background: linear-gradient(135deg, #FFF7EF 0%, #FDE2C9 48%, #FFF2E5 100%); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.category-card {
  min-height: 285px;
  padding: 25px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: .25s ease;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: var(--shadow);
}

.category-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: #FFE1C5;
  color: var(--wood);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.category-card h3 {
  color: var(--brown-900);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.category-card p {
  color: var(--muted);
  font-size: .83rem;
  line-height: 1.55;
}

.category-card span {
  margin-top: auto;
  color: var(--wood);
  font-size: .75rem;
  font-weight: 850;
}

.category-card span i { margin-left: 5px; transition: .2s; }
.category-card:hover span i { transform: translateX(4px); }

/* About */
.about { background: linear-gradient(115deg, #FFFFFF 0%, #FFF8F1 100%); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image { position: relative; }

.about-image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.experience-badge {
  position: absolute;
  z-index: 2;
  left: -25px;
  bottom: 30px;
  width: 145px;
  height: 145px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--brown-950);
  border: 8px solid var(--white);
  text-align: center;
  box-shadow: 0 15px 35px rgba(0,0,0,.15);
}

.experience-badge strong { font-size: 2.5rem; line-height: 1; }
.experience-badge span { font-size: .72rem; font-weight: 850; line-height: 1.15; margin-top: 5px; }

.about-content h2 { margin-bottom: 22px; }
.about-content p { color: var(--muted); margin-bottom: 14px; }

.check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0 32px;
}

.check-list div {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .83rem;
  font-weight: 700;
}

.check-list i { color: var(--wood); }

/* Features */
.features {
  background: var(--brown-900);
  color: var(--white);
}

.section-heading.light h2 { color: var(--white); }
.section-heading.light p { color: #cdbeb2; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 18px;
  overflow: hidden;
}

.feature {
  min-height: 240px;
  padding: 34px 28px;
  background: rgba(255,255,255,.035);
}

.feature > i {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 22px;
}

.feature h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature p { color: #cdbeb2; font-size: .86rem; }

/* CTA */
.cta {
  padding: 70px 0;
  background: var(--cream);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 48px 55px;
  border-radius: 24px;
  background: linear-gradient(135deg, #593B1D 0%, #3D2817 100%);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border: 1px solid var(--border);
}

.cta h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.cta p { color: #FBE5D2; margin-top: 8px; }

/* Footer */
.footer {
  background: var(--brown-950);
  color: #e9ded4;
  padding-top: 70px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .8fr .9fr 1.1fr;
  gap: 45px;
  padding-bottom: 55px;
}

.logo-footer strong { color: var(--white); }
.logo-footer small { color: #bcaea3; }

.footer-brand p {
  max-width: 270px;
  color: #a99b90;
  margin-top: 18px;
  font-size: .85rem;
}

.footer h4 {
  color: var(--white);
  font-size: .9rem;
  margin-bottom: 16px;
}

.footer-grid > div:not(.footer-brand) a,
.footer-grid > div:not(.footer-brand) p {
  display: block;
  color: #aa9b90;
  font-size: .82rem;
  margin: 8px 0;
}

.footer-grid a:hover { color: var(--gold) !important; }

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.socials a {
  width: 52px;
  height: 52px;
  display: grid !important;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  color: #d8c9bd !important;
  margin: 0 !important;
  font-size: 1.45rem;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.socials a:hover { transform: translateY(-2px); }
.socials a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.socials a:hover {
  background: var(--gold);
  color: var(--brown-950) !important;
}

.footer-bottom {
  min-height: 62px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #8f8177;
  font-size: .72rem;
}

/* Floating WhatsApp */
.floating-whatsapp {
  position: fixed;
  z-index: 900;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 50px;
  color: #062b11;
  background: var(--green);
  box-shadow: 0 12px 35px rgba(0,0,0,.2);
  font-weight: 850;
  font-size: .82rem;
  transition: .2s;
}

.floating-whatsapp i { font-size: 1.25rem; }
.floating-whatsapp:hover { transform: translateY(-3px); }

/* Responsive */
@media (max-width: 1050px) {
  .menu { gap: 15px; }
  .nav-cta { padding-inline: 15px; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .category-card:last-child { grid-column: 2; }
  .about-grid { gap: 45px; }
}

@media (max-width: 820px) {
  .topbar-content { justify-content: center; gap: 15px; flex-wrap: wrap; padding: 9px 0; }
  .topbar-content span:last-child { display: none; }

  .nav { height: 70px; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }

  .menu {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 70px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,.12);
    overflow: hidden;
  }

  .menu.open { display: flex; }
  .menu a { padding: 15px 18px; border-bottom: 1px solid #eee8e2; }

  .hero, .hero-content { min-height: 600px; }
  .hero h1 { font-size: clamp(2.45rem, 10vw, 4rem); }

  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div { justify-content: flex-start; padding: 12px 16px; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }

  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 620px; margin: 0 auto; }
  .about-content { text-align: center; }
  .check-list { text-align: left; max-width: 600px; margin-inline: auto; margin-bottom: 30px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .slide-bg { background-image: var(--banner-mobile-image, var(--banner-desktop-image, none)); background-position: center center; }
  .container { width: min(100% - 28px, 1160px); }

  .topbar { display: none; }

  .logo-image { width: 158px; height: 54px; }
  .logo strong { font-size: 1rem; }
  .logo small { font-size: .48rem; }

  .hero, .hero-content { min-height: 600px; }
  .hero-content { padding-bottom: 65px; }
  .hero p { font-size: .96rem; }
  .hero-actions .btn { width: 100%; }

  .slider-btn { width: 38px; height: 38px; }
  .slider-btn.prev { left: 10px; }
  .slider-btn.next { right: 10px; }

  .trust-grid { grid-template-columns: 1fr; padding: 12px 0; }
  .trust-grid > div,
  .trust-grid > div:nth-child(-n+2) { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .trust-grid > div:last-child { border-bottom: 0; }

  .section { padding: 70px 0; }
  .section-heading { margin-bottom: 35px; }

  .category-grid { grid-template-columns: 1fr 1fr; }
  .category-card:last-child { grid-column: auto; }

  .category-card { min-height: 250px; padding: 20px 17px; }

  .about-image img { height: 400px; }
  .experience-badge { left: -4px; bottom: 20px; width: 115px; height: 115px; }
  .experience-badge strong { font-size: 2rem; }

  .check-list { grid-template-columns: 1fr; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: auto; }

  .cta { padding: 50px 0; }
  .cta-inner { padding: 35px 25px; }
  .cta .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 25px; }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom { flex-direction: column; justify-content: center; text-align: center; padding: 18px 0; }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    justify-content: center;
    padding: 0;
  }

  .floating-whatsapp span { display: none; }
}


/* Imagens das categorias gerenciadas pelo CMS */
.category-photo {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 18px;
}


/* Galeria institucional administrada pelo CMS */
.gallery { background: #fff; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.gallery-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(42,25,15,.07);
}
.gallery-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform .35s ease;
}
.gallery-card:hover img { transform: scale(1.035); }
.gallery-card figcaption { padding: 16px 18px 18px; }
.gallery-card figcaption strong { color: var(--brown-900); }
.gallery-card figcaption p { color: var(--muted); font-size: .86rem; margin-top: 5px; }
.gallery-empty { grid-column: 1 / -1; color: var(--muted); text-align: center; padding: 30px; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
  .gallery-card img { height: 190px; }
}
@media (max-width: 460px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-card img { height: 230px; }
}


/* Categorias em rolagem horizontal contínua */
.category-grid.category-marquee {
  display: flex;
  gap: 0;
  overflow: hidden;
  width: 100%;
  padding: 8px 0 18px;
  position: relative;
  touch-action: pan-y;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
}
.category-track {
  display: flex;
  flex: 0 0 auto;
  gap: 18px;
  width: max-content;
  padding-right: 18px;
  animation: cambara-category-scroll 34s linear infinite;
}
.category-track .category-card {
  flex: 0 0 260px;
  width: 260px;
  min-height: 285px;
}
.category-grid.category-marquee.is-paused .category-track {
  animation-play-state: paused;
}
@keyframes cambara-category-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 760px) {
  .category-track { gap: 12px; padding-right: 12px; animation-duration: 28s; }
  .category-track .category-card { flex-basis: 230px; width: 230px; min-height: 265px; }
}
@media (prefers-reduced-motion: reduce) {
  .category-track { animation: none; }
  .category-grid.category-marquee { overflow-x: auto; }
}


/* Logo oficial no rodapé */
.logo-footer-image {
  width: 205px;
  height: 88px;
  object-fit: contain;
  object-position: center;
  padding: 8px 12px;
  background: #fff;
  border-radius: 10px;
}


/* Ajuste visual das categorias com artes neon da agência */
.category-track .category-card {
  flex-basis: 285px;
  width: 285px;
  min-height: 365px;
  padding: 18px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.category-track .category-card .category-photo {
  display: block;
  width: 100%;
  height: 190px;
  flex: 0 0 190px;
  margin: 0 0 16px;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: #080808;
  border-radius: 14px;
}

.category-track .category-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.category-track .category-card p {
  margin: 0 0 12px;
  line-height: 1.5;
}

.category-track .category-card > span {
  margin-top: auto;
  padding-top: 8px;
}

.category-track .category-card:hover .category-photo {
  filter: drop-shadow(0 0 8px rgba(255, 125, 20, .38));
}

@media (max-width: 760px) {
  .category-track .category-card {
    flex-basis: 255px;
    width: 255px;
    min-height: 345px;
    padding: 16px;
  }
  .category-track .category-card .category-photo {
    height: 175px;
    flex-basis: 175px;
  }
}


/* Refinamento da seção de categorias: paleta mais quente e subtítulo legível */
.categories {
  background: linear-gradient(135deg, #FCE8D7 0%, #F7D0AE 52%, #FBE5D1 100%);
}

.categories .section-heading p {
  max-width: 760px;
  margin: 14px auto 0;
  color: #76543C;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.65;
  font-weight: 400;
}

.categories .section-heading h2 {
  color: #59351D;
}

@media (max-width: 760px) {
  .categories .section-heading p {
    font-size: 1rem;
    line-height: 1.55;
    padding: 0 12px;
  }
}


/* Ajuste de ritmo visual desktop: categorias mais próximas do banner */
@media (min-width: 761px) {
  .categories.section {
    padding-top: 64px;
    padding-bottom: 64px;
  }
  .categories .section-heading {
    margin-bottom: 34px;
  }
}

/* Galeria de clientes: fotos e depoimentos em vídeo */
.gallery-video-card video { display:block; width:100%; height:340px; object-fit:contain; background:#160e09; }
.gallery-video-card figcaption { min-height:74px; }
#galleryImagePreview video, #galleryList video { display:block; width:100%; max-width:180px; max-height:240px; object-fit:contain; background:#160e09; border-radius:10px; }
@media (max-width:760px) { .gallery-video-card video { height:300px; } }
@media (max-width:460px) { .gallery-video-card video { height:360px; } }

/* Depoimentos em vídeo em destaque, separados das fotos institucionais */
.testimonials-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px);
  justify-content: center;
  gap: 24px;
}
.testimonial-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(42,25,15,.09);
}
.testimonial-card video {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 620px;
  object-fit: contain;
  background: #160e09;
}
.testimonial-card figcaption { padding: 16px 20px 20px; }
.testimonial-card figcaption strong { color: var(--brown-900); }
.testimonial-card figcaption p { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.gallery-photos-heading { text-align: center; margin: 76px 0 28px; }
.gallery-photos-heading h2 { color: var(--brown-900); margin: 10px 0; }
.gallery-photos-heading h2 span { color: var(--orange-600, #f58220); }
.gallery-photos-heading p { color: var(--muted); }
@media (max-width:760px) {
  .testimonials-grid { grid-template-columns: minmax(0,1fr); max-width:440px; margin:0 auto; }
  .testimonial-card video { max-height:560px; }
  .gallery-photos-heading { margin-top:52px; }
}

/* Galeria de fotos integrada à seção Sobre a Cambará */
.about-gallery { margin-top: 72px; }
.about-gallery .gallery-photos-heading { margin: 0 0 28px; }
.about-gallery .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* Depoimento apresentado dentro de uma moldura de televisão */
.testimonials-grid {
  display: grid;
  grid-template-columns: minmax(300px, 620px);
  justify-content: center;
  gap: 30px;
}
.testimonial-card {
  overflow: visible;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.testimonial-tv {
  position: relative;
  width: 100%;
  padding: 15px 16px 28px;
  border-radius: 28px;
  background: linear-gradient(145deg, #6b3b1c 0%, #2b180e 48%, #120b07 100%);
  border: 3px solid #a9632b;
  box-shadow: 0 18px 34px rgba(42,25,15,.24), inset 0 2px 4px rgba(255,255,255,.25);
}
.testimonial-tv::before {
  content: "";
  position: absolute;
  width: 18%;
  height: 17px;
  left: 41%;
  bottom: -19px;
  background: linear-gradient(90deg,#321b0e,#75431f,#321b0e);
  clip-path: polygon(18% 0,82% 0,100% 100%,0 100%);
}
.testimonial-tv::after {
  content: "";
  position: absolute;
  width: 32%;
  height: 11px;
  left: 34%;
  bottom: -28px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg,#75431f,#2b180e);
  box-shadow: 0 5px 8px rgba(0,0,0,.18);
}
.testimonial-tv-screen {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 5px solid #100b08;
  border-radius: 13px;
  background: #080605;
  box-shadow: inset 0 0 18px rgba(0,0,0,.8);
}
.testimonial-tv-screen video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080605;
}
.testimonial-tv-brand {
  display: block;
  margin-top: 8px;
  color: #f5c18e;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .22em;
  text-align: right;
}
.testimonial-card figcaption { padding: 24px 8px 8px; text-align: center; }
.testimonial-card figcaption strong { color: var(--brown-900); }
.testimonial-card figcaption p { color: var(--muted); font-size: .9rem; margin-top: 5px; }
.gallery-photos-heading { text-align: center; margin: 76px 0 28px; }
.gallery-photos-heading h2 { color: var(--brown-900); margin: 10px 0; }
.gallery-photos-heading h2 span { color: var(--orange-600, #f58220); }
.gallery-photos-heading p { color: var(--muted); }
@media (max-width:760px) {
  .about-gallery { margin-top: 48px; }
  .about-gallery .gallery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .testimonials-grid { grid-template-columns: minmax(0,1fr); max-width:560px; margin:0 auto; }
  .testimonial-tv { padding: 10px 11px 22px; border-radius: 21px; }
  .testimonial-tv-screen { border-width: 4px; border-radius: 9px; }
  .testimonial-tv-brand { font-size:.5rem; }
}
@media (max-width:460px) {
  .about-gallery .gallery-grid { grid-template-columns:1fr; }
  .testimonial-tv { padding: 8px 9px 19px; }
}

/* Faixa horizontal de fotos integrada ao Sobre a Cambará */
.about-gallery { margin-top: 48px; }
.gallery-strip {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 18px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--wood) rgba(120,75,35,.12);
}
.gallery-strip .gallery-card {
  flex: 0 0 clamp(250px, 30vw, 350px);
  min-width: 0;
  scroll-snap-align: start;
}
.gallery-strip .gallery-card img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.gallery-strip .gallery-empty {
  flex: 0 0 100%;
}
@media (max-width:760px) {
  .about-gallery { margin-top: 32px; }
  .gallery-strip { gap: 14px; padding-bottom: 14px; }
  .gallery-strip .gallery-card { flex-basis: min(78vw, 330px); }
  .gallery-strip .gallery-card img { height: 205px; }
}
@media (max-width:460px) {
  .gallery-strip .gallery-card { flex-basis: 84vw; }
}

/* Depoimentos: três televisões lado a lado em telas grandes */
#galeria .testimonials-grid {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(16px, 2vw, 28px);
}
#galeria .testimonial-card { width: 100%; min-width: 0; }
#galeria .testimonial-tv {
  width: 100%;
  padding: 9px 9px 21px;
  border-radius: 19px;
}
#galeria .testimonial-tv-screen {
  aspect-ratio: 16 / 9;
  border-width: 4px;
  border-radius: 9px;
}
#galeria .testimonial-tv-screen video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
#galeria .testimonial-tv-brand { margin-top: 6px; font-size: .48rem; }
#galeria .testimonial-card figcaption {
  padding: 22px 5px 8px;
  font-size: .9rem;
  text-align: center;
}
@media (min-width: 761px) and (max-width: 1050px) {
  #galeria .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #galeria .testimonials-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
    gap: 28px;
  }
  #galeria .testimonial-tv { padding: 10px 11px 22px; border-radius: 21px; }
  #galeria .testimonial-tv-screen { border-width: 4px; border-radius: 9px; }
  #galeria .testimonial-tv-brand { font-size: .5rem; }
}


/* Controle da rolagem das categorias: respeita preferência do sistema,
   permitindo ativação explícita pelo visitante. */
.category-motion-toggle {
  display: block;
  margin: -12px auto 22px;
  padding: 9px 16px;
  border: 1px solid #b97640;
  border-radius: 999px;
  color: #59351d;
  background: rgba(255,255,255,.74);
  font: inherit;
  font-size: .82rem;
  font-weight: 750;
  cursor: pointer;
}
.category-motion-toggle:hover { background: #fff; }
.category-motion-toggle:focus-visible { outline: 3px solid #f58220; outline-offset: 3px; }
.category-grid.category-marquee.motion-enabled { overflow-x: hidden; }
.category-grid.category-marquee.motion-enabled .category-track {
  animation: cambara-category-scroll 34s linear infinite;
  animation-play-state: running;
}
.category-grid.category-marquee.motion-disabled {
  overflow-x: auto;
  touch-action: pan-x pan-y;
}
.category-grid.category-marquee.motion-disabled .category-track {
  animation: none;
  transform: none;
}
@media (max-width: 760px) {
  .category-grid.category-marquee.motion-enabled .category-track {
    animation-duration: 28s;
  }
}

/* Contatos do rodapé: endereço e e-mail legíveis também no celular */
.footer-grid > div:not(.footer-brand) a[href^="mailto:"] {
  overflow-wrap: anywhere;
}
.footer-grid > div:not(.footer-brand) p i,
.footer-grid > div:not(.footer-brand) a[href^="mailto:"] i {
  margin-right: 6px;
  color: var(--gold);
}
