﻿/* =============================================================
   AIRA HOMES — RESPONSIVE.CSS  (Complete Rewrite — clean fix)
   Mobile-First Responsive Overhaul for ALL pages
   Breakpoints:
     Mobile   : default (< 576px)
     Small    : 576px+
     Tablet   : 768px+
     Laptop   : 1024px+
     Desktop  : 1280px+
   ============================================================= */

/* ─────────────────────────────────────────
   GLOBAL RESET HELPERS
───────────────────────────────────────── */
html, body {
  overflow-x: hidden;
  width: 100%;
}

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

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ─────────────────────────────────────────
   TYPOGRAPHY — Responsive clamp scaling
───────────────────────────────────────── */
h1 { font-size: clamp(1.6rem, 5vw, 3.5rem) !important; line-height: 1.2; }
h2 { font-size: clamp(1.35rem, 4vw, 2.8rem) !important; line-height: 1.25; }
h3 { font-size: clamp(1.15rem, 3vw, 2rem)   !important; line-height: 1.3; }
h4 { font-size: clamp(1rem, 2.5vw, 1.4rem)  !important; }
p  { font-size: clamp(0.875rem, 1.5vw, 1.05rem); line-height: 1.75; }

.inner-hero-title  { font-size: clamp(1.5rem, 5vw, 4rem)   !important; }
.hero-title        { font-size: clamp(1.6rem, 5vw, 4.5rem) !important; }
.section-title     { font-size: clamp(1.35rem, 4vw, 3rem)  !important; }

/* ─────────────────────────────────────────
   SECTION PADDING
───────────────────────────────────────── */
.section {
  padding: 2.5rem 0 !important;
}
.inner-hero {
  padding: 110px 1rem 50px !important;
}

/* ─────────────────────────────────────────
   OVERLAY (dark backdrop when menu opens)
   NO blur — blur was causing the page blur issue
───────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 39, 68, 0.5);
  /* backdrop-filter intentionally REMOVED — was blurring entire page on mobile */
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* ═════════════════════════════════════════
   HOME PAGE NAVBAR  (.navbar — styles.css)
   ═════════════════════════════════════════ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  width: 100%;
}

.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1rem;
  max-width: 100%;
}

/* --- HOME LOGO --- */
.navbar .logo img,
.navbar .logo .logo-img,
.logo-img {
  height: 60px !important;
  width:  60px !important;
  object-fit: contain;
}

/* --- HOME NAV LINKS: hidden on mobile, visible on desktop --- */
.navbar .nav-links {
  display: none;
}

/* --- HOME CTA BUTTONS: hidden on mobile --- */
.navbar .nav-actions {
  display: none;
}

/* --- HAMBURGER (home page) --- */
.navbar .hamburger,
button#hamburger {
  display: flex !important;   /* FORCE show — overrides any other rule */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px;
  z-index: 1100;
  /* Remove inline styles from HTML — all controlled here */
}

.navbar .hamburger span,
button#hamburger span {
  display: block !important;
  width: 24px;
  height: 2.5px;
  background-color: #13294B;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ═════════════════════════════════════════
   INNER PAGES NAVBAR  (header#header — style.css)
   About, Services, Projects, Gallery, Contact
   ═════════════════════════════════════════ */
header#header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  width: 100%;
}

header#header .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 1rem;
  width: 100%;
}

/* --- INNER PAGE LOGO --- */
header#header .logo img {
  height: 60px !important;
  width:  60px !important;
  object-fit: contain;
}

/* --- INNER PAGE DESKTOP NAV: hidden on mobile --- */
header#header .nav-menu {
  display: none;
}

/* --- INNER PAGE CTA: hidden on mobile --- */
header#header .nav-cta {
  display: none;
}

/* --- INNER PAGE HAMBURGER --- */
header#header .hamburger,
header#header #hamburger {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 6px;
  z-index: 1100;
}

header#header .hamburger span {
  display: block !important;
  width: 24px;
  height: 2.5px;
  background-color: #1E1E1E;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* --- INNER PAGE MOBILE SLIDE PANEL --- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(280px, 80vw);
  height: 100vh;
  background: #FFFDF8;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  padding: 80px 1.5rem 2rem;
  gap: 0;
  transition: right 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

/* *** PRESCRIBED SIZE for mobile nav links *** */
.mobile-nav .nav-link {
  font-size: 0.88rem !important;   /* Same small size as home page */
  font-weight: 600 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.85rem 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07) !important;
  display: block !important;
  color: #1E1E1E;
  margin-bottom: 0 !important;     /* Remove large margin from style.css */
}

.mobile-nav .nav-link.active {
  color: #D4A017;
}

.mobile-nav .btn,
.mobile-nav .btn-gold {
  margin-top: 1.5rem;
  width: 100%;
  text-align: center;
  justify-content: center;
  font-size: 0.88rem !important;
  padding: 0.75rem 1rem !important;
}

/* ─────────────────────────────────────────
   HOME PAGE HERO SECTION
───────────────────────────────────────── */
.hero-section {
  padding: 1.5rem 0 0 !important;
}

.hero-header {
  padding: 0 1rem;
  margin-bottom: 0.75rem;
}

.hero-header h1 {
  font-size: clamp(1.3rem, 5vw, 3rem) !important;
  margin-bottom: 10px;
}

.panorama-container {
  width: 100%;
  height: 55vw !important;
  min-height: 220px !important;
  max-height: 70vh;
  overflow: hidden;
}

.panorama-image > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide large floating controls on mobile */
.panorama-controls {
  display: none !important;
}

/* Shrink hotspot labels */
.hotspot {
  font-size: 0.65rem !important;
  padding: 3px 8px !important;
  /* Remove backdrop-filter blur from hotspots on mobile too */
  backdrop-filter: none !important;
}

/* User badge small on mobile */
.user-badge {
  bottom: 12px;
  left: 12px;
  font-size: 0.75rem;
  backdrop-filter: none !important;  /* Fix blur source */
}

/* ─────────────────────────────────────────
   HOME PAGE — ABOUT SECTION
───────────────────────────────────────── */
.about-section {
  flex-direction: column !important;
  gap: 2rem !important;
  padding: 2.5rem 1rem !important;
}

.about-content h2 {
  font-size: clamp(1.4rem, 5vw, 3.5rem) !important;
}

.about-content p {
  max-width: 100% !important;
}

.about-actions {
  flex-direction: column !important;
  gap: 0.75rem;
}

.about-actions .btn,
.about-actions a {
  width: 100%;
  text-align: center;
  justify-content: center;
}

.about-image {
  width: 100%;
}

/* ─────────────────────────────────────────
   HOME PAGE — STATS
───────────────────────────────────────── */
.stats-section {
  flex-direction: column !important;
  gap: 1.25rem !important;
  padding: 2rem 1rem !important;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
}

.stat-card {
  border-right: none !important;
  border-bottom: 1px solid #eee !important;
  flex: unset !important;
  width: 100%;
  padding-bottom: 1.25rem;
}

.stat-card:last-child {
  border-bottom: none !important;
  padding-bottom: 0;
}

/* ─────────────────────────────────────────
   HOME PAGE — EXPERTISE / SERVICES GRID
───────────────────────────────────────── */
.expertise-section {
  padding: 2.5rem 0 !important;
}

.expertise-section .section-header {
  margin-bottom: 1.5rem;
}

.services-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

/* ─────────────────────────────────────────
   HOME PAGE — CTA SECTION
───────────────────────────────────────── */
.cta-section {
  flex-direction: column !important;
  margin: 2rem auto !important;
}

.cta-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

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

.cta-content {
  padding: 1.75rem 1.25rem !important;
  align-items: center !important;
  text-align: center;
}

.cta-content .btn {
  width: 100%;
}

/* ─────────────────────────────────────────
   INNER PAGES — HERO GRID (2-col → 1-col)
───────────────────────────────────────── */
.hero-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem;
}

.hero-image {
  height: 260px !important;
  width: 100%;
}

/* ─────────────────────────────────────────
   INNER PAGES — CARDS
───────────────────────────────────────── */
.glass-card {
  padding: 1.5rem !important;
  margin-bottom: 1rem;
}

/* ─────────────────────────────────────────
   ABOUT — TIMELINE (horizontal → vertical)
───────────────────────────────────────── */
.timeline-flex {
  flex-direction: column !important;
  gap: 1rem !important;
  margin-top: 2rem;
}

.timeline-flex::before {
  display: none;
}

.timeline-node {
  width: 100% !important;
  text-align: left !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 1.25rem 1.5rem !important;
  background: #f8f6f2;
  border-radius: 10px;
  border-left: 4px solid #D4A017;
}

.timeline-dot { display: none !important; }

/* ─────────────────────────────────────────
   ABOUT — CORE VALUES / ASSURANCES GRID
───────────────────────────────────────── */
.assurances-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

/* ─────────────────────────────────────────
   SERVICES PAGE
───────────────────────────────────────── */
.services-cards-grid,
.services-full-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}

/* ─────────────────────────────────────────
   PROJECTS PAGE
───────────────────────────────────────── */
.projects-grid,
.projects-filter-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}

/* ─────────────────────────────────────────
   GALLERY — MASONRY
───────────────────────────────────────── */
.gallery-filters {
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.45rem 0.9rem !important;
  font-size: 0.78rem !important;
}

.masonry-grid {
  column-count: 1 !important;
  column-gap: 1rem;
}

/* ─────────────────────────────────────────
   CONTACT PAGE
───────────────────────────────────────── */
.contact-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
}

.contact-form-card {
  padding: 1.25rem !important;
}

.form-row {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.25rem !important;
}

.map-wrapper iframe {
  height: 230px !important;
}

/* ─────────────────────────────────────────
   INNER PAGE STATS (style.css pages)
───────────────────────────────────────── */
.stats-container {
  transform: none !important;
  margin-bottom: 0 !important;
  padding: 1.5rem 1rem !important;
  border-radius: 10px;
}

.stats-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.25rem !important;
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn, .btn-gold, .btn-primary, .btn-outline, .btn-navy {
  min-height: 44px;
  font-size: 0.88rem !important;
  padding: 0.65rem 1.25rem !important;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer,
.footer {
  padding: 3rem 0 1.5rem !important;
}

.footer-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 2rem !important;
  margin-bottom: 2rem !important;
}

.footer-brand,
.footer-links,
.footer-newsletter,
.footer-about {
  text-align: center;
}

.footer-brand .social-links,
.footer-about .social-links {
  justify-content: center;
}

.newsletter-form {
  flex-direction: column !important;
  gap: 0.5rem !important;
}

.newsletter-input,
.newsletter-form input {
  border-radius: 6px !important;
  width: 100%;
}

.newsletter-btn {
  border-radius: 6px !important;
  width: 100%;
  padding: 0.75rem !important;
}

.footer-bottom > div {
  flex-direction: column !important;
  gap: 6px !important;
  align-items: center !important;
}

/* ─────────────────────────────────────────
   WHATSAPP FLOAT — Always fixed, always visible
───────────────────────────────────────── */
.whatsapp-float {
  position: fixed !important;
  bottom: 1.25rem !important;
  right: 1.25rem !important;
  width: 56px !important;
  height: 56px !important;
  background-color: #25D366 !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
  cursor: pointer;
  transition: transform 0.3s ease !important;
  text-decoration: none !important;
}

.whatsapp-float:hover {
  transform: scale(1.1) !important;
}

.whatsapp-float svg,
.whatsapp-float i {
  color: #fff !important;
  font-size: 1.8rem;
  fill: #fff !important;
  width: 30px !important;
  height: 30px !important;
}

.whatsapp-pulse {
  position: absolute !important;
  width: 100%;
  height: 100%;
  background-color: #25D366;
  border-radius: 50%;
  z-index: -1;
  animation: pulseWave 2s infinite;
}


/* ══════════════════════════════════════════════
   SMALL PHONES (576px+)
══════════════════════════════════════════════ */
@media (min-width: 576px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stats-section {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1.25rem !important;
  }

  .stat-card {
    flex: 1 1 48% !important;
    border-bottom: none !important;
    border-right: 1px solid #eee !important;
    padding-bottom: 0 !important;
  }

  .stat-card:nth-child(2n) {
    border-right: none !important;
  }

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

  .projects-grid,
  .projects-filter-grid,
  .services-cards-grid,
  .services-full-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .masonry-grid {
    column-count: 2 !important;
  }
}


/* ══════════════════════════════════════════════
   TABLET (768px+)
══════════════════════════════════════════════ */
@media (min-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .section {
    padding: 4rem 0 !important;
  }

  .inner-hero {
    padding: 140px 2rem 70px !important;
  }

  /* ── INNER PAGE NAVBAR ── show desktop menu, hide hamburger */
  header#header .nav-menu {
    display: flex !important;
    gap: 1.5rem;
    align-items: center;
  }

  header#header .nav-cta {
    display: flex !important;
    align-items: center;
    gap: 1rem;
  }

  header#header .hamburger,
  header#header #hamburger {
    display: none !important;
  }

  /* ── HOME PAGE NAVBAR ── show desktop links, hide hamburger */
  .navbar .nav-links {
    display: flex !important;
    position: static;
    right: auto;
    width: auto;
    height: auto;
    background: transparent;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 0;
    box-shadow: none;
    overflow: visible;
    transition: none;
  }

  .navbar .nav-links li {
    width: auto;
    border-bottom: none;
  }

  .navbar .nav-links a {
    display: inline-block;
    padding: 0.4rem 0;
    font-size: 0.82rem;
  }

  .navbar .nav-actions {
    display: flex !important;
    align-items: center;
    gap: 1.25rem;
  }

  .navbar .hamburger,
  .navbar button#hamburger {
    display: none !important;
  }

  /* Logos on tablet */
  .navbar .logo img,
  .navbar .logo .logo-img,
  .logo-img,
  header#header .logo img {
    height: 80px !important;
    width:  80px !important;
  }

  /* About 2-col */
  .about-section {
    flex-direction: row !important;
    gap: 3rem !important;
    padding: 4rem 1.5rem !important;
  }

  .about-actions {
    flex-direction: row !important;
  }

  .about-actions .btn,
  .about-actions a {
    width: auto;
  }

  /* Stats row */
  .stats-section {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    padding: 2rem !important;
    margin-top: -30px !important;
    margin-bottom: 3rem !important;
    gap: 1.25rem !important;
  }

  .stat-card {
    flex: 1 !important;
    border-right: 1px solid #eee !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
  }

  .stat-card:last-child {
    border-right: none !important;
  }

  .stat-card:nth-child(2n) {
    border-right: 1px solid #eee !important;
  }

  /* CTA */
  .cta-section {
    flex-direction: row !important;
    margin: 3.5rem auto !important;
  }

  .cta-image {
    height: auto;
  }

  .cta-content {
    align-items: flex-start !important;
    text-align: left;
    padding: 3rem 2.5rem !important;
  }

  .cta-content .btn { width: auto; }

  /* Hero grid */
  .hero-grid {
    grid-template-columns: 1fr 1.2fr !important;
  }

  .hero-image {
    height: 400px !important;
  }

  /* Timeline */
  .timeline-flex {
    flex-direction: row !important;
    gap: 1rem !important;
  }

  .timeline-flex::before { display: block; }

  .timeline-node {
    width: auto !important;
    flex: 1;
    text-align: center !important;
    align-items: center !important;
    padding: 0 !important;
    background: transparent !important;
    border-left: none !important;
    border-radius: 0 !important;
    flex-direction: column !important;
  }

  .timeline-dot { display: block !important; }

  /* Gallery */
  .masonry-grid { column-count: 2 !important; }

  /* Contact */
  .map-wrapper iframe { height: 300px !important; }

  /* Footer 2-col */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem !important;
  }

  .footer-brand,
  .footer-links,
  .footer-newsletter,
  .footer-about {
    text-align: left;
  }

  .footer-brand .social-links,
  .footer-about .social-links {
    justify-content: flex-start;
  }

  .newsletter-form {
    flex-direction: row !important;
    gap: 1.25rem !important;
  }

  .newsletter-input,
  .newsletter-form input {
    border-radius: 6px 0 0 6px !important;
    width: auto;
    flex: 1;
  }

  .newsletter-btn {
    border-radius: 0 6px 6px 0 !important;
    width: auto;
    padding: 0.8rem 1.2rem !important;
  }

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

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

  /* Panorama controls back on tablet */
  .panorama-controls {
    display: flex !important;
  }
}


/* ══════════════════════════════════════════════
   LAPTOP (1024px+)
══════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 5.5rem 0 !important;
  }

  .inner-hero {
    padding: 160px 2rem 80px !important;
  }

  /* Logos */
  .navbar .logo img,
  .navbar .logo .logo-img,
  .logo-img,
  header#header .logo img {
    height: 100px !important;
    width: 100px !important;
  }

  /* Services 5-col on home */
  .expertise-section .services-grid {
    grid-template-columns: repeat(5, 1fr) !important;
  }

  /* Inner page services 3-col */
  .services-cards-grid,
  .services-full-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Projects 3-col */
  .projects-grid,
  .projects-filter-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  /* Gallery 3-col */
  .masonry-grid { column-count: 3 !important; }

  /* Contact layout */
  .contact-grid {
    grid-template-columns: 1fr 1.5fr !important;
  }

  .form-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 1.2rem !important;
  }

  .map-wrapper iframe { height: 350px !important; }

  /* Footer 4-col */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr !important;
    gap: 4rem !important;
  }

  /* Inner page stats restore */
  .stats-container {
    transform: translateY(-50%) !important;
    margin-bottom: -50px !important;
    padding: 3rem !important;
  }

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


/* ══════════════════════════════════════════════
   DESKTOP (1280px+)
══════════════════════════════════════════════ */
@media (min-width: 1280px) {
  .section {
    padding: 6rem 0 !important;
  }

  /* Full logo */
  .navbar .logo img,
  .navbar .logo .logo-img,
  .logo-img,
  header#header .logo img {
    height: 120px !important;
    width: 120px !important;
  }

  /* Gallery 4-col */
  .masonry-grid { column-count: 4 !important; }

  /* Projects 4-col */
  .projects-grid,
  .projects-filter-grid {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}

/* --- MOBILE NAV SOCIAL LINKS --- */
.mobile-socials {
  margin-top: auto;
  padding-top: 2rem;
  border-top: none !important;
  width: 100%;
}
.mobile-socials .social-links {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}
.mobile-socials .social-links a {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f4f4f4;
  color: #13294B;
  border-radius: 50%;
  text-decoration: none;
  font-size: 1rem;
  padding: 0 !important;
  border: none !important;
  transition: all 0.3s ease;
}
.mobile-socials .social-links a:hover {
  background: #D4A017;
  color: #fff;
}


/* ─────────────────────────────────────────
   PROJECTS PAGE — RESPONSIVE IMAGE FIX
───────────────────────────────────────── */

/* Grid: 1 col mobile, 2 col tablet, 3 col desktop */
.projects-grid-3 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  margin-bottom: 2rem !important;
}

@media (min-width: 600px) {
  .projects-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .projects-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin-bottom: 4rem !important;
  }
}

/* Project card full width */
.project-luxury-card {
  width: 100% !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
}

/* Image container — aspect-ratio based, no fixed height */
.project-card-img {
  width: 100% !important;
  height: 0 !important;
  padding-bottom: 66% !important;  /* 3:2 ratio */
  position: relative !important;
  overflow: hidden !important;
}

.project-card-img img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

/* Card content padding — tighter on mobile */
.project-card-content {
  padding: 1rem 1.25rem !important;
}

.project-card-title {
  font-size: clamp(1rem, 3vw, 1.4rem) !important;
  margin-bottom: 0.5rem !important;
  line-height: 1.3 !important;
}

.project-card-meta {
  font-size: 0.82rem !important;
  gap: 0.75rem !important;
  flex-wrap: wrap !important;
}

/* Stats bar — stack on mobile */
.horizontal-stats-card {
  padding: 1.5rem 1rem !important;
  flex-direction: column !important;
  gap: 1.5rem !important;
  align-items: flex-start !important;
  margin-bottom: 2rem !important;
}

@media (min-width: 768px) {
  .horizontal-stats-card {
    flex-direction: row !important;
    padding: 2.5rem 3rem !important;
    align-items: center !important;
  }
  .project-card-content {
    padding: 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .horizontal-stats-card {
    padding: 3rem 4rem !important;
  }
  .project-card-img {
    padding-bottom: 62% !important;
  }
}

/* ─────────────────────────────────────────
   PROJECTS PAGE — FILTER BUTTONS MOBILE FIX
───────────────────────────────────────── */
.projects-filter-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin-bottom: 2rem !important;
  padding: 0 0.5rem !important;
}

.projects-filter-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  padding: 0.55rem 1rem !important;
  font-size: 0.78rem !important;
  border-radius: 30px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.projects-filter-btn svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

@media (min-width: 576px) {
  .projects-filter-bar {
    gap: 0.75rem !important;
    margin-bottom: 2.5rem !important;
  }
  .projects-filter-btn {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.85rem !important;
    gap: 0.5rem !important;
  }
  .projects-filter-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
}

@media (min-width: 1024px) {
  .projects-filter-bar {
    gap: 1rem !important;
    margin-bottom: 4rem !important;
  }
  .projects-filter-btn {
    padding: 0.8rem 2rem !important;
    font-size: 0.95rem !important;
    gap: 0.8rem !important;
  }
  .projects-filter-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}

/* --- PROJECTS GRID AND CARD ENFORCEMENT --- */
.projects-grid-3 {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 1.5rem !important;
  width: 100% !important;
}

.projects-grid-3 .project-luxury-card {
  display: flex;
  flex-direction: column !important;
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

@media (min-width: 600px) {
  .projects-grid-3 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}

@media (min-width: 1024px) {
  .projects-grid-3 {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
  }
}

@media (min-width: 1280px) {
  .projects-grid-3 {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 2.5rem !important;
  }
}

