/*
Theme Name: Smooth Migration
Theme URI: https://smoothmigration.net/
Author: Smooth Migration Team
Description: Custom WordPress theme inspired by smoothmigration.net demo.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: smoothmigration
Tags: custom-theme, responsive, bootstrap
*/

/* Core Styles */
@import url('assets/css/header.css');
@import url('assets/css/hero.css');
@import url('assets/css/landing-page.css');
@import url('assets/css/buttons.css');
@import url('assets/css/cards.css');
@import url('assets/css/sections.css');
@import url('assets/css/guides.css');
@import url('assets/css/footer.css');
@import url('assets/css/responsive.css');

/* Enhanced Modern CSS Variables - Sophisticated Color Palette */
:root {
  /* Primary Colors - More sophisticated blues */
  --primary-color: #1e40af;
  --primary-dark: #1e3a8a;
  --primary-light: #3b82f6;
  --primary-lighter: #dbeafe;
  
  /* Secondary Colors - Complementary teal */
  --secondary-color: #0891b2;
  --secondary-dark: #0e7490;
  --secondary-light: #06b6d4;
  --secondary-lighter: #cffafe;
  
  /* Accent Colors - Modern orange/amber */
  --accent-color: #f59e0b;
  --accent-dark: #d97706;
  --accent-light: #fbbf24;
  --accent-lighter: #fef3c7;
  
  /* Success/Trust Colors */
  --success-color: #10b981;
  --success-dark: #059669;
  --success-light: #34d399;
  --success-lighter: #d1fae5;
  
  /* Text Colors - Better contrast */
  --text-dark: #111827;
  --text-medium: #374151;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  
  /* Background Colors - Subtle variations */
  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-lighter: #f3f4f6;
  --bg-section: #fefefe;
  
  /* Border Colors */
  --border-light: #e5e7eb;
  --border-medium: #d1d5db;
  --border-dark: #9ca3af;
  
  /* Shadows - More depth */
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  
  /* Border Radius */
  --border-radius: 0.5rem;
  --border-radius-sm: 0.25rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  
  /* Blur Effects for Glassmorphism */
  --blur-sm: 4px;
  --blur-md: 8px;
  --blur-lg: 12px;
  --blur-xl: 16px;
  --blur-2xl: 20px;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
  --gradient-hero: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--primary-dark) 100%);
  --gradient-overlay: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 100%);
}



/* Enhanced Modern Typography */
body {
  font-family: "Aileron", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  color: var(--text-dark);
  font-size: 16px;
  background: var(--bg-white);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
  font-family: "Playfair Display", Georgia, "Times New Roman", Times, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-dark);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Normalize heading/body scale across sections */
.section-title { line-height: 1.2; }
.section-subtitle { line-height: 1.6; }

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
}

.display-1 {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
}

.display-4 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.display-5 {
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.9;
  line-height: 1.6;
}

/* Enhanced Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

.py-5 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Section Backgrounds */
.bg-light {
  background: var(--bg-light) !important;
}

.bg-section {
  background: var(--bg-section) !important;
}

.bg-gradient-primary {
  background: var(--gradient-primary) !important;
  color: white;
}

/* Improve default contrast on gradient backgrounds */
.bg-gradient-primary, .bg-gradient-secondary {
  --text-on-gradient: #ffffff;
}
.bg-gradient-primary h1, .bg-gradient-primary h2, .bg-gradient-primary h3,
.bg-gradient-primary .lead, .bg-gradient-primary p,
.bg-gradient-secondary h1, .bg-gradient-secondary h2, .bg-gradient-secondary h3,
.bg-gradient-secondary .lead, .bg-gradient-secondary p {
  color: var(--text-on-gradient);
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Links on gradients: ensure AA contrast */
.bg-gradient-primary a.btn, .bg-gradient-secondary a.btn {
  border-color: rgba(255,255,255,0.85);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary) !important;
  color: white;
}

/* Text Colors */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

.text-accent {
  color: var(--accent-color) !important;
}

.text-muted {
  color: var(--text-light) !important;
}


/* Global Flag Menu styles (accessible, warm) */
.country-flags-menu {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.country-flags-menu .menu-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.country-flags-menu .menu-item > a:hover,
.country-flags-menu .menu-item > a:focus {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.country-flags-menu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hero overlay helpers */
.hero-landing .hero-overlay-dark {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.55) 100%);
  z-index: 1;
}
.hero-landing .hero-content { position: relative; z-index: 2; }

/* Realtor Form Page specific styles */
.realtor-locator-wrapper {
  max-width: 100%;
}

@media (min-width: 992px) {
  /* On desktops keep the form from stretching excessively */
  .realtor-locator-wrapper .forminator-ui,
  .realtor-locator-wrapper form {
    max-width: 100%;
  }
}


/* ---------------------------- */
/* Enhanced Form & Layout Rules */
/* ---------------------------- */

/* Realtor section background */
.realtor-locator-section {
  background: var(--bg-light);
}

/* Forminator stylish inputs */
.forminator-ui input,
.forminator-ui select,
.forminator-ui textarea {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-light);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.forminator-ui input:focus,
.forminator-ui select:focus,
.forminator-ui textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(23, 88, 115, 0.15);
  outline: none;
}
/* Submit button harmonised with theme */
.forminator-ui .forminator-button-submit {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: var(--border-radius);
  padding: 0.875rem 2.25rem;
  font-weight: 600;
  transition: background .2s ease;
}
.forminator-ui .forminator-button-submit:hover {
  background: var(--primary-dark);
}

/* Reduce giant Forminator gaps */
.forminator-ui .forminator-row {
  margin-bottom: 1rem;
}

/* Custom Cursor Highlights for Interactive Elements */
.btn,
.service-card-link,
.step-card,
.nav-link,
.footer-link,
.social-link,
button,
[role="button"],
input[type="submit"],
.interactive-card {
  position: relative;
  cursor: pointer;
}

/* Subtle cursor highlight - only on hover for tasteful effect */
.btn:hover,
.service-card-link:hover,
.step-card:hover,
.nav-link:hover,
.footer-link:hover,
.social-link:hover,
button:hover,
[role="button"]:hover,
input[type="submit"]:hover,
.interactive-card:hover {
  cursor: pointer;
}

/* Add subtle focus ring animations */
.btn:focus-visible,
.service-card:focus-within,
.step-card:focus,
.nav-link:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  outline-style: solid;
  animation: focus-pulse 2s infinite;
}

@keyframes focus-pulse {
  0%, 100% { outline-color: var(--primary-color); }
  50% { outline-color: var(--primary-light); }
}

/* Enhanced ripple effect for buttons */
.btn-ripple {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.btn-ripple:after {
  content: '';
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #fff 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform .5s, opacity 1s;
}

.btn-ripple:active:after {
  transform: scale(0, 0);
  opacity: .3;
  transition: 0s;
}

/* Disable custom cursor effects when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  .btn:focus-visible,
  .service-card:focus-within,
  .step-card:focus,
  .nav-link:focus-visible {
    animation: none;
  }
  
  .btn-ripple:after {
    transition: none;
    display: none;
  }
}

/* Scroll-Triggered Animation Styles */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Section-specific animations */
.animate-section {
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-section.animate-in {
  transform: translateY(0);
}

/* Floating animation for hero elements */
.animate-float {
  opacity: 0;
  transform: translateY(20px) rotate(0deg);
  transition: opacity 1s ease, transform 1s ease;
}

.animate-float.animate-in {
  opacity: 1;
  transform: translateY(0) rotate(5deg);
  animation: gentle-float 6s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% { transform: translateY(0) rotate(5deg); }
  50% { transform: translateY(-10px) rotate(-3deg); }
}

/* Staggered animations for card grids */
.service-card.animate-on-scroll {
  transition-delay: var(--delay, 0s);
}

.step-card.animate-on-scroll {
  transition-delay: var(--delay, 0s);
}

.feature-item.animate-on-scroll {
  transition-delay: var(--delay, 0s);
}

/* Disable all animations when reduced motion is preferred */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll,
  .animate-section,
  .animate-float {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  
  .animate-float.animate-in {
    animation: none !important;
  }
}

