:root {
  --primary: #e6edf7;
  --primary-soft: #c6d2e4;
  --accent: #d4b15a;
  --accent-soft: #efdca8;
  --bg: #0b1220;
  --bg-soft: #111a2d;
  --card-bg: #162338;
  --white: #ffffff;
  --text: #dbe5f5;
  --muted: #9fb0c9;
  --line: #2c3b55;
  --radius: 14px;
  --shadow: 0 14px 35px rgba(3, 8, 18, 0.4);
  --container: min(1120px, 92vw);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

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

ul {
  list-style: none;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section-padding {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-header {
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.section-kicker {
  color: var(--accent);
  font-weight: 700;
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  font-family: "Poppins", sans-serif;
  line-height: 1.25;
  color: var(--primary);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.45rem);
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  margin-bottom: 0.8rem;
}

p {
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  font-weight: 600;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease,
    color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--accent) 0%, #b88f1c 100%);
  color: #111827;
  box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: var(--white);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-outline {
  border: 1px solid var(--line);
  color: var(--primary-soft);
  padding: 0.65rem 1.1rem;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(8, 14, 27, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.nav-wrapper {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
}

.logo-image {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
}

.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1rem;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.nav a {
  color: #edf2f7;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #f3f4f6;
  margin: 5px 0;
  transition: 0.25s;
}

.hero {
  position: relative;
  color: var(--white);
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=80");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(13, 27, 42, 0.86), rgba(13, 27, 42, 0.6));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero h1,
.hero p {
  color: var(--white);
}

.hero-subtitle {
  margin-top: 0.9rem;
  font-size: clamp(1rem, 2.2vw, 1.22rem);
  opacity: 0.92;
}

.hero-cta {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.icon-grid,
.cards-grid,
.footer-grid,
.contact-wrap {
  display: grid;
  gap: 1.2rem;
}

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

.icon-card,
.service-card,
.property-card,
.testimonial-card,
.contact-form {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.icon-card,
.service-card,
.testimonial-card {
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.icon-card:hover,
.service-card:hover,
.property-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(13, 27, 42, 0.14);
}

.icon {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

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

.service-card h3 {
  margin-bottom: 0.55rem;
}

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

.property-card {
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.property-carousel {
  position: relative;
  width: 100%;
  height: 230px;
  overflow: hidden;
  background: #0c1526;
}

.carousel-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.carousel-image.active {
  opacity: 1;
  pointer-events: auto;
  cursor: zoom-in;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(8, 12, 24, 0.55);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.carousel-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}

.carousel-dot.active {
  background: var(--accent);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: rgba(5, 10, 20, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.image-lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: min(96vw, 1080px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 24px 44px rgba(0, 0, 0, 0.45);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: #fff;
  background: rgba(10, 14, 24, 0.58);
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.lightbox-nav.prev {
  left: 18px;
}

.lightbox-nav.next {
  right: 18px;
}

.property-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.property-content {
  padding: 1.15rem;
}

.price {
  color: var(--accent-soft);
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  margin-bottom: 0.3rem;
}

.location {
  margin-bottom: 0.25rem;
}

.meta {
  font-size: 0.92rem;
  margin-bottom: 0.85rem;
}

.advantages-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 0.7rem;
}

.advantages-list li {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-weight: 600;
  color: var(--primary-soft);
}

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

.testimonial-card span {
  display: block;
  margin: 0.8rem 0 0.45rem;
}

.contact-wrap {
  grid-template-columns: 1fr 1.1fr;
  align-items: start;
}

.team-preview {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.team-member {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.team-member h4 {
  color: var(--primary);
  font-family: "Poppins", sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
}

.team-member p {
  color: var(--muted);
  font-size: 0.84rem;
}

.team-member img {
  width: 150%;
  max-width: 156px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 5%;
}

.contact-form {
  padding: 1.3rem;
  display: grid;
  gap: 0.55rem;
}

.contact-form label {
  font-weight: 600;
  color: var(--primary);
}

.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  background: #0f1a2e;
  color: var(--text);
  border-radius: 10px;
  padding: 0.78rem 0.9rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.15);
}

.map-section iframe {
  width: 100%;
  min-height: 360px;
  border: 0;
}

.footer {
  background: #080e1b;
  color: #e5e7eb;
}

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 3.2rem 0 2rem;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 0.7rem;
  font-size: 1.02rem;
}

.footer p,
.footer li,
.footer a {
  color: #cbd5e1;
}

.footer ul li + li {
  margin-top: 0.4rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.65rem;
  flex-wrap: wrap;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  text-align: center;
  padding: 1rem 0 1.3rem;
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1100;
  background: #22c55e;
  color: #fff;
  border-radius: 999px;
  padding: 0.82rem 1.05rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.4);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 991px) {
  .section-padding {
    padding: 4.9rem 0;
  }

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

  .contact-wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .advantages-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(13, 27, 42, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }

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

  .nav ul {
    flex-direction: column;
    align-items: flex-start;
    width: var(--container);
    margin: 0 auto;
    padding: 1rem 0 1.2rem;
  }

  .hero {
    min-height: 85vh;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: fit-content;
  }
}

@media (max-width: 600px) {
  .icon-grid,
  .services-grid,
  .property-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

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

  .carousel-btn {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }

  .image-lightbox {
    padding: 2rem 0.5rem;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 1.45rem;
  }

  .lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .lightbox-nav.prev {
    left: 8px;
  }

  .lightbox-nav.next {
    right: 8px;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 0.75rem 0.95rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .team-preview {
    grid-template-columns: 1fr;
  }
}