@import url('https://api.fontshare.com/v2/css?f[]=open-sauce-one@700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #16233F;
  --navy-light: #4A5975;
  --navy-dark: #101B32;
  --orange: #F7941D;
  --green: #25D366;
  --white: #FFFFFF;
  --gray-card: #5B6B87;
  --card-bg: #1C2A47;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
}

a { color: inherit; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER / NAV */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  flex-wrap: wrap;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 34px;
  display: block;
  border-radius: 4px;
}

.logo-edc-img {
  height: 46px;
  width: auto;
  display: block;
}

.brand-name { font-size: 19px; font-weight: 600; white-space: nowrap; }

nav.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14.5px;
  font-weight: 500;
}

nav.main-nav a {
  text-decoration: none;
  color: #D9DEE8;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--white);
  border-bottom-color: var(--orange);
}

/* PAGE HEADER (banner simples para páginas internas) */
.page-hero {
  padding: 50px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-family: 'Open Sauce One', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  text-transform: uppercase;
}

.page-hero p {
  margin-top: 14px;
  color: #D9DEE8;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* HERO (home) */
.hero {
  padding: 40px 0 80px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-family: 'Open Sauce One', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  text-transform: uppercase;
}

.hero h1 .highlight { color: var(--orange); }

.since-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(247, 148, 29, 0.12);
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero p {
  margin-top: 24px;
  font-size: 17px;
  color: #D9DEE8;
  max-width: 480px;
}

.btn-primary {
  display: inline-block;
  margin-top: 32px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 40px;
  font-size: 15px;
  letter-spacing: 0.5px;
  transition: transform .15s ease;
}

.btn-primary:hover { transform: scale(1.03); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white);
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
}

.img-placeholder {
  width: 100%;
  background: var(--navy-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B9C2D4;
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.img-box {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-box.product {
  background: #FFFFFF;
}

.img-box.product img {
  object-fit: contain;
  padding: 20px;
}

.hero-photo {
  background: var(--navy);
}

.hero-photo img {
  object-fit: contain;
  padding: 0;
}

/* SERVICES */
.services {
  background: var(--navy-dark);
  padding: 60px 0;
}

.services-badge {
  display: block;
  margin: 0 auto 48px;
  width: fit-content;
  background: var(--gray-card);
  padding: 14px 36px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}

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

.service-card { text-align: left; }

.service-tag {
  background: #2E9E5B;
  color: var(--white);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 14px;
  text-transform: uppercase;
}

.service-text {
  background: var(--gray-card);
  padding: 18px 14px;
  font-size: 14px;
  color: #EDEFF3;
  min-height: 130px;
}

.service-text a.saiba-mais {
  display: inline-block;
  margin-top: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-decoration: underline;
}

/* EQUIPAMENTOS */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.equip-card {
  text-align: center;
}

.equip-photo {
  border-radius: 10px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 16px;
}

.equip-photo.on-white {
  background: var(--white);
}

.equip-photo.on-navy {
  background: var(--navy-light);
}

.equip-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.equip-photo.on-navy img {
  padding: 0;
  object-fit: cover;
}

.equip-name {
  font-family: 'Open Sauce One', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.equip-desc {
  font-size: 14px;
  color: #D9DEE8;
  line-height: 1.6;
}

@media (max-width: 800px) {
  .equip-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .page-hero { padding-bottom: 56px; }
}

/* HISTORY */
.history {
  padding: 70px 0;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  align-items: stretch;
}

.history-text {
  background: var(--navy-light);
  padding: 32px;
  border-radius: 8px;
  font-size: 14.5px;
  color: #E4E8F0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
}

.history-right h2 {
  font-family: 'Open Sauce One', sans-serif;
  font-size: 30px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

/* REVIEWS */
.reviews {
  background: var(--navy-dark);
  padding: 60px 0;
  text-align: center;
}

.reviews h2 {
  font-family: 'Open Sauce One', sans-serif;
  font-size: 26px;
  margin-bottom: 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.review-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 18px;
  font-size: 13.5px;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.4s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.35);
}

.review-card.fade-swap {
  opacity: 0;
}

.review-name { font-weight: 600; font-size: 14px; }
.review-meta { color: #9AA5B8; font-size: 12px; margin-bottom: 6px; }
.stars { color: #FFC93C; margin-bottom: 8px; letter-spacing: 2px; }

.google-cta { margin-top: 40px; }

.google-cta a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

.google-cta .stars { justify-content: center; display: flex; margin: 10px 0; }

/* CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 20px 0 60px;
}

.contact-card {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 28px;
}

.contact-card h3 { margin-bottom: 16px; font-size: 16px; }

.contact-line, .social-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14.5px;
}

a.social-line {
  transition: opacity 0.2s ease;
}

a.social-line:hover {
  opacity: 0.75;
}

.icon-dot {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.icon-dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.whatsapp-link { color: var(--green); font-weight: 600; text-decoration: none; }

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  height: 260px;
  border: none;
}

/* FOOTER */
footer.site-footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13.5px;
  color: #9AA5B8;
  text-align: center;
}

/* WHATSAPP FLOATING BUTTON */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  z-index: 999;
  overflow: hidden;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* MAP FLOATING BUTTON */
.map-float {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 58px;
  height: 58px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  z-index: 999;
}

.map-float img {
  width: 30px;
  height: 30px;
}

@media (max-width: 800px) {
  .hero, .history, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .reviews-grid { grid-template-columns: 1fr; }
  nav.main-nav { gap: 16px; font-size: 13px; }

  /* more breathing room from the screen edges on mobile */
  .container { padding: 0 28px; }

  /* Nossa História: show title+image before the text paragraphs on mobile only */
  .history-right { order: 1; }
  .history-text { order: 2; }
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transition: opacity 0.9s ease;
}

.reveal.is-visible {
  opacity: 1;
}

/* GENTLE CONTINUOUS FLOAT */
.float-anim {
  animation: floatY 4.5s ease-in-out infinite;
}

.reveal.float-anim {
  animation-play-state: paused;
}

.reveal.float-anim.is-visible {
  animation-play-state: running;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* HOVER ZOOM */
.zoom-hover {
  overflow: hidden;
}

.zoom-hover img {
  transition: transform 0.6s ease;
}

.zoom-hover:hover img {
  transform: scale(1.045);
}

/* PUBLICATIONS / VIDEOS */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 10px 0 50px;
}

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
}

.video-card video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.video-card p {
  padding: 14px 16px;
  font-size: 14px;
  color: #D9DEE8;
}

.social-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding-bottom: 60px;
}

.social-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--white);
  transition: transform 0.25s ease;
}

.social-card:hover { transform: translateY(-3px); }

.social-card .icon-dot {
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.social-card .label {
  font-weight: 600;
  font-size: 15px;
}

.social-card .handle {
  font-size: 13px;
  color: #9AA5B8;
  margin-top: 2px;
}

@media (max-width: 800px) {
  .videos-grid { grid-template-columns: 1fr; }
  .social-cards { grid-template-columns: 1fr; }
}

/* VIDEO GRID (PUBLICAÇÕES) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-bottom: 20px;
}

.video-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
}

.video-card video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 9/16;
  object-fit: cover;
}

.video-card.landscape video {
  aspect-ratio: 1/1;
}

.video-caption {
  padding: 14px 16px;
  font-size: 14px;
  color: #E4E8F0;
}

.social-links-row {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 40px 0 60px;
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  padding: 14px 26px;
  border-radius: 40px;
  text-decoration: none;
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.2s ease, background 0.2s ease;
}

.social-pill:hover {
  transform: translateY(-2px);
  background: var(--navy-light);
}

@media (max-width: 800px) {
  .video-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .float-anim, .zoom-hover img {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
