/* ==========================================================================
   MARBK & IRMÃOS, LDA — Static Version
   Bootstrap 5 + jQuery
   Design System (mirrors React version)
   ========================================================================== */

:root {
  /* Brand colors (replicated from React design tokens) */
  --brand: #f37021;
  --brand-2: #d65a14;
  --brand-foreground: #ffffff;
  --ink: #1f2530;
  --ink-soft: #2d3340;

  --background: #ffffff;
  --foreground: #1f2530;
  --muted: #f4f5f7;
  --muted-foreground: #6b7280;
  --secondary: #f7f8fa;
  --accent: #fef1e6;
  --border: #e6e8ec;

  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;

  --shadow-elegant: 0 20px 60px -20px rgba(31, 37, 48, 0.25);
  --shadow-brand: 0 12px 40px -12px rgba(243, 112, 33, 0.45);

  --gradient-brand: linear-gradient(135deg, #f37021 0%, #d65a14 100%);
  --gradient-ink: linear-gradient(180deg, rgba(40,48,62,0.85) 0%, rgba(22,28,40,0.95) 100%);

  --font-display: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
}

/* ----- Base ----- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 0;
}

a { color: inherit; text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; display: block; }

/* ----- Buttons ----- */
.btn-brand {
  background: var(--gradient-brand);
  color: var(--brand-foreground) !important;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-brand);
  transition: transform .25s ease, filter .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.btn-brand:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  color: var(--brand-foreground) !important;
}
.btn-brand.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.85rem; }

.btn-outline-light-brand {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .25s ease;
  display: inline-block;
}
.btn-outline-light-brand:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* ----- Eyebrow + Section Title ----- */
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.75rem;
}
.eyebrow-light { color: #f9a06b; }

.section-title {
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 1rem 0;
}
.section-title-light { color: #fff; }

.section { padding: 6rem 0; }
.section-muted { background: var(--secondary); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }

/* ----- Navigation ----- */
.navbar-marbk {
  position: sticky;
  top: 0;
  z-index: 1050;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s ease;
}
.navbar-marbk.scrolled { box-shadow: 0 6px 20px -10px rgba(31,37,48,0.15); }
.navbar-marbk .navbar-brand-marbk {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.navbar-marbk .navbar-brand-marbk img {
  height: 48px;
  width: 48px;
  object-fit: contain;
}
.navbar-marbk .brand-text-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
}
.navbar-marbk .brand-text-tag {
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  color: var(--muted-foreground);
  margin-top: 2px;
}
.navbar-marbk .nav-link {
  color: rgba(31,37,48,0.8) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.85rem !important;
}
.navbar-marbk .nav-link:hover { color: var(--brand) !important; }

/* ----- Hero Slider ----- */
.hero-slider {
  position: relative;
  height: 78vh;
  min-height: 560px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide.active img { animation: kenburns 8s ease-out forwards; }
@keyframes kenburns {
  from { transform: scale(1.05); }
  to   { transform: scale(1.18); }
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-ink);
}
.hero-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 0 1.5rem;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  line-height: 1.05;
  max-width: 56rem;
  color: #fff;
  margin: 0;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,0.85);
  max-width: 38rem;
  margin: 1.5rem auto 0;
}
.hero-actions {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .25s ease;
  backdrop-filter: blur(6px);
}
.hero-arrow:hover { background: rgba(255,255,255,0.22); color: #fff; }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }
@media (min-width: 768px) {
  .hero-arrow.prev { left: 2rem; }
  .hero-arrow.next { right: 2rem; }
}

.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}
.hero-dot {
  width: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
  padding: 0;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.active { width: 40px; background: var(--brand); }

.fade-up { animation: fadeUp .8s ease both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ----- Trust Strip ----- */
.trust-strip {
  background: var(--secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.trust-item { text-align: center; padding: 0.5rem 0; }
.trust-num {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.trust-label {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-top: 0.35rem;
}

/* ----- Cards ----- */
.card-soft {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  height: 100%;
}
.card-soft:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elegant);
  border-color: rgba(243, 112, 33, 0.35);
}
.service-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--gradient-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.service-title {
  margin-top: 1.25rem;
  font-size: 1.2rem;
  font-weight: 600;
}
.service-desc {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ----- About ----- */
.about-img-wrap {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-elegant);
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  max-width: 220px;
  box-shadow: var(--shadow-elegant);
}
.about-badge .badge-icon { color: var(--brand); margin-bottom: 0.5rem; }
.about-badge .badge-title { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.about-badge .badge-sub { font-size: 0.75rem; color: var(--muted-foreground); margin-top: 0.25rem; }

.check-list { list-style: none; padding: 0; margin: 2rem 0 0 0; }
.check-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}
.check-list svg { color: var(--brand); flex-shrink: 0; margin-top: 2px; }

/* ----- Porquê ----- */
.why-grid img {
  border-radius: var(--radius-xl);
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}
.why-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.why-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.why-title { font-weight: 600; color: var(--ink); }
.why-desc { font-size: 0.9rem; color: var(--muted-foreground); margin-top: 0.25rem; }

/* ----- Processo ----- */
.process-card {
  padding: 1.75rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  transition: background .25s ease;
  height: 100%;
}
.process-card:hover { background: rgba(255,255,255,0.1); }
.process-num {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
}
.process-title { color: #fff; font-weight: 600; margin-top: 0.75rem; font-size: 1.1rem; }
.process-desc { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-top: 0.5rem; }

/* ----- Contacto ----- */
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.contact-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--gradient-brand);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.contact-label { font-size: 0.85rem; color: var(--muted-foreground); }
.contact-value { font-weight: 600; color: var(--ink); }

.form-marbk label { font-size: 0.9rem; font-weight: 500; color: var(--ink); margin-bottom: 0.5rem; display: block; }
.form-marbk .form-control,
.form-marbk .form-control:focus {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: #fff;
  font-size: 0.95rem;
  box-shadow: none;
  transition: border-color .25s ease;
}
.form-marbk .form-control:focus { border-color: var(--brand); }
.form-marbk textarea.form-control { resize: none; }
.form-note {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  text-align: center;
  margin-top: 0.75rem;
}

/* ----- Footer ----- */
.footer-marbk {
  background: var(--secondary);
  border-top: 1px solid var(--border);
}
.footer-marbk .footer-top { padding: 3.5rem 0; }
.footer-marbk .footer-title {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.footer-marbk ul { list-style: none; padding: 0; margin: 0; }
.footer-marbk ul li { font-size: 0.9rem; color: var(--muted-foreground); margin-bottom: 0.5rem; }
.footer-marbk ul li a:hover { color: var(--brand); }
.footer-marbk .footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

/* ----- Reveal on Scroll ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ----- Utilities ----- */
.text-brand { color: var(--brand) !important; }
.bg-brand { background: var(--brand) !important; }
.text-ink { color: var(--ink) !important; }
.text-muted-soft { color: var(--muted-foreground) !important; }
.divider-sm { width: 60px; height: 3px; background: var(--brand); border-radius: 999px; margin: 1rem 0; }

/* ----- Responsive tweaks ----- */
@media (max-width: 768px) {
  .section { padding: 4rem 0; }
  .about-badge { display: none; }
  .hero-actions .btn-brand, .hero-actions .btn-outline-light-brand { width: 100%; text-align: center; justify-content: center; }
}
