/* ==========================================================================
   Quality Decorações — Design System
   ========================================================================== */

@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-italic-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-italic-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --color-brand: #980E1A;
  --color-brand-dark: #730A14;
  --color-brand-tint: #F7E7E5;
  --color-bg: #FAF6F0;
  --color-surface: #F3ECE2;
  --color-surface-alt: #EFE6D8;
  --color-text: #2A2422;
  --color-text-muted: #756B62;
  --color-border: #E4DBCD;
  --color-brass: #B08D57;
  --color-brass-dark: #8E6F40;
  --color-white: #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, Segoe UI, Roboto, sans-serif;

  --container: 1240px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --shadow-soft: 0 12px 32px -16px rgba(42, 36, 34, 0.25);
  --shadow-card: 0 18px 44px -22px rgba(42, 36, 34, 0.35);
  --transition: 280ms cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--color-text);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p { margin: 0 0 1em; color: var(--color-text-muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-brass-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .6em;
  margin-bottom: .9em;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--color-brass);
}

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

section { padding: 88px 0; }
@media (max-width: 720px) {
  section { padding: 56px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  border: 1px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-brand);
  color: var(--color-white);
  box-shadow: 0 10px 24px -10px rgba(152,14,26,.55);
}
.btn-primary:hover { background: var(--color-brand-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover { border-color: var(--color-brand); color: var(--color-brand); }
.btn-light {
  background: rgba(255,255,255,.92);
  color: var(--color-text);
}
.btn-light:hover { background: var(--color-white); }
.btn-sm { padding: 10px 20px; font-size: .82rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -16px rgba(42,36,34,.25);
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; transition: filter var(--transition); }
.site-header:not(.is-scrolled):not(.is-solid) .brand img.on-dark { filter: brightness(0) invert(1); }
.brand img.on-light { display: none; }
.site-header.is-scrolled .brand img.on-dark,
.site-header.is-solid .brand img.on-dark { display: none; }
.site-header.is-scrolled .brand img.on-light,
.site-header.is-solid .brand img.on-light { display: block; filter: none; }

.main-nav { display: flex; align-items: center; gap: 36px; }
.main-nav a {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  position: relative;
  padding: 4px 0;
  color: var(--color-text);
}
.site-header:not(.is-scrolled):not(.is-solid) .main-nav a { color: var(--color-white); }
.main-nav a.active::after,
.main-nav a:hover::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--color-brass);
}
.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 11px 22px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: currentColor;
  transition: var(--transition);
}
.site-header:not(.is-scrolled):not(.is-solid) .nav-toggle { color: var(--color-white); }
.nav-toggle span { top: 19px; }
.nav-toggle span::before { content: ''; top: -7px; }
.nav-toggle span::after { content: ''; top: 7px; }

@media (max-width: 880px) {
  .main-nav { position: fixed; inset: 0; top: 0; background: var(--color-bg); flex-direction: column; justify-content: center; transform: translateX(100%); transition: transform var(--transition); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { color: var(--color-text) !important; font-size: 1.3rem; }
  .nav-toggle {
    display: block;
    color: var(--color-brand) !important;
    z-index: 110;
    background: rgba(255,255,255,.95);
    border-radius: 999px;
    box-shadow: 0 4px 16px -4px rgba(42,36,34,.35);
  }
  body.nav-open .nav-toggle { background: var(--color-bg); box-shadow: none; }
  body.nav-open .nav-toggle span { background: transparent; }
  body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
  body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }
  .header-actions .btn-outline { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,16,14,.55) 0%, rgba(20,16,14,.35) 45%, rgba(20,16,14,.75) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; }
.hero-content .eyebrow { color: var(--color-brass); }
.hero-content .eyebrow::before { background: var(--color-brass); }
.hero-content h1 { color: var(--color-white); max-width: 16ch; }
.hero-content p { color: rgba(255,255,255,.82); max-width: 46ch; font-size: 1.08rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 32px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  z-index: 2; color: rgba(255,255,255,.75);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
}
.scroll-cue .line { width: 1px; height: 34px; background: rgba(255,255,255,.5); animation: scrollcue 1.8s ease-in-out infinite; }
@keyframes scrollcue { 0%,100% { transform: scaleY(.4); opacity: .4; } 50% { transform: scaleY(1); opacity: 1; } }

.page-hero {
  min-height: 56vh;
  display: flex;
  align-items: center;
  position: relative;
  color: var(--color-white);
  overflow: hidden;
}
.page-hero .hero-content { padding-top: 70px; }

/* ---------- Brands strip ---------- */
.brands-strip { background: var(--color-text); color: var(--color-white); padding: 46px 0; }
.brands-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.brands-strip .eyebrow { color: var(--color-brass); margin: 0; }
.brands-list { display: flex; flex-wrap: wrap; gap: 34px; align-items: baseline; }
.brands-list span { font-family: var(--font-display); font-size: 1.25rem; opacity: .92; }

/* ---------- Sections / grids ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split.reverse .split-media { order: -1; }
}
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); width: 100%; height: 100%; object-fit: cover; }
.split-media { position: relative; }
.split-media .frame-accent {
  position: absolute; inset: -16px -16px auto auto;
  width: 60%; height: 60%;
  border: 1px solid var(--color-brass);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: none;
  padding: 0;
  text-align: left;
  display: block;
  width: 100%;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}
.project-card:hover { transform: translateY(-6px); }
.project-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--color-surface-alt); }
.project-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms ease; }
.project-card:hover .thumb img { transform: scale(1.07); }
.project-card .thumb.empty { display: flex; align-items: center; justify-content: center; }
.project-card .thumb.empty span {
  font-family: var(--font-display); font-size: 3rem; color: var(--color-brass);
  width: 86px; height: 86px; border: 1px solid var(--color-brass); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.project-card .info { padding: 22px 24px 26px; }
.project-card .info h3 { margin-bottom: .3em; }
.project-card .info .tag { color: var(--color-brass-dark); font-size: .82rem; font-weight: 600; letter-spacing: .03em; }
.project-card .view-link { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--color-brand); letter-spacing: .03em; }
.project-card .view-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.project-card:hover .view-link svg { transform: translateX(4px); }

/* ---------- Product cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 720px) { .products-grid { grid-template-columns: 1fr; } }
.product-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}
.product-card .thumb { aspect-ratio: 4/3; background: var(--color-surface); position: relative; overflow: hidden; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-surface-alt) 100%);
  border-bottom: 1px solid var(--color-border);
}
.product-card .thumb.placeholder svg { width: 64px; height: 64px; color: var(--color-brass); }
.product-card .thumb.placeholder span { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-text-muted); font-weight: 600; }
.product-card .body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.product-card .price-tag { font-size: .8rem; letter-spacing: .04em; color: var(--color-brand); font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.product-card .body p { flex: 1; }
.product-card .body .btn { margin-top: 8px; align-self: flex-start; }

/* ---------- About founder block ---------- */
.founder-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--color-border);
}
.founder-card .name { font-family: var(--font-display); font-size: 1.3rem; }
.founder-card .role { color: var(--color-brass-dark); font-size: .85rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }

.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--color-text);
  border-left: 2px solid var(--color-brass);
  padding-left: 28px;
  margin: 0;
}

/* ---------- Timeline / stats ---------- */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
@media (max-width: 720px) { .stats-row { grid-template-columns: 1fr; } }
.stat { text-align: center; padding: 28px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--color-brand); display: block; }
.stat .label { font-size: .85rem; color: var(--color-text-muted); margin-top: 4px; }

.brands-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; margin-top: 48px; }
@media (max-width: 720px) { .brands-cols { grid-template-columns: 1fr; } }
.brands-group { padding: 32px 28px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); }
.brands-group h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-brand); margin: 0 0 18px; }
.brands-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 12px; }
.brands-list li { font-size: .95rem; color: var(--color-text); padding: 8px 16px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-soft, transparent); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 22px; margin-top: 28px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .ico {
  width: 44px; height: 44px; border-radius: 50%; background: var(--color-brand-tint); color: var(--color-brand);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list a { font-weight: 600; }
.contact-list a:hover { color: var(--color-brand); }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-text); color: rgba(255,255,255,.8); padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.12); }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer .brand img { height: 30px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.site-footer h4 { color: var(--color-white); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; font-family: var(--font-body); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a:hover { color: var(--color-brass); }
.social-row { display: flex; gap: 12px; margin-top: 18px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-row a:hover { background: var(--color-brass); border-color: var(--color-brass); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: .82rem; flex-wrap: wrap; gap: 10px; }
.footer-bottom a:hover { color: var(--color-brass); }

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
  position: fixed; bottom: 26px; right: 26px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 28px -10px rgba(0,0,0,.4);
  transition: transform var(--transition);
}
.float-whatsapp:hover { transform: scale(1.08); }
.float-whatsapp svg { width: 30px; height: 30px; }

/* ---------- Lightbox / dialog ---------- */
.lightbox { padding: 0; border: none; border-radius: var(--radius-lg); max-width: 980px; width: 92vw; background: var(--color-bg); }
.lightbox::backdrop { background: rgba(20,16,14,.78); backdrop-filter: blur(2px); }
.lightbox-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 28px 0; }
.lightbox-head .tag { color: var(--color-brass-dark); font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lightbox-close { background: none; border: none; width: 36px; height: 36px; color: var(--color-text); }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-stage { position: relative; aspect-ratio: 16/10; background: var(--color-surface-alt); margin: 16px 28px 0; border-radius: var(--radius-md); overflow: hidden; }
.lightbox-stage img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-stage .lb-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--color-text-muted); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.85); border: none; display: flex; align-items: center; justify-content: center; }
.lightbox-nav svg { width: 20px; height: 20px; }
.lightbox-nav.prev { left: 14px; }
.lightbox-nav.next { right: 14px; }
.lightbox-counter { position: absolute; bottom: 12px; right: 16px; background: rgba(20,16,14,.55); color: #fff; font-size: .75rem; padding: 4px 10px; border-radius: 999px; }
.lightbox-body { padding: 22px 28px 30px; max-height: 32vh; overflow-y: auto; }
.lightbox-body h3 { margin-bottom: 4px; }
.lightbox-body p { white-space: pre-line; }

/* ---------- Misc ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--color-brand) 0%, var(--color-brand-dark) 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--color-white); margin-bottom: .2em; }
.cta-band p { color: rgba(255,255,255,.82); margin: 0; }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 700ms ease, transform 700ms ease; }
.fade-up.is-visible { opacity: 1; transform: translateY(0); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 12px; top: 12px; background: var(--color-brand); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 200; }
