/* =========================================================
   AKMB — Design Tokens
   Palette derived from brand book: black, deep forest green,
   gold/mustard accent, off-white. Serif display (Cormorant
   Garamond) echoes the logo lockup; Work Sans for body/UI.
   ========================================================= */

:root,
[data-theme='light'] {
  /* Surfaces */
  --color-bg: #f8f6f1;
  --color-surface: #ffffff;
  --color-surface-2: #fbf9f4;
  --color-surface-offset: #efeae0;
  --color-surface-offset-2: #e7e1d3;
  --color-divider: #ddd6c7;
  --color-border: #d2c9b4;

  /* Text */
  --color-text: #16150f;
  --color-text-muted: #5c584c;
  --color-text-faint: #9c9683;
  --color-text-inverse: #f8f6f1;

  /* Brand */
  --color-ink: #0b0c08;
  --color-forest: #16261c;
  --color-forest-deep: #0e1a12;
  --color-gold: #c79a3d;
  --color-gold-hover: #b5872c;
  --color-gold-active: #96701f;
  --color-gold-highlight: #f0e2bd;

  --color-primary: #c79a3d;
  --color-primary-hover: #b5872c;
  --color-primary-active: #96701f;
  --color-primary-highlight: #f0e2bd;

  --color-success: #43724a;
  --color-warning: #96541f;
  --color-error: #8a3b32;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.9rem;
  --radius-xl: 1.4rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  --shadow-sm: 0 1px 2px oklch(0.15 0.02 120 / 0.08);
  --shadow-md: 0 8px 24px oklch(0.15 0.02 120 / 0.12);
  --shadow-lg: 0 20px 48px oklch(0.15 0.02 120 / 0.18);

  --content-narrow: 640px;
  --content-default: 1080px;
  --content-wide: 1280px;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;
}

/* Type scale */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.25rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  --text-hero: clamp(2.75rem, 1rem + 5.5vw, 6rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* =========================================================
   Layout primitives
   ========================================================= */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}

.section--dark {
  background: var(--color-forest);
  color: var(--color-text-inverse);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}

.section-tag--light {
  color: var(--color-gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  max-width: 18ch;
  margin-bottom: var(--space-6);
}

.section-title--light {
  color: var(--color-text-inverse);
}

.section-title em,
.hero-title em {
  font-style: italic;
  color: var(--color-gold);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-bottom: var(--space-12);
}

.section--dark .section-lead {
  color: color-mix(in oklab, var(--color-text-inverse) 70%, transparent);
}

/* =========================================================
   Header
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-divider);
  transition:
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--hidden {
  transform: translateY(-100%);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  padding-block: var(--space-4);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
  margin-right: auto;
}

.brand-mark {
  width: 42px;
  height: 42px;
  color: var(--color-text);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.06em;
}

.brand-logo-text {
  height: 34px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

.nav a:hover {
  color: var(--color-text);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta {
  background: var(--color-ink);
  color: var(--color-text-inverse) !important;
}

.nav-cta:hover {
  background: var(--color-forest);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-text);
  border-radius: var(--radius-full);
  transition: var(--transition-interactive);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-divider);
}

.mobile-nav a {
  padding: var(--space-3) 0;
  font-size: var(--text-base);
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-divider);
}

.mobile-nav .nav-cta {
  margin-top: var(--space-3);
  text-align: center;
  border-bottom: none;
}

.header.is-open .mobile-nav {
  display: flex;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-ink);
  color: var(--color-text-inverse);
  padding: var(--space-3) var(--space-5);
  z-index: 200;
}

.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-text-inverse);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.05 0.02 150 / 0.9) 0%, oklch(0.05 0.02 150 / 0.7) 14%, oklch(0.05 0.02 150 / 0.45) 40%, oklch(0.05 0.02 150 / 0.6) 65%, oklch(0.05 0.02 150 / 0.97) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-16) var(--space-12);
  max-width: 860px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
  position: relative;
  padding-left: var(--space-8);
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 2px;
  background: var(--color-gold);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1rem + 4.5vw, 5rem);
  line-height: 1.08;
  margin-bottom: var(--space-6);
  max-width: 20ch;
}

.hero-lead {
  font-size: var(--text-lg);
  color: color-mix(in oklab, var(--color-text-inverse) 85%, transparent);
  max-width: 56ch;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.btn-primary {
  background: var(--color-gold);
  color: var(--color-ink) !important;
}

.btn-primary:hover {
  background: var(--color-gold-hover);
}

.btn-ghost {
  border: 1px solid color-mix(in oklab, var(--color-text-inverse) 40%, transparent);
  color: var(--color-text-inverse) !important;
}

.btn-ghost:hover {
  border-color: var(--color-text-inverse);
  background: color-mix(in oklab, var(--color-text-inverse) 10%, transparent);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

.btn-block {
  width: 100%;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid color-mix(in oklab, var(--color-text-inverse) 25%, transparent);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.stat-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-gold);
}

.stat-label {
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-text-inverse) 70%, transparent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* =========================================================
   About
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-16);
}

.about-heading {
  position: sticky;
  top: 120px;
  align-self: start;
}

.about-heading .section-title {
  max-width: none;
}

.lead-text {
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.about-body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: 68ch;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-divider);
}

.pillar-index {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-2);
}

.pillar h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.pillar p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-heading {
    position: static;
  }
  .about-pillars {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Values
   ========================================================= */

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: color-mix(in oklab, var(--color-text-inverse) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--color-text-inverse) 12%, transparent);
}

.value-card {
  background: var(--color-forest);
  padding: var(--space-8);
}

.value-num {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
  display: block;
  margin-bottom: var(--space-4);
}

.value-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-3);
  color: var(--color-text-inverse);
}

.value-card p {
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--color-text-inverse) 70%, transparent);
}

@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Services
   ========================================================= */

.services-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-16);
  padding-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-divider);
}

.services-feature-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.services-feature-text h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.services-feature-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.check-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.check-list li {
  position: relative;
  padding-left: var(--space-8);
  font-size: var(--text-sm);
  color: var(--color-text);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  background: var(--color-gold-highlight);
  border: 1.5px solid var(--color-gold);
}

.check-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 0.65em;
  width: 6px;
  height: 3px;
  border-left: 1.5px solid var(--color-gold-active);
  border-bottom: 1.5px solid var(--color-gold-active);
  transform: rotate(-45deg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-interactive);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.service-card-media img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.service-card-body {
  padding: var(--space-6);
}

.service-card--plain .service-card-body {
  padding: var(--space-8) var(--space-6);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--color-gold-highlight);
  color: var(--color-gold-active);
  margin-bottom: var(--space-4);
}

.service-icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .services-feature {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Diferenciais
   ========================================================= */

.diff-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--space-16);
}

.diff-heading .section-title {
  max-width: none;
}

.diff-heading p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 48ch;
}

.diff-list {
  display: flex;
  flex-direction: column;
}

.diff-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}

.diff-item:first-child {
  padding-top: 0;
}

.diff-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-gold);
}

.diff-item h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.diff-item p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

@media (max-width: 900px) {
  .diff-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Atuação
   ========================================================= */

.section--map {
  background: var(--color-surface-offset);
}

.map-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-10);
  align-items: center;
  margin-top: var(--space-8);
}

.map-visual {
  position: relative;
  background: var(--color-forest);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  overflow: hidden;
}

.map-visual svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-state {
  fill: var(--color-forest-deep);
  stroke: var(--color-gold-highlight);
  stroke-width: 1.4;
  stroke-opacity: 0.55;
}

.map-cluster-ring circle {
  fill: none;
  stroke: var(--color-gold);
  stroke-width: 1.5;
  stroke-dasharray: 3 4;
  opacity: 0.55;
}

.map-pin-dot {
  fill: var(--color-gold);
  stroke: var(--color-forest-deep);
  stroke-width: 2;
}

.map-pin-pulse {
  fill: var(--color-gold);
  opacity: 0.25;
  transform-origin: center;
  animation: map-pulse 2.4s ease-out infinite;
}

.map-pin[data-city="bom-jesus"] .map-pin-pulse,
.map-pin[data-city="nazare"] .map-pin-pulse {
  animation-delay: 0.6s;
}

.map-pin[data-city="conchas"] .map-pin-pulse {
  animation-delay: 1.2s;
}

@keyframes map-pulse {
  0% {
    transform: scale(0.6);
    opacity: 0.35;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.map-leader {
  stroke: var(--color-gold-highlight);
  stroke-width: 1.2;
  stroke-dasharray: 3 4;
  opacity: 0.7;
}

.map-callout rect {
  fill: var(--color-forest-deep);
  stroke: var(--color-gold);
  stroke-width: 1;
}

.map-callout-title {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  fill: var(--color-text-inverse);
}

.map-callout-sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  fill: var(--color-gold-highlight);
}

.map-legend {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.city-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  border-left: 3px solid var(--color-gold);
}

.city-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.city-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

@media (max-width: 980px) {
  .map-layout {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   CTA Final
   ========================================================= */

.cta-final {
  position: relative;
  padding-block: clamp(var(--space-20), 12vw, var(--space-32));
  overflow: hidden;
  color: var(--color-text-inverse);
  text-align: center;
}

.cta-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, oklch(0.06 0.02 150 / 0.88), oklch(0.06 0.02 150 / 0.94));
}

.cta-final-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-3xl);
  margin-bottom: var(--space-6);
}

.cta-final p {
  font-size: var(--text-lg);
  color: color-mix(in oklab, var(--color-text-inverse) 80%, transparent);
  margin-bottom: var(--space-8);
}

/* =========================================================
   Contact
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-16);
}

.contact-info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 46ch;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
}

.contact-details svg {
  width: 22px;
  height: 22px;
  color: var(--color-gold);
  flex-shrink: 0;
}

.contact-details a {
  color: var(--color-text);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--color-gold-active);
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-row label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.form-row input,
.form-row select,
.form-row textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-2);
  font-size: var(--text-sm);
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--color-gold);
}

.form-note {
  font-size: var(--text-sm);
  color: var(--color-success);
  min-height: 1.2em;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Footer
   ========================================================= */

.footer {
  background: var(--color-ink);
  color: color-mix(in oklab, var(--color-text-inverse) 80%, transparent);
  padding-top: var(--space-16);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-8);
  padding-bottom: var(--space-12);
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer-brand .brand-mark {
  color: #f8f6f1;
  width: 48px;
  height: 48px;
}

.footer-name {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text-inverse);
}

.footer-tagline {
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-text-inverse) 60%, transparent);
}

.footer-nav {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: var(--text-sm);
  color: color-mix(in oklab, var(--color-text-inverse) 75%, transparent);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--color-gold);
}

.footer-bottom {
  border-top: 1px solid color-mix(in oklab, var(--color-text-inverse) 15%, transparent);
  padding-block: var(--space-6);
  font-size: var(--text-xs);
  color: color-mix(in oklab, var(--color-text-inverse) 50%, transparent);
}

/* =========================================================
   Reveal-on-scroll
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 640px) {
  .hero-title {
    max-width: 100%;
  }
  .hero-stats {
    gap: var(--space-6);
  }
}

/* ============================
   NAV — active state
   ============================ */
.nav a.is-active,
.mobile-nav a.is-active {
  color: var(--color-gold);
  font-weight: 600;
}

/* ============================
   PAGE HERO (internal pages)
   ============================ */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-text-inverse);
  margin-top: 0;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.05 0.02 150 / 0.45) 0%, oklch(0.05 0.02 150 / 0.6) 55%, oklch(0.05 0.02 150 / 0.92) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding-block: var(--space-24) var(--space-12);
  max-width: 780px;
}

.page-hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 1rem + 3.5vw, 3.75rem);
  line-height: 1.12;
  margin-bottom: var(--space-5);
  max-width: 20ch;
}

.page-hero-title em {
  font-style: italic;
  color: var(--color-gold);
}

.page-hero-lead {
  font-size: var(--text-lg);
  color: color-mix(in oklab, var(--color-text-inverse) 85%, transparent);
  max-width: 62ch;
}

.section--tight {
  padding-block: clamp(var(--space-12), 7vw, var(--space-24));
}

/* ============================
   PROJECTS GRID
   ============================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
}

.project-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-interactive);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

a.project-card {
  cursor: pointer;
}

.project-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-gold-active);
}

.project-card-link svg {
  width: 16px;
  height: 16px;
  transition: var(--transition-interactive);
}

a.project-card:hover .project-card-link svg {
  transform: translateX(3px);
}

.project-card-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-surface-offset);
}

.project-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-media--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  background: var(--color-gold-highlight);
}

.project-card-media--empty svg {
  width: 40px;
  height: 40px;
  opacity: 0.8;
}

.project-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-1);
  width: fit-content;
}

.project-status--soon {
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
}

.project-status--construcao {
  background: var(--color-gold-highlight);
  color: var(--color-gold-active);
}

.project-status--entregue {
  background: color-mix(in oklab, var(--color-gold) 20%, transparent);
  color: var(--color-gold-active);
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
}

.project-card-location {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.project-card-location svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.project-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.project-card--placeholder {
  border-style: dashed;
  border-color: var(--color-border);
  background: var(--color-surface-2);
}

.project-card--placeholder:hover {
  border-color: var(--color-gold);
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .page-hero {
    min-height: 38vh;
  }
  .page-hero-content {
    padding-block: var(--space-16) var(--space-10);
  }
}
