/* Ubirani Arquitetura — design system
   Cores extraídas da logo: chumbo #25282A, amarelo #FFC600, fundo branco. */

:root {
  color-scheme: light;
  --ink: #25282a;
  --ink-soft: #5b5e60;
  --ink-faint: #8b8e90;
  --accent: #ffc600;
  --accent-ink: #25282a;
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --bg-soft-2: #f1efe9;
  --border: #e8e6e1;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(37, 40, 42, 0.06);
  --shadow-hover: 0 18px 40px rgba(37, 40, 42, 0.1);
  --container: 1160px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 3.6vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

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

.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--tight { padding: 56px 0; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 640px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { box-shadow: var(--shadow-hover); }

.btn--outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--outline:hover { border-color: var(--ink); }

.btn--ghost { background: transparent; color: var(--ink); padding: 13px 6px; }
.btn--ghost:hover { color: var(--accent-ink); }

/* ---------- Utility bar ---------- */
.utility-bar {
  background: var(--ink);
  color: #d9dadb;
  font-size: 0.8rem;
}
.utility-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.utility-bar a { opacity: 0.85; transition: opacity 0.15s ease; }
.utility-bar a:hover { opacity: 1; color: var(--accent); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.brand img { height: 30px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a.nav-link {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--ink);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a.nav-link:hover { background: var(--bg-soft); }
.main-nav .nav-link.is-active { background: var(--ink); color: #fff; }

.nav-link--external { background: var(--bg-soft-2); }
.nav-link--external:hover { background: var(--accent); }
.nav-link--external .ext-icon { font-size: 0.8em; opacity: 0.6; }

.nav-item--dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hover);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.nav-item--dropdown:hover .dropdown,
.nav-item--dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink);
}
.dropdown a:hover { background: var(--bg-soft); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .btn-row { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-visual--wide { aspect-ratio: 5 / 4; }

/* ---------- Split (seções de 2 colunas com imagem) ---------- */
.split { display: grid; gap: 56px; }
.split--center { align-items: center; }
.split--start { align-items: start; }
.split--1-1 { grid-template-columns: 1fr 1fr; }
.split--11-9 { grid-template-columns: 1.1fr 0.9fr; }
.split--9-11 { grid-template-columns: 0.9fr 1.1fr; }
.split--8-12 { grid-template-columns: 0.8fr 1.2fr; }

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-row .stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--ink);
}
.stat-row .stat span { font-size: 0.85rem; color: var(--ink-faint); }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft-2); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body .tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}
.card-body h3 { margin-bottom: 2px; }
.card-body p { font-size: 0.92rem; margin-bottom: 0; }
.card-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card:hover .card-link { color: var(--accent-ink); }

/* Service cards (2-up, larger) */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.service-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.service-card .icon-badge {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--accent-ink);
}
.service-card ul { padding-left: 18px; margin: 18px 0; color: var(--ink-soft); }
.service-card li { margin-bottom: 6px; }

/* ---------- Placeholder media ---------- */
.ph-media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph-media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Portfolio filter ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-btn {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-btn:hover:not(.is-active) { border-color: var(--ink); color: var(--ink); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  padding: 22px 0 0;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--accent-ink); }

/* ---------- Project detail ---------- */
.project-hero { padding: 20px 0 0; }
.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 36px 0;
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
}
.project-meta .label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-bottom: 4px; }
.project-meta .value { font-family: var(--font-head); font-weight: 600; }
.project-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.project-gallery .ph-media { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 4/3; }
.project-gallery .span-2 { grid-column: span 2; aspect-ratio: 8/3; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #c9cacb; margin: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.field input, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 140px; }

.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-info .item { display: flex; gap: 14px; align-items: flex-start; }
.contact-info .dot {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--accent-ink); font-family: var(--font-head);
}
.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

.embed-3d {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16/9;
  background: var(--ink);
}
.embed-3d iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 720px) {
  .embed-3d { aspect-ratio: 4/3; }
}

/* ---------- Placeholder / draft notice ---------- */
.draft-note {
  background: #fff8e1;
  border: 1px dashed #e6b800;
  color: #6b5300;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 0.85rem;
  margin: 0 0 28px;
}

/* ---------- Simple page hero (interior pages) ---------- */
.page-hero { padding: 40px 0 64px; }
.page-hero .lede { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-top {
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; max-width: 260px; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; color: var(--ink-soft); }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--ink-faint);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .container .hero-visual { order: -1; }
  .split--1-1, .split--11-9, .split--9-11, .split--8-12 { grid-template-columns: 1fr; gap: 32px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .project-meta { grid-template-columns: repeat(2, 1fr); }
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
  .project-gallery .span-2 { grid-column: span 2; }
}

@media (max-width: 720px) {
  .main-nav { position: fixed; inset: 64px 16px auto 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); flex-direction: column; align-items: stretch; padding: 12px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: all 0.2s ease; }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-item--dropdown .dropdown { position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none; display: none; padding-left: 12px; }
  .nav-item--dropdown.is-open .dropdown { display: block; }
  .header-cta .btn--primary { padding: 10px 14px; font-size: 0.76rem; white-space: nowrap; }
  .site-header .container { gap: 10px; }
  .header-cta { gap: 6px; }
  .nav-toggle { display: block; }
  .utility-bar .container { justify-content: center; gap: 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .project-meta { grid-template-columns: 1fr 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery .span-2 { grid-column: span 1; aspect-ratio: 4/3; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}
