/*
Theme Name: RentCalc Theme (Modern UI)
Version: 1.0.0
Author: Antigravity UI Designer
*/

:root {
  /* 
     * Modern Color Palette (Tailwind-inspired) 
     * Primary: Indigo-600 #4f46e5
     * Secondary: Sky-500 #0ea5e9
     * Accent: Amber-500 #f59e0b
     * Neutral: Slate
    */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e0e7ff;

  --surface-50: #f8fafc;
  --surface-100: #f1f5f9;
  --surface-200: #e2e8f0;
  --surface-white: #ffffff;

  --text-main: #0f172a; /* Slate-900 */
  --text-muted: #64748b; /* Slate-500 */

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --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);

  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

/* Modern Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    sans-serif;
  background-color: var(--surface-50);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem; /* Mobile: Tighter padding */
}

@media (min-width: 768px) {
  .container {
    padding-inline: 2rem;
  }
}

section {
  padding-block: 3.5rem; /* Mobile: Smaller sections */
}

@media (min-width: 768px) {
  section {
    padding-block: 6rem;
  }
}

/* Typography Mobile First */
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.5rem; }
}

/* Problem Section Cards (Stack by default) */
.features-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  padding-block: 1.5rem;
}

@media (min-width: 768px) {
  .features-container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding-block: 3rem;
  }
}

/* Footer Mobile First */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column base */
  gap: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  }
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: 80px; /* Slightly taller for presence */
  display: flex;
  align-items: center;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03); /* Subtle glass shadow */
}

/* Header App Store Badge Reset */
.header-cta,
.header-cta::before,
.header-cta::after {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}

.header-cta {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.header-cta:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.site-title {
  font-size: 1.5rem;
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
  margin-right: 1.5rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
}

  .nav-menu {
    display: none; /* Mobile base: Hidden, toggled by JS */
  }

  /* Desktop Header Enhancements */
  @media (min-width: 768px) {
    .menu-toggle {
      display: none;
    }
    .nav-menu {
      display: flex;
    }
  }

.nav-menu a {
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
  padding-block: 0.5rem;
}

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

/* Sliding Underline Effect */
.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease-in-out;
  border-radius: 99px;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px; /* Pill shape */
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn:active {
  transform: scale(0.95);
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--surface-200);
}

.btn-secondary:hover {
  background: var(--surface-50);
  border-color: var(--surface-200);
}

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

.btn-outline:hover {
  background: var(--surface-50);
  background: var(--primary);
  color: white;
}

/* Hero Section */
.hero-section {
  padding-top: 8rem;
  padding-bottom: 6rem;
  background: radial-gradient(circle at 50% 0%, #e0e7ff 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.mockup-container {
  position: relative;
  margin-top: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  background: white;
  padding: 1rem;
  max-width: 1000px;
  margin-inline: auto;
  border: 1px solid var(--surface-200);
}

/* Bento Grid (Features) */
.features-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding-block: 2rem;
}

.bento-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--surface-200);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bento-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.bento-icon {
  width: 3rem;
  height: 3rem;
  background: var(--surface-100);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.bento-card.span-2 {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .bento-card.span-2 {
    grid-column: span 1;
  }
}

/* Pricing */
.pricing-section {
  background: var(--surface-100);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin-inline: auto;
}

.pricing-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--surface-200);
  position: relative;
  height: 100%; /* Stretch to grid row height */
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(to bottom, white, #f5f7ff);
  box-shadow: var(--shadow-xl);
  /* transform: scale(1.05); Removed to align heights */
  z-index: 10;
}

.plan-price {
  font-size: 2.5rem; /* Reduced from 3rem to prevent wrapping */
  font-weight: 800;
  color: var(--text-main);
  margin-block: 1rem;
  letter-spacing: -0.05em;
  white-space: nowrap; /* Force single line */
  display: flex;
  align-items: baseline;
  justify-content: center; /* Center the price */
  gap: 0.25rem;
}

.plan-price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.plan-desc {
  min-height: 3rem; /* Align cards by ensuring description height */
  color: var(--primary); /* Use primary color for catch phrase to distinguish */
  font-weight: 700;      /* Make it bold */
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.check-icon {
  color: var(--primary);
  flex-shrink: 0;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: white;
  padding-block: 4rem;
}

.footer-link {
  color: #94a3b8;
  transition: color 0.2s;
}

.footer-link:hover {
  color: white;
}

/* =========================================
   Footer Enhancements (Added for readability)
   ========================================= */

/* Grid Layout for LP Footer */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
  text-align: left;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

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

.footer-logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  letter-spacing: -0.05em;
  line-height: 1.2;
}

.footer-description {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-links-col h4,
.footer-store-col h4 {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-col a,
.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.footer-links-col a:hover,
.footer-links a:hover {
  color: white;
  padding-left: 4px; /* Subtle hover effect */
}

/* Store Buttons */
.footer-store-btn {
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}
.footer-store-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .social-icons {
    justify-content: center;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  margin-top: 2rem;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* Simple Footer (Index.php) adjustments */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding-block: 2rem;
}

.site-info {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.site-info .footer-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .footer-container,
  .site-info,
  .site-info .footer-links {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

/* =========================================
   LP Optimization Enhancements
   ========================================= */

/* Problem Section Cards */
.problem-card {
  background: var(--surface-50);
  border: 1px solid var(--surface-200);
  transition: all 0.3s ease;
}
.problem-card:hover {
  background: white;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.problem-icon {
  background: white;
  box-shadow: var(--shadow-sm);
  font-size: 1.8rem;
}

/* Pulse Animation for CTA & Cloud Sync */
@keyframes pulse-ring {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(79, 70, 229, 0); }
  100% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

.cta-pulse {
  animation: pulse-ring 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}
.cta-pulse:hover {
  animation: none;
  transform: scale(1.02);
}

.pulse-icon {
  animation: pulse-ring 3s infinite cubic-bezier(0.66, 0, 0, 1);
  background: #ede9fe; 
}

/* =========================================
   Hero Composite Layout & Styling
   ========================================= */

/* Use Grid for the Hero text & composite visual */
@media (min-width: 992px) {
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }
  .hero-content-left {
    text-align: left;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
  }
  .hero-content-left {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
  }
}

/* Right Side Wrap */
.hero-visual-composite {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  z-index: 1;
}

/* Floating Typography inside Visual */
.visual-typography {
  position: absolute;
  top: -2rem;
  right: -2rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--text-main);
  z-index: 20;
  text-align: right;
  animation: float-soft 6s ease-in-out infinite;
}
.visual-typography .highlight-strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  margin-top: 0.25rem;
}

/* Main Device Setup */
.visual-mockup-wrapper {
  position: relative;
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-device {
  position: relative;
  width: 280px; /* iPhone approximate width */
  height: 560px; /* Approximate height */
  background: white;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  z-index: 10;
  padding: 8px; /* Bezel */
  border: 2px solid var(--surface-200);
}

.device-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px; /* Inner radius matching bezel */
}

/* Floating Elements around device (Glassmorphism + Anim) */
.float-item {
  position: absolute;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-width: 160px; /* Smaller than main device */
  object-fit: cover;
  opacity: 0.85;
}

.style-glass {
  /* Give the actual images a bit of a glassy or overlay feel */
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.4);
}

.float-left {
  top: 15%;
  left: -20px;
  z-index: 15;
}

.float-right {
  bottom: 25%;
  right: -30px;
  max-width: 180px;
  z-index: 12;
}

.float-bottom {
  bottom: 5%;
  left: 20%;
  transform: translateX(-50%);
  max-width: 220px; /* Wider for full list UI maybe */
  z-index: 8;
}

/* Independent Float Animations */
@keyframes float-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes float-1 {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-15px) rotate(0deg); }
}

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

@keyframes float-3 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}

.float-anim-1 { animation: float-1 7s ease-in-out infinite; }
.float-anim-2 { animation: float-2 5.5s ease-in-out infinite; }
.float-anim-3 { animation: float-3 8s ease-in-out infinite; }

@media (max-width: 600px) {
  .visual-typography {
    text-align: center;
    position: relative;
    top: 0;
    right: 0;
    margin-bottom: 2rem;
    animation: none;
  }
  .float-left, .float-right, .float-bottom {
    display: none; /* Hide floating screens on very small devices to avoid chaos */
  }
}

