/* ================================================
   GALLUCCIO FINANCIAL CONSULTING – Stylesheet
   ================================================ */

/* ---- CSS Variables ---- */
:root {
  --gold: #d4a843;
  --gold-light: #e8c76b;
  --gold-dark: #b8912e;
  --black: #1a1a1a;
  --dark: #2c2c2c;
  --gray-dark: #4a4a4a;
  --gray: #6b6b6b;
  --gray-light: #b0b0b0;
  --gray-lighter: #e8e8e8;
  --white: #ffffff;
  --off-white: #fafafa;
  --cream: #f7f5f0;

  --font-heading: Georgia, 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 20px rgba(212, 168, 67, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Dark Theme Variables ---- */
[data-theme="dark"] {
  --black: #f0f0f0;
  --dark: #e0e0e0;
  --gray-dark: #c0c0c0;
  --gray: #a0a0a0;
  --gray-light: #707070;
  --gray-lighter: #3a3a3a;
  --white: #141414;
  --off-white: #1a1a1a;
  --cream: #1e1e1e;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 16px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin: 0 auto;
  border-radius: 2px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--black);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(212, 168, 67, 0.35);
}

.btn-full {
  width: 100%;
  text-align: center;
}

/* ================================================
   NAVIGATION
   ================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(15, 20, 40, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 48px;
  width: auto;
  transition: var(--transition);
}

.logo-blend {
  mix-blend-mode: multiply;
}

.navbar.scrolled .nav-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  border-radius: 50px;
  transition: var(--transition);
}

.navbar.scrolled .nav-links a {
  color: #ffffff;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--black) !important;
}

.nav-cta:hover {
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.navbar.scrolled .theme-toggle {
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(15deg);
}

.navbar.scrolled .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .theme-toggle svg {
  color: #ffffff;
}

/* Show sun in dark mode, moon in light mode */
.icon-sun { display: none; }
.icon-moon { display: block; }

[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: #ffffff;
}

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

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

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

/* ================================================
   HERO
   ================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 150%;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4a843' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 0 24px;
  pointer-events: none;
}

.hero-content a,
.hero-content button {
  pointer-events: auto;
}

.hero-logo {
  /* Breite angepasst: nach Crop ohne Leerraum sonst optisch zu gross */
  width: min(672px, 68vw);
  height: auto;
  margin: 0 auto 0;
  filter: drop-shadow(0 4px 20px rgba(212, 168, 67, 0.3));
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 12px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero h1 span {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-light);
  font-weight: 300;
  margin-top: 12px;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 40px;
  animation: fadeInUp 1s ease-out 0.5s both;
}

.hero-services span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
}

.hero-services .dot {
  color: var(--gold);
  font-size: 1.2rem;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%, 100% { top: 8px; opacity: 1; }
  50% { top: 20px; opacity: 0.3; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================
   ABOUT
   ================================================ */
.about {
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.about-card {
  background: var(--white);
  padding: 40px 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.about-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-card:hover {
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.25), 0 0 0 1px rgba(212, 168, 67, 0.1);
  transform: translateY(-4px);
}

.about-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.1), rgba(212, 168, 67, 0.05));
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.about-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.about-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.about-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.services-grid .service-card:nth-child(5):last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 16px);
}

.service-card {
  position: relative;
  padding: 48px 36px;
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-md);
  transition: var(--transition);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, var(--gold), var(--gold-light));
  transition: height 0.4s ease;
}

.service-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.service-card:hover::before {
  height: 100%;
}

.service-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(212, 168, 67, 0.15);
  line-height: 1;
  margin-bottom: 16px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ================================================
   COMPOUND INTEREST CALCULATOR
   ================================================ */
.calculator-section {
  background: var(--off-white);
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.calculator-card,
.calculator-result {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-lighter);
  opacity: 0;
  transform: translateY(30px);
}

.calculator-card.visible,
.calculator-result.visible {
  opacity: 1;
  transform: translateY(0);
}

.calculator-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.calculator-form-grid .form-group:last-child {
  grid-column: 1 / -1;
}

.calculator-form-grid select {
  width: 100%;
  height: 56px;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--off-white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
  appearance: none;
}

.calculator-form-grid select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
  background: var(--white);
}

.calculator-form-grid select + label {
  top: -10px;
  left: 14px;
  font-size: 0.75rem;
  color: var(--gold);
  background: var(--white);
  padding: 0 6px;
}

.calculator-disclaimer {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--gray);
}

.calculator-result h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--black);
  margin-bottom: 20px;
}

.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-lighter);
}

.result-item:last-child {
  border-bottom: none;
}

.result-item span {
  color: var(--gray);
  font-size: 0.95rem;
}

.result-item strong {
  color: var(--black);
  font-size: 1rem;
}

/* ================================================
   TIMELINE
   ================================================ */
.timeline-section {
  background: var(--off-white);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold), var(--gold-light));
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 48px 60px;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.left {
  left: 0;
  text-align: right;
  transform: translateX(-30px);
}

.timeline-item.right {
  left: 50%;
  text-align: left;
  transform: translateX(30px);
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
  transition: var(--transition);
}

.timeline-item.left .timeline-dot {
  right: -8px;
}

.timeline-item.right .timeline-dot {
  left: -8px;
}

.timeline-item.visible .timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(212, 168, 67, 0.15);
}

.timeline-content {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.25), 0 0 0 1px rgba(212, 168, 67, 0.1);
}

.timeline-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--gold-dark);
  background: rgba(212, 168, 67, 0.1);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
}

.timeline-content p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ================================================
   MOTTO / PHILOSOPHY
   ================================================ */
.motto-section {
  position: relative;
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.motto-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.motto-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgba(212, 168, 67, 0.06) 0%, transparent 70%);
}

.motto-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  margin: 0 auto;
  pointer-events: none;
}

.quote-icon {
  width: 48px;
  height: 48px;
  color: #d4a843;
  opacity: 0.4;
  margin-bottom: 24px;
}

blockquote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: #ffffff;
  line-height: 1.4;
  font-style: italic;
}

.motto-divider {
  width: 60px;
  height: 2px;
  background: #d4a843;
  margin: 32px auto;
}

.motto-sub {
  font-size: 1rem;
  color: #e8c76b;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ================================================
   MEMBERSHIPS
   ================================================ */
.memberships {
  background: var(--off-white);
}

.membership-badges {
  display: flex;
  justify-content: center;
}

.membership-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  padding: 28px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-lighter);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
}

.membership-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.membership-badge:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(212, 168, 67, 0.25), 0 0 0 1px rgba(212, 168, 67, 0.1);
  transform: translateY(-2px);
}

.badge-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 168, 67, 0.1);
  border-radius: 50%;
  flex-shrink: 0;
}

.badge-icon svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.badge-text h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
}

.badge-text p {
  font-size: 0.9rem;
  color: var(--gray);
}

.badge-arrow {
  width: 20px;
  height: 20px;
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
}

.membership-badge:hover .badge-arrow {
  transform: translateX(4px);
}

/* ================================================
   CONTACT
   ================================================ */
.contact {
  background: var(--white);
}

.contact-header-photo {
  width: min(100%, 360px);
  margin: -24px auto 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-lighter);
  object-fit: cover;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  opacity: 0;
  transform: translateY(30px);
}

.contact-info.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item span,
.contact-item a {
  font-size: 0.95rem;
  color: var(--gray-dark);
}

.contact-item a:hover {
  color: var(--gold);
}

.contact-note {
  margin-top: 28px;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
  border-left: 3px solid var(--gold);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
}

.contact-form.visible {
  opacity: 1;
  transform: translateY(0);
}

.form-group.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-feedback {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-feedback.is-success {
  background: rgba(46, 125, 50, 0.12);
  border: 1px solid rgba(46, 125, 50, 0.35);
  color: #2e7d32;
}

.form-feedback.is-error {
  background: rgba(180, 40, 40, 0.1);
  border: 1px solid rgba(180, 40, 40, 0.3);
  color: #b42828;
}

[data-theme="dark"] .form-feedback.is-success {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.35);
  color: #81c784;
}

[data-theme="dark"] .form-feedback.is-error {
  background: rgba(244, 67, 54, 0.15);
  border-color: rgba(244, 67, 54, 0.35);
  color: #ef9a9a;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--off-white);
  border: 1px solid var(--gray-lighter);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  outline: none;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.1);
  background: var(--white);
}

.form-group label {
  position: absolute;
  left: 18px;
  top: 16px;
  font-size: 0.95rem;
  color: var(--gray-light);
  pointer-events: none;
  transition: var(--transition);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: -10px;
  left: 14px;
  font-size: 0.75rem;
  color: var(--gold);
  background: var(--white);
  padding: 0 6px;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--black);
  padding: 48px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--gray);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--gray);
  transition: var(--transition);
}

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

/* ================================================
   DARK MODE OVERRIDES
   ================================================ */

/* Navbar: always light text (dark background in both modes) */
[data-theme="dark"] .nav-links a {
  color: #ffffff;
}

[data-theme="dark"] .nav-toggle span {
  background: #ffffff;
}

[data-theme="dark"] .theme-toggle svg {
  color: #ffffff;
}

/* Service number opacity stays subtle */
[data-theme="dark"] .service-number {
  color: rgba(212, 168, 67, 0.2);
}

/* Service card border */
[data-theme="dark"] .service-card {
  border-color: #2a2a2a;
  background: #1a1a1a;
}

/* About card bg */
[data-theme="dark"] .about-card {
  background: #1e1e1e;
}

/* Timeline */
[data-theme="dark"] .timeline-content {
  background: #1e1e1e;
}

[data-theme="dark"] .timeline-dot {
  background: #1a1a1a;
}

[data-theme="dark"] .timeline-item.visible .timeline-dot {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(212, 168, 67, 0.2);
}

[data-theme="dark"] .timeline-year {
  background: rgba(212, 168, 67, 0.15);
}

/* Membership badge */
[data-theme="dark"] .membership-badge {
  background: #1e1e1e;
  border-color: #2a2a2a;
}

[data-theme="dark"] .calculator-card,
[data-theme="dark"] .calculator-result {
  background: #1e1e1e;
  border-color: #2a2a2a;
}

[data-theme="dark"] .calculator-form-grid select {
  background: #1e1e1e;
  border-color: #2a2a2a;
  color: #e0e0e0;
}

[data-theme="dark"] .calculator-form-grid select:focus {
  background: #222222;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

[data-theme="dark"] .calculator-form-grid select + label {
  background: #1a1a1a;
}

/* About icon bg */
[data-theme="dark"] .about-icon {
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.15), rgba(212, 168, 67, 0.08));
}

/* Badge icon bg */
[data-theme="dark"] .badge-icon {
  background: rgba(212, 168, 67, 0.15);
}

/* Contact note */
[data-theme="dark"] .contact-note {
  background: #1e1e1e;
}

/* Form inputs */
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: #1e1e1e;
  border-color: #2a2a2a;
  color: #e0e0e0;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  background: #222222;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

[data-theme="dark"] .form-group input:focus + label,
[data-theme="dark"] .form-group input:not(:placeholder-shown) + label,
[data-theme="dark"] .form-group textarea:focus + label,
[data-theme="dark"] .form-group textarea:not(:placeholder-shown) + label {
  background: #1a1a1a;
}

/* Footer */
[data-theme="dark"] .footer {
  background: #0a0a0a;
}

/* WhatsApp tooltip */
[data-theme="dark"] .whatsapp-tooltip {
  background: #2a2a2a;
  color: #e0e0e0;
}

[data-theme="dark"] .whatsapp-tooltip::after {
  border-left-color: #2a2a2a;
}


/* Body transition for smooth theme switch */
body,
.about-card,
.service-card,
.timeline-content,
.membership-badge,
.calculator-card,
.calculator-result,
.contact-note,
.form-group input,
.form-group textarea,
.calculator-form-grid select,
.navbar,
.footer,
.whatsapp-tooltip {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ================================================
   WHATSAPP FLOATING BUTTON
   ================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  color: var(--white);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
  animation: none;
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  background: var(--white);
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all 0.3s ease;
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid var(--white);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 0 0 12px rgba(37, 211, 102, 0.1); }
  100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
}

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 992px) {
  .about-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:nth-child(5):last-child {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .calculator-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  /* Mobile Nav */
  .nav-container {
    flex-wrap: nowrap;
  }

  .nav-toggle {
    display: flex;
    order: 3;
  }

  .theme-toggle {
    order: 4;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    color: var(--dark) !important;
    font-size: 1.1rem;
    padding: 12px 16px;
    width: 100%;
    border-radius: var(--radius-sm);
  }

  .nav-links a:hover {
    background: var(--cream);
  }

  [data-theme="dark"] .nav-links {
    background: #1a1a1a;
  }

  [data-theme="dark"] .nav-links a:hover {
    background: #252525;
  }

  /* Timeline Mobile */
  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding: 0 0 40px 56px;
    text-align: left;
  }

  .timeline-item.left {
    left: 0;
    text-align: left;
    transform: translateX(-20px);
  }

  .timeline-item.right {
    left: 0;
    transform: translateX(-20px);
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 12px;
    right: auto;
  }

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

  .footer-brand {
    flex-direction: column;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-logo {
    width: min(478px, 68vw);
  }

  .hero h1 span {
    letter-spacing: 3px;
    font-size: 0.5em;
  }

  .hero-services {
    gap: 4px;
  }

  .hero-services span {
    font-size: 0.8rem;
  }

  .about-card,
  .service-card,
  .calculator-card,
  .calculator-result {
    padding: 28px 20px;
  }

  .calculator-form-grid {
    grid-template-columns: 1fr;
  }

  .timeline-content {
    padding: 20px 16px;
  }

  .membership-badge {
    padding: 20px 24px;
    flex-direction: column;
    text-align: center;
  }

  .contact-info h3 {
    font-size: 1.3rem;
  }
}
