/* ============================================================
   PPGT — Pires de Paula, Guergolet & Terra — style.css
   Paleta: #E6E6E6 (fundo) · #660000 (Bordô) · #1A1A1A (Antracite)
   Tipografia: Cinzel (títulos) · Montserrat (corpo)
   Mobile-First · Sem frameworks externos
   ============================================================ */

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  --bg:           #E6E6E6;
  --bg-section:   #DCDCDC;
  --bg-card:      #ECECEC;
  --bg-white:     #F4F4F4;

  --text:         #1A1A1A;
  --text-60:      rgba(26, 26, 26, 0.62);
  --text-30:      rgba(26, 26, 26, 0.30);
  --text-12:      rgba(26, 26, 26, 0.12);
  --text-06:      rgba(26, 26, 26, 0.06);

  --accent:       #660000;
  --accent-dark:  #4D0000;
  --accent-light: rgba(102, 0, 0, 0.08);
  --accent-12:    rgba(102, 0, 0, 0.12);

  --glow-sm:  0 0 18px rgba(102, 0, 0, 0.22), 0 0 36px rgba(102, 0, 0, 0.10);
  --glow-md:  0 0 28px rgba(102, 0, 0, 0.32), 0 0 60px rgba(102, 0, 0, 0.16);

  --shadow-card:  0 2px 20px rgba(26, 26, 26, 0.07), 0 1px 4px rgba(26, 26, 26, 0.05);
  --shadow-hover: 0 8px 40px rgba(26, 26, 26, 0.13), 0 2px 8px rgba(26, 26, 26, 0.08);

  --ff-title: 'Cinzel', 'Georgia', serif;
  --ff-body:  'Montserrat', system-ui, sans-serif;

  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --dur:       0.30s;

  --container: 1200px;
  --pad-x:     clamp(1.25rem, 5vw, 2.5rem);
  --pad-sec:   clamp(5rem, 10vw, 8rem);

  scroll-padding-top: 5.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

ul { list-style: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

address { font-style: normal; }

/* ============================================================
   3. UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.text-center { text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.875rem;
}

.divider {
  width: 100%;
  height: 0.5px;
  background: var(--text-12);
}

.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ============================================================
   4. TYPOGRAPHY SCALE
   ============================================================ */
h1 {
  font-family: var(--ff-title);
  font-size: clamp(1.75rem, 4.5vw, 3.1rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--text);
  letter-spacing: 0.01em;
}

h2 {
  font-family: var(--ff-title);
  font-size: clamp(1.45rem, 3.2vw, 2.2rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

h3 {
  font-family: var(--ff-title);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 0.65rem;
  letter-spacing: 0.04em;
}

h4 {
  font-family: var(--ff-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-60);
  margin-bottom: 1.25rem;
}

p { color: var(--text-60); }

.body-lg {
  font-size: clamp(0.875rem, 1.7vw, 1rem);
  line-height: 1.9;
  color: var(--text-60);
}

/* ============================================================
   5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 2.2rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background    var(--dur) var(--ease),
    color         var(--dur) var(--ease),
    border-color  var(--dur) var(--ease),
    box-shadow    var(--dur) var(--ease),
    transform     var(--dur) var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

/* Solid */
.btn-primary {
  background: var(--accent);
  color: #F4F4F4;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: var(--glow-md);
}

/* Ghost */
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text-30);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--glow-sm);
}

/* ============================================================
   6. HEADER
   ============================================================ */
#header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 200;
  padding-block: 1.25rem;
  transition:
    background      var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease),
    padding         var(--dur) var(--ease),
    border-color    var(--dur) var(--ease),
    box-shadow      var(--dur) var(--ease);
  border-bottom: 0.5px solid transparent;
}

#header.scrolled {
  background: rgba(230, 230, 230, 0.90);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-color: var(--text-12);
  box-shadow: 0 4px 32px rgba(26, 26, 26, 0.08);
  padding-block: 0.875rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--ff-title);
  font-size: 0.7rem;
  font-weight: 700;
  color: #F4F4F4;
  background: var(--accent);
  width: 46px;
  height: 46px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.logo:hover .logo-mark {
  background: var(--accent-dark);
  box-shadow: var(--glow-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-name {
  font-family: var(--ff-title);
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.03em;
}

.logo-sub {
  font-family: var(--ff-body);
  font-size: 0.54rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-60);
}

/* Desktop nav */
.nav-list {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-list a {
  font-family: var(--ff-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-60);
}
.nav-list a:hover { color: var(--text); }

.nav-cta {
  border: 1px solid var(--text-30) !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius);
  color: var(--text) !important;
  transition:
    border-color  var(--dur) var(--ease),
    box-shadow    var(--dur) var(--ease),
    color         var(--dur) var(--ease),
    background    var(--dur) var(--ease) !important;
}
.nav-cta:hover {
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  box-shadow: var(--glow-sm);
  background: var(--accent-light);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform  var(--dur) var(--ease),
    opacity    var(--dur) var(--ease);
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ============================================================
   7. MOBILE NAV DRAWER
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset-block: 0;
  inset-inline-end: -100%;
  width: min(320px, 85vw);
  background: rgba(230, 230, 230, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-left: 0.5px solid var(--text-12);
  z-index: 199;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  transition: inset-inline-end 0.42s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.open { inset-inline-end: 0; }

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
  text-align: center;
}

.mobile-nav a {
  font-family: var(--ff-title);
  font-size: clamp(1.2rem, 4.5vw, 1.5rem);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.05em;
  transition: color var(--dur) var(--ease);
}
.mobile-nav a:hover { color: var(--accent); }

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.28);
  z-index: 198;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.mobile-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================
   8. HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--pad-sec);
  padding-top: calc(var(--pad-sec) + 4rem);
  background: linear-gradient(145deg, #E6E6E6 0%, #DCDCDC 60%, #D4D4D4 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-content { max-width: 600px; }

.hero-title {
  margin-block: 0.5rem 1.5rem;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(0.875rem, 1.7vw, 1rem);
  line-height: 1.9;
  color: var(--text-60);
  margin-bottom: 2.5rem;
  max-width: 520px;
}

/* Hero image */
.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-frame {
  position: relative;
  width: min(340px, 90vw);
  aspect-ratio: 3/4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.hero-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(20%) contrast(1.04) sepia(5%);
  opacity: 0.88;
  transition: transform 0.8s var(--ease), opacity 0.4s var(--ease);
}

.hero-img-frame:hover img {
  transform: scale(1.04);
  opacity: 0.94;
}

.hero-img-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, transparent 50%, rgba(230, 230, 230, 0.88) 100%),
    linear-gradient(to right,  rgba(230, 230, 230, 0.55) 0%, transparent 30%);
}

/* Floating badge */
.hero-badge {
  position: absolute;
  inset-block-end: 1.75rem;
  inset-inline-end: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--accent);
  color: #F4F4F4;
  text-align: center;
  box-shadow: 0 8px 32px rgba(102, 0, 0, 0.35);
  line-height: 1.1;
  padding: 0.5rem;
}

.hero-badge-number {
  font-family: var(--ff-title);
  font-size: 0.9rem;
  font-weight: 700;
  display: block;
  color: #F4F4F4;
}

.hero-badge-label {
  font-family: var(--ff-body);
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.80;
}

/* ============================================================
   9. SOBRE
   ============================================================ */
#sobre { padding-block: var(--pad-sec); }

.sobre-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.sobre-text .body-lg { margin-bottom: 2rem; }

.sobre-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-card);
  border: 0.5px solid var(--text-12);
}

.sobre-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.03);
  transition: transform 0.7s var(--ease);
}

.sobre-media:hover img { transform: scale(1.04); }

/* ============================================================
   10. SERVIÇOS — BENTO GRID
   ============================================================ */
#servicos {
  padding-block: var(--pad-sec);
  background: var(--bg-section);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.875rem;
}

.bento-card {
  background: var(--bg-white);
  border: 0.5px solid var(--text-12);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: var(--shadow-card);
  transition:
    border-color  var(--dur) var(--ease),
    box-shadow    var(--dur) var(--ease),
    transform     var(--dur) var(--ease);
  cursor: default;
}

.bento-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow-md), var(--shadow-hover);
  transform: translateY(-3px);
}

.bento-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 0.5px solid var(--text-12);
  background: var(--accent-light);
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition:
    box-shadow    var(--dur) var(--ease),
    border-color  var(--dur) var(--ease),
    background    var(--dur) var(--ease);
}

.bento-card:hover .bento-icon {
  border-color: var(--accent);
  background: rgba(102, 0, 0, 0.14);
  box-shadow: var(--glow-sm);
}

.bento-card p {
  font-size: 0.875rem;
  line-height: 1.85;
  color: var(--text-60);
}

/* ============================================================
   11. MISSÃO, VISÃO E VALORES
   ============================================================ */
#mvv { padding-block: var(--pad-sec); }

.mvv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.mvv-item {
  padding: 2.25rem 0;
  border-top: 0.5px solid var(--text-12);
}

.mvv-item:last-child { border-bottom: 0.5px solid var(--text-12); }

.mvv-sep { display: none; }

.mvv-bar {
  width: 2rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.25rem;
}

.mvv-item h3 { font-size: 1.1rem; margin-bottom: 0.65rem; }
.mvv-item p  { font-size: 0.875rem; line-height: 1.9; }

/* ============================================================
   12. CTA / CONTATO
   ============================================================ */
#contato {
  padding-block: var(--pad-sec);
  background: var(--bg-section);
}

.cta-block {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.cta-desc {
  font-size: clamp(0.875rem, 1.7vw, 1rem);
  line-height: 1.9;
  color: var(--text-60);
  margin-bottom: 2.25rem;
}

.cta-contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.cta-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-60);
}

.cta-contact-item svg { color: var(--accent); flex-shrink: 0; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ============================================================
   13. FOOTER
   ============================================================ */
#footer {
  padding-top: 4rem;
  background: var(--text);
}

#footer .divider { background: rgba(255, 255, 255, 0.10); }

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  padding-bottom: 3rem;
  padding-top: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.footer-logo-mark {
  font-family: var(--ff-title);
  font-size: 0.65rem;
  font-weight: 700;
  color: #F4F4F4;
  background: var(--accent);
  width: 42px;
  height: 42px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.footer-brand .logo-name {
  display: block;
  font-family: var(--ff-title);
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(244, 244, 244, 0.90);
  margin-bottom: 0.1rem;
  letter-spacing: 0.02em;
}

.footer-brand .logo-sub {
  display: block;
  font-family: var(--ff-body);
  font-size: 0.54rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 244, 244, 0.48);
}

.footer-oab {
  font-family: var(--ff-body);
  font-size: 0.75rem;
  color: rgba(244, 244, 244, 0.50);
  margin-bottom: 0.25rem;
}

.footer-tagline {
  font-size: 0.76rem;
  color: rgba(244, 244, 244, 0.40);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(244, 244, 244, 0.52);
  transition: color var(--dur) var(--ease);
}
.footer-social a:hover { color: var(--accent); }

.footer-nav h4,
.footer-contact h4 {
  color: rgba(244, 244, 244, 0.38);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
}

.footer-nav ul,
.footer-contact address {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav a,
.footer-contact a,
.footer-contact p {
  font-family: var(--ff-body);
  font-size: 0.84rem;
  font-weight: 400;
  color: rgba(244, 244, 244, 0.58);
  transition: color var(--dur) var(--ease);
}

.footer-nav a:hover,
.footer-contact a:hover { color: rgba(255, 120, 120, 0.85); }

.footer-bottom {
  border-top: 0.5px solid rgba(255, 255, 255, 0.08);
  padding-block: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  font-family: var(--ff-body);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: rgba(244, 244, 244, 0.32);
}

/* ============================================================
   14. FADE-IN ANIMATION (IntersectionObserver)
   ============================================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity   0.60s var(--ease),
    transform 0.60s var(--ease);
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   15. RESPONSIVE — TABLET >= 640px
   ============================================================ */
@media (min-width: 640px) {

  .hero-img-frame { width: min(400px, 80vw); }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .bento-1 { grid-column: 1 / 3; }
  .bento-2 { grid-column: 1;     grid-row: 2; }
  .bento-3 { grid-column: 2;     grid-row: 2; }
  .bento-4 { grid-column: 1 / 3; grid-row: 3; }

  .mvv-grid {
    grid-template-columns: 1fr 0.5px 1fr 0.5px 1fr;
    gap: 0;
  }

  .mvv-item {
    padding: 2rem 2.5rem;
    border-top: none;
    border-bottom: none;
  }

  .mvv-item:last-child { border: none; }

  .mvv-sep {
    display: block;
    background: var(--text-12);
    align-self: stretch;
    margin-block: 1.5rem;
  }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .cta-contacts { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
}

/* ============================================================
   16. RESPONSIVE — DESKTOP >= 900px
   ============================================================ */
@media (min-width: 900px) {

  .nav-list  { display: flex; }
  .hamburger { display: none; }

  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .hero-img-frame { width: 100%; max-width: 500px; }

  .hero-badge {
    inset-inline-end: -1.25rem;
    width: 92px;
    height: 92px;
  }

  .sobre-inner { grid-template-columns: 1fr 1fr; gap: 5rem; }

  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }

  .bento-1 { grid-column: 1 / 3; grid-row: 1; }
  .bento-2 { grid-column: 3;     grid-row: 1; }
  .bento-3 { grid-column: 1;     grid-row: 2; }
  .bento-4 { grid-column: 2 / 4; grid-row: 2; }

  .footer-inner { grid-template-columns: 2fr 1fr 1fr; }
}

/* ============================================================
   17. RESPONSIVE — WIDE >= 1280px
   ============================================================ */
@media (min-width: 1280px) {
  .hero-img-frame { max-width: 540px; }
}

/* ============================================================
   18. REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  [data-animate] { opacity: 1; transform: none; }
}
