:root {
  --bg: #f8f9fa;
  --bg-soft: #e9ecef;
  --surface: #ffffff;
  --surface-alt: #f1f3f5;
  --text: #212529;
  --text-soft: #495057;
  --line: #dee2e6;

  --primary: #0a192f;
  --accent: #c05a35;
  --accent-hover: #a04929;

  --dark: #000000;
  --shadow-soft: 0 10px 30px rgba(10, 25, 47, 0.08);
  --shadow-card: 0 20px 40px rgba(10, 25, 47, 0.12);

  --radius-xl: 12px;
  --radius-lg: 8px;
  --radius-md: 4px;
  --radius-sm: 2px;

  --container: 1360px;
  --header-h: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 2.2;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

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

#projeto,
#vista,
#financiamento,
#contato {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* HEADER PRO */
.site-header {
  position: fixed; /* Ou absolute, se não quiser que ele siga o scroll */
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;

  --shell-bg: rgba(12, 18, 26, 0);
  --shell-border: rgba(255, 255, 255, 0);
  --shell-shadow: 0 0 0 rgba(0, 0, 0, 0);
  --shell-blur: 0px;
  --shell-y: 0px;
}

.site-header .container {
  max-width: none;
  width: 100%;
  padding: 0;
}

.header-shell {
  width: 100%;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;

  border-radius: 0 0 var(--radius-xl) var(--radius-xl);

  background: var(--shell-bg);
  border: 1px solid var(--shell-border);
  border-top: none;
  box-shadow: var(--shell-shadow);
  backdrop-filter: blur(var(--shell-blur)) saturate(150%);
  transform: translateY(var(--shell-y));

  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease,
    backdrop-filter 0.22s ease;
}

/* BRAND */
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.brand-logo {
  width: 110px;
  height: auto;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.1));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.brand-copy strong {
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  transition:
    color 0.22s ease,
    opacity 0.22s ease;
}

.brand-copy span {
  margin-top: 3px;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition:
    color 0.22s ease,
    opacity 0.22s ease;
}

/* TEMA */
.site-header[data-theme="dark"] .brand-copy strong,
.site-header[data-theme="dark"] .main-nav a:not(.nav-cta) {
  color: #ffffff;
}

.site-header[data-theme="dark"] .brand-copy span {
  color: rgba(255, 255, 255, 0.78);
}

.site-header[data-theme="light"] .brand-copy strong,
.site-header[data-theme="light"] .main-nav a:not(.nav-cta) {
  color: var(--primary);
}

.site-header[data-theme="light"] .brand-copy span {
  color: var(--text-soft);
}

/* MENU MOBILE E DESKTOP (MOBILE FIRST) */

/* Base mobile menu styling */
.main-nav {
  position: absolute;
  top: calc(100% + 12px);
  right: 24px;
  width: 100%;
  max-width: 280px;
  background: rgba(10, 25, 47, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  gap: 12px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.main-nav a:not(.nav-cta) {
  color: #ffffff;
  text-align: center;
  width: 100%;
  display: block;
  padding: 8px 0;
}

/* Force light text color on mobile regardless of header dataset theme */
.site-header[data-theme="light"] .main-nav a:not(.nav-cta) {
  color: #ffffff;
}

/* Base mobile toggle icon */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.site-header[data-theme="dark"] .menu-toggle span {
  background-color: #ffffff;
}

.menu-toggle.is-open span:first-child {
  transform: translateY(8.5px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:last-child {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* DESKTOP STYLES */
@media (min-width: 920px) {
  .menu-toggle {
    display: none !important;
  }

  .header-shell {
    gap: 40px;
  }

  .main-nav {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end; /* Aligned right */
    gap: 32px;
    width: 100% !important;
    max-width: none;
    position: static;
    background: transparent;
    padding: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
  }

  /* Restore colors on desktop based on theme */
  .main-nav a,
  .main-nav a:not(.nav-cta) {
    text-align: left;
    width: auto;
  }

  .site-header[data-theme="light"] .main-nav a:not(.nav-cta) {
    color: var(--primary);
  }

  .site-header[data-theme="dark"] .main-nav a:not(.nav-cta) {
    color: #ffffff;
  }
}

/* CTA */
.nav-cta {
  min-height: 46px;
  padding: 0 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff !important;
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(192, 90, 53, 0.3);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
  width: auto !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  background: var(--accent-hover);
  box-shadow: 0 12px 24px rgba(192, 90, 53, 0.4);
}

/* HERO */
.horizon-hero {
  position: relative;
  min-height: 100vh;
  background-image: url("../imgs/horizon-hero.webp");
  background-size: cover;
  background-position: center bottom;
  background-attachment: scroll;
  color: #fff;
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 115px 24px 60px;
}

.eyebrow,
.mini-label {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 24px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.mini-label {
  background: rgba(10, 25, 47, 0.05);
  color: var(--primary);
  border: 1px solid rgba(10, 25, 47, 0.1);
}

.hero-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 4.5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 680px;
}

.hero-copy h1,
.hero-lead,
.hero-points li {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.8);
}

.hero-lead {
  margin: 0 0 28px;
  max-width: 600px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}

.hero-points li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 25px rgba(192, 90, 53, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 14px 30px rgba(192, 90, 53, 0.4);
}

/* Responsividade do Hero */
@media (max-width: 768px) {
  .header-shell {
    padding: 0 16px;
  }

  .brand {
    gap: 10px;
  }

  .brand-logo {
    height: 40px;
  }

  .brand-copy strong {
    font-size: 0.94rem;
  }

  .brand-copy span {
    font-size: 0.67rem;
    letter-spacing: 0.08em;
  }

  .horizon-hero {
    background-position: right bottom;
  }

  .hero-content {
    padding: 100px 24px 40px;
  }
}

@media (min-width: 1120px) {
  .horizon-hero {
    background-position: center bottom;
  }
}

/* ACCORDION / CARROSSEL */
.content-grid {
  position: relative;
  margin-top: clamp(-80px, -10vw, -40px);
  z-index: 10;
}

@media (min-width: 768px) {
  .content-grid {
    margin-top: -40px;
  }
}

.showcase-overlap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 30px 60px rgba(10, 25, 47, 0.15);
  padding: 48px;
  backdrop-filter: blur(10px);
}

.cards-section {
  margin-top: 60px;
}

.section-block {
  margin-top: 60px;
}

.showcase-header {
  max-width: 800px;
  margin-bottom: 40px;
}

.showcase-header h2 {
  margin: 16px 0;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1.1;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.showcase-header p {
  color: var(--text-soft);
  font-size: 1.1rem;
  margin: 0;
}

/* MOBILE CARROSSEL */
.showcase-accordion {
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 16px;
  gap: 16px;
  height: clamp(400px, 50vh, 500px);
}

.showcase-accordion::-webkit-scrollbar {
  display: none;
}

.accordion-item {
  position: relative;
  flex: 0 0 85%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--primary);
  cursor: pointer;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.accordion-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  transform: scale(1);
  transition:
    transform 0.6s ease,
    opacity 0.4s ease;
}

.accordion-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 24px 24px;
  background: linear-gradient(
    to top,
    rgba(10, 25, 47, 0.95),
    rgba(10, 25, 47, 0)
  );
  color: #fff;
  transform: translateY(0);
  opacity: 1;
  transition:
    transform 0.6s ease,
    opacity 0.6s ease;
}

/* DESKTOP EXPANSÃO */
@media (min-width: 920px) {
  .showcase-accordion {
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .accordion-item {
    flex: 1;
  }

  .accordion-item img {
    opacity: 0.7;
  }

  .accordion-overlay {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (hover: hover) and (min-width: 921px) {
  .accordion-item:hover {
    flex: 3;
  }

  .accordion-item:hover img {
    transform: scale(1.08);
    opacity: 1;
  }

  .accordion-item:hover .accordion-overlay {
    transform: translateY(0);
    opacity: 1;
  }
}

/* GALERIA ROOFTOP */
.horizon-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1120px) {
  .horizon-gallery {
    grid-template-columns: 1.2fr 0.8fr;
    height: clamp(500px, 70vh, 700px);
  }
}

.gallery-link-card {
  display: flex;
  flex-direction: column;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--primary);
  position: relative;
}

@media (min-width: 1120px) {
  .gallery-link-card {
    height: 100%;
    aspect-ratio: auto;
  }
}

.gallery-media {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.gallery-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s ease;
}

.gallery-link-card:hover .gallery-media img {
  transform: scale(1.05);
}

.gallery-overlay-copy {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 40px 30px 30px;
  background: linear-gradient(
    to top,
    rgba(10, 25, 47, 0.9),
    rgba(10, 25, 47, 0)
  );
  color: #fff;
}

.gallery-kicker {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.gallery-overlay-copy h3 {
  font-size: clamp(1rem, 3vw, 1.25rem);
  margin: 0;
  line-height: 1.2;
}

.gallery-side-stack {
  display: grid;
  gap: 24px;
}

.gallery-side-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4/3;
}

@media (min-width: 1120px) {
  .gallery-side-stack {
    grid-template-rows: 1fr 1fr;
  }

  .gallery-side-card {
    aspect-ratio: auto;
  }
}

.gallery-side-copy {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 30px 20px 20px;
  background: linear-gradient(
    to top,
    rgba(10, 25, 47, 0.9),
    rgba(10, 25, 47, 0)
  );
  color: #fff;
}

/* BENEFÍCIOS */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1120px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.benefit-card {
  padding: 32px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent);
}

.benefit-card h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--primary);
}

.benefit-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}

/* FORMULÁRIO */
.contact-horizontal {
  max-width: 1320px;
  margin: 30px auto;
  padding: 40px 24px;
}

@media (min-width: 768px) {
  .contact-horizontal {
    padding: 60px 40px;
  }
}

.contact-horizontal .contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-horizontal .contact-header h2 {
  margin: 16px 0;
  color: var(--primary);
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  letter-spacing: -0.02em;
}

.contact-horizontal .contact-header p {
  color: var(--text-soft);
  font-size: 1.1rem;
}

.horizon-form {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group.full-width {
  margin-bottom: 32px;
}

.input-group label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 1rem;
  color: var(--text);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 18px;
  font-size: 1.1rem;
  margin-bottom: 32px;
  justify-content: center;
}

.whatsapp-alternative {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.whatsapp-alternative span {
  font-weight: 700;
  color: var(--primary);
}

.icon-whatsapp-link {
  color: #25d366;
  transition: transform 0.3s ease;
}

.icon-whatsapp-link:hover {
  transform: scale(1.1);
}

/* FOOTER */
.horizon-footer {
  padding: 52px 0;
  background: var(--primary);
  color: #f8f9fa;
  text-align: center;
}

/* MEDIA QUERIES */
@media (max-width: 920px) {
  /* Mobile nav */
  .main-nav {
    display: flex;
  }
}
