/* ===== Nova Domus — base styles ===== */
:root {
  --black: #0b0b0c;
  --black-2: #141412;
  --black-3: #1e1c18;
  --gold: #c9a94e;
  --gold-light: #e6d8a8;
  --gold-dim: #8a763f;
  --cream: #f3efe6;
  --gray: #a9a69c;
  --line: rgba(201, 169, 78, 0.25);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--cream);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--gray); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; list-style: none; margin: 0; }

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

.eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.gold { color: var(--gold); }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  border: 1px solid var(--gold);
  border-radius: 2px;
  transition: all 0.25s ease;
  cursor: pointer;
  background: transparent;
}
.btn-solid {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* ===== Header ===== */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 11, 12, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  color: var(--cream);
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span { color: var(--gold); }
.logo-mark { flex-shrink: 0; display: block; }
footer .logo { font-size: 1.4rem; }
nav.main-nav ul {
  display: flex;
  gap: 36px;
}
nav.main-nav a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 4px;
}
nav.main-nav a:hover,
nav.main-nav a.active { color: var(--gold); }
nav.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--gold);
}
.nav-cta { display: none; }
.login-dd { position: relative; display: none; }
.nav-login {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s ease;
}
.login-dd summary { cursor: pointer; list-style: none; }
.login-dd summary::-webkit-details-marker { display: none; }
.login-dd summary::marker { content: ''; }
.nav-login:hover { color: var(--gold); }
.login-dd[open] .nav-login { color: var(--gold); }
.login-dd-mobile summary {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
}
.login-dd-panel {
  position: absolute;
  top: 28px;
  right: 0;
  width: 260px;
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
  z-index: 200;
}
.login-dd-panel iframe {
  width: 100%;
  height: 200px;
  border: none;
  display: block;
  color-scheme: dark;
}
.login-dd-mobile { display: none; }
@media (min-width: 900px) {
  .login-dd:not(.login-dd-mobile) { display: inline-block; margin-right: 24px; }
  .nav-cta {
    display: inline-block;
    padding: 10px 22px;
    font-size: 0.78rem;
  }
}
@media (max-width: 860px) {
  .login-dd-mobile { display: block; }
  .login-dd-mobile .login-dd-panel {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
  }
  .nav-login-item { padding: 4px 0; }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 1.5px;
  background: var(--gold);
}
#nav-check { display: none; }

@media (max-width: 860px) {
  nav.main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--black-2);
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transition: max-height 0.3s ease;
  }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 24px;
  }
  nav.main-nav a { display: block; padding: 12px 0; }
  #nav-check:checked ~ nav.main-nav { max-height: 80vh; }
  .nav-toggle { display: flex; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 140px 0 110px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(201,169,78,0.14), transparent 60%),
    linear-gradient(180deg, var(--black) 0%, var(--black-2) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,169,78,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,169,78,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, black, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  max-width: 820px;
  margin: 0 auto 24px;
}
.hero-sub {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 1.05rem;
}
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  padding: 90px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--black-2), var(--black));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }

/* ===== Sections ===== */
section { padding: 100px 0; }
.section-alt { background: var(--black-2); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

/* Stats bar */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 48px 0;
}
.stat { text-align: center; }
.stat .num {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--gold);
  display: block;
}
.stat .label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
}
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Grid / cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 40px 32px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card .icon {
  width: 46px; height: 46px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  margin-bottom: 24px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}
.card h3 { font-size: 1.25rem; margin-bottom: 12px; }

/* Placeholder "photo" blocks (no real images available) */
.ph-image {
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(201,169,78,0.18), transparent 60%),
    linear-gradient(315deg, var(--black-3), var(--black-2));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ph-image::after {
  content: attr(data-label);
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  text-transform: uppercase;
}
.ph-image.tall { aspect-ratio: 3 / 4; }

/* Project cards */
.project-card { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--black-2); }
.project-card .ph-image { border-radius: 0; border: none; border-bottom: 1px solid var(--line); }
.project-card .info { padding: 24px 26px; }
.project-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.project-meta { font-size: 0.85rem; color: var(--gray); border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; display: flex; justify-content: space-between; }

/* Filters */
.filters { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.filter-btn {
  padding: 8px 20px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Seal badge (Sobre) */
.seal-badge {
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 96px;
  height: 96px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.45));
}
@media (max-width: 900px) {
  .seal-badge { right: 8px; bottom: 8px; width: 74px; height: 74px; }
}

/* Timeline (Sobre) */
.timeline { border-left: 1px solid var(--line); padding-left: 32px; }
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--gold);
}
.timeline-item .year { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.1em; }

/* Values list */
.values-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 700px) { .values-list { grid-template-columns: 1fr; } }
.value-item { display: flex; gap: 18px; }
.value-item .num { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.4rem; min-width: 40px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-card .ph-image { aspect-ratio: 1/1; border-radius: 50%; margin-bottom: 18px; }
.team-card h4 { font-size: 1.05rem; margin-bottom: 2px; }
.team-card .role { font-size: 0.8rem; color: var(--gold); letter-spacing: 0.05em; }

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(135deg, var(--black-3), var(--black-2));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.cta-band h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 28px; }
.contact-info-item .icon {
  width: 40px; height: 40px; flex-shrink: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.contact-info-item p { margin: 0; font-size: 0.92rem; }

form.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--black-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
}
.field textarea { resize: vertical; min-height: 120px; }
.map-block { margin-top: 56px; }

.form-note {
  font-size: 0.82rem;
  color: var(--gold-dim);
  border: 1px dashed var(--line);
  padding: 12px 16px;
  border-radius: 4px;
}

/* ===== Footer ===== */
footer.site-footer {
  background: var(--black-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--gray); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--gray);
}
.social-row { display: flex; gap: 14px; }
.social-row a {
  width: 34px; height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: 0.85rem;
}
.social-row a:hover { border-color: var(--gold); }
