/* ==========================================================================
   WINSPER LAND INVESTMENTS — Layout
   ========================================================================== */

/* ============ SECTION ============ */
.section {
  padding: var(--section-py) 0;
  position: relative;
}

.section--alt {
  background-color: var(--color-off-white);
}

.section--green-light {
  background-color: var(--color-green-light);
}

.section--blue-light {
  background-color: var(--color-blue-light);
}

.section--red-light {
  background-color: var(--color-red-light);
}

.section--dark {
  background: var(--gradient-dark);
  color: var(--color-text-inverse);
  position: relative;
}

/* Subtle glow behind dark sections */
.section--dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-blue), var(--color-green), transparent);
  opacity: 0.5;
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-text-inverse);
}

.section--dark p {
  color: var(--color-gray-300);
}

/* ============ GRIDS ============ */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

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

.grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

/* ============ SPLIT LAYOUT ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.split__image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform var(--duration-slow) var(--ease-out);
}

.split__image:hover img {
  transform: scale(1.03);
}

.split__content {
  max-width: 520px;
}

/* ============ TOP BAR ============ */
.top-bar {
  background-color: var(--color-blue);
  color: var(--color-white);
  font-size: var(--text-xs);
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  z-index: calc(var(--z-sticky) + 2);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
}

.top-bar__inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.top-bar__contact svg {
  width: 14px;
  height: 14px;
}

.top-bar__contact-link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: var(--weight-medium);
  transition: opacity var(--duration-fast);
}

.top-bar__contact-link:hover {
  opacity: 0.8;
}

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

.top-bar__social-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-white);
  text-decoration: none;
  transition: opacity var(--duration-fast);
}

.top-bar__social-link:hover {
  opacity: 0.8;
}

.top-bar__social-link svg {
  width: 14px;
  height: 14px;
}

/* Hide text labels on very small screens */
@media (max-width: 600px) {
  .top-bar__social-text {
    display: none;
  }
}

/* ============ NAVIGATION ============ */
.nav {
  position: fixed;
  top: 36px;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  padding: var(--space-5) 0;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav.scrolled {
  top: 0;
  padding: var(--space-3) 0;
  background: var(--color-green);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  color: var(--color-white);
  text-decoration: none;
  flex-shrink: 0;
  transition: color var(--duration-normal);
}

.nav.scrolled .nav__logo {
  color: var(--color-white);
}

.nav__logo img {
  width: 130px !important;
  height: auto;
  transition: width var(--duration-normal);
}

@media (min-width: 768px) {
  .nav__logo img {
    width: 180px !important;
  }
}

.nav__logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

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

.nav__logo-name {
  font-size: var(--text-sm);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-wide);
}

.nav__logo-tagline {
  font-size: 9px;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  opacity: 0.7;
}

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

.nav__link {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--color-white);
  background-color: var(--color-blue);
}

.nav.scrolled .nav__link {
  color: rgba(255, 255, 255, 0.85);
}

.nav.scrolled .nav__link:hover,
.nav.scrolled .nav__link.active {
  color: var(--color-white);
  background-color: var(--color-green);
}

.nav__cta {
  flex-shrink: 0;
}

.nav__cta .btn {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-5);
  min-height: 40px;
}

/* Mobile Menu Toggle */
.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  border-radius: var(--radius-md);
  transition: color var(--duration-normal);
}

.nav.scrolled .nav__toggle {
  color: var(--color-white);
}

.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-out);
}

.nav__toggle-bar::before {
  top: -7px;
}

.nav__toggle-bar::after {
  top: 7px;
}

.nav__toggle.active .nav__toggle-bar {
  background-color: transparent;
}

.nav__toggle.active .nav__toggle-bar::before {
  top: 0;
  transform: rotate(45deg);
}

.nav__toggle.active .nav__toggle-bar::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile Menu */
.nav__mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--color-white);
  z-index: calc(var(--z-sticky) + 1);
  padding: var(--space-20) var(--space-6) var(--space-6);
  transition: right var(--duration-normal) var(--ease-out);
  overflow-y: auto;
  box-shadow: var(--shadow-2xl);
}

.nav__mobile-menu.open {
  right: 0;
}

.nav__mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: var(--overlay-dark);
  z-index: var(--z-sticky);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal);
}

.nav__mobile-backdrop.visible {
  opacity: 1;
  pointer-events: all;
}

.nav__mobile-link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-md);
  font-weight: var(--weight-medium);
  color: var(--color-charcoal);
  border-bottom: 1px solid var(--color-border);
  transition: color var(--duration-fast);
}

.nav__mobile-link:hover {
  color: var(--color-primary);
}

.nav__mobile-cta {
  margin-top: var(--space-6);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

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

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

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
      rgba(11, 19, 43, 0.5) 0%,
      rgba(37, 99, 235, 0.2) 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-top: var(--space-24);
}

.hero__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-6);
  letter-spacing: var(--tracking-tight);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
  max-width: 580px;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.7);
  font-weight: var(--weight-medium);
}

.hero__trust-icon {
  width: 16px;
  height: 16px;
  color: var(--color-green);
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-wider);
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(8px);
  }
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

/* ============ FULL-WIDTH CTA ============ */
.fullwidth-cta {
  position: relative;
  padding: var(--space-24) 0;
  overflow: hidden;
}

.fullwidth-cta__bg {
  position: absolute;
  inset: 0;
}

.fullwidth-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fullwidth-cta__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  opacity: 0.9;
}

.fullwidth-cta__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.fullwidth-cta__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
}

.fullwidth-cta__text {
  font-size: var(--text-md);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
}

/* ============ FOOTER ============ */
.footer {
  background-color: var(--color-charcoal);
  color: var(--color-gray-300);
  padding: var(--space-16) 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-10);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  margin-top: var(--space-4);
  line-height: var(--leading-relaxed);
  max-width: 300px;
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-5);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  padding: var(--space-1) 0;
  transition: color var(--duration-fast);
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.footer__social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  transition: all var(--duration-fast);
}

.footer__social-link:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.footer__social-link svg {
  width: 16px;
  height: 16px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding: var(--space-6) 0;
  font-size: var(--text-xs);
  color: var(--color-gray-500);
}

.footer__bottom-links {
  display: flex;
  gap: var(--space-6);
}

.footer__bottom-links a {
  transition: color var(--duration-fast);
}

.footer__bottom-links a:hover {
  color: var(--color-white);
}

/* ============ FLOATING ACTION BUTTON ============ */
.fab {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-fab);
}

.fab__btn {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all var(--duration-normal) var(--ease-out);
}

.fab__btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.fab__btn svg {
  width: 28px;
  height: 28px;
}

.fab__tooltip {
  position: absolute;
  right: calc(100% + var(--space-3));
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--color-charcoal);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-fast);
}

.fab__btn:hover+.fab__tooltip,
.fab:hover .fab__tooltip {
  opacity: 1;
}

/* Mobile sticky bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fab);
  background-color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  gap: var(--space-3);
}

.mobile-sticky-bar .btn {
  flex: 1;
  min-height: 48px;
  font-size: var(--text-sm);
}