/* ==========================================================================
   Flip Homes — Exact Visual Match to Site Premium de Reformas Imobiliárias
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background-color: #071019;
  overflow-x: clip;
}

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

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

section[id] {
  scroll-margin-top: 80px;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 9999;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1240px, calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.92rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), background-color var(--dur-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn--gold {
  background: linear-gradient(180deg, #E6C158 0%, #CFA32D 100%);
  color: #08121E;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.25);
}

.btn--gold:hover {
  background: linear-gradient(180deg, #EFCE6F 0%, #D9AE3A 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(212, 175, 55, 0.36);
}

.btn--navy {
  background: #0A1522;
  color: var(--white);
}

.btn--navy:hover {
  background: #14273C;
  transform: translateY(-2px);
}

.btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
}

.btn--outline-light:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--sm {
  padding: 0.72rem 1.35rem;
  font-size: 0.88rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(7, 15, 25, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.32);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-lockup__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-lockup__icon--lg {
  width: 62px;
  height: 62px;
}

.brand-lockup__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-lockup__name {
  font-family: var(--font-condensed);
  font-size: 1.9rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

.brand-lockup__name--lg {
  font-size: 2.3rem;
}

.brand-lockup__name span {
  color: var(--gold);
}

.brand-lockup__tagline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 3px;
}

.brand-lockup__tagline::before,
.brand-lockup__tagline::after {
  content: "";
  width: 14px;
  height: 1px;
  background: rgba(212, 175, 55, 0.65);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.site-nav__link {
  position: relative;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  padding: 0.45rem 0;
  transition: color var(--dur-fast);
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-med) var(--ease-out);
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--gold);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  color: var(--white);
  cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(5, 11, 19, 0.78);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med), visibility var(--dur-med);
}

.mobile-drawer.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(330px, 88vw);
  height: 100%;
  background: #08121E;
  border-left: 1px solid rgba(212, 175, 55, 0.28);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateX(100%);
  transition: transform var(--dur-med) var(--ease-out);
}

.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

.mobile-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.mobile-drawer__close {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: transparent;
  color: var(--white);
  border-radius: 6px;
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-drawer__links {
  display: flex;
  flex-direction: column;
}

.mobile-drawer__links a {
  text-decoration: none;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-drawer__links a:hover {
  color: var(--gold);
}

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  position: relative;
  min-height: clamp(470px, 60vh, 580px);
  display: flex;
  align-items: center;
  background: #070F18;
  color: var(--white);
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
}

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

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(6, 13, 22, 0.94) 0%,
    rgba(6, 13, 22, 0.78) 36%,
    rgba(6, 13, 22, 0.26) 62%,
    rgba(6, 13, 22, 0.05) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: clamp(3rem, 6vw, 4.75rem) 0;
}

.hero__box {
  max-width: 740px;
}

.hero__accent-bar {
  width: 66px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__title {
  font-family: var(--font-body);
  font-size: clamp(2.15rem, 3.7vw, 3.3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  color: var(--white);
}

.hero__title span {
  display: block;
  color: #E2B74B;
}

.hero__lead {
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  color: rgba(245, 245, 245, 0.92);
  margin: 0 0 1.85rem;
  line-height: 1.55;
}

/* ==========================================================================
   2. 4-ICON VALUE BAR
   ========================================================================== */
.value-strip {
  background: linear-gradient(180deg, #08121E 0%, #0A1523 100%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.22);
  color: var(--white);
}

.value-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.value-strip__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.95rem;
  padding: 1.6rem 1.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.value-strip__item:last-child {
  border-right: 0;
}

.value-strip__icon {
  width: 44px;
  height: 44px;
  color: #DDB44B;
  flex-shrink: 0;
}

.value-strip__label {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.32;
  color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   3. WHY FLIP HOMES (Diagonal Gold Slash Split)
   ========================================================================== */
.why-section {
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}

.why-split {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  min-height: 460px;
}

.why-media {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--navy);
}

.why-media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.why-media::after {
  content: "";
  position: absolute;
  top: -5%;
  right: -2px;
  bottom: -5%;
  width: 120px;
  background: var(--white);
  clip-path: polygon(100% 0, 100% 100%, 46% 100%, 0 0);
  pointer-events: none;
  z-index: 2;
}

.why-media::before {
  content: "";
  position: absolute;
  top: -5%;
  right: 0;
  bottom: -5%;
  width: 128px;
  background: #D4AF37;
  clip-path: polygon(0 0, 7% 0, 53% 100%, 46% 100%);
  pointer-events: none;
  z-index: 3;
}

.why-body {
  display: flex;
  align-items: center;
  padding: clamp(2.75rem, 5vw, 4.25rem) clamp(1.5rem, 5vw, 4.25rem) clamp(2.75rem, 5vw, 4.25rem) clamp(1.5rem, 3vw, 2.5rem);
  background: var(--white);
}

.why-body__inner {
  width: 100%;
  max-width: 540px;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C79B28;
  margin: 0 0 0.65rem;
}

.why-title {
  font-family: var(--font-body);
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0D1B2A;
  margin: 0 0 1.1rem;
}

.why-title span {
  display: block;
  color: #D2A432;
}

.why-desc {
  font-size: 0.98rem;
  color: #374151;
  margin: 0 0 1.65rem;
  line-height: 1.6;
}

.why-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.94rem;
  font-weight: 500;
  color: #1F2937;
}

.check-list svg {
  color: #D2A432;
  flex-shrink: 0;
}

/* ==========================================================================
   4. OUR RECENT PROJECTS (3 Before & After Cards)
   ========================================================================== */
.projects-section {
  background: #08111B;
  color: var(--white);
  padding: clamp(3rem, 5.5vw, 4.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  border-top: 1px solid rgba(212, 175, 55, 0.25);
}

.centered-head {
  text-align: center;
  max-width: 780px;
  margin: 0 auto clamp(2rem, 3.5vw, 2.75rem);
}

.framed-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.65rem;
}

.framed-eyebrow::before,
.framed-eyebrow::after {
  content: "";
  height: 1px;
  width: clamp(60px, 16vw, 220px);
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.7), rgba(212, 175, 55, 0.7));
}

.framed-eyebrow::after {
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.7), rgba(212, 175, 55, 0.7), transparent);
}

.section-heading {
  font-family: var(--font-body);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}

.section-heading span {
  color: #E2B74B;
}

.ba-trio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.ba-card {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #08111B;
  cursor: pointer;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med), box-shadow var(--dur-med);
}

.ba-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
}

.ba-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 25 / 10;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.ba-card:hover img {
  transform: scale(1.02);
}

/* ==========================================================================
   5. FOOTER CTA BANNER
   ========================================================================== */
.cta-footer-banner {
  position: relative;
  background:
    linear-gradient(90deg, rgba(6, 13, 22, 0.92) 0%, rgba(10, 20, 34, 0.85) 50%, rgba(6, 13, 22, 0.82) 100%),
    url("../images/mockup-hero.jpg") center / cover no-repeat;
  color: var(--white);
  border-top: 1px solid rgba(212, 175, 55, 0.35);
  padding: clamp(2.25rem, 4.5vw, 3.25rem) 0;
}

.cta-footer-banner__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.cta-footer-banner__center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding-left: clamp(1.25rem, 3vw, 2.75rem);
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.wa-big-icon {
  width: 48px;
  height: 48px;
  color: #E2B74B;
  flex-shrink: 0;
}

.cta-footer-banner__kicker {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 0.1rem;
}

.cta-footer-banner__phone {
  font-size: clamp(1.45rem, 2.7vw, 2.15rem);
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  line-height: 1.1;
  transition: color var(--dur-fast);
}

.cta-footer-banner__phone:hover {
  color: var(--gold);
}

/* ==========================================================================
   MODALS
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(5, 11, 19, 0.88);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-med), visibility var(--dur-med);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal__dialog {
  width: min(860px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: #0A1523;
  color: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.42);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal__dialog--sm {
  width: min(560px, 100%);
}

.modal__close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(8, 16, 26, 0.88);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--gold);
  color: var(--navy);
}

.modal__body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.modal__desc {
  font-size: 0.94rem;
  color: var(--slate-light);
  margin: 0 0 1.4rem;
}

.modal__hint {
  font-size: 0.78rem;
  color: var(--slate-light);
}

.modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Interactive Drag Slider Inside Modal */
.ba-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #060D15;
  user-select: none;
  touch-action: pan-y;
}

.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-before-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 50% 0 0);
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: 3px solid var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}

.ba-tag {
  position: absolute;
  top: 1rem;
  z-index: 4;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  pointer-events: none;
}

.ba-tag--before {
  left: 1rem;
  background: rgba(8, 16, 26, 0.85);
  color: var(--white);
}

.ba-tag--after {
  right: 4rem;
  background: var(--gold);
  color: var(--navy);
}

.ba-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ba-presets {
  display: flex;
  gap: 0.45rem;
}

.ba-preset-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--slate-light);
  padding: 0.4rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
}

.ba-preset-btn.is-active,
.ba-preset-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* Modal Forms & Process Steps */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.92rem;
  color: var(--white);
}

.field select option {
  background: var(--navy);
  color: var(--white);
}

.steps-modal-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.step-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--gold);
  padding: 0.85rem 1rem;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.step-item strong {
  color: var(--gold);
  font-size: 0.94rem;
}

.step-item span {
  font-size: 0.86rem;
  color: var(--slate-light);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1060px) {
  .value-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-strip__item:nth-child(2n) {
    border-right: 0;
  }

  .value-strip__item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .why-split {
    grid-template-columns: 1fr;
  }

  .why-media {
    min-height: 300px;
    border-bottom: 4px solid var(--gold);
  }

  .why-media::before,
  .why-media::after {
    display: none;
  }

  .ba-trio-grid {
    grid-template-columns: 1fr;
  }

  .cta-footer-banner__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cta-footer-banner__center {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1.25rem 0;
    width: 100%;
  }
}

@media (max-width: 820px) {
  .site-nav,
  .header__actions .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hide-mobile {
    display: none;
  }
}

@media (max-width: 560px) {
  .value-strip__grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .value-strip__item {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .hero__actions .btn {
    width: 100%;
  }
}
