/* ===========================
   LH Money - Gemini Style Design System
   =========================== */

/* Import Google Fonts - Adding 'Outfit' for a more modern/tech feel */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800&display=swap');

/* ===========================
   CSS Variables & Tokens
   =========================== */
:root {
  /* LH Money Brand Colors */
  --primary-color: #005BAA;
  --primary-dark: #004488;
  --primary-light: #E6F0FA;
  /* Very light blue for backgrounds */
  --secondary-color: #E30613;
  --secondary-dark: #C00510;
  --secondary-hover: #C00510;
  --accent-color: #E30613;
  --accent-light: #FF3344;

  /* Modern Gradients */
  --gradient-primary: linear-gradient(135deg, #005BAA 0%, #004488 100%);
  --gradient-secondary: linear-gradient(135deg, #005BAA 0%, #0073D9 100%);
  --gradient-accent: linear-gradient(135deg, #E30613 0%, #FF3344 100%);
  --gradient-hero: linear-gradient(135deg, #005BAA 0%, #E30613 50%, #005BAA 100%);
  --gradient-glass: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  /* Neutrals */
  --dark: #0F172A;
  --dark-secondary: #1A2332;
  --dark-tertiary: #2A3442;
  --gray: #64748B;
  --gray-light: #94A3B8;
  --light: #F8FAFC;
  --white: #FFFFFF;
  --text-main: #1E293B;
  --text-light: #64748B;
  --bg-body: #F8FAFC;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  --blur-amount: 12px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-glow: 0 0 30px rgba(0, 102, 255, 0.3);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);

  /* Z-index */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1040;
  --z-popover: 1050;
  --z-tooltip: 1060;
}

/* ===========================
   Reset & Base Styles
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  overflow-x: hidden;
  background-image: radial-gradient(circle at 10% 20%, rgba(0, 91, 170, 0.05) 0%, transparent 20%),
    radial-gradient(circle at 90% 80%, rgba(227, 6, 19, 0.05) 0%, transparent 20%);
}

/* ===========================
   Typography
   =========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--font-size-5xl);
}

h2 {
  font-size: var(--font-size-4xl);
}

h3 {
  font-size: var(--font-size-3xl);
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--gray);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* ===========================
   Layout Components
   =========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-4xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section-title h2 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-sm);
}

.section-title p {
  font-size: var(--font-size-lg);
  color: var(--gray);
}

/* ===========================
   Header & Navigation
   =========================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.98);
  /* Cleaner white, less gray */
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  padding: 0.5rem 0;
  /* Reduced height */
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  /* Reduced padding */
}

.logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 70px;
  /* Increased from 45px */
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav-link {
  font-weight: 600;
  /* Bolder for better visibility */
  color: var(--dark);
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* ===========================
   Hero Section - Redesigned
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(0, 20, 40, 0.85) 0%, rgba(0, 50, 100, 0.7) 100%), url('hero-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 100px;
  padding-bottom: 60px;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero-content {
  color: #FFFFFF !important;
  /* Forced white */
  z-index: 2;
  max-width: 100%;
  width: 100%;
  padding: 0 var(--spacing-sm);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: #FFFFFF !important;
  /* Forced white */
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  /* Stronger shadow */
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.hero p {
  font-size: 1.25rem;
  color: #FFFFFF !important;
  /* Forced white */
  opacity: 0.95;
  margin-bottom: 2rem;
  max-width: 500px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
}

.trust-badges {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.trust-badges span {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===========================
   Floating Calculator
   =========================== */
.hero-calculator {
  z-index: 10;
}

.calculator-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 450px;
  margin-left: auto;
}

.calc-tabs {
  display: flex;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.calc-tab {
  flex: 1;
  padding: 1.2rem;
  border: none;
  background: transparent;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
}

.calc-tab.active {
  background: var(--white);
  color: var(--primary-color);
  border-top: 3px solid var(--primary-color);
}

.calculator-form {
  padding: 2rem;
}

.currency-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group.half {
  flex: 1;
}

.exchange-icon-small {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.2rem;
}

.result-box {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.result-total {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid #E2E8F0;
  padding-top: 0.5rem;
}

.total-label {
  font-weight: 600;
  color: var(--dark);
}

.total-amount {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
}

.total-currency {
  font-weight: 700;
  color: var(--text-light);
}

.full-width {
  width: 100%;
}

/* Responsive Hero */
@media (max-width: 968px) {
  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero p {
    margin: 0 auto 2rem;
  }

  .trust-badges {
    justify-content: center;
  }

  .calculator-card {
    margin: 0 auto;
  }
}

/* ===========================
   Buttons - Modern & Tactile
   =========================== */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border: none;
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--white);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
  border: none;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.btn-group {
  display: flex;
  gap: var(--spacing-md);
  animation: fadeInUp 1s ease 0.4s backwards;
}

/* ===========================
   Cards - Glassmorphism
   =========================== */
.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s var(--ease-out-expo);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 91, 170, 0.08);
}

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

.card-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  background: var(--primary-light);
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.card:hover .card-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: rotate(-5deg) scale(1.1);
}

.card h3 {
  margin-bottom: var(--spacing-md);
  color: var(--dark);
}

.card p {
  color: var(--gray);
}

/* ===========================
   Grid System
   =========================== */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* ===========================
   Services Section
   =========================== */
.services {
  background: var(--white);
}

.service-card {
  text-align: center;
}

/* ===========================
   Calculator - Tech Style
   =========================== */
.calculator {
  background: var(--white);
  color: var(--white);
  position: relative;
}

/* Add a techy background pattern */
.calculator::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(#005BAA 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.03;
  pointer-events: none;
}

.calculator-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(0, 91, 170, 0.15);
  border-radius: var(--radius-2xl);
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.form-label {
  font-weight: 600;
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.form-input,
.form-select {
  padding: 1.2rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-lg);
  font-family: var(--font-family);
  transition: all var(--transition-fast);
  background: var(--bg-body);
  font-weight: 600;
  color: var(--dark);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(0, 91, 170, 0.1);
  background: var(--white);
}

.exchange-icon {
  text-align: center;
  font-size: var(--font-size-2xl);
  color: var(--primary-color);
}

.result-box {
  background: var(--dark);
  color: var(--white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.result-box::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.result-amount {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  margin-bottom: var(--spacing-sm);
}

.result-label {
  font-size: var(--font-size-sm);
  opacity: 0.9;
}

/* ===========================
   How It Works Section
   =========================== */
.how-it-works .steps-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3rem;
}

.step-item {
  flex: 1;
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 91, 170, 0.2);
}

.step-arrow {
  font-size: 2rem;
  color: var(--primary-light);
  margin-top: 1rem;
}

/* ===========================
   Contact Section - Redesigned
   =========================== */
.contact {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(10px);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details h4 {
  color: var(--white);
  margin-bottom: 0.2rem;
  font-size: 1.1rem;
}

.contact-details p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  font-size: 0.95rem;
}

.contact-details a {
  color: var(--white);
  text-decoration: underline;
}

/* Map Placeholder */
.map-placeholder {
  height: 400px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-2xl);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-placeholder::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.3;
}

.map-content {
  text-align: center;
  z-index: 2;
  background: rgba(15, 23, 42, 0.8);
  padding: 2rem;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-content span {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.map-content h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

/* ===========================
   Footer - Redesigned
   =========================== */
.footer {
  background: #020617;
  /* Darker than contact section */
  color: var(--gray-light);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--gray-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ===========================
   Utilities
   =========================== */
.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

/* ===========================
   Responsive Design
   ===========================*/
/* ===========================
   Responsive Design & Mobile Optimization
   ===========================*/
@media (max-width: 768px) {
  :root {
    --font-size-6xl: 2.5rem;
    --font-size-5xl: 2rem;
    --font-size-4xl: 1.75rem;
  }

  /* Improve Scroll Performance on Mobile */
  .header,
  .calculator-card,
  .contact-item,
  .map-content,
  .card-glass,
  .trust-badges span {
    backdrop-filter: none !important;
    background: rgba(255, 255, 255, 0.95);
    /* Solid fallback */
  }

  .contact-item,
  .map-content {
    background: rgba(20, 30, 40, 0.95);
    /* Dark fallback for dark sections */
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    /* Adjusted for smaller header */
    left: -100%;
    width: 100%;
    height: calc(100vh - 60px);
    flex-direction: column;
    background: var(--white);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transition: left var(--transition-base);
    overflow-y: auto;
    /* Allow menu scrolling */
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .logo-img {
    height: 40px;
  }

  .hero {
    padding-top: 100px;
    padding-bottom: 3rem;
    text-align: center;
    min-height: auto;
    /* Allow content to dictate height */
    overflow-x: hidden;
    /* Prevent hero overflow */
  }

  .hero-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
    /* Even smaller for safety */
    margin-bottom: 1rem;
    padding: 0 1rem;
    /* Prevent text touching edges */
  }

  .hero p {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .trust-badges {
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
  }

  .calculator-card {
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    /* Smaller radius for mobile */
  }

  .btn-group {
    flex-direction: column;
    padding: 0 2rem;
    /* Add padding to buttons */
  }

  .section {
    padding: 3rem 0;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 1.5rem;
  }

  /* How It Works Fixes */
  .how-it-works .steps-grid {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  /* Contact Fixes */
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .map-placeholder {
    height: 250px;
  }

  /* Footer Fixes */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
    /* Ensure padding on very small screens */
  }

  .hero h1 {
    font-size: 1.75rem;
    /* Extra safety for narrow screens */
  }
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}