/*
=====================================================
RENTAL PROPERTY TOOLS - GLOBAL STYLESHEET
=====================================================
Version: 1.0
Safe to use with existing calculator pages
Uses non-conflicting class names
=====================================================
*/

/* ===================================
   CSS VARIABLES - DESIGN SYSTEM
   =================================== */
:root {
  /* Primary Colors - Brand Navy */
  --primary-blue: #1a4d7a;
  --primary-blue-dark: #0f3554;
  --primary-blue-light: #e8f3fc;
  --secondary-blue: #2670b8;
  --accent-blue: #3b8fd9;

  /* Grayscale */
  --gray-900: #1a1f2e;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  /* Semantic Colors */
  --success: #2d7a4f;
  --warning: #e89547;
  --error: #c0392b;
  --info: #3b7ea1;

  /* Background */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  --font-size-base: 16px;

  /* 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;

  /* Core Colors */
  --white: #ffffff;
  --light-blue: #e8f3fc;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* 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), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Header Height */
  --header-height: 70px;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: var(--font-size-base);
}

body {
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: var(--header-height);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ===================================
   TYPOGRAPHY (scoped to main)
   =================================== */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-900);
}

main h1 {
  font-size: 2.25rem;
  /* 36px */
  font-weight: 700;
  margin-bottom: 1rem;
}

main h2 {
  font-size: 1.875rem;
  /* 30px */
  margin-bottom: 0.75rem;
}

main h3 {
  font-size: 1.5rem;
  /* 24px */
  margin-bottom: 0.5rem;
}

main h4 {
  font-size: 1.25rem;
  /* 20px */
  margin-bottom: 0.5rem;
}

main h5 {
  font-size: 1.125rem;
  /* 18px */
}

main h6 {
  font-size: 1rem;
  /* 16px */
}

main p {
  margin-bottom: 1rem;
}

small {
  font-size: 0.875rem;
  /* 14px */
}

strong {
  font-weight: 600;
}

/* ===================================
   HEADER STYLES
   =================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo a {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.logo a:hover {
  color: var(--primary-blue);
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-menu li {
  position: relative;
}

.nav-menu a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  display: inline-block;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary-blue);
}

.nav-menu a.active {
  color: var(--primary-blue);
  font-weight: 600;
}

/* Dropdown Menu */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  min-width: 220px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
  margin-top: 0.5rem;
}

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

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1.25rem;
  color: var(--gray-700);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.dropdown-menu a:hover {
  background-color: var(--gray-50);
  color: var(--primary-blue);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bg-primary);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  transform: translateX(0);
}

.mobile-nav {
  padding: 2rem 1.5rem;
}

.mobile-nav-menu {
  list-style: none;
}

.mobile-nav-menu>li {
  margin-bottom: 0.5rem;
}

.mobile-nav-menu>li>a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.125rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.mobile-nav-menu>li>a:hover,
.mobile-nav-menu>li>a.active {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
}

.mobile-dropdown-label {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--gray-700);
  font-weight: 500;
  font-size: 1.125rem;
  cursor: pointer;
  user-select: none;
}

.mobile-submenu {
  list-style: none;
  padding-left: 1rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-submenu.active {
  max-height: 500px;
}

.mobile-submenu li {
  margin: 0;
}

.mobile-submenu a {
  display: block;
  padding: 0.625rem 1rem;
  color: var(--gray-600);
  text-decoration: none;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.mobile-submenu a:hover {
  background-color: var(--gray-100);
  color: var(--primary-blue);
}

/* Desktop Navigation - Show at larger screens */
@media (min-width: 1025px) {
  .nav-menu {
    display: flex;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

/* ===================================
   PAGE HEADER STYLES
   =================================== */
.page-header {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--accent-blue) 100%);
  color: white;
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(232, 149, 71, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(59, 126, 161, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
  text-decoration: underline;
}

.breadcrumb span {
  margin: 0 0.5rem;
  opacity: 0.6;
}

.page-title {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: var(--font-family);
}

.page-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.95);
}

/* ===================================
   FOOTER STYLES
   =================================== */
.site-footer {
  background-color: var(--gray-900);
  color: var(--gray-300);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.footer-column h3 {
  color: var(--bg-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.footer-column h4 {
  color: var(--bg-primary);
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.footer-column p {
  line-height: 1.6;
  margin-bottom: 0;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.625rem;
}

.footer-column ul li a {
  color: var(--gray-300);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--primary-blue-light);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--gray-400);
}

@media (min-width: 641px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

/* ===================================
   LAYOUT
   =================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-wrapper {
  min-height: calc(100vh - var(--header-height));
  padding: 2rem 0;
}

section {
  margin-bottom: 3rem;
}

/* ===================================
   BUTTONS
   =================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1.5;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--primary-blue-dark);
  color: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--gray-200);
  color: var(--gray-800);
}

.btn-secondary:hover {
  background-color: var(--gray-300);
  color: var(--gray-800);
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: white;
  text-decoration: none;
}

/* ===================================
   FORM ELEMENTS
   =================================== */
.input,
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--gray-700);
  background-color: var(--bg-primary);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.input:focus,
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group {
  margin-bottom: 1rem;
}

.input-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

/* ===================================
   CARDS
   =================================== */
.card {
  background-color: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

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

/* ===================================
   RELATED CALCULATORS SECTION
   =================================== */
.related-calculators {
  background-color: var(--bg-primary);
  padding: 3rem 0;
  margin-top: 4rem;
}

.related-calculators h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.related-calculators>.container>p {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.calculator-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.calculator-card:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.calculator-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--gray-900);
}

.calculator-card p {
  color: var(--gray-600);
  flex-grow: 1;
  margin-bottom: 1rem;
}

.calculator-card .btn {
  align-self: flex-start;
}

@media (min-width: 641px) {
  .calculator-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .calculator-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===================================
   LINKS (scoped to main)
   =================================== */
main a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.3s ease;
}

main a:hover {
  color: var(--primary-blue-dark);
  text-decoration: underline;
}

/* ===================================
   TABLES
   =================================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background-color: var(--bg-primary);
}

thead {
  background-color: var(--gray-100);
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

th {
  font-weight: 600;
  color: var(--gray-900);
}

tbody tr:hover {
  background-color: var(--gray-50);
}

/* ===================================
   LISTS (scoped to main)
   =================================== */
main ul,
main ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

main li {
  margin-bottom: 0.5rem;
}

/* ===================================
   UTILITY CLASSES
   =================================== */

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Display */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

/* Flexbox Utilities */
.flex-row {
  flex-direction: row;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

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

.justify-between {
  justify-content: space-between;
}

.justify-around {
  justify-content: space-around;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 1rem;
}

/* Utility Classes */
.negative-value {
  color: var(--error) !important;
}

.mt-5 {
  margin-top: 2rem;
}

.mt-6 {
  margin-top: 3rem;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mb-5 {
  margin-bottom: 2rem;
}

.mb-6 {
  margin-bottom: 3rem;
}

.ml-0 {
  margin-left: 0;
}

.ml-1 {
  margin-left: 0.25rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.ml-3 {
  margin-left: 1rem;
}

.mr-0 {
  margin-right: 0;
}

.mr-1 {
  margin-right: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.mr-3 {
  margin-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Padding */
.p-0 {
  padding: 0;
}

.p-1 {
  padding: 0.25rem;
}

.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 1rem;
}

.p-4 {
  padding: 1.5rem;
}

.p-5 {
  padding: 2rem;
}

.pt-1 {
  padding-top: 0.25rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pt-3 {
  padding-top: 1rem;
}

.pt-4 {
  padding-top: 1.5rem;
}

.pt-5 {
  padding-top: 2rem;
}

.pb-1 {
  padding-bottom: 0.25rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-3 {
  padding-bottom: 1rem;
}

.pb-4 {
  padding-bottom: 1.5rem;
}

.pb-5 {
  padding-bottom: 2rem;
}

.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-4 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

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

/* Colors */
.text-primary {
  color: var(--primary-blue);
}

.text-gray {
  color: var(--gray-600);
}

.text-dark {
  color: var(--gray-900);
}

.text-light {
  color: var(--gray-400);
}

.text-success {
  color: var(--success);
}

.text-warning {
  color: var(--warning);
}

.text-error {
  color: var(--error);
}

.bg-primary {
  background-color: var(--primary-blue);
}

.bg-secondary {
  background-color: var(--bg-secondary);
}

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

.bg-gray {
  background-color: var(--gray-100);
}

/* Font Weights */
.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Font Sizes */
.text-xs {
  font-size: 0.75rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-base {
  font-size: 1rem;
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.25rem;
}

.text-2xl {
  font-size: 1.5rem;
}

/* Width */
.w-full {
  width: 100%;
}

.w-auto {
  width: auto;
}

/* Max Width */
.max-w-sm {
  max-width: 640px;
}

.max-w-md {
  max-width: 768px;
}

.max-w-lg {
  max-width: 1024px;
}

.max-w-xl {
  max-width: 1200px;
}

/* Border Radius */
.rounded {
  border-radius: var(--radius-md);
}

.rounded-sm {
  border-radius: var(--radius-sm);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-full {
  border-radius: 9999px;
}

/* Shadows */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

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

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

/* ===================================
   RESPONSIVE UTILITIES
   =================================== */
@media (max-width: 640px) {
  .hidden-mobile {
    display: none;
  }
}

@media (min-width: 641px) {
  .hidden-tablet {
    display: none;
  }
}

@media (min-width: 1025px) {
  .hidden-desktop {
    display: none;
  }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {

  .site-header,
  .site-footer,
  .mobile-menu-overlay,
  .related-calculators {
    display: none;
  }

  body {
    padding-top: 0;
  }
}

/* ============================================
   LANDING PAGE STYLES (Extracted from index.html)
   ============================================ */

/* Hero Section */
.hero {
  position: relative;
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(135deg,
      var(--primary-blue) 0%,
      var(--secondary-blue) 50%,
      var(--accent-blue) 100%);
  overflow: hidden;
}

/* Decorative geometric background elements */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  margin-bottom: var(--spacing-md);
  animation: fadeInUp 0.8s ease-out;
}

.hero-tagline {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-xl);
  animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Landing Page Buttons Animation */
.hero .btn {
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

/* Calculators Section (Landing Page Specific) */
.calculators-section {
  padding: var(--spacing-3xl) 0;
  background: var(--gray-100);
}

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

.section-title {
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-700);
  max-width: 700px;
  margin: 0 auto;
}

/* Landing Page Grid & Cards - Scoped to avoid conflict */
.calculators-section .calculator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-xl);
}

.calculators-section .calculator-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-300);
  position: relative;
  overflow: hidden;
  display: block;
  /* Reset flex if inherited */
}

/* Decorative gradient on card hover */
.calculators-section .calculator-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.calculators-section .calculator-card:hover::before {
  transform: scaleX(1);
}

.calculators-section .calculator-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-blue);
}

.card-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--light-blue), rgba(59, 143, 217, 0.2));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.calculators-section .calculator-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-blue));
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--secondary-blue);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.card-link:hover {
  color: var(--primary-blue);
  gap: var(--spacing-sm);
}

.arrow {
  transition: transform 0.2s ease;
}

.card-link:hover .arrow {
  transform: translateX(4px);
}

/* About Section */
.about-section {
  padding: var(--spacing-3xl) 0;
  background: var(--white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-xl);
}

.benefit-item {
  text-align: center;
  padding: var(--spacing-lg);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: linear-gradient(135deg, var(--light-blue), rgba(59, 143, 217, 0.15));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
}

.benefit-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--accent-blue);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-item:hover .benefit-icon::after {
  opacity: 0.3;
}

.benefit-item h3 {
  color: var(--gray-900);
  margin-bottom: var(--spacing-xs);
}

.benefit-item p {
  font-size: 1rem;
  color: var(--gray-700);
}

/* Animations for scroll reveal */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive Overrides */
@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}