/* Penna Gestão Empresarial e Intermediações — folha de estilos principal (v2, dark) */

:root {
  --accent: #f0b429;
  --bg: #17161a;
  --bg-alt: #1d1b1f;
  --card: #211f23;
  --ink: #17161a;
  --text: #f5f3ef;
  --text-soft: #a39d94;
  --line: rgba(245,243,239,0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-top: 75px;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
em { font-style: normal; color: var(--accent); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 700px) { .wrap { padding: 0 40px; } }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; font-size: 15px; font-weight: 600;
  border-radius: 100px; cursor: pointer; border: 1px solid transparent;
  font-family: inherit;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-solid { background: var(--accent); color: var(--ink); }
.btn-solid:hover { color: var(--ink); filter: brightness(1.08); }
.btn-outline { border-color: rgba(245,243,239,0.3); color: var(--text); background: transparent; }
.btn-outline:hover { color: var(--text); border-color: var(--accent); }

/* header */
.site-header {
  border-bottom: 1px solid var(--line); z-index: 50; background: var(--bg);
  position: fixed; top: 0; left: 0; right: 0;
  transition: top 0.25s ease, left 0.25s ease, right 0.25s ease, border-radius 0.25s ease,
    border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  top: 14px; left: 20px; right: 20px;
  border-radius: 14px;
  border: 1px solid rgba(245,243,239,0.08);
  background: rgba(33,31,35,0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; transition: padding 0.25s ease; }
.site-header.is-scrolled .header-inner { padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-ring {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(240,180,41,0.45); background: rgba(245,243,239,0.04);
  display: flex; align-items: center; justify-content: center; padding: 5px; flex-shrink: 0;
  transition: width 0.25s ease, height 0.25s ease;
}
.site-header.is-scrolled .brand-ring { width: 34px; height: 34px; }
.brand-ring img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-name { font-family: "Space Grotesk", sans-serif; font-size: 18px; line-height: 1.2; }
.brand-tag { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); }
.site-header.is-scrolled .brand-tag { display: none; }

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line); background: transparent;
  cursor: pointer; flex-direction: column; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--text); }

.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a.nav-link { font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.main-nav a.nav-link.active { color: var(--accent); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 20px; display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a.nav-link { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 14px; justify-content: center; width: 100%; }
}
@media (min-width: 861px) { .nav-toggle { display: none; } }

#institutional, #services { scroll-margin-top: 96px; }

/* breadcrumb */
.breadcrumb { padding: 22px 0 0; font-size: 13px; color: var(--text-soft); }
.breadcrumb span.current { color: var(--text); }

/* hero (home) */
.hero { position: relative; overflow: hidden; padding: 56px 0 64px; }
@media (min-width: 900px) { .hero { padding: 88px 0 84px; } }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(620px 420px at 88% 6%, rgba(240,180,41,0.16), transparent 60%),
    repeating-linear-gradient(115deg, rgba(245,243,239,0.035) 0px, rgba(245,243,239,0.035) 1px, transparent 1px, transparent 64px);
}
.hero::after {
  content: ""; position: absolute; right: -140px; bottom: -180px; width: 520px; height: 520px;
  border: 44px solid rgba(245,243,239,0.035); border-radius: 50%; pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: 64px; } }
.hero h1 { font-size: 32px; line-height: 1.18; margin: 16px 0 20px; }
@media (min-width: 700px) { .hero h1 { font-size: 46px; line-height: 1.14; margin: 18px 0 24px; } }
.hero p.lead { font-size: 16px; line-height: 1.65; color: var(--text-soft); max-width: 46ch; margin: 0 0 28px; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.hero-photo { position: relative; }
.photo-frame { position: relative; overflow: hidden; border: 1px solid var(--line); background: #0f0e10; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.7); }
.photo-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(155deg, rgba(240,180,41,0.35) 0%, rgba(15,14,16,0.75) 55%, rgba(15,14,16,0.92) 100%); mix-blend-mode: multiply; }
.hero-photo .photo-frame { aspect-ratio: 4 / 3; }
.photo-badge {
  position: absolute; left: 20px; bottom: -24px; width: 78px; height: 78px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(240,180,41,0.45);
  display: flex; align-items: center; justify-content: center; padding: 10px;
}
@media (min-width: 900px) { .photo-badge { left: -28px; bottom: -28px; width: 92px; height: 92px; } }
.photo-badge img { width: 100%; height: 100%; object-fit: contain; }

/* institutional */
.institutional { padding: 64px 0; background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .institutional { padding: 88px 0; } }
.section-head { max-width: 60ch; margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { margin-bottom: 52px; } }
.section-head h2 { font-size: 24px; margin-top: 12px; }
@media (min-width: 700px) { .section-head h2 { font-size: 30px; } }
.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 620px) { .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 980px) { .pillars { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.pillar { background: var(--card); border: 1px solid var(--line); padding: 26px 22px; }
.pillar-num { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.pillar h3 { font-size: 16.5px; margin-bottom: 10px; }
.pillar p { font-size: 14px; line-height: 1.6; color: var(--text-soft); margin: 0; }

/* services grid */
.services { padding: 64px 0; }
@media (min-width: 900px) { .services { padding: 96px 0; } }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 40px; }
@media (min-width: 620px) { .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 980px) { .services-grid { grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 48px; } }
.service-card { position: relative; background: var(--card); border: 1px solid var(--line); padding: 26px 22px; display: flex; flex-direction: column; gap: 16px; min-height: 156px; }
.icon-tile { width: 46px; height: 46px; border-radius: 10px; background: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.icon-tile svg { width: 22px; height: 22px; stroke: var(--ink); }
.service-card h3 { font-size: 15.5px; font-weight: 600; font-family: "IBM Plex Sans", sans-serif; }
.service-card p { font-size: 13.5px; line-height: 1.55; color: var(--text-soft); margin: 0; flex-grow: 1; }
.service-card.is-featured { border-color: rgba(240,180,41,0.5); }
.tag-new { position: absolute; top: 18px; right: 18px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(240,180,41,0.5); border-radius: 100px; padding: 4px 10px; }

/* cta band */
.cta-band { position: relative; background: #100f12; padding: 56px 0; overflow: hidden; }
@media (min-width: 900px) { .cta-band { padding: 80px 0; } }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 20% 30%, rgba(240,180,41,0.14), transparent 65%); pointer-events: none; }
.cta-band-inner { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { font-size: 24px; max-width: 22ch; }
@media (min-width: 700px) { .cta-band h2 { font-size: 30px; } }
.cta-contacts { font-size: 14px; color: var(--text-soft); margin-top: 12px; }

/* footer */
.site-footer { padding: 48px 0 32px; }
@media (min-width: 900px) { .site-footer { padding: 64px 0 32px; } }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; } }
.footer-brand p { font-size: 13.5px; color: var(--text-soft); line-height: 1.6; max-width: 34ch; margin-top: 14px; }
.footer-col h4 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 16px; font-family: "IBM Plex Sans", sans-serif; font-weight: 600; }
.footer-col a, .footer-col span { display: block; font-size: 14px; margin-bottom: 10px; color: var(--text-soft); }
.addr-block { margin-bottom: 18px; }
.addr-block .addr-label { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-soft); opacity: 0.75; margin-bottom: 6px; }
.addr-block span { margin-bottom: 2px; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; font-size: 12.5px; color: var(--text-soft); }
@media (min-width: 700px) { .footer-bottom { flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; } }

/* service page (interior template) */
.service-hero { padding: 24px 0 48px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .service-hero { padding: 26px 0 64px; } }
.service-hero-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .service-hero-grid { grid-template-columns: 1.3fr 0.7fr; gap: 56px; } }
.service-hero h1 { font-size: 30px; margin: 14px 0 18px; max-width: 20ch; }
@media (min-width: 700px) { .service-hero h1 { font-size: 40px; margin: 16px 0 22px; } }
.service-hero p.lead { font-size: 16px; line-height: 1.65; color: var(--text-soft); max-width: 62ch; margin: 0; }
.service-hero .photo-frame { aspect-ratio: 3 / 4; }

.sides { padding: 56px 0; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .sides { padding: 84px 0; } }
.sides-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 700px) { .sides-grid { grid-template-columns: 1fr 1fr; } }
.side { background: var(--card); border: 1px solid var(--line); padding: 32px; }
@media (min-width: 700px) { .side { padding: 40px; } }
.side .eyebrow { display: block; margin-bottom: 14px; }
.side h3 { font-size: 20px; margin-bottom: 14px; }
@media (min-width: 700px) { .side h3 { font-size: 22px; } }
.side p { font-size: 14.5px; line-height: 1.65; color: var(--text-soft); margin: 0; }

.process { padding: 64px 0; }
@media (min-width: 900px) { .process { padding: 96px 0; } }
.steps-card { background: var(--card); border: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 20px; border-bottom: 1px solid var(--line); align-items: baseline; }
@media (min-width: 700px) { .step { grid-template-columns: 90px 1fr; gap: 24px; padding: 26px 32px; } }
.step:last-child { border-bottom: none; }
.step-num { font-family: "Space Grotesk", sans-serif; font-size: 18px; font-weight: 700; color: var(--accent); }
@media (min-width: 700px) { .step-num { font-size: 22px; } }
.step h3 { font-size: 16px; font-weight: 600; font-family: "IBM Plex Sans", sans-serif; margin-bottom: 6px; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--text-soft); margin: 0; max-width: 62ch; }

.confid { margin-top: 24px; background: var(--card); border: 1px solid rgba(240,180,41,0.35); padding: 26px 24px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: flex-start; }
@media (min-width: 700px) { .confid { padding: 32px 36px; gap: 22px; } }
.confid h4 { font-size: 15.5px; margin: 0 0 8px; }
.confid p { font-size: 14px; line-height: 1.6; color: var(--text-soft); margin: 0; }

/* generic content section (used by the 7 simpler service pages) */
.content-section { padding: 56px 0; }
@media (min-width: 900px) { .content-section { padding: 88px 0; } }
.content-cols { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 900px) { .content-cols { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.content-cols p { font-size: 15px; line-height: 1.7; color: var(--text-soft); margin: 0 0 18px; }
.content-cols p:last-child { margin-bottom: 0; }

.checklist-card { background: var(--card); border: 1px solid var(--line); padding: 28px 26px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; align-items: flex-start; }
.checklist .check { width: 22px; height: 22px; border-radius: 6px; background: rgba(240,180,41,0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.checklist svg { width: 13px; height: 13px; stroke: var(--accent); }
.checklist .label { font-size: 14.5px; line-height: 1.5; color: var(--text); }

/* contact page */
.contact-hero { padding: 24px 0 48px; }
@media (min-width: 900px) { .contact-hero { padding: 26px 0 56px; } }
.contact-hero h1 { font-size: 30px; margin: 14px 0 16px; }
@media (min-width: 700px) { .contact-hero h1 { font-size: 40px; margin: 16px 0 18px; } }
.contact-hero p.lead { font-size: 15.5px; line-height: 1.6; color: var(--text-soft); max-width: 56ch; margin: 0; }
@media (min-width: 700px) { .contact-hero p.lead { font-size: 16px; } }

.contact-body { padding: 0 0 64px; }
@media (min-width: 900px) { .contact-body { padding: 0 0 96px; } }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.15fr 0.85fr; } }
.panel { background: var(--card); border: 1px solid var(--line); padding: 28px; }
@media (min-width: 700px) { .panel { padding: 44px; } }

.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--bg);
  padding: 12px 14px; font-family: "IBM Plex Sans", sans-serif; font-size: 14.5px; color: var(--text);
  border-radius: 2px;
}
.field input:focus, .field textarea:focus { outline: 1px solid var(--accent); outline-offset: 1px; }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.info-panel { background: #100f12; border-color: rgba(240,180,41,0.3); }
.info-panel .eyebrow { color: var(--accent); }
.info-panel h3 { font-size: 20px; color: var(--text); margin: 14px 0 30px; }
.info-row { display: grid; grid-template-columns: 26px 1fr; gap: 14px; margin-bottom: 26px; align-items: flex-start; }
.info-row svg { width: 20px; height: 20px; stroke: var(--accent); margin-top: 2px; }
.info-row .label { font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 4px; }
.info-row .value { font-size: 14.5px; line-height: 1.55; color: var(--text); }

.form-feedback { display: none; padding: 12px 14px; margin-bottom: 18px; font-size: 13.5px; border: 1px solid; border-radius: 2px; }
.form-feedback.is-success { display: block; border-color: #3f7a4a; color: #8fd39f; background: rgba(63,122,74,0.12); }
.form-feedback.is-error { display: block; border-color: #a33; color: #e39a9a; background: rgba(170,51,51,0.12); }
