/*
Theme Name: OpenSpace Landing Page
Theme URI: https://openspace.finance
Author: OpenSpace
Author URI: https://openspace.finance
Description: A modern, responsive landing page theme for fintech applications. Features 8 sections including hero, features, savings goals, automated budgeting, expense tracking, investments, and tax tools.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: openspace
Tags: landing-page, fintech, one-page, responsive, custom-design
*/

/* Import global styles */
@import url("https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css");
@import url("https://fonts.googleapis.com/css?family=Montserrat:600|Open+Sans:400,700");

* {
  -webkit-font-smoothing: antialiased;
  box-sizing: border-box;
}

html,
body {
  margin: 0px;
  height: 100%;
}

button:focus-visible {
  outline: 2px solid #4a90e2 !important;
  outline: -webkit-focus-ring-color auto 5px !important;
}

a {
  text-decoration: none;
}

/* Global Resets */
:root {
  --primary-color: #becc2b;
  --text-dark: #1c221d;
  --text-light: #ffffff;
  --font-heading: "Montserrat", Helvetica, sans-serif;
  --font-body: "Open Sans", Helvetica, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: transparent;
  overflow-x: hidden;
}

/* --- Hero Section Layout (Mobile First) --- */
.hero-section {
  display: flex;
  position: relative;
  width: 100%;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  background-color: #000;
  padding-top: 100px;
  /* Mobile navigation offset */
}

/* Background Layer */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.rectangle {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Container - Mobile Default: Vertical Stack, Centered */
.hero-container {
  position: relative;
  display: flex;
  flex-direction: column;
  /* Stack by default */
  width: 100%;
  max-width: 1440px;
  height: 100%;
  z-index: 1;
  padding: 0 5%;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Center text by default */
}

/* Text Content Column - Mobile Default */
.hero-text {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center items */
  gap: 24px;
  z-index: 2;
  margin-bottom: 40px;
  /* Space between text and image on mobile */
}

/* Headlines - Mobile Default Sizes */
.headline {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  /* Mobile font size */
  line-height: 1.2;
  color: transparent;
}

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

.text-lime {
  color: var(--primary-color);
}

.subheadline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  /* Mobile subhead */
  line-height: 1.5;
  color: var(--text-light);
  letter-spacing: 0.2px;
  max-width: 450px;
}

/* CTA Button */
.call-to-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 221px;
  height: 54px;
  background-color: var(--primary-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 16px;
}

.cta-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  letter-spacing: 0.18px;
}

.call-to-action:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(190, 204, 43, 0.4);
}

/* Visuals - Mobile Default */
.hero-visuals {
  flex: 0 0 auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Align top on mobile */
  width: 100%;
  height: auto;
  min-height: 500px;
}

.model {
  position: relative;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  z-index: 1;
  opacity: 0.8;
  /* Slight fade on mobile if needed */
}

.iphone-frame {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  /* Wider on mobile */
  max-width: 390px;
  height: auto;
  z-index: 2;
}

/* Animations (Keep as is) */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.hero-text>* {
  opacity: 0;
  animation: revealUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.headline {
  animation-delay: 0.2s;
}

.subheadline {
  animation-delay: 0.4s;
}

.call-to-action {
  animation-delay: 0.6s;
}

/* Mobile Menu Background */
#mobile-menu-overlay,
.mobile-menu-bg {
  background-color: #0f172a !important;
}

/* --- Responsive Overrides (Desktop First Logic Removed) --- */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
  .headline {
    font-size: 40px;
  }

  .subheadline {
    font-size: 18px;
  }

  .iphone-frame {
    width: 60%;
  }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .hero-section {
    padding-top: 80px;
  }

  .hero-container {
    flex-direction: row;
    /* Switch to row */
    text-align: left;
    justify-content: space-between;
  }

  .hero-text {
    flex: 1;
    max-width: 600px;
    align-items: flex-start;
    /* Left align items */
    margin-bottom: 0;
  }

  .headline {
    font-size: 50px;
  }

  .subheadline {
    font-size: 20px;
  }

  .hero-visuals {
    flex: 1;
    height: 800px;
    align-items: center;
  }

  .model {
    opacity: 1;
  }

  .iphone-frame {
    width: 50%;
  }
}

/* --- Section 2: Finance Reimagined (Mobile First) --- */
.features-section {
  width: 100%;
  background-color: #ffffff;
  padding: 80px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.feature-card .feature-img {
  transition: transform 0.3s ease-in-out;
}

.feature-card .feature-img:hover {
  transform: scale(1.05);
}

.features-header {
  text-align: center;
  margin-bottom: 40px;
  z-index: 10;
}

.features-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 36px;
  /* Mobile Size */
  color: #111111;
  margin-bottom: 12px;
}

.features-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  /* Mobile Size */
  font-weight: 400;
  color: #444444;
  line-height: 1.5;
  letter-spacing: 0.02em;
  max-width: 90%;
  margin: 0 auto;
}

/* Card Row Container - Mobile Default: Column */
.features-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 1200px;
  margin-top: 0;
}

/* Individual Feature Card - Mobile Default */
.feature-card {
  width: 100%;
  max-width: 340px;
  height: 300px;
  background-color: #f0f0f0;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-large {
  height: 300px;
  /* Same as others on mobile */
}

.card-black {
  background-color: #1a1a1a;
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-label {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #dceb2e;
  color: #000000;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  z-index: 2;
}

/* --- Responsive Features Section --- */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
  .features-row {
    flex-direction: row;
    flex-wrap: wrap;
    /* Allow wrapping */
  }

  .feature-card {
    width: 45%;
    /* 2 per row roughly */
    max-width: none;
  }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
  .features-section {
    padding: 100px 5%;
  }

  .features-title {
    font-size: 52px;
  }

  .features-subtitle {
    font-size: 20px;
    max-width: 700px;
  }

  .features-row {
    flex-wrap: nowrap;
    /* Single row */
    gap: 20px;
  }

  .feature-card {
    width: 220px;
    height: 400px;
  }

  .card-large {
    height: 480px;
    /* Taller on desktop */
  }
}

/* --- Section 3: Savings Goal (Mobile First) --- */
.savings-section {
  width: 100%;
  min-height: 100vh;
  background-color: #0d0d0d;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#savings-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.savings-section::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  transform: translateY(-50%);
  width: 50%;
  height: 80%;
  background: radial-gradient(circle,
      rgba(220, 235, 46, 0.15) 0%,
      rgba(13, 13, 13, 0) 70%);
  filter: blur(60px);
  z-index: 1;
  pointer-events: none;
}

/* Container - Mobile Default: Column */
.savings-container {
  width: 100%;
  max-width: 1440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 5%;
  position: relative;
  z-index: 2;
}

/* Left Content Block - Mobile Default */
.savings-content {
  flex: 0 0 auto;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.savings-headline {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 56px;
  /* Mobile Size */
  color: #ffffff;
  line-height: 0.9;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.savings-subheadline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: #dceb2e;
  margin-bottom: 12px;
  text-transform: capitalize;
}

.savings-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: 48px;
}

.savings-btn {
  display: inline-block;
  background-color: #dceb2e;
  color: #000000;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  width: fit-content;
  transition: all 0.2s ease-in-out;
}

.savings-btn:hover {
  transform: scale(1.03);
  background-color: #e6f535;
}

/* Right Visual Block - Mobile Default */
.savings-visual {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.piggy-bank-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

/* --- Responsive Savings Section --- */
@media (min-width: 768px) {
  .savings-headline {
    font-size: 72px;
  }
}

@media (min-width: 1024px) {
  .savings-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 80px 5%;
  }

  .savings-content {
    flex: 0 0 45%;
    padding-left: 80px;
    align-items: flex-start;
    margin-bottom: 0;
  }

  .savings-headline {
    font-size: 82px;
  }

  .savings-subheadline {
    font-size: 24px;
  }

  .savings-body {
    font-size: 18px;
    max-width: 380px;
  }

  .savings-visual {
    flex: 0 0 55%;
    justify-content: flex-end;
  }

  .piggy-bank-img {
    max-width: 800px;
  }
}

/* --- Section 5: Automated Budgeting (Mobile First) --- */
.budget-section {
  width: 100%;
  min-height: auto;
  background-color: #f2f2f2;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Mobile Default */
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

/* Left Column: Content - Mobile Default */
.budget-content-left {
  flex: 0 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Center */
  text-align: center;
  z-index: 2;
  margin-bottom: 40px;
}

.budget-headline {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #111111;
  font-size: 42px;
  /* Mobile */
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.budget-subheadline {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #dceb2e;
  font-size: 20px;
  margin-bottom: 24px;
}

.budget-body {
  font-family: var(--font-body);
  font-weight: 400;
  color: #555555;
  font-size: 16px;
  line-height: 1.5;
  max-width: 100%;
}

.budget-body.spacer {
  margin-top: 24px;
  margin-bottom: 48px;
}

/* CTA Button */
.budget-btn {
  display: inline-block;
  background-color: #dceb2e;
  color: #111111;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.budget-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(220, 235, 46, 0.3);
}

/* Right Column: 3D Visualization - Mobile Default */
.budget-visual-right {
  flex: 0 0 auto;
  width: 100%;
  height: auto;
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Phone Perspective */
.phone-perspective {
  width: 280px;
  /* Smaller on mobile */
  height: 550px;
  perspective: 1200px;
}

/* Check if we need to remove or keep 3D styles - keeping them */
.phone-3d {
  width: 100%;
  height: 100%;
  background-color: #000;
  border-radius: 40px;
  position: relative;
  /* Reduced rotation for mobile readability? Or keep effect? Keeping effect but subtle */
  transform: rotateY(-15deg) rotateX(5deg) rotateZ(-2deg);
  transform-style: preserve-3d;
  box-shadow: -20px 30px 30px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
  border: 4px solid #333;
}

.phone-3d:hover {
  transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg);
  /* Flatten on hover/tap */
}

/* Dynamic Frame Helper */
.phone-frame-dynamic {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 44px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  pointer-events: none;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Screen Content */
.phone-screen {
  width: 100%;
  height: 100%;
  background-color: #000;
  border-radius: 36px;
  overflow: hidden;
  padding: 24px;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: var(--font-body);
}

/* Header */
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  margin-top: 10px;
}

.welcome-text {
  display: block;
  font-size: 14px;
  color: #ffffff;
  font-weight: 600;
}

.current-date {
  display: block;
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

.user-avatar {
  width: 36px;
  height: 36px;
  background-color: #333;
  border-radius: 50%;
}

/* Balance Card */
.balance-card {
  background-color: #111;
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #222;
}

.balance-label {
  font-size: 12px;
  color: #888;
  margin-bottom: 8px;
}

.balance-amount {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  font-family: var(--font-heading);
}

.send-btn {
  width: 100%;
  background-color: #dceb2e;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #000;
}

/* Stacked Cards */
.cards-stack {
  position: relative;
  flex: 1;
}

.stat-card {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  border-radius: 20px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
}

/* Card Stacking Order and Colors */
.red-gradient {
  background: linear-gradient(135deg, #ff4b1f, #ff9068);
  top: 0px;
  transform: scale(0.9) translateY(45px);
  opacity: 0.8;
  z-index: 1;
}

.blue-solid {
  background-color: #2979ff;
  top: 0px;
  transform: scale(0.95) translateY(30px);
  opacity: 0.9;
  z-index: 2;
}

.green-solid {
  background-color: #00c853;
  top: 0px;
  transform: scale(0.98) translateY(15px);
  opacity: 1;
  z-index: 3;
}

.purple-solid {
  background-color: #6200ea;
  top: 0px;
  transform: scale(1) translateY(0);
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 14px;
}

.progress-bar {
  width: 100%;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.fill {
  background-color: #fff;
  height: 100%;
  border-radius: 3px;
}

/* Bottom Nav */
.bottom-nav {
  height: 60px;
  background-color: #000;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto;
}

.nav-item {
  color: #666;
}

.nav-item.active {
  color: #dceb2e;
}

.budget-asset-img {
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 300px;
  object-fit: contain;
  transform: scale(1);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.25));
}

/* --- Responsive Budget Section --- */

@media (min-width: 768px) {
  .budget-headline {
    font-size: 56px;
  }
}

@media (min-width: 1025px) {
  .budget-section {
    min-height: 800px;
    flex-direction: row;
    padding: 100px 120px;
    justify-content: space-between;
  }

  .budget-content-left {
    flex: 0 0 35%;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 0;
  }

  .budget-headline {
    font-size: 72px;
  }

  .budget-subheadline {
    font-size: 28px;
  }

  .budget-body {
    font-size: 20px;
    max-width: 500px;
  }

  .budget-visual-right {
    flex: 0 0 65%;
    height: 600px;
  }

  .phone-perspective {
    width: 320px;
    height: 650px;
  }

  .phone-3d {
    transform: rotateY(-32deg) rotateX(8deg) rotateZ(-5deg);
  }

  .phone-3d:hover {
    transform: rotateY(-25deg) rotateX(5deg) rotateZ(-2deg);
  }

  .budget-asset-img {
    min-height: 600px;
    transform: scale(1.1);
  }
}

/* --- Section 6: Expense Tracking (Mobile First) --- */
.expense-tracking-container {
  display: flex;
  width: 100%;
  min-height: auto;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
  flex-direction: column-reverse;
  /* Mobile Default: Visual below or above content? original was col-reverse */
  padding-bottom: 0;
}

/* Right Imagery Block - Mobile Default */
.et-visual {
  flex: 0 0 auto;
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 0;
}

.et-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Masking/Fade Overlay - Mobile Default */
.et-overlay {
  position: absolute;
  width: 100%;
  height: 25%;
  top: auto;
  bottom: 0;
  left: 0;
  background: linear-gradient(to top,
      rgba(245, 245, 245, 1) 0%,
      rgba(245, 245, 245, 0) 100%);
  pointer-events: none;
}

/* Left Content Block - Mobile Default */
.et-content {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 24px 80px 24px;
  z-index: 10;
  width: 100%;
  align-items: center;
  text-align: center;
}

.et-headline {
  font-family: var(--font-heading, "Montserrat", Helvetica);
  font-weight: 700;
  font-size: 36px;
  /* Mobile */
  color: #111111;
  line-height: 1.1;
  margin-bottom: 12px;
  text-transform: none;
}

.et-subheading {
  font-family: var(--font-heading, "Montserrat", Helvetica);
  font-weight: 600;
  font-size: 24px;
  /* Mobile */
  color: #2d5a27;
  margin-bottom: 16px;
}

.et-body {
  font-family: var(--font-body, "Open Sans", Helvetica);
  font-weight: 400;
  font-size: 16px;
  /* Mobile */
  color: #666666;
  max-width: 100%;
  line-height: 1.4;
  margin-bottom: 32px;
  -webkit-font-smoothing: antialiased;
}

.et-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #dceb2e;
  color: #000000;
  font-family: var(--font-body, "Open Sans", Helvetica);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 36px;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: filter 0.2s ease;
}

.et-button:hover {
  filter: brightness(1.05);
  cursor: pointer;
}

/* --- Responsive Expense Tracking --- */
@media (min-width: 1024px) {
  .expense-tracking-container {
    min-height: 800px;
    flex-direction: row;
    /* Desktop */
    padding-bottom: 0;
  }

  .et-content {
    flex: 0 0 45%;
    padding-left: 120px;
    padding-right: 40px;
    align-items: flex-start;
    text-align: left;
  }

  .et-headline {
    font-size: 64px;
  }

  .et-subheading {
    font-size: 28px;
  }

  .et-body {
    font-size: 20px;
    max-width: 320px;
    margin-bottom: 56px;
  }

  .et-visual {
    flex: 0 0 55%;
    /* 55% width */
    height: auto;
    min-height: 800px;
    /* Fill height */
  }

  .et-visual img {
    object-position: 60% center;
  }

  .et-overlay {
    width: 25%;
    height: 100%;
    top: 0;
    left: 0;
    bottom: auto;
    background: linear-gradient(to right,
        rgba(245, 245, 245, 1) 0%,
        rgba(245, 245, 245, 0) 100%);
  }
}

/* ============================================================
   SECTION 7: INVESTMENTS (Mobile First)
   ============================================================ */

.investments-section {
  background-color: #ffffff;
  width: 100%;
  min-height: auto;
  padding-bottom: 60px;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Mobile Default */
  align-items: center;
  overflow: hidden;
}

/* Background Image (Right Side) - Mobile Default */
.inv-bg-image {
  position: relative;
  width: 100%;
  height: 40vh;
  min-height: 300px;
  order: 1;
  /* Visually top */
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Decorative Blur Ellipse (Left Side) - Mobile */
.inv-blur-ellipse {
  position: absolute;
  top: auto;
  bottom: -200px;
  left: -100px;
  width: 500px;
  height: 700px;
  background-color: #f6ffda;
  border-radius: 50%;
  filter: blur(25px);
  z-index: 2;
  pointer-events: none;
}

/* Content Container (Left Side) - Mobile Default */
.inv-content {
  position: relative;
  order: 2;
  z-index: 3;
  max-width: 100%;
  padding: 60px 24px 0 24px;
  text-align: center;
}

.inv-headline {
  font-family: var(--font-heading, "Montserrat", Helvetica);
  font-weight: 600;
  color: #333333;
  font-size: 42px;
  /* Mobile */
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 24px;
}

.inv-subheadline {
  font-family: var(--font-heading, "Montserrat", Helvetica);
  font-weight: 600;
  color: #396b0e;
  font-size: 24px;
  /* Mobile */
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 24px;
}

.inv-body {
  font-family: var(--font-body, "Open Sans", Helvetica);
  font-weight: 400;
  color: #000000;
  font-size: 18px;
  /* Mobile */
  letter-spacing: 0.24px;
  line-height: 1.4;
  margin-bottom: 32px;
  max-width: 100%;
}

.inv-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #becc2b;
  color: #1c221d;
  font-family: var(--font-body, "Open Sans", Helvetica);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18px;
  padding: 12px 36px;
  border-radius: 10px;
  text-decoration: none;
  width: fit-content;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.inv-button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  cursor: pointer;
}

/* --- Responsive Investments --- */
@media (min-width: 768px) {
  .inv-headline {
    font-size: 52px;
  }
}

@media (min-width: 1024px) {
  .investments-section {
    min-height: 777px;
    flex-direction: row;
    /* Desktop */
    padding-bottom: 0;
  }

  .inv-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    order: unset;
    /* Reset order */
  }

  .inv-blur-ellipse {
    top: -325px;
    left: -214px;
    width: 1063px;
    height: 1375px;
    border-radius: 531.5px / 687.5px;
  }

  .inv-content {
    max-width: 610px;
    padding-left: 120px;
    padding-right: 40px;
    text-align: left;
    order: unset;
  }

  .inv-headline {
    font-size: 65px;
  }

  .inv-subheadline {
    font-size: 33px;
    margin-bottom: 32px;
  }

  .inv-body {
    font-size: 24px;
    margin-bottom: 56px;
    max-width: 439px;
  }

  .inv-button {
    font-size: 18px;
    padding: 14px 44px;
  }
}

/* ============================================================
   SECTION 8: TAX TOOLS & COMPLIANCE (Mobile First)
   ============================================================ */

.tax-tools-section {
  background-color: #fefefe;
  width: 100%;
  min-height: 600px;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Mobile Default */
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

/* Background Image (Full Width) */
.tax-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

/* Dark Green Circular Ellipse (Top-Left) - Mobile */
.tax-ellipse {
  position: absolute;
  top: -100px;
  left: -200px;
  width: 600px;
  height: 600px;
  background-color: #396b0e;
  border-radius: 50%;
  z-index: 2;
  pointer-events: none;
}

/* Content Container (Left Side, White Text) - Mobile Default */
.tax-content {
  position: relative;
  z-index: 3;
  max-width: 100%;
  padding: 0 24px;
  text-align: center;
}

.tax-headline {
  font-family: var(--font-heading, "Montserrat", Helvetica);
  font-weight: 600;
  color: #ffffff;
  font-size: 42px;
  /* Mobile */
  letter-spacing: 0;
  line-height: 1.1;
  margin-bottom: 32px;
}

.tax-subheadline {
  font-family: var(--font-heading, "Montserrat", Helvetica);
  font-weight: 600;
  color: #ffffff;
  font-size: 24px;
  /* Mobile */
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 24px;
}

.tax-body {
  font-family: var(--font-body, "Open Sans", Helvetica);
  font-weight: 400;
  color: #ffffff;
  font-size: 18px;
  /* Mobile */
  letter-spacing: 0.24px;
  line-height: 1.4;
  margin-bottom: 32px;
  max-width: 100%;
}

.tax-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #becc2b;
  color: #1c221d;
  font-family: var(--font-body, "Open Sans", Helvetica);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.18px;
  padding: 12px 36px;
  border-radius: 10px;
  text-decoration: none;
  width: fit-content;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.tax-button:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  cursor: pointer;
}

/* --- Responsive Tax Tools --- */
@media (min-width: 768px) {
  .tax-headline {
    font-size: 52px;
  }
}

@media (min-width: 1024px) {
  .tax-tools-section {
    min-height: 777px;
    flex-direction: row;
    /* Desktop */
    padding: 0;
  }

  .tax-content {
    max-width: 610px;
    padding-left: 120px;
    padding-right: 40px;
    text-align: left;
  }

  .tax-ellipse {
    top: -176px;
    left: -377px;
    width: 1219px;
    height: 1219px;
  }

  .tax-headline {
    font-size: 65px;
    margin-bottom: 48px;
  }

  .tax-subheadline {
    font-size: 33px;
    margin-bottom: 32px;
  }

  .tax-body {
    font-size: 24px;
    margin-bottom: 56px;
    max-width: 439px;
  }

  .tax-button {
    font-size: 18px;
    padding: 14px 44px;
  }
}

/* =========================================
   WPForms Custom Styling
   ========================================= */

/* Labels */
div.wpforms-container-full .wpforms-form .wpforms-field-label {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  /* text-sm */
  color: #374151;
  /* gray-700 */
  margin-bottom: 0.5rem;
  display: block;
}

/* Dark Mode Labels */
.dark div.wpforms-container-full .wpforms-form .wpforms-field-label {
  color: #d1d5db;
  /* gray-300 */
}

/* Inputs & Textareas */
div.wpforms-container-full .wpforms-form input[type="text"],
div.wpforms-container-full .wpforms-form input[type="email"],
div.wpforms-container-full .wpforms-form textarea,
div.wpforms-container-full .wpforms-form select {
  width: 100% !important;
  background-color: #f9fafb;
  /* gray-50 */
  border: 1px solid #d1d5db;
  /* gray-300 */
  color: #111827;
  /* gray-900 */
  border-radius: 0.5rem;
  /* rounded-lg */
  padding: 0.75rem 1rem;
  /* py-3 px-4 */
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  /* shadow-sm */
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  max-width: 100%;
}

/* Dark Mode Inputs */
.dark div.wpforms-container-full .wpforms-form input[type="text"],
.dark div.wpforms-container-full .wpforms-form input[type="email"],
.dark div.wpforms-container-full .wpforms-form textarea,
.dark div.wpforms-container-full .wpforms-form select {
  background-color: #1f2937;
  /* bg-gray-800 */
  border-color: #4b5563;
  /* border-gray-600 */
  color: #ffffff;
  /* text-white */
}

/* Focus State */
div.wpforms-container-full .wpforms-form input:focus,
div.wpforms-container-full .wpforms-form textarea:focus,
div.wpforms-container-full .wpforms-form select:focus {
  outline: none;
  border-color: #83e920;
  /* Header Green */
  box-shadow: 0 0 0 3px rgba(131, 233, 32, 0.3) !important;
  /* ring-primary */
}

/* Placeholders */
div.wpforms-container-full .wpforms-form ::placeholder {
  color: #9ca3af;
  /* gray-400 */
  opacity: 1;
}

/* Submit Button */
div.wpforms-container-full .wpforms-form button[type="submit"] {
  width: 100%;
  background-color: #83e920 !important;
  /* exact header match */
  color: #000000;
  /* text-black */
  font-weight: 700;
  /* font-bold */
  padding: 1rem 2rem;
  /* py-4 px-8 */
  border-radius: 9999px;
  /* rounded-full */
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  /* duration-300 */
  box-shadow: 0 0 30px rgba(131, 233, 32, 0.4);
  /* exact header shadow */
  font-family: "Inter", sans-serif;
  font-size: 0.875rem;
  /* text-sm */
  margin-top: 0.5rem;
}

/* Dark Mode Button Text */
.dark div.wpforms-container-full .wpforms-form button[type="submit"] {
  color: #000000;
  /* Always black text */
}

/* Button Hover */
div.wpforms-container-full .wpforms-form button[type="submit"]:hover {
  background-color: #83e920;
  /* Keep base color */
  transform: scale(1.05);
  /* hover:scale-105 */
  box-shadow: 0 0 50px rgba(131, 233, 32, 0.6);
  /* exact hover shadow */
}