/* ============================================================
   TOLDOS MIRANDA – style.css
   Paleta: Azul escuro #1a2a4a · Cinza #f4f5f7 · Branco #ffffff
           Amarelo âncora #f5a623 · Azul médio #2c5282
   Fontes: Barlow (corpo) · Barlow Condensed (títulos)
============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #1a2a4a;
  --blue:   #2c5282;
  --amber:  #f5a623;
  --amber2: #e09310;
  --gray-bg:#f4f5f7;
  --gray-mid:#dde1e8;
  --gray-text:#5a6475;
  --white:  #ffffff;
  --dark-mid:#1e3560;

  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;

  --radius: 10px;
  --shadow: 0 4px 24px rgba(26,42,74,.12);
  --shadow-hover: 0 8px 36px rgba(26,42,74,.2);
  --transition: .25s ease;

  --section-pad: 80px;
  --container: 1160px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── CONTAINER ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── SECTIONS ── */
.section { padding: var(--section-pad) 0; }
.section--light  { background: var(--gray-bg); }
.section--dark   { background: var(--navy); color: var(--white); }
.section--mid    { background: var(--dark-mid); color: var(--white); }

.section__header { text-align: center; margin-bottom: 52px; }
.section__title  {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}
.section--dark .section__title,
.section--mid  .section__title { color: var(--white); }

.section__desc { color: var(--gray-text); font-size: 1.05rem; max-width: 600px; margin-inline: auto; }
.section__desc--light { color: rgba(255,255,255,.75); }

/* ── EYEBROW ── */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(245,166,35,.12);
  padding: 4px 12px;
  border-radius: 40px;
  margin-bottom: 14px;
}
.eyebrow--dark {
  color: var(--blue);
  background: rgba(44,82,130,.1);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--amber);
  color: var(--navy);
}
.btn--primary:hover { background: var(--amber2); }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.6);
}
.btn--outline:hover { background: rgba(255,255,255,.12); border-color: var(--white); }

.btn--whatsapp {
  background: #25d366;
  color: var(--white);
}
.btn--whatsapp:hover { background: #1da855; }
.btn--whatsapp svg { width: 20px; height: 20px; fill: var(--white); }

.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--full { width: 100%; justify-content: center; }

.btn__icon { width: 18px; height: 18px; fill: currentColor; }

/* ── HEADER ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(26,42,74,.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  transition: box-shadow var(--transition);
}
.header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.3); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

/* LOGO */
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--white);
  flex-shrink: 0;
  text-decoration: none;
}
.logo__icon { font-size: 1.4rem; color: var(--amber); }
.logo__text  { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; letter-spacing: .02em; }
.logo__text strong { color: var(--amber); font-weight: 800; }
.logo--light .logo__text { color: var(--white); }

/* NAV */
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  display: block;
  padding: 8px 12px;
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  font-weight: 500;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav__link.active { color: var(--amber); }

.header__whatsapp { font-size: .84rem; padding: 9px 16px; margin-left: 8px; }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 68px;
  overflow: hidden;
  color: var(--white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(26,42,74,.93) 0%, rgba(26,42,74,.7) 60%, rgba(26,42,74,.5) 100%),
    /* Placeholder: substitua pela URL de uma foto real de toldo */
    url('Imagens/Fundo2.jpeg') center/cover no-repeat;
  /* Cor de fallback enquanto a imagem carrega */
  background-color: var(--navy);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  padding-block: 80px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin-bottom: 20px;
}
.hero__title em { color: var(--amber); font-style: normal; }

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin-bottom: 36px;
}

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero__badges { display: flex; gap: 10px; flex-wrap: wrap; }
.badge {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 5px 14px;
  border-radius: 40px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.5);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero__scroll svg { width: 20px; height: 20px; fill: currentColor; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-mid);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }

.card__icon { font-size: 2.2rem; line-height: 1; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.card__text { color: var(--gray-text); font-size: .93rem; flex: 1; }
.card__link {
  color: var(--blue);
  font-weight: 700;
  font-size: .87rem;
  letter-spacing: .03em;
  margin-top: 6px;
  transition: color var(--transition), gap var(--transition);
  display: inline-block;
}
.card__link:hover { color: var(--amber2); }

/* ── DIFERENCIAIS ── */
.diferenciais {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
}

.diferencial {
  display: flex;
  gap: 20px;
  padding: 36px 32px;
  background: rgba(255,255,255,.04);
  transition: background var(--transition);
}
.diferencial:hover { background: rgba(255,255,255,.09); }

.diferencial__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  flex-shrink: 0;
  opacity: .9;
}
.diferencial__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}
.diferencial__text { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ── GALERIA ── */
.galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}
.galeria__item { position: relative; border-radius: var(--radius); overflow: hidden; }
.galeria__item--wide { grid-column: span 2; }

.galeria__img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.galeria__item:hover .galeria__img { transform: scale(1.05); }

/* Placeholder gradients (substitua por url() com imagens reais) */
/* DepFlorida.jpg — toldo no centro-baixo da foto */
.galeria__img--1 {
  background-image: url('Imagens/DepFlorida.jpg');
  background-size: 110%;
  background-position: center 60%;
}

/* FogoSamba.jpg — toldo no topo, centralizado */
.galeria__img--2 {
  background-image: url('Imagens/FogoSamba.jpg');
  background-size: cover;
  background-position: center 15%;
}

/* Modelo1.jpg — cobertura policarbonato, parte superior */
.galeria__img--3 {
  background-image: url('Imagens/Modelo1.jpg');
  background-size: cover;
  background-position: center 15%;
}

/* Modelo2.jpg — cobertura larga, focar no painel superior */
.galeria__img--4 {
  background-image: url('Imagens/Modelo2.jpg');
  background-size: 90%;
  background-position: center 20%;
}

/* Modelo3.jpg — toldo semicircular na porta, centro-topo */
.galeria__img--5 {
  background-image: url('Imagens/Modelo3.jpg');
  background-size: cover;
  background-position: center 12%;
}

/* Modelo4.jpg — área gourmet, recuar para ver tudo */
.galeria__img--6 {
  background-image: url('Imagens/Modelo4.jpg');
  background-size: cover;
  background-position: center 30%;
}

.galeria__caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(26,42,74,.85), transparent);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  padding: 20px 14px 12px;
  opacity: 0;
  transition: opacity var(--transition);
}
.galeria__item:hover .galeria__caption { opacity: 1; }

.galeria__note {
  text-align: center;
  margin-top: 20px;
  color: var(--gray-text);
  font-size: .9rem;
}
.galeria__note a { color: var(--blue); font-weight: 600; }
.galeria__note a:hover { color: var(--amber2); }

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

.depo {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background var(--transition), transform var(--transition);
}
.depo:hover { background: rgba(255,255,255,.12); transform: translateY(-4px); }

.depo__stars { color: var(--amber); font-size: 1.1rem; letter-spacing: 2px; }
.depo__text { color: rgba(255,255,255,.85); font-size: .93rem; flex: 1; line-height: 1.7; }

.depo__author { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.depo__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy);
  font-weight: 700;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.depo__name { display: block; font-weight: 700; color: var(--white); font-size: .9rem; }
.depo__location { font-size: .78rem; color: rgba(255,255,255,.55); }

/* ── CTA BAND ── */
.cta-band {
  padding: 70px 0;
  background: linear-gradient(135deg, var(--amber) 0%, #e8990a 100%);
  color: var(--navy);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
}
.cta-band__sub { font-size: .95rem; opacity: .8; max-width: 560px; }
.cta-band .btn--primary {
  background: var(--navy);
  color: var(--white);
  flex-shrink: 0;
}
.cta-band .btn--primary:hover { background: var(--blue); }

/* ── FORMULÁRIO ── */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}
.form-info .section__title { text-align: left; }
.form-info p { color: var(--gray-text); margin-bottom: 24px; }
.form-info__list { display: flex; flex-direction: column; gap: 8px; }
.form-info__list li { color: var(--gray-text); font-size: .9rem; }

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-mid);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: .84rem; font-weight: 600; color: var(--navy); }
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-mid);
  border-radius: 6px;
  font: inherit;
  font-size: .93rem;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(44,82,130,.12);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: .78rem; color: var(--gray-text); text-align: center; }

/* ── FOOTER ── */
.footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__tagline { font-size: .88rem; margin: 14px 0 20px; line-height: 1.6; }
.footer__heading {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer__nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a { font-size: .87rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer__nav a:hover { color: var(--amber); }
.footer__region p { font-size: .87rem; line-height: 1.7; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 0;
  margin-top: 0;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}

/* ── BOTÃO FLUTUANTE WHATSAPP ── */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.float-whatsapp svg { width: 30px; height: 30px; fill: var(--white); }
.float-whatsapp:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,.6); }

.float-whatsapp__tooltip {
  position: absolute;
  right: 68px;
  background: var(--navy);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
.float-whatsapp:hover .float-whatsapp__tooltip { opacity: 1; transform: translateX(0); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Logo imagem */
.logo__img {
  height: 48px;
  width: auto;
  border-radius: 6px;
  /* Remove o fundo branco visualmente no header escuro */
  mix-blend-mode: lighten;
}

/* ── RESPONSIVE ── */

/* Tablet */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .diferenciais { grid-template-columns: 1fr; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
  .galeria__item--wide { grid-column: span 2; }
  .depoimentos { grid-template-columns: 1fr; gap: 16px; }
  .form-wrap { grid-template-columns: 1fr; gap: 36px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  /* Header mobile */
  .nav {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 24px 20px 32px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform .3s ease, opacity .3s ease;
    pointer-events: none;
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid rgba(255,255,255,.07); }
  .header__whatsapp { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; justify-content: center; }

  /* Cards */
  .cards { grid-template-columns: 1fr; }

  /* Galeria */
  .galeria { grid-template-columns: 1fr; }
  .galeria__item--wide { grid-column: span 1; }

  /* Footer */
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* CTA band */
  .cta-band__text { text-align: center; }

  /* Form */
  .form-card { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .hero__badges { flex-direction: column; }
  .float-whatsapp { bottom: 20px; right: 16px; width: 52px; height: 52px; }
  .float-whatsapp svg { width: 26px; height: 26px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
