/**
* Template Name: EstateAgency Premium
* Template URL: https://bootstrapmade.com/real-estate-agency-bootstrap-template/
* Updated: Mar 2026 with Bootstrap v5.3.3
* Theme: Gold & Navy Blue Premium
* 
* IMPROVEMENTS:
* ✓ CSS Custom Properties con sistema de tokens
* ✓ Soporte completo para dark mode (prefers-color-scheme)
* ✓ Accesibilidad WCAG 2.1 AA (focus visible, reduced motion)
* ✓ Optimizaciones de rendimiento (contain, will-change)
* ✓ Sistema de espaciado y tipografía escalable
* ✓ Utilidades CSS reutilizables
* ✓ Print styles y soporte para impresión
* ✓ Container queries para componentes responsivos
* ✓ Estados de carga (skeleton) y transiciones suaves
*/

/* ============================================================================
   1. CSS RESET & BASE NORMALIZATION
   ============================================================================ */
   *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* ============================================================================
     2. CSS CUSTOM PROPERTIES - DESIGN TOKENS
     ============================================================================ */
  :root {
    /* ── FONTS ────────────────────────────────────────────────────────────── */
    --font-default: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, 
                    "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji";
    --font-heading: "Raleway", sans-serif;
    --font-nav: "Poppins", sans-serif;
    
    /* ── COLOR PALETTE - PRIMARY ──────────────────────────────────────────── */
    --color-gold: #dcc168;
    --color-gold-hover: #c4a850;
    --color-gold-light: #ead48a;
    --color-navy: #0c2442;
    --color-navy-light: #1a3a5c;
    --color-navy-lighter: #3e607f;
    --color-red-dark: #9f241e;
    --color-red-light: #e94843;
    --color-white: #ffffff;
    --color-black: #000000;
    
    /* ── SEMANTIC COLOR TOKENS ───────────────────────────────────────────── */
    --color-bg: var(--color-white);
    --color-bg-surface: var(--color-white);
    --color-bg-alt: #f4f6f8;
    --color-text: #444444;
    --color-text-muted: #6c757d;
    --color-text-inverse: var(--color-white);
    --color-heading: var(--color-navy);
    --color-accent: var(--color-gold);
    --color-accent-hover: var(--color-gold-hover);
    --color-border: rgba(12, 36, 66, 0.1);
    --color-border-light: rgba(12, 36, 66, 0.05);
    --color-shadow: rgba(0, 0, 0, 0.1);
    --color-shadow-lg: rgba(0, 0, 0, 0.15);
    
    /* ── TYPOGRAPHY SCALE ────────────────────────────────────────────────── */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* ── SPACING SYSTEM (8px base) ───────────────────────────────────────── */
    --space-1: 0.25rem;   /* 4px */
    --space-2: 0.5rem;    /* 8px */
    --space-3: 0.75rem;   /* 12px */
    --space-4: 1rem;      /* 16px */
    --space-5: 1.25rem;   /* 20px */
    --space-6: 1.5rem;    /* 24px */
    --space-8: 2rem;      /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    
    /* ── BORDER & RADIUS ─────────────────────────────────────────────────── */
    --border-width: 1px;
    --border-width-lg: 2px;
    --border-width-xl: 4px;
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* ── SHADOWS ─────────────────────────────────────────────────────────── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* ── TRANSITIONS & ANIMATIONS ────────────────────────────────────────── */
    --transition-fast: 150ms ease-in-out;
    --transition-normal: 300ms ease-in-out;
    --transition-slow: 500ms ease-in-out;
    --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ── Z-INDEX SCALE ───────────────────────────────────────────────────── */
    --z-dropdown: 100;
    --z-sticky: 997;
    --z-modal: 1000;
    --z-popover: 1010;
    --z-tooltip: 1020;
    --z-toast: 1030;
    --z-preloader: 999999;
    
    /* ── BREAKPOINTS (Bootstrap 5 compatible) ────────────────────────────── */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
    
    /* ── HEADER & NAV ────────────────────────────────────────────────────── */
    --header-height: 70px;
    --header-height-scrolled: 60px;
    --nav-item-padding: var(--space-4) var(--space-3);
    
    /* ── FORMS ───────────────────────────────────────────────────────────── */
    --input-padding: var(--space-3) var(--space-4);
    --input-border: var(--border-width) solid var(--color-border);
    --input-border-focus: var(--border-width-lg) solid var(--color-accent);
    --input-radius: var(--radius-sm);
    --input-bg: var(--color-bg);
    --input-bg-focus: var(--color-bg);
    
    /* ── BUTTONS ─────────────────────────────────────────────────────────── */
    --btn-padding-y: var(--space-3);
    --btn-padding-x: var(--space-6);
    --btn-font-size: var(--text-sm);
    --btn-font-weight: var(--font-weight-semibold);
    --btn-radius: var(--radius-full);
    --btn-transition: var(--transition-normal);
  }
  
  /* ── DARK MODE SUPPORT ───────────────────────────────────────────────── */
  @media (prefers-color-scheme: dark) {
    :root {
      --color-bg: var(--color-navy);
      --color-bg-surface: var(--color-navy-light);
      --color-bg-alt: #0a1f38;
      --color-text: #e0e0e0;
      --color-text-muted: #a0a0a0;
      --color-heading: var(--color-white);
      --color-border: rgba(255, 255, 255, 0.1);
      --color-border-light: rgba(255, 255, 255, 0.05);
      --color-shadow: rgba(0, 0, 0, 0.3);
      --color-shadow-lg: rgba(0, 0, 0, 0.4);
      --input-bg: var(--color-navy-light);
      --input-bg-focus: #234567;
    }
  }
  
  /* ── HIGH CONTRAST MODE SUPPORT ──────────────────────────────────────── */
  @media (prefers-contrast: high) {
    :root {
      --color-border: var(--color-navy);
      --color-accent: var(--color-gold-hover);
      --shadow-sm: none;
      --shadow-md: none;
      --shadow-lg: none;
    }
  }
  
  /* ── REDUCED MOTION SUPPORT ──────────────────────────────────────────── */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }
  
  /* ============================================================================
     3. BASE STYLES & TYPOGRAPHY
     ============================================================================ */
  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }
  
  body {
    color: var(--color-text);
    background-color: var(--color-bg);
    font-family: var(--font-default);
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
  }
  
  /* ── TYPOGRAPHY ──────────────────────────────────────────────────────── */
  h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    margin-bottom: var(--space-4);
  }
  
  h1 { font-size: var(--text-5xl); }
  h2 { font-size: var(--text-4xl); }
  h3 { font-size: var(--text-3xl); }
  h4 { font-size: var(--text-2xl); }
  h5 { font-size: var(--text-xl); }
  h6 { font-size: var(--text-lg); }
  
  p {
    margin-bottom: var(--space-4);
  }
  
  a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
  }
  
  a:hover, a:focus {
    color: var(--color-accent-hover);
    text-decoration: none;
  }
  
  /* ── ACCESSIBILITY: FOCUS STATES ─────────────────────────────────────── */
  :focus-visible {
    outline: var(--border-width-lg) solid var(--color-accent);
    outline-offset: 2px;
  }
  
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible {
    outline: var(--border-width-lg) solid var(--color-accent);
    outline-offset: 2px;
  }
  
  /* Remove focus outline for mouse users (enhanced UX) */
  :focus:not(:focus-visible) {
    outline: none;
  }
  
  /* ── IMAGES & MEDIA ──────────────────────────────────────────────────── */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }
  
  img {
    contain: paint; /* Performance optimization */
  }
  
  /* ── FORM ELEMENTS BASE ──────────────────────────────────────────────── */
  input, button, select, textarea {
    font: inherit;
    color: inherit;
  }
  
  /* ============================================================================
     4. UTILITY CLASSES
     ============================================================================ */
  /* ── TEXT UTILITIES ──────────────────────────────────────────────────── */
  .text-gold { color: var(--color-gold) !important; }
  .text-navy { color: var(--color-navy) !important; }
  .text-white { color: var(--color-white) !important; }
  .text-muted { color: var(--color-text-muted) !important; }
  .text-heading { color: var(--color-heading) !important; }
  
  .text-center { text-align: center !important; }
  .text-uppercase { text-transform: uppercase !important; }
  .text-capitalize { text-transform: capitalize !important; }
  
  .fw-normal { font-weight: var(--font-weight-normal) !important; }
  .fw-medium { font-weight: var(--font-weight-medium) !important; }
  .fw-semibold { font-weight: var(--font-weight-semibold) !important; }
  .fw-bold { font-weight: var(--font-weight-bold) !important; }
  
  /* ── SPACING UTILITIES ──────────────────────────────────────────────── */
  .mb-0 { margin-bottom: 0 !important; }
  .mb-2 { margin-bottom: var(--space-2) !important; }
  .mb-4 { margin-bottom: var(--space-4) !important; }
  .mb-6 { margin-bottom: var(--space-6) !important; }
  .mb-8 { margin-bottom: var(--space-8) !important; }
  
  .mt-2 { margin-top: var(--space-2) !important; }
  .mt-4 { margin-top: var(--space-4) !important; }
  .mt-6 { margin-top: var(--space-6) !important; }
  
  .py-4 { padding-top: var(--space-4) !important; padding-bottom: var(--space-4) !important; }
  .py-6 { padding-top: var(--space-6) !important; padding-bottom: var(--space-6) !important; }
  .py-8 { padding-top: var(--space-8) !important; padding-bottom: var(--space-8) !important; }
  
  /* ── BACKGROUND UTILITIES ───────────────────────────────────────────── */
  .bg-gold { background-color: var(--color-gold) !important; }
  .bg-navy { background-color: var(--color-navy) !important; }
  .bg-white { background-color: var(--color-white) !important; }
  .bg-surface { background-color: var(--color-bg-surface) !important; }
  .bg-alt { background-color: var(--color-bg-alt) !important; }
  
  /* ── SHADOW UTILITIES ──────────────────────────────────────────────── */
  .shadow-sm { box-shadow: var(--shadow-sm) !important; }
  .shadow { box-shadow: var(--shadow-md) !important; }
  .shadow-lg { box-shadow: var(--shadow-lg) !important; }
  .shadow-none { box-shadow: none !important; }
  
  /* ── BORDER UTILITIES ──────────────────────────────────────────────── */
  .border { border: var(--border-width) solid var(--color-border) !important; }
  .border-gold { border-color: var(--color-gold) !important; }
  .border-navy { border-color: var(--color-navy) !important; }
  .border-top-gold { border-top: var(--border-width-xl) solid var(--color-gold) !important; }
  
  .rounded { border-radius: var(--radius-md) !important; }
  .rounded-lg { border-radius: var(--radius-lg) !important; }
  .rounded-full { border-radius: var(--radius-full) !important; }
  
  /* ── DISPLAY & VISIBILITY ──────────────────────────────────────────── */
  .d-none { display: none !important; }
  .d-flex { display: flex !important; }
  .flex-column { flex-direction: column !important; }
  .align-items-center { align-items: center !important; }
  .justify-content-center { justify-content: center !important; }
  
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  
  /* ── TRANSITION UTILITIES ──────────────────────────────────────────── */
  .transition { transition: var(--transition-normal) !important; }
  .transition-fast { transition: var(--transition-fast) !important; }
  .hover-lift { transition: transform var(--transition-normal) !important; }
  .hover-lift:hover { transform: translateY(-4px) !important; }
  
  /* ============================================================================
     5. COLOR PRESETS (Section Backgrounds)
     ============================================================================ */
  .light-background {
    --color-bg: var(--color-bg-alt);
    --color-bg-surface: var(--color-white);
    --color-heading: var(--color-navy);
  }
  
  .dark-background {
    --color-bg: var(--color-navy);
    --color-bg-surface: var(--color-navy-light);
    --color-text: #e0e0e0;
    --color-text-muted: #a0a0a0;
    --color-heading: var(--color-white);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-accent: var(--color-gold);
  }
  
  /* ============================================================================
     6. GLOBAL HEADER
     ============================================================================ */
  .header {
    color: var(--color-text-inverse);
    background-color: var(--color-navy);
    padding: var(--space-4) 0;
    transition: all var(--transition-slow);
    z-index: var(--z-sticky);
    box-shadow: var(--shadow-md);
    position: relative;
    contain: layout style; /* Performance */
  }
  
  .header.scrolled {
    padding: var(--space-2) 0;
    background-color: rgba(12, 36, 66, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .header .logo {
    line-height: 1;
    display: flex;
    align-items: center;
    gap: var(--space-2);
  }
  
  .header .logo img {
    max-height: 32px;
    width: auto;
    transition: transform var(--transition-fast);
  }
  
  .header .logo img:hover {
    transform: scale(1.02);
  }
  
  .header .logo h1 {
    font-size: var(--text-2xl);
    margin: 0;
    font-weight: var(--font-weight-extrabold);
    color: var(--color-white);
    letter-spacing: -0.5px;
  }
  
  .header .logo h1 span {
    color: var(--color-accent);
  }
  
  /* ============================================================================
     7. NAVIGATION MENU
     ============================================================================ */
  /* ── DESKTOP NAVIGATION (≥1200px) ───────────────────────────────────── */
  @media (min-width: 1200px) {
    .navmenu {
      padding: 0;
    }
  
    .navmenu ul {
      margin: 0;
      padding: 0;
      display: flex;
      list-style: none;
      align-items: center;
      gap: var(--space-1);
    }
  
    .navmenu li {
      position: relative;
    }
  
    .navmenu > ul > li {
      white-space: nowrap;
      padding: var(--space-4) var(--space-3);
    }
  
    .navmenu a,
    .navmenu a:focus {
      color: var(--color-white);
      font-size: var(--text-sm);
      padding: var(--space-1) var(--space-2);
      font-family: var(--font-nav);
      font-weight: var(--font-weight-semibold);
      display: flex;
      align-items: center;
      gap: var(--space-1);
      transition: color var(--transition-fast);
      position: relative;
    }
  
    .navmenu a i {
      font-size: var(--text-xs);
      line-height: 0;
      transition: transform var(--transition-fast);
    }
  
    /* Animated underline indicator */
    .navmenu > ul > li > a::before {
      content: "";
      position: absolute;
      width: 100%;
      height: 2px;
      bottom: -6px;
      left: 0;
      background-color: var(--color-accent);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform var(--transition-normal);
    }
  
    .navmenu a:hover::before,
    .navmenu li:hover > a::before,
    .navmenu .active::before {
      transform: scaleX(1);
      transform-origin: left;
    }
  
    .navmenu li:hover > a,
    .navmenu .active,
    .navmenu .active:focus {
      color: var(--color-accent);
    }
  
    .navmenu li:hover > a i {
      transform: translateY(-2px);
    }
  
    /* Dropdown styles */
    .navmenu .dropdown ul {
      margin: 0;
      padding: var(--space-2) 0;
      background: var(--color-white);
      display: block;
      position: absolute;
      visibility: hidden;
      opacity: 0;
      left: 0;
      top: 100%;
      min-width: 220px;
      border-radius: var(--radius-md);
      box-shadow: var(--shadow-lg);
      z-index: var(--z-dropdown);
      border-top: var(--border-width-xl) solid var(--color-accent);
      transform: translateY(10px);
      transition: all var(--transition-normal);
    }
  
    .navmenu .dropdown ul a {
      padding: var(--space-3) var(--space-4);
      font-size: var(--text-sm);
      color: var(--color-navy);
      font-weight: var(--font-weight-medium);
    }
  
    .navmenu .dropdown ul a:hover,
    .navmenu .dropdown ul a:focus {
      color: var(--color-accent);
      background: rgba(220, 193, 104, 0.1);
      padding-left: var(--space-5); /* Subtle slide effect */
    }
  
    .navmenu .dropdown ul a i {
      margin-left: auto;
      font-size: var(--text-xs);
      opacity: 0;
      transition: opacity var(--transition-fast);
    }
  
    .navmenu .dropdown ul a:hover i {
      opacity: 1;
    }
  
    .navmenu .dropdown:hover > ul {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }
  
    /* Nested dropdowns */
    .navmenu .dropdown .dropdown ul {
      top: 0;
      left: 100%;
      margin-left: var(--space-2);
    }
  
    .navmenu .dropdown .dropdown:hover > ul {
      opacity: 1;
      visibility: visible;
    }
  }
  
  /* ── MOBILE NAVIGATION (<1200px) ───────────────────────────────────── */
  @media (max-width: 1199px) {
    .mobile-nav-toggle {
      color: var(--color-white);
      font-size: 1.75rem;
      line-height: 1;
      cursor: pointer;
      transition: color var(--transition-fast), transform var(--transition-fast);
      padding: var(--space-2);
      border-radius: var(--radius-sm);
    }
  
    .mobile-nav-toggle:hover,
    .mobile-nav-toggle:focus {
      color: var(--color-accent);
      background: rgba(255, 255, 255, 0.1);
    }
  
    .mobile-nav-toggle:active {
      transform: scale(0.95);
    }
  
    .navmenu {
      padding: 0;
      z-index: var(--z-sticky);
    }
  
    .navmenu ul {
      display: none;
      list-style: none;
      position: fixed;
      inset: calc(var(--header-height) + var(--space-4)) var(--space-4) var(--space-4) var(--space-4);
      padding: var(--space-3) 0;
      margin: 0;
      border-radius: var(--radius-lg);
      background-color: var(--color-navy);
      border: var(--border-width) solid rgba(255, 255, 255, 0.1);
      box-shadow: var(--shadow-xl);
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
      transition: transform var(--transition-normal), opacity var(--transition-normal);
      z-index: var(--z-dropdown);
      scrollbar-width: thin;
      scrollbar-color: var(--color-gold) transparent;
    }
  
    .navmenu ul::-webkit-scrollbar {
      width: 6px;
    }
  
    .navmenu ul::-webkit-scrollbar-track {
      background: transparent;
    }
  
    .navmenu ul::-webkit-scrollbar-thumb {
      background: var(--color-gold);
      border-radius: var(--radius-full);
    }
  
    .navmenu a,
    .navmenu a:focus {
      color: var(--color-white);
      padding: var(--space-3) var(--space-4);
      font-family: var(--font-nav);
      font-size: var(--text-lg);
      font-weight: var(--font-weight-medium);
      display: flex;
      align-items: center;
      justify-content: space-between;
      transition: all var(--transition-fast);
      border-radius: var(--radius-sm);
      margin: 0 var(--space-2);
    }
  
    .navmenu a:hover,
    .navmenu a:focus {
      background: rgba(255, 255, 255, 0.1);
      color: var(--color-accent);
      transform: translateX(4px);
    }
  
    .navmenu a i {
      font-size: var(--text-sm);
      width: 32px;
      height: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: var(--radius-full);
      background: rgba(220, 193, 104, 0.15);
      color: var(--color-accent);
      transition: all var(--transition-fast);
    }
  
    .navmenu a:hover i,
    .navmenu a:focus i {
      background: var(--color-accent);
      color: var(--color-navy);
      transform: rotate(90deg);
    }
  
    .navmenu .active,
    .navmenu .active:focus {
      color: var(--color-accent);
      background: rgba(220, 193, 104, 0.1);
    }
  
    .navmenu .active i {
      background: var(--color-accent);
      color: var(--color-navy);
      transform: rotate(180deg);
    }
  
    /* Mobile dropdowns */
    .navmenu .dropdown ul {
      position: static;
      display: none;
      padding: var(--space-2) 0;
      margin: var(--space-2) var(--space-4);
      background: rgba(255, 255, 255, 0.05);
      border-radius: var(--radius-md);
      border-left: 2px solid var(--color-accent);
    }
  
    .navmenu .dropdown ul a {
      font-size: var(--text-base);
      padding-left: var(--space-6);
    }
  
    .navmenu .dropdown > .active > ul {
      display: block;
      animation: slideDown var(--transition-normal);
    }
  
    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-10px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    /* Mobile nav active state */
    .mobile-nav-active {
      overflow: hidden;
    }
  
    .mobile-nav-active .mobile-nav-toggle {
      position: fixed;
      top: var(--space-4);
      right: var(--space-4);
      z-index: var(--z-modal);
      background: var(--color-navy);
      box-shadow: var(--shadow-lg);
    }
  
    .mobile-nav-active .navmenu {
      position: fixed;
      inset: 0;
      background: rgba(12, 36, 66, 0.97);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      transition: background var(--transition-normal);
    }
  
    .mobile-nav-active .navmenu > ul {
      display: block;
      animation: fadeInUp var(--transition-normal);
    }
  
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
  
  /* ============================================================================
     8. GLOBAL FOOTER
     ============================================================================ */
  .footer {
    color: var(--color-text-inverse);
    background-color: var(--color-navy);
    font-size: var(--text-sm);
    padding: var(--space-10) 0 0 0;
    position: relative;
    border-top: var(--border-width-xl) solid var(--color-accent);
  }
  
  .footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
      transparent, 
      var(--color-accent), 
      transparent
    );
    opacity: 0.5;
  }
  
  .footer .icon {
    color: var(--color-accent);
    margin-right: var(--space-4);
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
  }
  
  .footer h4 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    color: var(--color-white);
    position: relative;
    padding-bottom: var(--space-3);
  }
  
  .footer h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
  }
  
  .footer .address p {
    margin-bottom: var(--space-2);
    color: #d1d9e6;
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
  }
  
  .footer .address p i {
    margin-top: 4px;
    color: var(--color-accent);
  }
  
  .footer .social-links {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
  }
  
  .footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: var(--border-width) solid rgba(255, 255, 255, 0.2);
    font-size: var(--text-base);
    color: var(--color-white);
    transition: all var(--transition-fast);
    will-change: transform, background-color; /* Performance hint */
  }
  
  .footer .social-links a:hover,
  .footer .social-links a:focus {
    color: var(--color-navy);
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
  }
  
  .footer .social-links a:active {
    transform: translateY(-1px) scale(1.02);
  }
  
  .footer .copyright {
    padding: var(--space-6) 0;
    margin-top: var(--space-8);
    border-top: var(--border-width) solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    text-align: center;
  }
  
  .footer .copyright p {
    margin: 0;
    font-size: var(--text-xs);
  }
  
  .footer .credits {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    opacity: 0.8;
  }
  
  .footer .credits a {
    color: var(--color-accent);
    font-weight: var(--font-weight-medium);
  }
  
  /* ============================================================================
     9. PRELOADER
     ============================================================================ */
  #preloader {
    position: fixed;
    inset: 0;
    z-index: var(--z-preloader);
    overflow: hidden;
    background: var(--color-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
    will-change: opacity;
  }
  
  #preloader.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  
  #preloader .spinner {
    position: relative;
    width: 60px;
    height: 60px;
  }
  
  #preloader .spinner::before,
  #preloader .spinner::after {
    content: "";
    position: absolute;
    border: 3px solid transparent;
    border-radius: var(--radius-full);
    animation: spin 1.5s linear infinite;
  }
  
  #preloader .spinner::before {
    width: 100%;
    height: 100%;
    border-top-color: var(--color-accent);
    border-bottom-color: var(--color-accent);
  }
  
  #preloader .spinner::after {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    border-right-color: var(--color-gold-light);
    border-left-color: var(--color-gold-light);
    animation-direction: reverse;
    animation-duration: 1s;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Logo in preloader */
  #preloader .logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: var(--text-xl);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    animation: pulse var(--transition-slow) ease-in-out infinite alternate;
  }
  
  #preloader .logo span {
    color: var(--color-accent);
  }
  
  @keyframes pulse {
    from { opacity: 0.8; }
    to { opacity: 1; }
  }
  
  /* ============================================================================
     10. SCROLL TOP BUTTON
     ============================================================================ */
  .scroll-top {
    position: fixed;
    right: var(--space-4);
    bottom: var(--space-4);
    z-index: var(--z-sticky);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: var(--color-accent);
    color: var(--color-navy);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
    will-change: transform, opacity;
  }
  
  .scroll-top.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  
  .scroll-top:hover,
  .scroll-top:focus {
    background: var(--color-white);
    color: var(--color-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
  }
  
  .scroll-top:active {
    transform: translateY(-2px) scale(0.95);
  }
  
  /* ============================================================================
     11. PAGE TITLES & BREADCRUMBS
     ============================================================================ */
  .page-title {
    color: var(--color-text);
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
  }
  
  .page-title::before {
    content: "";
    position: absolute;
    inset: 0;
    background: 
      linear-gradient(135deg, 
        rgba(12, 36, 66, 0.03) 0%, 
        rgba(220, 193, 104, 0.03) 100%
      );
    pointer-events: none;
  }
  
  .page-title .heading {
    padding: var(--space-20) 0 var(--space-12) 0;
    border-top: var(--border-width) solid var(--color-border);
    position: relative;
    z-index: 1;
  }
  
  .page-title .heading h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: var(--font-weight-black);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
  }
  
  .page-title .heading h1::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
  }
  
  .page-title nav {
    background-color: var(--color-bg-alt);
    padding: var(--space-4) 0;
    position: relative;
    z-index: 1;
  }
  
  .page-title nav ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    gap: var(--space-1);
  }
  
  .page-title nav ol a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
  }
  
  .page-title nav ol a:hover {
    color: var(--color-accent);
  }
  
  .page-title nav ol li + li::before {
    content: "/";
    padding-right: var(--space-2);
    color: var(--color-border);
  }
  
  /* ============================================================================
     12. GLOBAL SECTIONS
     ============================================================================ */
  section,
  .section {
    color: var(--color-text);
    background-color: var(--color-bg);
    padding: var(--space-16) 0;
    scroll-margin-top: calc(var(--header-height) + var(--space-4));
    overflow: clip; /* Prevent overflow issues */
    position: relative;
  }
  
  @media (max-width: 1199px) {
    section,
    .section {
      padding: var(--space-12) 0;
      scroll-margin-top: calc(var(--header-height) + var(--space-2));
    }
  }
  
  /* Section decorative elements */
  .section::before,
  .section::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
  }
  
  .section::before {
    top: -50px;
    right: -50px;
  }
  
  .section::after {
    bottom: -50px;
    left: -50px;
    background: radial-gradient(circle, var(--color-navy) 0%, transparent 70%);
  }
  
  /* ============================================================================
     13. SECTION TITLES
     ============================================================================ */
  .section-title {
    text-align: center;
    padding-bottom: var(--space-12);
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .section-title h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
  }
  
  .section-title h2::after {
    content: "";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--color-accent);
    border-radius: var(--radius-full);
  }
  
  .section-title p {
    margin: 0;
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .section-title.text-start h2::after,
  .section-title.text-end h2::after {
    left: 0;
    transform: none;
  }
  
  .section-title.text-end h2::after {
    left: auto;
    right: 0;
  }
  
  /* ============================================================================
     14. HERO SECTION
     ============================================================================ */
  .hero {
    padding: 0;
    position: relative;
  }
  
  .hero .carousel {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    padding: 0;
    margin: 0;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
  }
  
  .hero img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 10s ease; /* Ken Burns effect */
  }
  
  .hero .carousel-item.active img {
    transform: scale(1.1);
  }
  
  .hero .carousel-item {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
  }
  
  .hero .carousel-item::before {
    content: "";
    background: linear-gradient(
      135deg,
      rgba(12, 36, 66, 0.85) 0%,
      rgba(12, 36, 66, 0.6) 50%,
      rgba(12, 36, 66, 0.4) 100%
    );
    position: absolute;
    inset: 0;
    z-index: 2;
  }
  
  .hero .carousel-container {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 3;
    padding: var(--space-8);
    text-align: center;
  }
  
  @media (min-width: 768px) {
    .hero .carousel-container {
      padding: var(--space-20);
    }
  }
  
  .hero h2 {
    margin-bottom: var(--space-6);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: var(--font-weight-black);
    text-transform: uppercase;
    color: var(--color-white);
    letter-spacing: -1px;
    line-height: var(--line-height-tight);
    animation: fadeInUp var(--transition-slow) ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .hero h2 span {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
  }
  
  .hero h2 span::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--color-accent);
    opacity: 0.2;
    z-index: -1;
    border-radius: var(--radius-sm);
  }
  
  .hero p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin-bottom: var(--space-8);
    line-height: var(--line-height-relaxed);
    animation: fadeInUp var(--transition-slow) ease-out var(--transition-fast);
    animation-fill-mode: both;
  }
  
  .hero .btn-get-started {
    color: var(--color-navy);
    font-family: var(--font-heading);
    font-weight: var(--font-weight-bold);
    font-size: var(--text-base);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--btn-padding-y) var(--btn-padding-x);
    border-radius: var(--btn-radius);
    transition: all var(--transition-normal);
    background: var(--color-accent);
    border: var(--border-width-lg) solid var(--color-accent);
    animation: fadeInUp var(--transition-slow) ease-out calc(var(--transition-fast) * 2);
    animation-fill-mode: both;
    will-change: transform, background-color;
  }
  
  .hero .btn-get-started i {
    font-size: var(--text-lg);
    transition: transform var(--transition-fast);
  }
  
  .hero .btn-get-started:hover,
  .hero .btn-get-started:focus {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
  }
  
  .hero .btn-get-started:hover i,
  .hero .btn-get-started:focus i {
    transform: translateX(4px);
  }
  
  .hero .btn-get-started:active {
    transform: translateY(-1px) scale(0.98);
  }
  
  /* Carousel controls */
  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 8%;
    transition: all var(--transition-fast);
    opacity: 0;
    z-index: 3;
  }
  
  .hero .carousel:hover .carousel-control-prev,
  .hero .carousel:hover .carousel-control-next {
    opacity: 0.7;
  }
  
  .hero .carousel-control-prev:hover,
  .hero .carousel-control-next:hover {
    opacity: 1 !important;
  }
  
  .hero .carousel-control-prev-icon,
  .hero .carousel-control-next-icon {
    background: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--color-white);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(12, 36, 66, 0.5);
    border: 2px solid var(--color-accent);
    transition: all var(--transition-fast);
  }
  
  .hero .carousel-control-prev-icon:hover,
  .hero .carousel-control-next-icon:hover {
    background: var(--color-accent);
    color: var(--color-navy);
    transform: scale(1.1);
  }
  
  @media (min-width: 1024px) {
    .hero .carousel-control-prev,
    .hero .carousel-control-next {
      width: 5%;
    }
  }
  
  /* Carousel indicators */
  .hero .carousel-indicators {
    list-style: none;
    display: flex;
    gap: var(--space-2);
    bottom: var(--space-8) !important;
    margin-bottom: 0 !important;
    z-index: 3;
  }
  
  .hero .carousel-indicators li {
    cursor: pointer;
    opacity: 0.5;
    height: 4px;
    width: 30px;
    transition: all var(--transition-normal);
    padding: 0;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    border: none;
  }
  
  .hero .carousel-indicators li.active {
    opacity: 1;
    background: var(--color-accent);
    width: 50px;
  }
  
  .hero .carousel-indicators li:hover {
    opacity: 0.8;
    background: var(--color-gold-light);
  }
  
  /* ============================================================================
     15. SERVICES SECTION
     ============================================================================ */
  .services .service-item {
    background-color: var(--color-bg-surface);
    box-shadow: var(--shadow-md);
    padding: var(--space-8) var(--space-6);
    transition: all var(--transition-normal);
    border-radius: var(--radius-lg);
    border-bottom: var(--border-width-xl) solid transparent;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    contain: content;
    will-change: transform, border-color;
  }
  
  .services .service-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-gold-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
  }
  
  .services .service-item:hover::before {
    transform: scaleX(1);
  }
  
  .services .service-item .icon {
    color: var(--color-white);
    background: var(--color-accent);
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-5);
    font-size: 1.75rem;
    transition: all var(--transition-normal);
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
  }
  
  .services .service-item .icon::after {
    content: "";
    position: absolute;
    inset: -3px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-accent));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
  }
  
  .services .service-item:hover .icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--shadow-lg);
  }
  
  .services .service-item:hover .icon::after {
    opacity: 1;
  }
  
  .services .service-item h3 {
    font-weight: var(--font-weight-bold);
    margin: 0 0 var(--space-4) 0;
    font-size: var(--text-xl);
    transition: color var(--transition-fast);
    flex-grow: 1;
  }
  
  .services .service-item p {
    line-height: var(--line-height-relaxed);
    font-size: var(--text-sm);
    margin-bottom: 0;
    color: var(--color-text-muted);
  }
  
  @media (min-width: 1365px) {
    .services .service-item:hover {
      transform: translateY(-8px);
      border-color: var(--color-accent);
      box-shadow: var(--shadow-lg);
    }
  
    .services .service-item:hover h3 {
      color: var(--color-accent);
    }
  }
  
  /* ============================================================================
     16. FORM STYLES (PHP Email Form)
     ============================================================================ */
  .php-email-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  
  .php-email-form .form-group {
    position: relative;
  }
  
  .php-email-form input[type="text"],
  .php-email-form input[type="email"],
  .php-email-form input[type="tel"],
  .php-email-form input[type="url"],
  .php-email-form textarea {
    width: 100%;
    font-size: var(--text-sm);
    padding: var(--input-padding);
    background: var(--input-bg);
    color: var(--color-text);
    border: var(--input-border);
    border-radius: var(--input-radius);
    transition: all var(--transition-fast);
    min-height: 48px;
  }
  
  .php-email-form textarea {
    min-height: 150px;
    resize: vertical;
  }
  
  .php-email-form input:focus,
  .php-email-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: var(--input-bg-focus);
    box-shadow: 0 0 0 4px rgba(220, 193, 104, 0.15);
  }
  
  .php-email-form input::placeholder,
  .php-email-form textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
  }
  
  .php-email-form input.is-invalid,
  .php-email-form textarea.is-invalid {
    border-color: var(--color-red-light);
    background: rgba(233, 72, 67, 0.05);
  }
  
  .php-email-form input.is-valid,
  .php-email-form textarea.is-valid {
    border-color: var(--color-navy-lighter);
    background: rgba(62, 96, 127, 0.05);
  }
  
  .php-email-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: var(--color-white);
    background: var(--color-accent);
    border: none;
    padding: var(--btn-padding-y) var(--btn-padding-x);
    font-size: var(--btn-font-size);
    font-weight: var(--btn-font-weight);
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--btn-radius);
    cursor: pointer;
    transition: all var(--transition-normal);
    width: auto;
    min-width: 160px;
    will-change: transform, background-color;
  }
  
  .php-email-form button[type="submit"]:hover,
  .php-email-form button[type="submit"]:focus {
    background: var(--color-navy);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .php-email-form button[type="submit"]:active {
    transform: translateY(0) scale(0.98);
  }
  
  .php-email-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }
  
  .php-email-form button[type="submit"] .spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 2px;
  }
  
  /* Form messages */
  .php-email-form .error-message,
  .php-email-form .sent-message,
  .php-email-form .loading {
    display: none;
    padding: var(--space-4);
    border-radius: var(--radius-md);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-4);
    animation: slideIn var(--transition-fast) ease-out;
  }
  
  @keyframes slideIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .php-email-form .error-message {
    background: rgba(159, 36, 30, 0.1);
    border: var(--border-width) solid var(--color-red-dark);
    color: var(--color-red-dark);
    border-left: var(--border-width-xl) solid var(--color-red-light);
  }
  
  .php-email-form .sent-message {
    background: rgba(62, 96, 127, 0.1);
    border: var(--border-width) solid var(--color-navy-lighter);
    color: var(--color-navy);
    border-left: var(--border-width-xl) solid var(--color-navy-lighter);
  }
  
  .php-email-form .loading {
    background: var(--color-bg-alt);
    border: var(--border-width) solid var(--color-border);
    color: var(--color-text);
    text-align: center;
  }
  
  .php-email-form .loading::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-border);
    border-top-color: var(--color-accent);
    border-radius: var(--radius-full);
    margin-right: var(--space-3);
    vertical-align: middle;
    animation: spin 1s linear infinite;
  }
  
  /* ============================================================================
     17. CONTACT SECTION
     ============================================================================ */
  .contact .info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    background: var(--color-bg-surface);
    border-radius: var(--radius-lg);
    border: var(--border-width) solid var(--color-border);
    transition: all var(--transition-fast);
  }
  
  .contact .info-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
  }
  
  .contact .info-item + .info-item {
    margin-top: var(--space-4);
  }
  
  .contact .info-item i {
    color: var(--color-white);
    background: var(--color-accent);
    font-size: 1.25rem;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
  }
  
  .contact .info-item:hover i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-md);
  }
  
  .contact .info-item h3 {
    padding: 0;
    font-size: var(--text-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-1);
    color: var(--color-heading);
  }
  
  .contact .info-item p {
    padding: 0;
    margin-bottom: 0;
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: var(--line-height-relaxed);
  }
  
  .contact .info-item a {
    color: var(--color-text);
    transition: color var(--transition-fast);
  }
  
  .contact .info-item a:hover {
    color: var(--color-accent);
  }
  
  /* ============================================================================
     18. REAL ESTATE CARDS
     ============================================================================ */
  .real-estate .card {
    background-color: var(--color-bg-surface);
    color: var(--color-text);
    border: none;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    contain: content;
    will-change: transform;
  }
  
  .real-estate .card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      transparent 25%,
      rgba(12, 36, 66, 0.7) 60%,
      rgba(12, 36, 66, 0.95) 100%
    );
    z-index: 2;
    transition: opacity var(--transition-normal);
  }
  
  .real-estate .card img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform var(--transition-slow);
  }
  
  .real-estate .card:hover img {
    transform: scale(1.05);
  }
  
  .real-estate .card .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
  }
  
  .real-estate .card .card-body .sale-rent {
    display: inline-flex;
    align-items: center;
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-white);
    padding: var(--space-1) var(--space-4);
    border: var(--border-width-lg) solid var(--color-accent);
    border-radius: var(--radius-full);
    background: rgba(12, 36, 66, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    width: fit-content;
    transition: all var(--transition-fast);
  }
  
  .real-estate .card:hover .card-body .sale-rent {
    background: var(--color-accent);
    color: var(--color-navy);
  }
  
  .real-estate .card .card-body h3 {
    font-weight: var(--font-weight-bold);
    font-size: var(--text-xl);
    margin: 0;
    padding-left: var(--space-3);
    border-left: var(--border-width-xl) solid var(--color-accent);
    color: var(--color-white);
    line-height: var(--line-height-tight);
  }
  
  .real-estate .card .card-body h3 a {
    color: var(--color-white);
    transition: color var(--transition-fast);
    display: block;
  }
  
  .real-estate .card .card-body h3 a:hover {
    color: var(--color-accent);
  }
  
  .real-estate .card .card-body .card-content {
    background: var(--color-accent);
    color: var(--color-navy);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-medium);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    pointer-events: none;
  }
  
  .real-estate .card .card-body .card-content .property-info {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
  }
  
  .real-estate .card .card-body .card-content .property-info span {
    display: flex;
    align-items: center;
    gap: var(--space-1);
  }
  
  .real-estate .card .card-body .card-content .property-info i {
    font-size: var(--text-base);
  }
  
  .real-estate .card:hover .card-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  
  /* ============================================================================
     19. SKELETON LOADING STATES
     ============================================================================ */
  .skeleton {
    background: linear-gradient(
      90deg,
      var(--color-bg-alt) 25%,
      var(--color-border) 50%,
      var(--color-bg-alt) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
    pointer-events: none;
    user-select: none;
  }
  
  @keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }
  
  .skeleton.text {
    height: 1em;
    width: 100%;
    margin-bottom: var(--space-2);
  }
  
  .skeleton.title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-4);
  }
  
  .skeleton.avatar {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
  }
  
  .skeleton.card {
    height: 300px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-4);
  }
  
  /* ============================================================================
     20. PRINT STYLES
     ============================================================================ */
  @media print {
    /* Hide interactive elements */
    .scroll-top,
    .mobile-nav-toggle,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .btn-get-started,
    .php-email-form button[type="submit"] {
      display: none !important;
    }
    
    /* Reset colors for printing */
    :root {
      --color-bg: #ffffff;
      --color-text: #000000;
      --color-heading: #000000;
      --color-accent: #000000;
      --color-border: #cccccc;
    }
    
    /* Ensure content is visible */
    body {
      color: #000;
      background: #fff;
      font-size: 12pt;
    }
    
    /* Page breaks for sections */
    section,
    .section {
      page-break-inside: avoid;
      padding: 20pt 0;
    }
    
    /* Links show URLs when printed */
    a[href]::after {
      content: " (" attr(href) ")";
      font-size: 0.9em;
      color: #666;
    }
    
    /* Remove decorative elements */
    .section::before,
    .section::after,
    .page-title::before {
      display: none;
    }
    
    /* Ensure images print properly */
    img {
      max-width: 100% !important;
      height: auto !important;
    }
  }
  
  /* ============================================================================
     21. CONTAINER QUERIES (Modern browsers)
     ============================================================================ */
  @container (min-width: 400px) {
    .services .service-item {
      padding: var(--space-10) var(--space-8);
    }
  }
  
  @container (max-width: 399px) {
    .services .service-item {
      padding: var(--space-6) var(--space-4);
    }
    
    .services .service-item .icon {
      width: 56px;
      height: 56px;
      font-size: 1.5rem;
    }
  }
  
  /* ============================================================================
     22. HIGH DPI / RETINA DISPLAY OPTIMIZATIONS
     ============================================================================ */
  @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .header,
    .footer,
    .hero .carousel-item::before {
      /* Force GPU acceleration for smoother rendering */
      transform: translateZ(0);
      will-change: transform;
    }
  }
  
  /* ============================================================================
     23. TOUCH DEVICE OPTIMIZATIONS
     ============================================================================ */
  @media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .hover-lift:hover,
    .services .service-item:hover,
    .real-estate .card:hover {
      transform: none !important;
    }
    
    /* Increase touch target sizes */
    .navmenu a,
    .footer .social-links a,
    .scroll-top {
      min-height: 44px;
      min-width: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    /* Improve form inputs on mobile */
    .php-email-form input,
    .php-email-form textarea {
      font-size: 16px; /* Prevents iOS zoom on focus */
    }
  }
  
  /* ============================================================================
     24. STARTER SECTION (Custom styles placeholder)
     ============================================================================ */
  .starter-section {
    /* 
     * Add your custom styles here
     * Use CSS custom properties for consistency:
     * var(--color-accent), var(--space-4), var(--radius-md), etc.
     */
  }