/* ===========================================================
   KRS Marcenaria — Design System
   =========================================================== */

:root {
  --navy-900: #0d1f38;
  --navy-800: #17304f;
  --navy-700: #223f63;
  --wood-600: #a9713f;
  --wood-700: #8c5c30;
  --wood-500: #c68f5c;
  --gold-400: #d9a256;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;

  --cream-50: #f9f6f1;
  --cream-100: #f1eadf;
  --cream-200: #e7dcc9;
  --gray-500: #948a7c;
  --gray-600: #6b6255;
  --gray-800: #34302a;
  --gray-900: #211e19;
  --white: #ffffff;

  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(13, 31, 56, 0.08);
  --shadow-md: 0 10px 28px rgba(13, 31, 56, 0.12);
  --shadow-lg: 0 20px 52px rgba(13, 31, 56, 0.18);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
img { object-fit: cover; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.18;
  margin: 0 0 .6em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; color: var(--gray-600); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--cream-50); }
.section--navy { background: linear-gradient(160deg, var(--navy-900), var(--navy-800)); color: var(--white); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy p { color: rgba(255,255,255,.72); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; color: var(--wood-600);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gold-400); display: inline-block; }
.section--navy .eyebrow { color: var(--gold-400); }

.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 15px 28px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: var(--shadow-md); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,.4); color: var(--white); }
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--outline-dark { background: transparent; border-color: var(--cream-200); color: var(--navy-900); }
.btn--outline-dark:hover { border-color: var(--navy-800); background: var(--cream-50); }
.btn--wood { background: var(--wood-600); color: var(--white); }
.btn--wood:hover { background: var(--wood-700); }
.btn--block { width: 100%; }
.btn--sm { padding: 11px 20px; font-size: .85rem; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cream-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(145deg, var(--navy-800), var(--wood-600));
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.02rem; letter-spacing: .01em; flex-shrink: 0;
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: 1.02rem; font-weight: 700; color: var(--navy-900); }
.brand-text span { display: block; font-size: .72rem; color: var(--gray-500); letter-spacing: .06em; text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a { font-family: var(--font-head); font-size: .86rem; font-weight: 500; color: var(--gray-800); position: relative; padding: 6px 0; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold-400); transition: width .2s ease; }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--navy-900); }
.main-nav a.nav-highlight {
  background: var(--navy-900); color: var(--white); padding: 8px 16px; border-radius: 20px; font-size: .82rem;
}
.main-nav a.nav-highlight::after { display: none; }
.main-nav a.nav-highlight:hover { background: var(--wood-600); }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-phone { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--navy-800); }
.header-phone svg { width: 18px; height: 18px; color: var(--wood-600); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--navy-900); }

/* ---------- Hero (photo) ---------- */

.hero-photo {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.hero-photo::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(13,31,56,.94) 30%, rgba(13,31,56,.55) 65%, rgba(13,31,56,.35));
}
.hero-photo .container { position: relative; z-index: 1; }
.hero-photo-inner { max-width: 640px; }
.hero-photo h1 { color: var(--white); }
.hero-photo-sub { font-size: 1.08rem; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 14px 28px; }
.hero-badge { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.88); font-family: var(--font-head); font-weight: 500; }
.hero-badge svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; }

/* ---------- Split (dois públicos) ---------- */

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.split-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 340px;
  display: flex; align-items: flex-end; color: var(--white); box-shadow: var(--shadow-md);
}
.split-card img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.split-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,31,56,.15), rgba(13,31,56,.92)); z-index: 1; }
.split-card-body { position: relative; z-index: 2; padding: 34px; }
.split-card .eyebrow { color: var(--gold-400); }
.split-card h3 { color: var(--white); font-size: 1.5rem; margin-bottom: 10px; }
.split-card p { color: rgba(255,255,255,.82); margin-bottom: 18px; }

/* ---------- Trust bar ---------- */

.trust-bar { background: var(--white); border-bottom: 1px solid var(--cream-200); }
.trust-bar .container { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: space-between; padding-top: 26px; padding-bottom: 26px; }
.trust-item { display: flex; align-items: center; gap: 12px; flex: 1 1 200px; }
.trust-item svg { width: 30px; height: 30px; color: var(--wood-600); flex-shrink: 0; }
.trust-item strong { display: block; font-family: var(--font-head); font-size: .92rem; color: var(--navy-900); }
.trust-item span { font-size: .8rem; color: var(--gray-500); }

/* ---------- Cards grid ---------- */

.grid { display: grid; gap: 28px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--cream-200); border-radius: var(--radius-md);
  padding: 32px 28px; box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-icon {
  width: 56px; height: 56px; border-radius: 14px; background: var(--cream-50);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; color: var(--wood-600);
}
.card-icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { margin-bottom: 0; font-size: .92rem; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--navy-800); }
.card-link svg { width: 15px; height: 15px; transition: transform .15s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

.section--navy .card { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.section--navy .card-icon { background: rgba(255,255,255,.08); color: var(--gold-400); }
.section--navy .card p { color: rgba(255,255,255,.68); }

/* Photo card (serviços grid com foto) */
.photo-card { border-radius: var(--radius-md); overflow: hidden; background: var(--white); border: 1px solid var(--cream-200); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.photo-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.photo-card-img { aspect-ratio: 4/3; overflow: hidden; }
.photo-card-img img { width: 100%; height: 100%; }
.photo-card-body { padding: 22px 24px 26px; }
.photo-card-body h3 { margin-bottom: 8px; font-size: 1.05rem; }
.photo-card-body p { font-size: .9rem; margin-bottom: 14px; }

/* ---------- Process steps ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { position: relative; padding-top: 8px; }
.step-num { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; color: var(--cream-200); line-height: 1; margin-bottom: 12px; }
.step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.step p { font-size: .88rem; margin-bottom: 0; }

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--wood-600), var(--navy-800) 75%);
  border-radius: var(--radius-lg); padding: 52px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; color: var(--white);
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 0; }
.cta-banner-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h4 { color: var(--white); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.footer-grid li { margin-bottom: 10px; font-size: .9rem; }
.footer-grid a:hover { color: var(--white); }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; max-width: 280px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .88rem; }
.footer-contact-item svg { width: 18px; height: 18px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .8rem; color: rgba(255,255,255,.45); }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: rgba(255,255,255,.1); }
.social-row svg { width: 17px; height: 17px; }

/* ---------- WhatsApp floating button ---------- */

.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 60px; height: 60px; border-radius: 50%; background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .45);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; color: var(--white); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: var(--white); padding: 64px 0 56px; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.breadcrumb { font-size: .82rem; color: rgba(255,255,255,.55); margin-bottom: 18px; font-family: var(--font-head); }
.breadcrumb a:hover { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.72); max-width: 620px; margin-bottom: 0; }

.page-hero.page-hero--photo { position: relative; background: none; overflow: hidden; }
.page-hero--photo img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.page-hero--photo::before { content:""; position:absolute; inset:0; background: linear-gradient(100deg, rgba(13,31,56,.93) 35%, rgba(13,31,56,.55)); z-index: 1; }
.page-hero--photo .container { position: relative; z-index: 2; }

/* ---------- Service detail blocks ---------- */

.service-block { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: center; padding: 64px 0; border-bottom: 1px solid var(--cream-200); }
.service-block:last-child { border-bottom: none; }
.service-block:nth-child(even) .service-art { order: 2; }
.service-tag {
  display: inline-block; font-family: var(--font-head); font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--wood-600);
  background: rgba(169,113,63,.1); padding: 6px 12px; border-radius: 20px; margin-bottom: 16px;
}
.service-list { margin: 20px 0 26px; }
.service-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; color: var(--gray-600); margin-bottom: 10px; }
.service-list svg { width: 18px; height: 18px; color: var(--wood-600); flex-shrink: 0; margin-top: 2px; }
.service-art { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.service-art img { width: 100%; height: 100%; }

/* ---------- Portfolio / Projetos ---------- */

.portfolio-note {
  background: var(--cream-50); border: 1px solid var(--cream-200); border-radius: var(--radius-md);
  padding: 18px 22px; font-size: .88rem; color: var(--gray-600); margin-bottom: 48px; display: flex; gap: 12px; align-items: flex-start;
}
.portfolio-note svg { width: 20px; height: 20px; color: var(--wood-600); flex-shrink: 0; margin-top: 1px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-btn {
  font-family: var(--font-head); font-size: .82rem; font-weight: 600; padding: 9px 18px; border-radius: 20px;
  border: 1px solid var(--cream-200); background: var(--white); color: var(--gray-600); cursor: pointer; transition: all .15s ease;
}
.filter-btn:hover { border-color: var(--wood-600); color: var(--wood-600); }
.filter-btn.active { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--cream-200); background: var(--white); box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease; }
.gallery-item:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.gallery-art { aspect-ratio: 4/3; overflow: hidden; }
.gallery-art img { width: 100%; height: 100%; transition: transform .35s ease; }
.gallery-item:hover .gallery-art img { transform: scale(1.06); }
.gallery-body { padding: 18px 20px 22px; }
.gallery-body span { font-family: var(--font-head); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--wood-600); }
.gallery-body h3 { margin: 8px 0 4px; font-size: 1.02rem; }
.gallery-body p { font-size: .86rem; margin: 0; }

/* ---------- About / values ---------- */

.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.about-grid .about-img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.value-row { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--cream-200); }
.value-row:last-child { border-bottom: none; }
.value-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--cream-50); color: var(--wood-600); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.value-icon svg { width: 24px; height: 24px; }
.value-row h3 { margin-bottom: 6px; font-size: 1rem; }
.value-row p { margin: 0; font-size: .9rem; }

/* ---------- FAQ ---------- */

.faq-item { border: 1px solid var(--cream-200); border-radius: var(--radius-md); margin-bottom: 14px; overflow: hidden; background: var(--white); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px;
  background: none; border: none; text-align: left; cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: .98rem; color: var(--navy-900);
}
.faq-question svg { width: 20px; height: 20px; color: var(--wood-600); flex-shrink: 0; transition: transform .2s ease; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 24px; }
.faq-item.open .faq-answer { max-height: 300px; padding: 0 24px 22px; }
.faq-answer p { margin: 0; font-size: .9rem; }

/* ---------- Contact page ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--cream-200); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-family: var(--font-head); font-weight: 600; font-size: .84rem; color: var(--navy-900); margin-bottom: 8px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--cream-200); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .92rem; color: var(--gray-800); background: var(--white); transition: border-color .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--wood-600); }
.form-row textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: .78rem; color: var(--gray-500); margin-top: 20px; text-align: center; }

.contact-info-card { background: var(--navy-900); color: var(--white); border-radius: var(--radius-lg); padding: 36px; }
.contact-info-card h3 { color: var(--white); }
.contact-info-item { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.contact-info-item:last-of-type { border-bottom: none; }
.contact-info-item svg { width: 22px; height: 22px; color: var(--gold-400); flex-shrink: 0; margin-top: 2px; }
.contact-info-item strong { display: block; font-family: var(--font-head); font-size: .9rem; margin-bottom: 3px; }
.contact-info-item span, .contact-info-item a { font-size: .87rem; color: rgba(255,255,255,.7); }

.map-wrap { border-radius: var(--radius-lg); overflow: hidden; margin-top: 48px; border: 1px solid var(--cream-200); box-shadow: var(--shadow-sm); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---------- Lojista highlight tag ---------- */

.tag-b2b {
  display: inline-flex; align-items: center; gap: 8px; background: var(--gold-400); color: var(--navy-900);
  font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 20px; margin-bottom: 16px;
}

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .split-grid { grid-template-columns: 1fr; }
  .about-grid, .service-block, .service-block:nth-child(even) { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-art { order: 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .hero-photo { min-height: 560px; }
}

@media (max-width: 760px) {
  .main-nav, .header-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .site-header.open .main-nav {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--white);
    flex-direction: column; align-items: flex-start; padding: 20px 24px 26px; gap: 16px;
    border-bottom: 1px solid var(--cream-200); box-shadow: var(--shadow-md);
  }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; }
  .section { padding: 60px 0; }
  .trust-bar .container { justify-content: flex-start; }
  .hero-photo { min-height: 500px; padding: 40px 0; }
}
