/* ========================================
   Maine Property Solutions — Serviced Accommodation
   Blue/White Glowy Theme with Animated Gradients
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Poppins:wght@500;600;700;800&display=swap');

:root {
  /* Core Blues */
  --primary: #0f2240;
  --primary-light: #162d50;
  --secondary: #1a3a5c;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #2563eb;
  --accent-glow: rgba(59, 130, 246, 0.4);
  --accent-glow-strong: rgba(59, 130, 246, 0.7);
  --accent-glow-subtle: rgba(59, 130, 246, 0.12);

  /* Whites */
  --white: #ffffff;
  --off-white: #f0f4ff;
  --gray-50: #f8fafc;
  --gray-100: #e2e8f0;
  --gray-200: #cbd5e1;
  --gray-300: #94a3b8;
  --gray-400: #64748b;
  --gray-500: #475569;

  /* Text */
  --text-primary: #e8f0fe;
  --text-secondary: #a0b4cc;
  --text-muted: #6b82a0;
  --text-dark: #1e293b;

  /* Surfaces */
  --surface: rgba(15, 34, 64, 0.6);
  --surface-hover: rgba(20, 45, 80, 0.8);
  --surface-light: rgba(255, 255, 255, 0.05);
  --border-glow: rgba(59, 130, 246, 0.25);
  --border-glow-strong: rgba(59, 130, 246, 0.5);
  --gradient-card: linear-gradient(145deg, rgba(15, 34, 64, 0.8), rgba(15, 34, 64, 0.95));

  /* Shadows */
  --shadow-glow: 0 0 20px var(--accent-glow), 0 0 60px rgba(59, 130, 246, 0.1);
  --shadow-glow-sm: 0 0 10px var(--accent-glow), 0 0 30px rgba(59, 130, 246, 0.05);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 1px var(--border-glow);

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Poppins', 'Inter', sans-serif;

  /* Layout */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --max-width: 1280px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-primary);
  background: var(--primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient animated gradient background — only on dark sections */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(96, 165, 250, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
  animation: ambientShift 15s ease-in-out infinite alternate;
}
.section-dark { position: relative; overflow: hidden; }
.section-dark > * { position: relative; z-index: 1; }

@keyframes ambientShift {
  0% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.8; transform: scale(1.02); }
}

a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--white); }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

/* ---- ANIMATED GRADIENT BACKGROUNDS ---- */
.gradient-bg {
  position: relative;
  overflow: hidden;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 25%,
    rgba(96, 165, 250, 0.05) 50%,
    transparent 75%,
    rgba(59, 130, 246, 0.08) 100%
  );
  animation: gradientRotate 20s linear infinite;
  pointer-events: none;
}

@keyframes gradientRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.gradient-mesh {
  position: relative;
  overflow: hidden;
}

.gradient-mesh::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(96, 165, 250, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(37, 99, 235, 0.06) 0%, transparent 40%);
  animation: meshPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

/* ---- PARTICLE CANVAS ---- */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15, 34, 64, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  height: 80px;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 34, 64, 0.97);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  height: 70px;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
}

.nav-logo .logo-text span {
  color: var(--accent-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  position: relative;
  padding: 0.25rem 0;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  transition: width 0.3s ease;
}
.nav-dropdown > a::after { display: none !important; }

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
  width: 100%;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-dropdown > a::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  order: 2;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(15, 34, 64, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1rem;
  color: var(--text-secondary);
  border-radius: 8px;
  font-size: 0.9rem;
}

.dropdown-menu a:hover {
  background: var(--accent-glow-subtle);
  color: var(--white);
}

.dropdown-menu a::after { display: none; }

.nav-cta {
  background: var(--accent);
  color: var(--primary) !important;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 15px var(--accent-glow);
  transition: var(--transition);
  letter-spacing: 0.02em;
}

.nav-cta:hover {
  background: var(--accent-light);
  box-shadow: 0 0 25px var(--accent-glow-strong);
  transform: translateY(-2px);
  color: var(--primary) !important;
}

.nav-cta::after { display: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---- HERO SECTION ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.12;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 34, 64, 0.95) 0%, rgba(15, 34, 64, 0.7) 50%, rgba(15, 34, 64, 0.9) 100%);
  z-index: 1;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-orb-1 {
  width: 400px; height: 400px;
  background: rgba(59, 130, 246, 0.15);
  top: 10%; left: -5%;
  animation: orbFloat1 12s ease-in-out infinite;
}

.hero-orb-2 {
  width: 300px; height: 300px;
  background: rgba(96, 165, 250, 0.1);
  bottom: 10%; right: -5%;
  animation: orbFloat2 15s ease-in-out infinite;
}

.hero-orb-3 {
  width: 200px; height: 200px;
  background: rgba(59, 130, 246, 0.08);
  top: 50%; left: 50%;
  animation: orbFloat3 10s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-30px, 30px); }
  66% { transform: translate(20px, -20px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -20px) scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-glow);
  color: var(--accent-light);
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease forwards;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.6s ease 0.1s forwards;
  opacity: 0;
}

.hero h1 .glow-text {
  color: var(--accent-light);
  text-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(59, 130, 246, 0.2);
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.2s forwards;
  opacity: 0;
}

.hero-pills {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  animation: fadeInUp 0.6s ease 0.15s forwards;
  opacity: 0;
}

.hero-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-pill svg {
  width: 18px; height: 18px;
  color: var(--accent);
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

/* Hero Stats Row */
.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}

.hero-stat .number span {
  color: var(--accent-light);
}

.hero-stat .label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Hero Calculator */
.hero-right {
  position: relative;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.4;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 0 30px var(--accent-glow-strong);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1px solid var(--border-glow);
  box-shadow: var(--shadow-glow-sm);
}

.btn-outline:hover {
  background: var(--accent-glow-subtle);
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--primary);
}

.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
  color: var(--primary);
}

.btn svg { width: 18px; height: 18px; }

/* ---- SECTION STYLES ---- */
section {
  position: relative;
  z-index: 2;
}

.section-dark {
  background: var(--primary);
  padding: 6rem 0;
  position: relative;
  z-index: 2;
}

.section-darker {
  background: #ffffff !important;
  padding: 6rem 0;
  color: var(--text-dark);
  position: relative;
  z-index: 2;
  isolation: isolate;
}
.section-darker.gradient-bg::before {
  display: none;
}

/* ---- White section background effects ---- */

/* Effect 1: Floating gradient blobs */
.white-fx-blobs {
  position: relative;
  overflow: hidden;
}
.white-fx-blobs::before,
.white-fx-blobs::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}
.white-fx-blobs::before {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%);
  top: -100px; left: -100px;
  animation: blobFloat1 16s ease-in-out infinite;
}
.white-fx-blobs::after {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(96,165,250,0.15), transparent 70%);
  bottom: -80px; right: -80px;
  animation: blobFloat2 20s ease-in-out infinite;
}
.white-fx-blobs > * { position: relative; z-index: 1; }

@keyframes blobFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}
@keyframes blobFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -30px) scale(1.05); }
  66% { transform: translate(40px, -50px) scale(0.9); }
}

/* Effect 2: Subtle dot grid pattern */
.white-fx-dots {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle, rgba(59,130,246,0.08) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Effect 3: Moving gradient sweep */
.white-fx-sweep {
  position: relative;
  overflow: hidden;
}
.white-fx-sweep::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 200%; height: 100%;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(59,130,246,0.04) 45%,
    rgba(96,165,250,0.06) 50%,
    rgba(59,130,246,0.04) 55%,
    transparent 70%
  );
  animation: sweepMove 12s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}
.white-fx-sweep > * { position: relative; z-index: 1; }

@keyframes sweepMove {
  0%, 100% { transform: translateX(-15%); }
  50% { transform: translateX(15%); }
}

/* ---- White section overrides for section-darker ---- */
.section-darker .section-label { color: var(--accent-dark); }
.section-darker .section-label::before { background: var(--accent-dark); }
.section-darker .section-title { color: var(--text-dark); }
.section-darker .section-subtitle { color: var(--gray-400); }
.section-darker .glow-text { color: var(--accent); }

.section-darker .card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.section-darker .card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}
.section-darker .card h3 { color: var(--text-dark); }
.section-darker .card p { color: var(--gray-400); }
.section-darker .card-icon {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

.section-darker .mgmt-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.section-darker .mgmt-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}
.section-darker .mgmt-card h4 { color: var(--text-dark); }
.section-darker .mgmt-card p { color: var(--gray-400); }
.section-darker .mgmt-card .mgmt-icon {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

.section-darker .property-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.section-darker .property-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}
.section-darker .property-card h3 { color: var(--text-dark); }
.section-darker .property-card p { color: var(--gray-400); }
.section-darker .property-card .prop-icon {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

.section-darker .location-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.section-darker .location-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}
.section-darker .location-card h3 { color: var(--text-dark); }
.section-darker .location-card p { color: var(--gray-400); }
.section-darker .location-card .loc-icon {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.15);
}

.section-darker .testimonial-inner {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.section-darker .testimonial-inner:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}
.section-darker .testimonial-inner blockquote { color: var(--gray-400); }
.section-darker .testimonial-author strong { color: var(--text-dark); }
.section-darker .testimonial-author span { color: var(--gray-400); }

.section-darker .faq-item {
  background: var(--white);
  border: 1px solid var(--gray-100);
}
.section-darker .faq-item:hover { border-color: rgba(59, 130, 246, 0.3); }
.section-darker .faq-question { color: var(--text-dark); }
.section-darker .faq-answer p { color: var(--gray-400); }

.section-darker .calculator {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.section-darker .calculator h3 { color: var(--text-dark); }

.section-darker h2, .section-darker h3, .section-darker h4 { color: var(--text-dark); }
.section-darker p, .section-darker li { color: var(--gray-400); }
.section-darker a:not(.btn):not(.nav-cta) { color: var(--accent); }
.section-darker .stat-number { color: var(--text-dark); }
.section-darker .stat-label { color: var(--gray-400); }
.section-darker .glow-line { background: linear-gradient(90deg, transparent, var(--accent), transparent); }

/* Animated gradient border adjustments for white sections */
.section-darker .card::after,
.section-darker .mgmt-card::after,
.section-darker .property-card::after,
.section-darker .testimonial-inner::after,
.section-darker .faq-item::after,
.section-darker .location-card::after,
.section-darker .calculator::after {
  opacity: 0.4;
}
.section-darker .card:hover::after,
.section-darker .mgmt-card:hover::after,
.section-darker .property-card:hover::after,
.section-darker .testimonial-inner:hover::after,
.section-darker .faq-item:hover::after,
.section-darker .location-card:hover::after,
.section-darker .calculator:hover::after {
  opacity: 0.8;
}

.section-gradient {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.glow-line {
  width: 80px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow), 0 0 30px rgba(59, 130, 246, 0.2);
  margin: 1.5rem 0;
}

.glow-line-center {
  margin-left: auto;
  margin-right: auto;
}

.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ---- CARDS ---- */
.card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 56px; height: 56px;
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: var(--transition);
}

.card:hover .card-icon {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.card-icon svg {
  width: 26px; height: 26px;
  color: var(--accent-light);
  transition: var(--transition);
}

.card:hover .card-icon svg {
  color: var(--white);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

/* ---- INCOME CALCULATOR ---- */
.calculator {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.calculator::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
  box-shadow: 0 0 15px var(--accent-glow);
}

.calculator h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.calculator .calc-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.calc-group {
  margin-bottom: 1.5rem;
}

.calc-group label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.calc-group label .calc-value {
  color: var(--accent-light);
  font-weight: 700;
  font-size: 1.1rem;
}

.calc-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--secondary);
  outline: none;
  cursor: pointer;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  cursor: pointer;
  transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 20px var(--accent-glow-strong);
  transform: scale(1.15);
}

.calc-result {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}

.calc-result .result-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.calc-result .result-amount {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-light);
  text-shadow: 0 0 20px var(--accent-glow);
  line-height: 1.2;
  transition: transform 0.3s ease, text-shadow 0.3s ease;
}

.calc-result .result-amount.pulse {
  animation: calcPulse 0.5s ease;
}

.calc-result .result-year {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  transition: transform 0.3s ease;
}

.calc-result .result-year.pulse {
  animation: calcPulse 0.5s ease 0.05s;
}

/* Calculator slide-in animation */
@keyframes calcSlideIn {
  0% { opacity: 0; transform: translateY(30px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes calcPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.08); text-shadow: 0 0 30px var(--accent-glow-strong); }
  100% { transform: scale(1); }
}

@keyframes calcGlowBorder {
  0% { border-color: var(--border-glow); box-shadow: none; }
  50% { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-glow), inset 0 0 15px rgba(59,130,246,0.08); }
  100% { border-color: var(--border-glow); box-shadow: none; }
}

.calc-result.glow {
  animation: calcGlowBorder 0.8s ease;
}

.calculator {
  animation: calcSlideIn 0.8s ease 0.3s both;
}

/* ---- STATS BAR ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.stat-number span {
  color: var(--accent-light);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- MANAGEMENT GRID ---- */
.mgmt-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mgmt-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.mgmt-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: var(--transition);
}

.mgmt-card:hover { border-color: var(--accent); box-shadow: var(--shadow-glow); transform: translateY(-4px); }
.mgmt-card:hover::before { opacity: 1; }

.mgmt-card .mgmt-icon {
  width: 48px; height: 48px;
  margin: 0 auto 1rem;
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.mgmt-card:hover .mgmt-icon {
  background: var(--accent);
  border-color: var(--accent);
}

.mgmt-card .mgmt-icon svg {
  width: 22px; height: 22px;
  color: var(--accent-light);
  transition: var(--transition);
}

.mgmt-card:hover .mgmt-icon svg { color: var(--white); }

.mgmt-card h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.mgmt-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- PROPERTY TYPES ---- */
.property-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.property-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  text-align: center;
}

.property-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}

.property-card .prop-icon {
  width: 60px; height: 60px;
  margin: 0 auto 1.25rem;
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.property-card .prop-icon svg {
  width: 28px; height: 28px;
  color: var(--accent-light);
}

.property-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.property-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- TIMELINE / HOW IT WORKS ---- */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(59, 130, 246, 0.1));
  box-shadow: 0 0 8px var(--accent-glow);
}

.timeline-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.timeline-marker {
  width: 60px; height: 60px;
  min-width: 60px;
  background: var(--gradient-card);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--accent-light);
  box-shadow: 0 0 15px var(--accent-glow);
  z-index: 1;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.timeline-content .timeline-day {
  font-size: 0.85rem;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- TESTIMONIALS ---- */
.testimonials-section { padding: 6rem 0; position: relative; z-index: 2; }

.carousel-wrapper {
  overflow: hidden;
  margin: 0 -0.75rem;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
  flex: 0 0 33.333%;
  padding: 0 0.75rem;
}

.testimonial-inner {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}

.testimonial-inner:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-sm);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.testimonial-inner blockquote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-light);
}

.testimonial-name {
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
}

.testimonial-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.carousel-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  background: var(--gradient-card);
  color: var(--accent-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1.1rem;
}

.carousel-btn:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-sm);
  color: var(--white);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ---- FAQ ACCORDION ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  background: var(--gradient-card);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--white);
  font-family: var(--font-primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  width: 24px; height: 24px;
  color: var(--accent-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(37, 99, 235, 0.08));
  animation: ctaPulse 6s ease-in-out infinite alternate;
}

@keyframes ctaPulse {
  0% { opacity: 0.5; }
  100% { opacity: 1; }
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.cta-banner p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner .btn { position: relative; }

/* ---- LOCATIONS GRID ---- */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
}

.location-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.location-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.location-card .loc-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-card .loc-icon svg {
  width: 22px; height: 22px;
  color: var(--accent-light);
}

.location-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.location-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(15, 34, 64, 0.8);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 0.85rem 1.15rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), var(--shadow-glow-sm);
  outline: none;
}

.form-textarea { resize: vertical; min-height: 120px; }

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

.contact-info-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: var(--accent-glow-subtle);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon svg {
  width: 20px; height: 20px;
  color: var(--accent-light);
}

.contact-info-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.contact-info-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---- FOOTER ---- */
.footer {
  background: rgba(10, 20, 42, 0.95);
  border-top: 1px solid var(--border-glow);
  padding: 4rem 0 2rem;
  position: relative;
  z-index: 2;
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.footer-social a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow-sm);
  background: var(--accent-glow-subtle);
}

.footer-social a svg {
  width: 18px; height: 18px;
  color: var(--text-secondary);
}

.footer h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---- SCROLL ANIMATIONS ---- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---- KEYFRAMES ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---- SCROLL TO TOP ---- */
.scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-glow);
  background: var(--gradient-card);
  color: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

/* ---- PRELOADER ---- */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 48px; height: 48px;
  border: 3px solid var(--secondary);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---- LOCATION HERO ---- */
.location-hero {
  padding: 10rem 0 4rem;
  position: relative;
  overflow: hidden;
  z-index: 2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.location-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 34, 64, 0.7) 0%, rgba(15, 34, 64, 0.85) 100%);
  z-index: 1;
}

.location-hero > * {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--accent-light); }
.breadcrumb span { color: var(--text-muted); }

/* ---- WHITE SECTIONS (for location pages variety) ---- */
.section-white {
  background: var(--white);
  padding: 6rem 0;
  color: var(--text-dark);
}

.section-white .section-label { color: var(--accent-dark); }
.section-white .section-label::before { background: var(--accent-dark); }
.section-white .section-title { color: var(--text-dark); }
.section-white .section-subtitle { color: var(--gray-400); }

.section-white .card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.section-white .card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.12);
}

.section-white .card h3 { color: var(--text-dark); }
.section-white .card p { color: var(--gray-400); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { max-width: 100%; }
  .mgmt-grid { grid-template-columns: repeat(2, 1fr); }
  .property-types { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #162d50;
    border-top: 1px solid rgba(59,130,246,0.1);
    border-bottom: 1px solid rgba(59,130,246,0.1);
    padding: 1rem 2rem 1.5rem;
    gap: 0;
    z-index: 999;
    overflow-y: auto;
    max-height: calc(100vh - 70px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
  }

  .nav-links > li {
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-links > li > a {
    font-size: 1.05rem;
    font-weight: 500;
    display: block;
    padding: 0.9rem 0;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .nav-links > li.nav-dropdown > a {
    font-size: 1.05rem;
    font-weight: 500;
    display: inline-flex !important;
    align-items: center;
    gap: 20px;
    padding: 0.9rem 0;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    width: 100%;
  }

  .nav-links > li.nav-dropdown > a::before {
    width: 7px;
    height: 7px;
    margin-left: 4px;
  }

  .nav-links > li > a::after {
    display: none;
  }

  .nav-links > li > a.nav-cta {
    display: block !important;
    margin-top: 2.5rem !important;
    text-align: center;
    padding: 1.15rem 2rem !important;
    border-bottom: none;
    text-transform: none;
    font-size: 1rem;
  }

  /* Mobile dropdown overrides */
  .nav-links .nav-dropdown {
    position: static;
  }

  .nav-links .dropdown-menu {
    position: static;
    transform: none;
    min-width: unset;
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0 0 0.5rem 1rem;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    display: none;
    transition: none;
  }

  .nav-links .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .nav-links .dropdown-menu a {
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.55rem 0;
    color: rgba(255,255,255,0.5);
    border-radius: 0;
    border-bottom: none;
    text-transform: none;
  }

  .nav-links .dropdown-menu a:hover {
    background: transparent;
    color: var(--accent-light);
  }

  .nav-links .dropdown-menu a::after {
    display: none;
  }

  /* Rotate arrow when dropdown is open */
  .nav-links .nav-dropdown.open > a::before {
    transform: rotate(-135deg);
    margin-top: 4px;
  }

  .hero { min-height: auto; padding: 8rem 0 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
  .hero-pills { flex-wrap: wrap; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .mgmt-grid { grid-template-columns: 1fr; }
  .property-types { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr; }

  .testimonial-card { flex: 0 0 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .timeline::before { left: 20px; }
  .timeline-marker { width: 40px; height: 40px; min-width: 40px; font-size: 0.9rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  section { padding: 4rem 0; }
  .section-dark, .section-darker, .section-gradient { padding: 4rem 0; }
  .hero h1 { font-size: 1.8rem; }
  .calculator { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ========================================
   Image Sections
   ======================================== */

.img-text-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.img-text-row.reverse { direction: rtl; }
.img-text-row.reverse > * { direction: ltr; }

.img-text-row .section-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.img-text-row .section-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}
.img-text-row .section-img:hover img {
  animation-play-state: paused;
  transform: scale(1.08);
}
.img-text-row .section-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-glow);
  pointer-events: none;
}

.hero-image-float {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--accent-glow-subtle);
}
.hero-image-float img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
}

@media (max-width: 768px) {
  .img-text-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .img-text-row.reverse { direction: ltr; }
}

/* ---- KEN BURNS EFFECT ---- */
@keyframes kenBurns1 {
  0%   { transform: scale(1)   translate(0, 0); }
  50%  { transform: scale(1.12) translate(-1.5%, -1%); }
  100% { transform: scale(1)   translate(0, 0); }
}
@keyframes kenBurns2 {
  0%   { transform: scale(1.05) translate(1%, -0.5%); }
  50%  { transform: scale(1.15) translate(-1%, 1%); }
  100% { transform: scale(1.05) translate(1%, -0.5%); }
}
@keyframes kenBurns3 {
  0%   { transform: scale(1.08) translate(-0.5%, 1%); }
  50%  { transform: scale(1)   translate(1%, -1%); }
  100% { transform: scale(1.08) translate(-0.5%, 1%); }
}

/* Section images (img-text-row) */
.img-text-row .section-img img {
  animation: kenBurns1 18s ease-in-out infinite;
}

/* Hero float image (management page) */
.hero-image-float img {
  animation: kenBurns2 20s ease-in-out infinite;
}

/* Location hero background images */
.location-hero {
  background-size: 120% !important;
  animation: kenBurnsBackground 25s ease-in-out infinite;
}
@keyframes kenBurnsBackground {
  0%   { background-position: 50% 50%; background-size: 120%; }
  50%  { background-position: 45% 45%; background-size: 130%; }
  100% { background-position: 50% 50%; background-size: 120%; }
}

/* Blog card images on resources page (NOT individual blog post pages) */
.blog-card-img {
  animation: kenBurns3 16s ease-in-out infinite;
}

/* Stagger animations for variety */
.img-text-row:nth-child(even) .section-img img {
  animation-name: kenBurns2;
  animation-duration: 22s;
}
.blog-card:nth-child(2n) .blog-card-img { animation-name: kenBurns1; animation-duration: 20s; }
.blog-card:nth-child(3n) .blog-card-img { animation-name: kenBurns2; animation-duration: 22s; }

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .img-text-row .section-img img,
  .hero-image-float img,
  .location-hero,
  .blog-card-img {
    animation: none !important;
  }
}

/* ========================================
   WhatsApp Floating Widget
   ======================================== */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6), 0 4px 12px rgba(0,0,0,0.3);
}
.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

/* WhatsApp tooltip */
.whatsapp-float::before {
  content: 'Chat with us';
  position: absolute;
  right: 72px;
  background: #ffffff;
  color: #333;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.whatsapp-float:hover::before {
  opacity: 1;
}

/* Pulse animation for WhatsApp */
.whatsapp-float::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: whatsappPulse 2s infinite;
  z-index: -1;
}
@keyframes whatsappPulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-float::after {
    width: 54px;
    height: 54px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-float::before {
    display: none;
  }
}

/* ---- ANIMATED GRADIENT BORDER FOR ALL CARDS ---- */
@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes gradientRotate {
  0%   { --gradient-angle: 0deg; }
  100% { --gradient-angle: 360deg; }
}

.card,
.mgmt-card,
.property-card,
.testimonial-inner,
.faq-item,
.blog-card,
.calculator,
.location-card,
.contact-info-card {
  position: relative;
  overflow: hidden;
}

/* Animated gradient border overlay */
.card::after,
.mgmt-card::after,
.property-card::after,
.testimonial-inner::after,
.faq-item::after,
.blog-card::after,
.calculator::after,
.location-card::after,
.contact-info-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--gradient-angle),
    transparent 0%,
    rgba(59, 130, 246, 0.05) 10%,
    transparent 20%,
    rgba(59, 130, 246, 0.08) 35%,
    transparent 50%,
    rgba(59, 130, 246, 0.05) 65%,
    transparent 80%,
    rgba(59, 130, 246, 0.08) 90%,
    transparent 100%
  );
  -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: gradientRotate 6s linear infinite;
  z-index: 1;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

/* Brighter on hover */
.card:hover::after,
.mgmt-card:hover::after,
.property-card:hover::after,
.testimonial-inner:hover::after,
.faq-item:hover::after,
.blog-card:hover::after,
.calculator:hover::after,
.location-card:hover::after,
.contact-info-card:hover::after {
  background: conic-gradient(
    from var(--gradient-angle),
    transparent 0%,
    #3b82f6 15%,
    #60a5fa 25%,
    transparent 40%,
    #2563eb 55%,
    #3b82f6 70%,
    transparent 85%,
    #60a5fa 95%,
    transparent 100%
  );
  opacity: 1;
}

