/* =============================================
   Heritage Construction — MagicUI-inspired Animations
   ============================================= */

/* --- Header / Navigation Fixes --- */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999 !important;
  background: #0f1729 !important;
  border-bottom: 1px solid rgba(200, 164, 92, 0.15);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 30px;
  position: relative;
}

.site-title a {
  color: #c8a45c !important;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.3px;
}

.site-description {
  display: none !important;
}

.site-navigation ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-navigation ul li {
  margin: 0;
}

.site-navigation ul li a {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 8px 16px !important;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.site-navigation ul li a:hover,
.site-navigation ul li.current-menu-item a {
  color: #c8a45c !important;
  background: rgba(200, 164, 92, 0.1);
}

.site-navigation ul li a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #c8a45c;
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.site-navigation ul li a:hover::after,
.site-navigation ul li.current-menu-item a::after {
  width: 20px;
}

/* Mobile menu toggle */
.site-navigation-toggle-holder {
  display: none;
}

/* Push page content below fixed header */
body {
  padding-top: 82px !important;
}

/* --- Dropdown / Mega Menu Styling --- */

/* Standard dropdown for non-service items (About Us, Blog, FAQ, Contact) */
.site-navigation .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 220px;
  background: #0f1729;
  border: 1px solid rgba(200, 164, 92, 0.2);
  border-top: 2px solid #c8a45c;
  border-radius: 0 0 8px 8px;
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* Mega menu: service parent items span full viewport width */
.site-navigation > ul > li.menu-item-has-children:nth-child(3),
.site-navigation > ul > li.menu-item-has-children:nth-child(4),
.site-navigation > ul > li.menu-item-has-children:nth-child(5) {
  position: static;
}

.site-navigation > ul > li.menu-item-has-children:nth-child(3) > .sub-menu,
.site-navigation > ul > li.menu-item-has-children:nth-child(4) > .sub-menu,
.site-navigation > ul > li.menu-item-has-children:nth-child(5) > .sub-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: auto;
  transform: translateY(10px);
  border-radius: 0 0 8px 8px;
  padding: 28px 40px;
  column-count: 2;
  column-gap: 40px;
  display: block;
  box-sizing: border-box;
  background: #0f1729;
  border-top: 2px solid #c8a45c;
  z-index: 99999;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

/* Bridge so mouse can travel from item to sub-menu */
.site-navigation > ul > li.menu-item-has-children:nth-child(3) > .sub-menu::before,
.site-navigation > ul > li.menu-item-has-children:nth-child(4) > .sub-menu::before,
.site-navigation > ul > li.menu-item-has-children:nth-child(5) > .sub-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

/* Keep other menu items with children as positioning context */
.site-navigation > ul > li.menu-item-has-children {
  position: relative;
}

.site-navigation > ul > li.menu-item-has-children:nth-child(3) > .sub-menu > li,
.site-navigation > ul > li.menu-item-has-children:nth-child(4) > .sub-menu > li,
.site-navigation > ul > li.menu-item-has-children:nth-child(5) > .sub-menu > li {
  break-inside: avoid;
  padding: 0;
}

.site-navigation > ul > li.menu-item-has-children:nth-child(3) > .sub-menu > li a,
.site-navigation > ul > li.menu-item-has-children:nth-child(4) > .sub-menu > li a,
.site-navigation > ul > li.menu-item-has-children:nth-child(5) > .sub-menu > li a {
  white-space: nowrap;
  padding: 14px 20px !important;
  font-size: 14px;
  color: #c8a45c !important;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-left-color: transparent;
}

.site-navigation > ul > li.menu-item-has-children:nth-child(3) > .sub-menu > li a:hover,
.site-navigation > ul > li.menu-item-has-children:nth-child(4) > .sub-menu > li a:hover,
.site-navigation > ul > li.menu-item-has-children:nth-child(5) > .sub-menu > li a:hover {
  color: #e8d48b !important;
  background: rgba(200, 164, 92, 0.15);
  border-left-color: #e8d48b;
  padding-left: 24px !important;
}

/* Hover state for ALL dropdowns */
.site-navigation .menu-item-has-children:hover > .sub-menu,
.site-navigation .menu-item-has-children .sub-menu:hover {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mega menu hover: reachable via bridge */
.site-navigation > ul > li.menu-item-has-children:nth-child(3):hover > .sub-menu,
.site-navigation > ul > li.menu-item-has-children:nth-child(4):hover > .sub-menu,
.site-navigation > ul > li.menu-item-has-children:nth-child(5):hover > .sub-menu,
.site-navigation > ul > li.menu-item-has-children:nth-child(3) > .sub-menu:hover,
.site-navigation > ul > li.menu-item-has-children:nth-child(4) > .sub-menu:hover,
.site-navigation > ul > li.menu-item-has-children:nth-child(5) > .sub-menu:hover {
  transform: translateY(0);
}

/* Standard dropdown hover: keep X centering */
.site-navigation .menu-item-has-children:hover > .sub-menu {
  transform: translateX(-50%) translateY(0);
}

/* Shared sub-menu item styles */
.site-navigation .sub-menu li {
  display: block;
  width: 100%;
}

.site-navigation .sub-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px !important;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7) !important;
  border-radius: 0;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.site-navigation .sub-menu li a::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8a45c;
  flex-shrink: 0;
  opacity: 0.5;
  transition: all 0.2s ease;
}

.site-navigation .sub-menu li a:hover {
  color: #c8a45c !important;
  background: rgba(200, 164, 92, 0.08);
  border-left-color: #c8a45c;
  padding-left: 28px !important;
}

.site-navigation .sub-menu li a:hover::before {
  background: #c8a45c;
  box-shadow: 0 0 6px rgba(200, 164, 92, 0.5);
}

.site-navigation .sub-menu li a::after {
  display: none;
}

/* Nested sub-menus (third level) */
.site-navigation .sub-menu .menu-item-has-children > .sub-menu {
  top: -12px;
  left: 100%;
  margin-left: 4px;
  transform: translateY(-8px);
}

.site-navigation .sub-menu .menu-item-has-children:hover > .sub-menu {
  transform: translateY(0);
}

/* Top-level items with children: add caret indicator */
.site-navigation > ul > li.menu-item-has-children > a::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  margin-right: 8px;
  transition: border-color 0.2s ease;
  vertical-align: middle;
  position: relative;
  top: -2px;
}

.site-navigation > ul > li.menu-item-has-children > a:hover::before {
  border-color: #c8a45c;
}

/* Current / ancestor highlight */
.site-navigation .current-menu-item > a,
.site-navigation .current-menu-ancestor > a,
.site-navigation .current-page-ancestor > a {
  color: #c8a45c !important;
}

/* Mobile */
@media (max-width: 768px) {
  .site-header {
    position: relative !important;
  }

  body {
    padding-top: 0 !important;
  }

  .site-navigation ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .site-navigation .sub-menu,
  .site-navigation > ul > li.menu-item-has-children:nth-child(3) > .sub-menu,
  .site-navigation > ul > li.menu-item-has-children:nth-child(4) > .sub-menu,
  .site-navigation > ul > li.menu-item-has-children:nth-child(5) > .sub-menu {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: #0f1729;
    border: none;
    border-top: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 0 16px;
    display: none;
    column-count: 1;
    min-width: auto;
    max-width: none;
  }

  .site-navigation .menu-item-has-children:hover > .sub-menu,
  .site-navigation > ul > li.menu-item-has-children:nth-child(3):hover > .sub-menu,
  .site-navigation > ul > li.menu-item-has-children:nth-child(4):hover > .sub-menu,
  .site-navigation > ul > li.menu-item-has-children:nth-child(5):hover > .sub-menu {
    display: block;
    transform: none;
  }

  .site-navigation .sub-menu li a {
    padding: 8px 16px !important;
    font-size: 13px;
  }

  .site-navigation .sub-menu .menu-item-has-children > .sub-menu {
    left: 0;
    top: 0;
    margin-left: 0;
  }
}

/* --- Animated Gradient Text --- */
.heritage-gradient-text {
  background: linear-gradient(135deg, #c8a45c 0%, #e8d48b 25%, #c8a45c 50%, #a8883e 75%, #c8a45c 100%);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* --- Shiny Text (glare sweep) --- */
.heritage-shiny-text {
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(200, 164, 92, 0.4) 45%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(200, 164, 92, 0.4) 55%,
    transparent 70%
  );
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: shiny-sweep 3s ease-in-out infinite;
}

@keyframes shiny-sweep {
  0% { background-position: -100% 50%; }
  100% { background-position: 200% 50%; }
}

/* --- Text Reveal (clip-path animation) --- */
.heritage-text-reveal {
  clip-path: inset(0 0 0 0);
  animation: reveal-in 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes reveal-in {
  0% { clip-path: inset(0 100% 0 0); }
  100% { clip-path: inset(0 0 0 0); }
}

/* --- Scroll Reveal Animations --- */
.heritage-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.heritage-fade-up.heritage-visible {
  opacity: 1;
  transform: translateY(0);
}

.heritage-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.heritage-fade-left.heritage-visible {
  opacity: 1;
  transform: translateX(0);
}

.heritage-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.heritage-fade-right.heritage-visible {
  opacity: 1;
  transform: translateX(0);
}

.heritage-fade-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.heritage-fade-scale.heritage-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger children */
.heritage-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.heritage-stagger.heritage-visible > *:nth-child(1) { transition-delay: 0ms; }
.heritage-stagger.heritage-visible > *:nth-child(2) { transition-delay: 100ms; }
.heritage-stagger.heritage-visible > *:nth-child(3) { transition-delay: 200ms; }
.heritage-stagger.heritage-visible > *:nth-child(4) { transition-delay: 300ms; }

.heritage-stagger.heritage-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Border Beam (animated card border) --- */
.heritage-border-beam {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.heritage-border-beam::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    transparent,
    rgba(200, 164, 92, 0.3),
    rgba(200, 164, 92, 0.6),
    rgba(200, 164, 92, 0.3),
    transparent
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: border-beam-spin 4s linear infinite;
}

@keyframes border-beam-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Card Hover Effects --- */
.heritage-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
  overflow: hidden;
}

.heritage-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 60px rgba(15, 23, 41, 0.12);
}

/* --- Button Hover Effects --- */
.heritage-btn-glow {
  position: relative;
  overflow: hidden;
}

.heritage-btn-glow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.heritage-btn-glow:hover::before {
  width: 300px;
  height: 300px;
}

/* --- Floating Animation for Images --- */
.heritage-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* --- Stat Counter Animation --- */
.heritage-stat-number {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.heritage-stat-number.heritage-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Particles Background --- */
#heritage-particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* --- Magic Card Spotlight --- */
.heritage-spotlight-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heritage-spotlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15, 23, 41, 0.1);
}

.heritage-spotlight-card .spotlight-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 164, 92, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
}

.heritage-spotlight-card:hover .spotlight-glow {
  opacity: 1;
}

/* --- Process Step Animations --- */
.heritage-step-card {
  transition: all 0.3s ease;
}

.heritage-step-card:hover {
  transform: translateY(-4px);
}

.heritage-step-card .elementor-heading-title:first-child {
  display: inline-block;
  transition: all 0.3s ease;
  font-style: italic;
}

.heritage-step-card:hover .elementor-heading-title:first-child {
  color: #c8a45c !important;
  transform: scale(1.1);
}

/* Stat columns counter styling */
.heritage-stat-column .elementor-heading-title:first-child {
  transition: all 0.3s ease;
}

/* --- Elementor Overrides --- */
.elementor-section .elementor-container {
  position: relative;
  z-index: 2;
}

/* Fix elementor full-width stretch */
.elementor-top-section.elementor-section-stretched {
  position: relative;
  z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-navigation ul {
    flex-direction: column;
    gap: 0;
  }

  .site-navigation-toggle-holder {
    display: block;
  }
}

/* --- Smooth Scroll --- */
html {
  scroll-behavior: smooth;
}

/* Heading style adjustments */
.elementor-widget-heading .elementor-heading-title em {
  font-style: italic;
  color: #c8a45c;
}

/* Image hover overlay effect */
.heritage-image-zoom {
  overflow: hidden;
  border-radius: 12px;
}

.heritage-image-zoom img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.heritage-image-zoom:hover img {
  transform: scale(1.06);
}

/* =============================================
   Heritage Construction — Luxury Branding Additions
   ============================================= */

/* --- Global Typography --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1a1a2e;
}

/* --- Section Headers --- */
.elementor-section .elementor-heading-title {
  letter-spacing: -0.02em;
}

/* --- Luxury Card Styles --- */
.heritage-luxury-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 20px rgba(15, 23, 41, 0.04);
  height: 100%;
}

.heritage-luxury-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15, 23, 41, 0.1);
}

.heritage-luxury-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.heritage-luxury-card:hover img {
  transform: scale(1.05);
}

/* --- Service Pillar Cards --- */
.elementor-column:hover .elementor-widget-image img {
  transform: scale(1.05);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.elementor-column .elementor-widget-image {
  overflow: hidden;
  border-radius: 8px;
}

.elementor-column .elementor-widget-image img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Review Card Styling --- */
.heritage-review-card {
  border-radius: 12px;
  background: #ffffff;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.heritage-review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 41, 0.06);
}

/* --- Blog Card Styling --- */
.heritage-blog-card {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.heritage-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(15, 23, 41, 0.08);
}

.heritage-blog-card .elementor-widget-image {
  overflow: hidden;
}

.heritage-blog-card .elementor-widget-image img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.heritage-blog-card:hover .elementor-widget-image img {
  transform: scale(1.06);
}

/* --- Service Area Tags --- */
.heritage-area-tag {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(200, 164, 92, 0.2);
}

.heritage-area-tag:hover {
  background: #0f1729 !important;
  color: #c8a45c !important;
  border-color: #c8a45c;
  transform: translateY(-2px);
}

/* --- Process Step --- */
.heritage-process-step {
  text-align: center;
  padding: 30px 20px;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.heritage-process-step:hover {
  background: rgba(200, 164, 92, 0.03);
}

/* --- Gold Divider --- */
.heritage-gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #c8a45c, #e8d48b);
  border-radius: 2px;
  margin: 20px auto;
}

/* --- CTA Section Refinements --- */
.heritage-cta-section {
  position: relative;
  overflow: hidden;
}

.heritage-cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(200, 164, 92, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

/* --- Button Base Refinements --- */
.elementor-button {
  font-family: 'Inter', sans-serif !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  position: relative;
  overflow: hidden;
}

.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 164, 92, 0.2);
}

/* Outline button hover */
.elementor-button[style*="transparent"]:hover {
  background: rgba(200, 164, 92, 0.1) !important;
  border-color: #c8a45c !important;
  color: #c8a45c !important;
}

/* --- Image Border Radius Override --- */
.elementor-widget-image img {
  border-radius: 8px;
  width: 100%;
}

/* --- Gallery Images --- */
.elementor-column .elementor-widget-image {
  margin-bottom: 0;
}

/* --- Social Proof Bar --- */
.heritage-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* --- Spacing Fixes --- */
.elementor-section .elementor-column-gap-default {
  gap: 0;
}

/* --- Elementor Section Content Align --- */
.elementor-section .elementor-container {
  max-width: 1200px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .elementor-section .elementor-container {
    max-width: 960px;
  }
}

@media (max-width: 768px) {
  .elementor-section .elementor-container {
    max-width: 100%;
  }
  
  .elementor-section .elementor-heading-title {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }
  
  .heritage-social-proof {
    flex-direction: column;
    gap: 12px;
  }
  
  .heritage-area-tag {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* =============================================
   Heritage Construction — Section Design System
   ============================================= */

/* --- Alternating section backgrounds --- */
.elementor-top-section:nth-of-type(4),
.elementor-top-section:nth-of-type(5),
.elementor-top-section:nth-of-type(6),
.elementor-top-section:nth-of-type(9),
.elementor-top-section:nth-of-type(10),
.elementor-top-section:nth-of-type(12),
.elementor-top-section:nth-of-type(13),
.elementor-top-section:nth-of-type(15),
.elementor-top-section:nth-of-type(16) {
  background: #f8f6f3 !important;
}

/* --- Reviews: full navy section --- */
.elementor-top-section:nth-of-type(11) {
  background: #0f1729 !important;
  position: relative;
  border-top: 2px solid #c8a45c;
  border-bottom: 2px solid #c8a45c;
  overflow: hidden;
}

/* Subtle gold glow on each side of reviews */
.elementor-top-section:nth-of-type(11)::before,
.elementor-top-section:nth-of-type(11)::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  pointer-events: none;
}

.elementor-top-section:nth-of-type(11)::before {
  left: 0;
  background: radial-gradient(ellipse at 0% 50%, rgba(200, 164, 92, 0.06) 0%, transparent 70%);
}

.elementor-top-section:nth-of-type(11)::after {
  right: 0;
  background: radial-gradient(ellipse at 100% 50%, rgba(200, 164, 92, 0.06) 0%, transparent 70%);
}

.elementor-top-section:nth-of-type(11) .elementor-heading-title,
.elementor-top-section:nth-of-type(11) .elementor-widget-text-editor {
  color: #ffffff !important;
}

.elementor-top-section:nth-of-type(11) .elementor-widget-text-editor {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* --- Gold dividers between section groups --- */
.elementor-top-section:nth-of-type(4) {
  border-top: 1px solid rgba(200, 164, 92, 0.12);
}

.elementor-top-section:nth-of-type(17) {
  border-top: 1px solid rgba(200, 164, 92, 0.15);
}

/* --- Card elevation on hover --- */
.elementor-top-section:nth-of-type(3) .elementor-column,
.elementor-top-section:nth-of-type(6) .elementor-column,
.elementor-top-section:nth-of-type(16) .elementor-column {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.elementor-top-section:nth-of-type(3) .elementor-column:hover,
.elementor-top-section:nth-of-type(6) .elementor-column:hover,
.elementor-top-section:nth-of-type(16) .elementor-column:hover {
  transform: translateY(-6px);
}

/* --- Section heading sizes --- */
.elementor-top-section:nth-of-type(2) .elementor-heading-title,
.elementor-top-section:nth-of-type(5) .elementor-heading-title,
.elementor-top-section:nth-of-type(7) .elementor-heading-title,
.elementor-top-section:nth-of-type(9) .elementor-heading-title,
.elementor-top-section:nth-of-type(12) .elementor-heading-title,
.elementor-top-section:nth-of-type(14) .elementor-heading-title,
.elementor-top-section:nth-of-type(15) .elementor-heading-title {
  font-size: 42px !important;
  letter-spacing: -0.5px !important;
}

/* --- Hero section --- */
.elementor-top-section:first-of-type .elementor-heading-title {
  font-size: 60px !important;
  line-height: 1.05 !important;
  letter-spacing: -1px !important;
}

.elementor-top-section:first-of-type .elementor-widget-text-editor {
  font-size: 20px !important;
  line-height: 1.5 !important;
  max-width: 650px;
  margin: 0 auto;
}

/* --- Responsive heading fixes --- */
@media (max-width: 768px) {
  .elementor-top-section:nth-of-type(2) .elementor-heading-title,
  .elementor-top-section:nth-of-type(5) .elementor-heading-title,
  .elementor-top-section:nth-of-type(7) .elementor-heading-title,
  .elementor-top-section:nth-of-type(9) .elementor-heading-title,
  .elementor-top-section:nth-of-type(12) .elementor-heading-title,
  .elementor-top-section:nth-of-type(14) .elementor-heading-title,
  .elementor-top-section:nth-of-type(15) .elementor-heading-title {
    font-size: 30px !important;
  }

  .elementor-top-section:first-of-type .elementor-heading-title {
    font-size: 36px !important;
  }

  .elementor-top-section:first-of-type .elementor-widget-text-editor {
    font-size: 16px !important;
  }
}

/* =============================================
   Heritage Construction — Full Responsive System
   ============================================= */

/* --- Tablet (769px - 1024px) --- */
@media (min-width: 769px) and (max-width: 1024px) {
  .elementor-section .elementor-container {
    max-width: 100%;
    padding: 0 24px;
  }

  /* Reduce section padding */
  .elementor-section > .elementor-container > .elementor-row > .elementor-column,
  .elementor-section > .elementor-container > .elementor-column {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  /* Heading sizes */
  .elementor-widget-heading .elementor-heading-title {
    font-size: 36px !important;
  }

  .elementor-widget-heading h3.elementor-heading-title {
    font-size: 24px !important;
  }

  /* Hero section */
  .elementor-section.elementor-element- > .elementor-container {
    min-height: 70vh !important;
  }

  /* 4-col sections become 2x2 */
  .elementor-section .elementor-column[data-col="25"] {
    width: 50% !important;
  }

  /* Process section */
  .elementor-section .elementor-column[data-col="25"] .heritage-process-step {
    padding: 20px 12px;
  }

  /* Service area tags wrap */
  .heritage-area-tag {
    font-size: 13px;
    padding: 8px 16px;
  }
}

/* --- Large Mobile (481px - 768px) --- */
@media (max-width: 768px) {
  /* Container */
  .elementor-section .elementor-container {
    max-width: 100%;
    padding: 0 16px;
    flex-wrap: wrap;
  }

  /* Reset section top/bottom padding for mobile */
  .elementor-section.elementor-section-stretched {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }

  /* First section (Hero) needs less padding on mobile */
  .elementor-section:first-of-type {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
    min-height: 60vh !important;
  }

  /* All columns full width on mobile */
  .elementor-section .elementor-column {
    width: 100% !important;
  }

  /* Column gaps */
  .elementor-section .elementor-column > .elementor-element-populated {
    padding: 10px !important;
  }

  /* --- Typography --- */
  .elementor-widget-heading .elementor-heading-title {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }

  .elementor-widget-heading h2.elementor-heading-title {
    font-size: 26px !important;
  }

  .elementor-widget-heading h3.elementor-heading-title {
    font-size: 20px !important;
  }

  .elementor-widget-heading h4.elementor-heading-title,
  .elementor-widget-heading h5.elementor-heading-title,
  .elementor-widget-heading h6.elementor-heading-title {
    font-size: 16px !important;
  }

  .elementor-widget-text-editor {
    font-size: 15px !important;
    line-height: 1.6 !important;
  }

  /* --- Buttons --- */
  .elementor-widget-button .elementor-button {
    width: 100%;
    justify-content: center;
    padding: 14px 24px !important;
    font-size: 15px !important;
  }

  .elementor-widget-button {
    width: 100%;
  }

  /* Button columns side by side on mobile when 2 buttons */
  .elementor-section .elementor-column[data-col="50"] .elementor-widget-button {
    width: 100%;
  }

  /* --- Hero specific --- */
  .elementor-section:first-of-type .elementor-heading-title {
    font-size: 32px !important;
  }

  .elementor-section:first-of-type .elementor-widget-text-editor {
    font-size: 16px !important;
  }

  /* --- Service Pillars (3 columns) --- */
  .elementor-section:nth-of-type(3) .elementor-column {
    margin-bottom: 30px;
  }

  .elementor-section:nth-of-type(3) .elementor-column:last-child {
    margin-bottom: 0;
  }

  /* --- About (2 columns) --- */
  .elementor-section:nth-of-type(4) .elementor-column:first-child {
    margin-bottom: 30px;
  }

  /* --- Services Grid (3 columns x 2 rows) --- */
  .elementor-section:nth-of-type(6) .elementor-column {
    margin-bottom: 20px;
  }

  /* --- Process (4 columns) --- */
  .elementor-section:nth-of-type(7) .heritage-process-step {
    padding: 20px 10px;
  }

  .elementor-section:nth-of-type(7) .elementor-column {
    margin-bottom: 10px;
  }

  /* --- Gallery (bento grid) --- */
  .elementor-section:nth-of-type(8) .elementor-widget-image img {
    height: auto !important;
    max-height: 250px;
    object-fit: cover;
  }

  /* --- Reviews (4 columns) --- */
  .elementor-section:nth-of-type(10) .elementor-column {
    margin-bottom: 20px;
  }

  .elementor-section:nth-of-type(10) .elementor-column:last-child {
    margin-bottom: 0;
  }

  /* --- Service Areas (4 columns) --- */
  .elementor-section:nth-of-type(13) .elementor-column {
    margin-bottom: 16px;
  }

  .heritage-area-tag {
    font-size: 12px;
    padding: 8px 14px;
    width: 100%;
    text-align: center;
  }

  /* --- Blog (4 columns) --- */
  .elementor-section:nth-of-type(16) .elementor-column {
    margin-bottom: 24px;
  }

  .elementor-section:nth-of-type(16) .elementor-column:last-child {
    margin-bottom: 0;
  }

  /* --- Final CTA --- */
  .elementor-section:last-of-type {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  .elementor-section:last-of-type .elementor-heading-title {
    font-size: 28px !important;
  }

  /* --- Social proof --- */
  .heritage-social-proof {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* --- Spacers become smaller on mobile --- */
  .elementor-widget-spacer .elementor-spacer-inner {
    height: 20px !important;
  }

  /* --- Images --- */
  .elementor-widget-image img {
    max-width: 100%;
    height: auto;
  }

  /* --- Section spacing --- */
  .elementor-section .elementor-container .elementor-column-gap-default {
    gap: 0;
  }
}

/* --- Small Mobile (< 480px) --- */
@media (max-width: 480px) {
  .elementor-section:first-of-type {
    padding-top: 80px !important;
    padding-bottom: 30px !important;
    min-height: 50vh !important;
  }

  .elementor-widget-heading .elementor-heading-title {
    font-size: 24px !important;
  }

  .elementor-section:first-of-type .elementor-heading-title {
    font-size: 26px !important;
  }

  .elementor-widget-text-editor {
    font-size: 14px !important;
  }

  .elementor-section.elementor-section-stretched {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .elementor-section:last-of-type {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .elementor-widget-button .elementor-button {
    padding: 12px 20px !important;
    font-size: 14px !important;
  }
}

/* --- Hero Section Overlay Fix (bypass Elementor gradient glitch) --- */
.elementor-element-c834b216970fe::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15,23,41,0.92) 0%, rgba(15,23,41,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.elementor-element-c834b216970fe > .elementor-container {
  position: relative;
  z-index: 2;
}

/* --- Hide page title (Home) when using default template with Elementor --- */
.page-title,
.page-header,
.entry-title,
.page .entry-header,
h1.entry-title,
.hero-title-area {
  display: none !important;
}

main.page-content > .entry-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.page .entry-content {
  margin-top: 0 !important;
}

/* --- Bento Grid Gallery on Navy Background --- */

/* Override cream bg for gallery sections (higher specificity than nth-of-type) */
.elementor-section.elementor-top-section.elementor-element-c127a9f83be46,
.elementor-section.elementor-top-section.elementor-element-d6f4a8b2c1e0,
.elementor-section.elementor-top-section.elementor-element-e7f8a9b0c1d2 {
  background: #0f1729 !important;
}

/* Both bento sections = full viewport height, navy bg shows through gaps */
.elementor-element-d6f4a8b2c1e0,
.elementor-element-e7f8a9b0c1d2 {
  height: 80vh !important;
  min-height: 500px !important;
}

.elementor-element-d6f4a8b2c1e0 > .elementor-container,
.elementor-element-e7f8a9b0c1d2 > .elementor-container {
  height: 100% !important;
}

.elementor-element-d6f4a8b2c1e0 .elementor-column,
.elementor-element-e7f8a9b0c1d2 .elementor-column {
  height: 100% !important;
}

/* Gallery wrapper: flex columns, gap shows navy between stacked images */
.elementor-element-d6f4a8b2c1e0 .elementor-widget-wrap,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-wrap {
  height: 100% !important;
  display: flex !important;
  flex-direction: column;
  gap: 12px !important;
}

/* Each image widget gets equal flex share and fills column */
.elementor-element-d6f4a8b2c1e0 .elementor-widget-image,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-image {
  height: auto !important;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Gold frame on anchor wrapper */
.elementor-element-d6f4a8b2c1e0 .elementor-widget-image a,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-image a {
  display: block !important;
  height: 100% !important;
  width: 100% !important;
  border: 1.5px solid rgba(200, 164, 92, 0.45);
  transition: border-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.elementor-element-d6f4a8b2c1e0 .elementor-widget-image a:hover,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-image a:hover {
  border-color: #c8a45c;
}

/* Image fill + zoom on hover */
.elementor-element-d6f4a8b2c1e0 .elementor-widget-image img,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
  display: block !important;
}

.elementor-element-d6f4a8b2c1e0 .elementor-widget-image a:hover img,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-image a:hover img {
  transform: scale(1.06) !important;
}

/* Dark overlay on hover */
.elementor-element-d6f4a8b2c1e0 .elementor-widget-image a::before,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-image a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,23,41,0);
  transition: background 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.elementor-element-d6f4a8b2c1e0 .elementor-widget-image a:hover::before,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-image a:hover::before {
  background: rgba(15,23,41,0.15);
}

/* Gold top-line hover effect */
.elementor-element-d6f4a8b2c1e0 .elementor-widget-image a::after,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-image a::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #c8a45c;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 3;
}

.elementor-element-d6f4a8b2c1e0 .elementor-widget-image a:hover::after,
.elementor-element-e7f8a9b0c1d2 .elementor-widget-image a:hover::after {
  transform: scaleX(1);
}

/* Bento rows = solid seamless navy background */
.elementor-element-d6f4a8b2c1e0 {
  margin-bottom: 0 !important;
}

/* --- All Buttons: Override global green with brand gold --- */
.elementor-widget-button .elementor-button {
  background-color: #c8a45c !important;
  color: #0f1729 !important;
  fill: #0f1729 !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.elementor-widget-button .elementor-button:hover {
  background-color: #b8923f !important;
  color: #ffffff !important;
}

/* Outline buttons — transparent bg with gold outline */
/* Section 0 (hero): first button = filled gold, second button = outline white */
.elementor-section:first-of-type .elementor-widget-button:nth-child(7) .elementor-button {
  background-color: #c8a45c !important;
  color: #0f1729 !important;
  border: none !important;
}

.elementor-section:first-of-type .elementor-widget-button:nth-child(8) .elementor-button {
  background-color: transparent !important;
  border: 1.5px solid rgba(255,255,255,0.4) !important;
  color: #ffffff !important;
}

.elementor-section:first-of-type .elementor-widget-button:nth-child(8) .elementor-button:hover {
  border-color: #c8a45c !important;
  color: #c8a45c !important;
  background-color: transparent !important;
}

/* Section 3 (services cards): equal image height, aligned text & buttons */
.elementor-top-section:nth-of-type(3) .elementor-widget-wrap {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.elementor-top-section:nth-of-type(3) .elementor-widget-image {
  height: 240px;
  overflow: hidden;
}

.elementor-top-section:nth-of-type(3) .elementor-widget-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.elementor-top-section:nth-of-type(3) .elementor-widget-button {
  margin-top: auto;
}

/* Section 2 (services): 3x "Explore..." buttons */
.elementor-section:nth-of-type(3) .elementor-button {
  background-color: transparent !important;
  border: 1.5px solid #c8a45c !important;
  color: #c8a45c !important;
}

.elementor-section:nth-of-type(3) .elementor-button:hover {
  background-color: #c8a45c !important;
  color: #0f1729 !important;
}

/* Section 15 (blog): 4x "Read Guide →" buttons */
.elementor-section:nth-of-type(16) .elementor-button {
  background-color: transparent !important;
  border: 1.5px solid #c8a45c !important;
  color: #c8a45c !important;
}

.elementor-section:nth-of-type(16) .elementor-button:hover {
  background-color: #c8a45c !important;
  color: #0f1729 !important;
}

/* CTA section (last): first button filled gold, second button outlined */
.elementor-section:last-of-type .elementor-widget-button:nth-child(7) .elementor-button {
  background-color: #c8a45c !important;
  color: #0f1729 !important;
}

.elementor-section:last-of-type .elementor-widget-button:nth-child(8) .elementor-button {
  background-color: transparent !important;
  border: 1.5px solid #c8a45c !important;
  color: #c8a45c !important;
}

.elementor-section:last-of-type .elementor-widget-button:nth-child(8) .elementor-button:hover {
  background-color: #c8a45c !important;
  color: #0f1729 !important;
}

/* --- Smooth fade for all sections on load --- */
.elementor-section {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* --- Gold accent for borders and highlights --- */
::selection {
  background: rgba(200, 164, 92, 0.3);
  color: #0f1729;
}
