:root{
  --bg:#020617;
  --navy:#0a192f;
  --blue:#3b82f6;
  --gold:#d4af37;
  --white:#ffffff;
  --header-height: 88px;
}

body{
  margin:0;
  font-family:Poppins, sans-serif;
  background:var(--bg);
  color:var(--white);
  font-size: 15px;
  line-height: 1.6;
}

a{
  text-decoration:none;
  color:var(--white);
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: linear-gradient(180deg, #050b1a, #020617);
  z-index: 1000;
}

.nav {
  height: 88px;                 /* 👈 ADD HERE */
  display: flex;
  align-items: center;          /* 👈 IMPORTANT */
  justify-content: space-between;
  padding: 0 20px;
  height: var(--header-height);
}


.logo{
  height:64px;              /* visible logo height */
  width:220px;              /* makes logo wider */
  overflow:hidden;          /* hides extra space */
  display:flex;
  align-items:center;
}

.logo img{
  width:220px;              /* force width */
  height:auto;
  margin-top:-2px;        /* THIS removes empty top space */
}

.menu{
  display:flex;
  gap:28px;
  list-style:none;
}

.menu a{
  font-weight:500;
}

.menu a:hover{
  color:var(--gold);
}

.hamburger{
  display:none;
  font-size:28px;
  cursor:pointer;
}

.mobile-menu{
  display:none;
  padding:20px;
  background:#020617;
}

.mobile-menu a{
  display:block;
  padding:12px 0;
}

/* HERO */
.hero-slider{
  min-height: calc(100vh - var(--header-height));
  padding-top: 120px 24px 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* LEFT ALIGN */
  text-align: left;
  max-width: 1200px;
}

.hero-slider,
.property-hero {
  padding-top: calc(var(--header-height) + env(safe-area-inset-top));   /* same as header height */
 }

.slide{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  opacity:0;
  transition:opacity 1s ease;
}

.slide.active{
  opacity:1;
}

.hero-content{
  position:relative;
  inset:0;
  background:rgba(10,25,47,.65);
  max-width: 1100px;
  margin: auto;
  padding:40px 24px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}

.hero-content h1{
  font-size: clamp(22px, 3vw, 25px);
  line-height:1.25;
}

.hero-content p{
  max-width:500px;
  margin-top:5px;
  font-size: clamp(13px, 2.2vw, 15px);
}

.hero-buttons{
  display:flex;
  gap:14px;
  margin-top:24px;
  flex-wrap:wrap;
}

.btn{
  padding:12px 20px;
  font-size: 14px;
  border-radius:12px;
  font-weight:600;
}

.primary{
  background:var(--blue);
}

.primary:hover{
  box-shadow:0 0 0 2px var(--gold);
}

.secondary{
  border:1px solid var(--white);
}

/* CONTENT */
.page{
  padding:60px 24px;
  max-width:1100px;
  margin:auto;
}

.page h2{
  text-align:center;
  margin-bottom:40px;
  font-size: clamp(18px, 2.5vw, 22px);
}

.cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px;
}

.card{
  background:#020617;
  border-radius:18px;
  overflow:hidden;
}

.card img{
  width:100%;
  height:190px;
  object-fit:cover;
}

.card h3{
  padding:12px 16px 0;
  font-size: clamp(15px, 2.5vw, 18px);
}

.card p{
  padding:0 16px;
  font-size: clamp(13px, 2.2vw, 15px);
}

.price{
  padding:0 16px 16px;
  color:var(--gold);
  font-weight:600;
}

.center{
  text-align:center;
  margin-top:40px;
}

/* FOOTER */
footer{
  background:#020617;
  padding:50px 24px;
  text-align:center;
}

.footer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}

.copy{
  margin-top:24px;
  font-size: clamp(12px, 2vw, 14px);
  
}

/* MOBILE */
@media(max-width:768px){
  .menu{display:none}
  .hamburger{display:block}

  .logo{
    width:180px;
    height:56px;
  }

  .logo img{
    width:180px;
    margin-top:-2px;
  }
  .hero-content h1{
    font-size:30px;
  }

  .footer-grid{
    grid-template-columns:1fr;
  }
}
/* LOGO */
.logo-img{
  height:48px;
  width:auto;
}

/* CONTACT PAGE */
.contact-hero{
  padding:40px 20px 20px;
  text-align:center;
  background:linear-gradient(135deg,#020617,#0f172a);
}

.contact-hero h1{
  font-size: clamp(22px, 3vw, 25px);
  margin-bottom:8px;
}

.contact-hero p{
  max-width:600px;
  margin:auto;
  opacity:.9;
}

.contact-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:0px 20px;
  max-width:1100px;
  margin:auto;
}

.contact-info,
.contact-form{
  background:#020617;
  padding:15px;
  border-radius:16px;
}

.contact-info h2,
.contact-form h2{
  margin-bottom:10px;
  color:#d4af37;
}

.contact-info p{
  margin-bottom:12px;
  font-size: clamp(13px, 2.2vw, 15px);
}

.contact-form label{
  display:block;
  margin:10px 0 5px;
  font-size:14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea{
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid #1e293b;
  background:#020617;
  color:#fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#3b82f6;
}

.btn.full{
  width:100%;
  margin-top:20px;
}

.contact-hero {
  padding-top: clamp(88px, 9vw, 110px);
}

/* MOBILE */
@media(max-width:768px){
  .contact-wrapper{
    grid-template-columns:1fr;
  }

  .contact-hero h1{
    font-size:22px;
  }
}
/* MOBILE ORDER FIX FOR CONTACT PAGE */
@media (max-width: 768px) {

  .contact-wrapper{
    display: flex;
    flex-direction: column;
  }

  /* Show FORM first */
  .contact-form{
    order: 1;
  }

  /* Show CONTACT INFO after form */
  .contact-info{
    order: 2;
    margin-top: 20px;
  }
}
/* ABOUT PAGE UPGRADE */

.timeline{
  display:grid;
  gap:20px;
}

.timeline-item{
  display:flex;
  gap:20px;
  background:#020617;
  padding:20px;
  border-radius:14px;
}

.timeline-item span{
  font-weight:700;
  color:#d4af37;
  min-width:60px;
}

.stats-section{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:20px;
  text-align:center;
}

.stat{
  background:#020617;
  padding:30px 20px;
  border-radius:18px;
}

.stat h3{
  font-size:32px;
  color:#d4af37;
}

.stat p{
  margin-top:8px;
  font-size:14px;
  opacity:.9;
}
/* HERO IMAGE */
.about-hero-image{
  height:70vh;
  background:url('https://images.unsplash.com/photo-1572120360610-d971b9d7767c') center/cover no-repeat;
  position:relative;
}

.about-hero-image .overlay{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.7);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.about-hero-image h1{
  font-size: clamp(22px, 3vw, 25px);
}

.about-section{
  max-width:1100px;
  margin:auto;
  padding:20px 20px;
}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:40px;
  align-items:center;
}

.split img{
  width:100%;
  border-radius:18px;
}

.reverse{
  direction:rtl;
}
.reverse *{
  direction:ltr;
}

.timeline-section{
  background:#020617;
  padding:10px 20px;
  text-align:center;
}

.timeline-cards{
  display:flex;
  justify-content:center;
  gap:20px;
  margin-top:10px;
  flex-wrap:wrap;
}

.timeline-card{
  background:#020617;
  border:1px solid #1e293b;
  padding:20px;
  border-radius:20px;
  max-width:300px;
}

.timeline-card.highlight{
  border-color:#d4af37;
}

.why-list{
  list-style:none;
  padding:0;
}

.why-list li{
  margin-bottom:10px;
}

.stats-modern{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:10px;
  padding:40px 20px;
  text-align:center;
}

.stats-modern h3{
  padding:5px 10px;
  font-size:25px;
  color:#d4af37;
}

.about-cta{
  background:linear-gradient(135deg,#1e293b,#020617);
  padding:20px 20px;
  font-size:15px;
  text-align:center;
}

@media(max-width:768px){
  .split{
    grid-template-columns:1fr;
  }
  .about-hero-image h1{
    font-size:28px;
  }
}
/* CAREERS PAGE */

.careers-hero{
  height:70vh;
  background:url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d') center/cover no-repeat;
  position:relative;
}

.careers-hero .overlay{
  position:absolute;
  inset:0;
  background:rgba(2,6,23,.75);
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:20px;
}

.careers-hero h1{
  font-size: clamp(22px, 3vw, 26px);
}

.careers-section{
  padding:20px 20px;
  max-width:1100px;
  margin:auto;
  text-align:center;
}

.careers-section.dark{
  padding:5px 20px;
  background:#020617;
  border-radius:30px;
}

.career-benefits{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:5px;
  margin-top:30px;
}

.benefit-card{
  background:#020617;
  padding:5px 20px;
  border-radius:16px;
  font-size: clamp(13px, 2.2vw, 15px);
}

.job-cards{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
  margin-top:40px;
}

.job-card{
  background:#020617;
  padding:20px;
  border-radius:20px;
  text-align:left;
}

.job-card h3{
  color:#d4af37;
  font-size: clamp(17px, 2vw, 20px);
}

.job-card p{
  opacity:.8;
  font-size: clamp(13px, 1.8vw, 14px);
}

.job-card ul{
  padding-left:18px;
  margin:15px 0;
  font-size: clamp(13px, 1.8vw, 14px);
}

.apply-text{
  max-width:600px;
  margin:20px auto;
  opacity:.9;
}

@media(max-width:768px){
  .careers-hero h1{
    font-size:clamp(15px, 3vw, 25px);
  }
}
/* ===============================
   VIEW DETAILS – MOBILE FIX
   =============================== */

.view-btn{
  display:block;
  width:100%;
  margin:16px 0 20px;
  padding:14px 0;
  border-radius:14px;
  font-size:16px;
  font-weight:500;
  text-align:center;
  background:transparent;
  border:1px solid #3b82f6;
  color:#3b82f6;
  transition:all .3s ease;
}

@media(min-width:769px){
  .view-btn{
    width:auto;
    margin:14px 16px 20px;
  }

  .card:hover .view-btn{
    background:#3b82f6;
    color:#fff;
  }
}
/* ===============================
   FORCE SINGLE COLUMN ON MOBILE
   =============================== */

@media (max-width: 768px) {
  .cards {
    grid-template-columns: 1fr !important;
  }
}
/* ===== PROPERTY GALLERY ===== */
.property-gallery {
  padding: 60px 20px;
  text-align: center;
}
.section-title {
  font-size: clamp(18px, 2.5vw, 22px);
  margin-bottom: 30px;
  color: #d4af37;
}

.slider {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
  border-radius: 18px;
}
.slides {
  position: relative;
  width: 100%;
  height: 420px;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.slide.active {
  display: block;
}
/* Navigation buttons */
.slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 50%;
  transition: 0.3s;
}

.slider .nav:hover {
  background: #f5c15b;
  color: #000;
}

.slider .prev { left: 15px; }
.slider .next { right: 15px; }

/* Mobile */
@media (max-width: 768px) {
  .slide {
    height: 240px;
  }

  .section-title {
    font-size: 22px;
  }
}
/* Navigation */
.slider .nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.slider .prev { left: 15px; }
.slider .next { right: 15px; }

/* Mobile */
@media (max-width: 768px) {
  .slides {
    height: 240px;
  }
}

@media (max-width: 768px) {
  header {
    height: 76px;
  }

  .nav {
    height: 76px;
  }

  .hero-slider,
  .property-hero {
    padding-top: 96px;
  }

.overlay h1 {

    font-size: clamp(22px, 3vw, 25px);
    line-height: 1.2;
    margin-top: 0;
  }

.hero-slider {
    padding-bottom: 20px;
  }

.hero-content {
    padding-bottom: 20px; /* 🔥 reduce extra gap */
  }

.page {
    padding-top: 20px;
  }

 .hero-content h1{
    font-size: clamp(10px, 6vw, 20px);
  }

  .hero-content p{
    font-size: clamp(8px, 3vw, 15px);
  }

  .section-title{
    font-size: clamp(18px, 2.5vw, 22px);
  }
 .hero-slider {
    min-height: auto;          /* 🔥 removes forced tall section */
    padding-bottom: 16px;      /* small breathing space */
  }

  /* Reduce dark overlay padding */
  .hero-content {
    padding-bottom: 16px;      /* 🔥 this was creating gap */
  }

  /* Reduce gap before Featured Properties */
  .page.home-properties {
    padding-top: 20px;         /* 🔥 default was 60px */
  }

  /* Optional: tighten section title spacing */
  .page.home-properties h2 {
    margin-top: 10px;
    margin-bottom: 24px;
  }
.careers-hero {
    min-height: 55vh;       /* 🔥 was too tall */
    display: flex;
    align-items: center;
  }

  .careers-hero .overlay {
    padding: 20px 16px 24px;
    text-align: center;
  }

  .careers-hero h1 {
    font-size: 22px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  .careers-hero p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 0;
  }

 .careers-section {
    padding: 32px 16px;   /* 🔥 reduced from desktop */
  }

  .careers-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

.career-benefits {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;           /* 🔥 tight but breathable */
  }

  .benefit-card {
    padding: 14px 16px;
    font-size: 13px;
    border-radius: 12px;
  }

.job-cards {
    gap: 20px;
  }

  .job-card {
    padding: 18px;
  }

  .job-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .job-card p {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .job-card ul {
    margin-bottom: 14px;
  }

#apply {
    padding-top: 28px;
    padding-bottom: 36px;
  }

  .apply-text {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 18px;
  }


}
