/* ============================================================
   MARIARTY — Persianas & Cortinas
   Design tokens
   ============================================================ */

:root {
  --ivory: #F6F1E6;
  --ivory-deep: #EFE7D6;
  --ink: #201A14;
  --ink-soft: #59503f;
  --gold: #B98A34;
  --gold-light: #E7C783;
  --gold-dim: rgba(185, 138, 52, 0.22);
  --panel-dark: #1B1712;
  --panel-dark-soft: #2A241C;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1180px;
  --radius: 2px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }

.italic { font-style: italic; font-weight: 400; }

p { margin: 0; color: var(--ink-soft); }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--panel-dark);
  border-bottom: 1px solid rgba(231, 199, 131, 0.18);
}
header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  max-width: var(--container);
  margin: 0 auto;
}
header.site .brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ivory);
}
.brand img { height: 48px; width: auto; }
header.site .brand img { height: 56px; width: auto; }
header.site .brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 500;
}
nav.site-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
nav.site-nav a { color: rgba(246,241,230,0.75); transition: color 0.2s; }
nav.site-nav a:hover { color: var(--gold-light); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-whats {
  background: var(--whatsapp);
  color: #fff;
}
.btn-whats:hover { background: var(--whatsapp-dark); }
.btn-ghost {
  border-color: var(--gold);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--gold-dim); }
.btn svg { width: 17px; height: 17px; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 56px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy p.lead {
  margin-top: 20px;
  font-size: 1.08rem;
  max-width: 46ch;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
}
.hero-badges span {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-badges span::before {
  content: "";
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
}
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: -22px;
  bottom: -22px;
  border: 1px solid var(--gold);
  opacity: 0.55;
  z-index: -1;
}
.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(27,23,18,0.35), 0 10px 24px -10px rgba(27,23,18,0.25);
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,23,18,0) 55%, rgba(27,23,18,0.45) 100%);
}
.hero-media .frame-tag {
  position: absolute;
  bottom: 18px; left: 18px;
  z-index: 2;
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Section shell ---------- */
section { padding: 76px 0; scroll-margin-top: 84px; }
#home { scroll-margin-top: 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 44px;
}
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 16px; font-size: 1.02rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Product grid ---------- */
.grid-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card-product {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-dark);
  aspect-ratio: 3 / 4;
}
.card-product img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card-product:hover img { transform: scale(1.06); }
.card-product .veil {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,23,18,0) 40%, rgba(20,17,13,0.88) 100%);
}
.card-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  background: var(--gold);
  color: var(--panel-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.card-product .info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px;
  color: #fff;
}
.card-product .info .eyebrow { color: var(--gold-light); }
.card-product .info h3 {
  color: #fff;
  margin-top: 6px;
  font-size: 1.28rem;
}
.card-product .info .see-more {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.9;
}
.card-product .pleat-hover {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  padding: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card-product:hover .pleat-hover { opacity: 1; }
.card-product .pleat-hover span {
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(231,199,131,0.5), rgba(231,199,131,0));
}

/* ---------- Serviços (conserto e lavagem) ---------- */
.servicos {
  background: var(--gold);
  padding: 56px 0;
}
.servicos-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.servicos-text { max-width: 620px; }
.servicos .eyebrow { color: var(--panel-dark); opacity: 0.75; }
.servicos-text h2 {
  color: var(--panel-dark);
  margin-top: 8px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}
.servicos-text p { color: rgba(27,23,18,0.72); margin-top: 14px; font-size: 15px; }
.servicos-cta {
  background: var(--panel-dark);
  color: var(--ivory);
  flex-shrink: 0;
  white-space: nowrap;
}
.servicos-cta:hover { background: #000; }
@media (max-width: 700px) {
  .servicos-inner { flex-direction: column; align-items: flex-start; }
  .servicos-cta { width: 100%; justify-content: center; }
}

/* ---------- Diferenciais ---------- */
.diferenciais {
  background: var(--panel-dark);
  color: var(--ivory);
  position: relative;
}
.dif-split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: center;
}
.dif-visual {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.dif-visual img { width: 100%; height: 100%; object-fit: cover; }
.dif-visual::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(231,199,131,0.35);
  outline: 1px solid rgba(0,0,0,0.2);
  outline-offset: -14px;
  pointer-events: none;
}
.dif-content .eyebrow { color: var(--gold-light); }
.dif-content h2 { color: var(--ivory); font-weight: 500; margin-top: 10px; }
.dif-content h2 .italic { color: var(--gold-light); }
.dif-list {
  margin-top: 46px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.dif-row {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  padding-top: 30px;
  border-top: 1px solid rgba(231,199,131,0.16);
}
.dif-row:first-child { border-top: none; padding-top: 0; }
.dif-index {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--gold-light);
  flex-shrink: 0;
  width: 48px;
  line-height: 1;
}
.dif-row h3 {
  color: var(--ivory);
  font-size: 1.28rem;
  font-weight: 500;
}
.dif-row p {
  margin-top: 10px;
  color: rgba(246,241,230,0.6);
  font-size: 14.5px;
  line-height: 1.75;
  max-width: 42ch;
}

/* ---------- Sobre / Localização ---------- */
.sobre .wrap {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}
.sobre-info dl {
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}
.sobre-info dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
}
.sobre-info dd {
  margin: 4px 0 0;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
}
.sobre-media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
.sobre-media img { width: 100%; height: 100%; object-fit: cover; }
.sobre-media.map-embed iframe { display: block; filter: grayscale(0.15) contrast(1.02); }
.map-click-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27,23,18,0);
  transition: background 0.2s ease;
  cursor: pointer;
}
.map-click-overlay:hover {
  background: rgba(27,23,18,0.08);
}
.map-click-overlay::after {
  content: "Como chegar →";
  position: absolute;
  bottom: 16px; right: 16px;
  background: var(--panel-dark);
  color: var(--ivory);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.map-click-overlay:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--panel-dark);
  color: var(--ivory);
  padding: 56px 0 28px;
}
footer.site .foot-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
footer.site .brand { color: var(--ivory); }
footer.site .brand small { color: rgba(246,241,230,0.55); }
footer.site p.tag {
  margin-top: 14px;
  font-size: 14px;
  color: rgba(246,241,230,0.65);
  max-width: 32ch;
}
footer.site h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin: 0 0 16px;
  font-weight: 600;
}
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer.site a.flink { color: rgba(246,241,230,0.78); font-size: 14px; }
footer.site a.flink:hover { color: var(--gold-light); }
.foot-bottom {
  border-top: 1px solid rgba(246,241,230,0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: rgba(246,241,230,0.5);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Floating WhatsApp ---------- */
.float-whats {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}
.float-whats:hover { transform: scale(1.06); }
.float-whats svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Product detail page ---------- */
.pd-hero {
  padding: 44px 0 0;
}
.pd-breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 18px;
}
.pd-breadcrumb a { color: var(--gold); }
.pd-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.pd-head p { margin-top: 14px; max-width: 56ch; }

.variant-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.variant-tab {
  padding: 10px 18px;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  background: transparent;
  transition: all 0.2s ease;
}
.variant-tab.active,
.variant-tab:hover {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}

.variant-panel { display: none; }
.variant-panel.active { display: block; }

.variant-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-dark);
  margin-bottom: 14px;
  position: relative;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(20,17,13,0.55);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.gallery-arrow:hover { background: var(--gold); color: var(--panel-dark); }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }
.gallery-main img, .gallery-main video {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: none;
}
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img, .gallery-thumbs video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs .play-badge {
  position: relative;
}
.gallery-thumbs .play-badge::after {
  content: "▶";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px;
  background: rgba(0,0,0,0.25);
}

.variant-info { position: sticky; top: 100px; }
.variant-info .price-note {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.variant-info .specs {
  margin: 26px 0;
  display: grid;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}
.variant-info .specs div { display: flex; justify-content: space-between; font-size: 14px; }
.variant-info .specs dt { color: var(--ink-soft); }
.variant-info .specs dd { margin: 0; font-weight: 600; }
.variant-info .btn { width: 100%; justify-content: center; padding: 15px 22px; font-size: 15px; }

.related {
  background: var(--ivory-deep);
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-media { aspect-ratio: 4/3; }
  .grid-products { grid-template-columns: repeat(2, 1fr); }
  .dif-split { grid-template-columns: 1fr; gap: 36px; }
  .dif-visual { aspect-ratio: 16/10; }
  .sobre .wrap { grid-template-columns: 1fr; }
  .sobre-info dd { white-space: normal; }
  footer.site .foot-top { grid-template-columns: 1fr; }
  .variant-layout { grid-template-columns: 1fr; }
  .variant-info { position: static; }
  nav.site-nav { display: none; }
}
@media (max-width: 620px) {
  .grid-products { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
}
