/* ===== Layout Containers ===== */
.container {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
  
  .section {
    padding: clamp(64px, 8vw, 120px) 0;
  }
  
  .section-sm {
    padding: clamp(48px, 6vw, 64px) 0;
  }
  
  .section-lg {
    padding: clamp(80px, 10vw, 140px) 0;
  }
  
  /* DEFAULT NAVBAR (ALL PAGES) */
.navbar {
    position: relative;
    background: #fff;
    z-index: 100;
  }
  
  /* HOMEPAGE ONLY: navbar overlays hero video */
  .home-page .navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 3;
  }
  


  .hero {
    position: relative; /* This is the anchor for everything inside */
    width: 100%;
    min-height: 100vh; /* Takes up full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Crops the video if it spills over */

    
    padding-bottom: 140px;
  }
  
  .back-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures video fills screen without stretching */
    z-index: 0;
    pointer-events:none; 
  }

  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* 40% dark tint */
    z-index: 1;        /* Middle Layer */
  }



  .hero-foreground {
    position: relative; 
    z-index: 2;    
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    padding: 120px 20px 0px;

  }
  
  .hero-content {
    max-width: 650px;
  }
  
  .hero-content h1 {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  }
  
  .hero-content p {
    font-size: clamp(16px, 2vw, 18px);
    color: #e2e8f0;
    margin-bottom: 40px;
    font-weight: 500;
  }
  
  
  .search-box {
    background: rgba(255, 255, 255, 0);
    border-radius: 26px;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
    max-width: 1100px;
    width: 100%;
  }
  
  .search-heading {
    margin-bottom: 25px;
  }
  
  .search-heading h3 {
    font-size: 22px;
    font-weight: 600;
    color: #ff9800;
  }
  
  .search-heading p {
    margin-top: 6px;
    font-size: 14px;
    color: #fff;
  }
  
  
  .filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
  }
  
  .filters input,
  .filters select {
    height: 52px;
    padding: 14px 18px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
  }
  
  .filters select:focus {
    border-color: var(--accent-orange); /* Highlight when clicking */
  }

  .search-btn {
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--accent-orange);
    color: #fff;
    text-decoration: none;
    width:80%;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(255, 152, 0, 0.25);
    transition: all 0.25s ease;
    justify-content: center;
    align-items: center;
  }

  .hero-search-btn {
    width: 100%;
    height: 50px;
    border-radius: 999px;
    margin-top: 24px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
  
    background: var(--accent-orange);
    color: #fff;
    font-weight: 600;
    font-size: 16px;

    margin-bottom: 40px; 
  }
  
  
  .stats-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #003ea8, #0057d8);
    color: #fff;
  }
  
  .stats-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    text-align: center;
  }
  
  .stats-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 10px;
  }
  
  .stats-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 60px;
  }
  
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
  }
  
  /* CARD */
  .stat-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    padding: 40px 25px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  }
  
  /* ICON */
  .stat-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: rgba(255, 165, 0, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .stat-icon img {
    width: 28px;
    height: 28px;
  }
  
  /* TEXT */
  .stat-card h3 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
  }
  
  .stat-card p {
    font-size: 16px;
    opacity: 0.9;
    color: #e2e8f0;
  }
  
  /* RESPONSIVE */
  @media (max-width: 992px) {
    .stats-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  @media (max-width: 576px) {
    .stats-grid {
      grid-template-columns: 1fr;
    }
  
    .stats-title {
      font-size: 32px;
    }
  }
  

  .stats .container {
    max-width: 1100px;
  }

  .featured .container {
    text-align: center;
  }
  
  .property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
  }
  
  
  .property-card {
    background: white;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s;
  }
  
  .property-card:hover {
    transform: translateY(-8px);
  }
  
  .property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
  }
  
  .property-info {
    padding: 20px;
    text-align: left;
  }
  
  .property-info h4 {
    color: var(--accent-orange);
    font-size: 18px;
  }
  
  .property-info p {
    color: var(--text-light);
    font-size: 14px;
  }

  .premium .container,
.about .container,
.agents .container {
  text-align: center;
}


/* ===== PREMIUM CAROUSEL ===== */

.premium-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .carousel-controls {
    display: flex;
    gap: 9px;
  }
  
  .carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    font-size: 22px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
    text-decoration: none;

  }
  
  .carousel-btn:hover {
    background: var(--accent-orange);
    color: #fff;
  }
  
  /* SCROLL CONTAINER */
  .premium-carousel {
    display: flex;
    gap: 30px;
    flex-wrap:nowrap;
  
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding-bottom: 10px;
  }
  
  .premium-carousel::-webkit-scrollbar {
    display: none;
  }
  
  /* CARD */
  .premium-card {
    min-width: 300px;
    border-radius: 30px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease;
    flex: 0 0 360px;
  }
  
  .premium-card:hover {
    transform: translateY(-6px);
  }
  
  .premium-card img {
    width: 100%;
    height: 420px;
    object-fit: cover;
  }
  
  .premium-info {
    padding: 20px;
    text-decoration: none;
  }
  
  .premium-info h4 {
    font-size: 20px;
    color: var(--accent-orange);
    text-decoration: none;

  }
  
  .premium-info p {
    font-size: 14px;
    color: var(--text-light);
    text-decoration: none;
  }
  
  .premium {
    position: relative;
    overflow: hidden; 
    text-decoration: none;
  }
  
/* ===== ABOUT PAGE ===== */

.about-header {
    text-align: center;
  }
  
  .about-header p {
    margin-top: 12px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
  }
  
  .about-text p {
    margin-top: 16px;
  }
  
  .about-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .highlight-card {
    background: #fff;
    border-radius: 26px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  }
  
  .highlight-card h3 {
    font-size: 32px;
    color: var(--accent-orange);
  }
  
  /* VALUES */
  .values {
    text-align: center;
  }
  
  .values-grid {
    margin-top: 48px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
  }
  
  .value-card {
    background: #fff;
    border-radius: 24px;
    padding: 36px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  }
  
  /* RESPONSIVE */
  @media (max-width: 900px) {
    .about-content {
      grid-template-columns: 1fr;
    }
  
    .about-highlights {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  @media (max-width: 480px) {
    .about-highlights {
      grid-template-columns: 1fr;
    }
  }
  

.premium-grid,
.agent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.about-box {
  max-width: 1100px;
  margin: 0 auto;
}


  .premium {
    padding: 100px 60px;
    text-align: center;
  }
  
  .premium-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
  }
  
  .premium-grid img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 40px;
  }
  .about {
    padding: 120px 60px;
  }
  
  .about-box {
    background: linear-gradient(135deg, #0b4fb3, #1e6bd6);
    border-radius: 40px;
    padding: 80px;
    color: white;
    text-align: center;
  }
  
  .about-box p {
    margin: 30px auto;
    max-width: 800px;
    font-size: 17px;
  }
  .agent-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
  }
  
  .agent-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
  }
  
  .agent-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: 50% 15%;
  }
  
  .agent-card h4 {
    padding: 14px 18px 4px;
    font-size: 15px;
    font-weight: 600
  }
  
  .agent-card span {
    display: block;
    padding: 0 18px 16px;
    font-size: 13px;
    color: var(--text-light);
  }
/* ===== TESTIMONIALS SECTION ===== */

.testimonials {
    padding: 120px 0;
    background: #f4f8ff; /* theme-matching soft blue */
    text-align: center;
  }
  
  .testimonials h2 {
    font-size: 38px;
    font-weight: 700;
  }
  
  .section-subtitle {
    margin-top: 12px;
    font-size: 16px;
    color: #64748b;
  }
  
  /* GRID */
  .testimonial-grid {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
  }
  
  /* CARD */
  .testimonial-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: left;
  }
  
  .testimonial-card .quote {
    font-size: 15px;
    line-height: 1.7;
    color: #334155;
    margin-bottom: 30px;
  }

  .testimonial-card:hover {

    background: var(--accent-orange);
    color: #fff;

  }
  
  /* CLIENT */
  .client {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  
  .client img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
  }
  
  .client h4 {
    font-size: 15px;
    font-weight: 600;
  }
  
  .client span {
    font-size: 13px;
    color: #64748b;
  }
  


/* ==============================
   CTA SECTION
   ============================== */

   .cta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  
    padding: 100px 60px;
  
    
    background: linear-gradient(135deg, #0b4fb3, #1e6bd6);

  
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  
    animation: fadeUp 0.8s ease both;
  }
  
  /* CTA BOX */
  .cta-box {
    background: #ffffff;
    border-radius: 28px;
    padding: 48px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  
    text-align: center;
  }
  
  /* TEXT */
  .cta-box h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #0f172a;
  }
  
  .cta-box p {
    font-size: 15px;
    margin-bottom: 24px;
    color: #475569;
  }
  
  /* BUTTON */
  .cta-box .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 999px;
    background: var(--accent-orange);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
  }
  
  /* ANIMATION */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* RESPONSIVE */
  @media (max-width: 768px) {
    .cta {
      grid-template-columns: 1fr;
      padding: 70px 24px;
    }
  }
  
  /* =========================
   MOBILE SWIPE GALLERY – FEATURED PROPERTIES
========================= */

@media (max-width: 900px) {

  .property-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 90%;

    gap: 0;

    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 12px;

    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .property-grid::-webkit-scrollbar {
    display: none;
  }

  .property-card {
    scroll-snap-align: start;
  }
}
