:root{
  --vf-green: #7ac142;
  --vf-ink: #0f1720;
  --vf-bg: #ffffff;
  --border: #eef2f7;

  --step-h1: clamp(2.6rem, 6.6vw, 6.6rem);
  --step-h2: clamp(1.2rem, 2.4vw, 2.1rem);

  --hero-min-h: 92vh;
}

/* Base */
*,*::before,*::after{ box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--vf-bg);
  color: var(--vf-ink);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }

/* Header & Navigation */
.main-header {
  position: absolute; top: 0; left: 0; width: 100%; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 30px;
  background: rgba(0, 0, 0, 0.1); backdrop-filter: blur(5px);
}
.vivafit-logo { width: 160px; height: auto; }
.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: #fff; font-weight: 700; font-size: 1rem; padding: 0.5rem 0; position: relative; transition: color .3s;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background-color: var(--vf-green); transition: width .3s ease-in-out;
}
.main-nav a:hover { color: var(--vf-green); }
.main-nav a:hover::after { width: 100%; }
.menu-toggle { display: none; cursor: pointer; }
.menu-toggle .bar {
  display: block; width: 25px; height: 3px; margin: 5px auto; transition: all .3s ease-in-out; background-color: #fff;
}

/* Hero 1 */
.hero {
  position: relative; min-height: var(--hero-min-h); display: grid; place-items: center; isolation: isolate; overflow: hidden; text-align: left; padding: 0 1rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; background: url('https://vivafit.life/wp-content/uploads/2025/08/VIVAFIT-Gym1.webp') center/cover no-repeat; }
.hero__overlay { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.46), rgba(0,0,0,.46)); }
.hero-content { max-width: 900px; margin: 0 auto; color: #fff; padding-top: 80px; }
.hero-content h1 { font-weight: 800; font-size: var(--step-h1); margin: 0 0 1rem; letter-spacing: .005em; text-shadow: 0 3px 12px rgba(0,0,0,.32); }
.hero-content p { font-size: var(--step-h2); font-weight: 500; margin: 0 0 1.5rem; line-height: 1.5; text-shadow: 0 2px 8px rgba(0,0,0,.28); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { padding: .9rem 1.8rem; border-radius: 999px; font-weight: 700; border: none; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.btn-primary { background: var(--vf-green); color: #000; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid #fff; }

/* Divider */
.divider {
  background: #fff; color: var(--vf-green); display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 14px 16px; font-weight: 900; letter-spacing: .01em; font-size: clamp(1rem, 1.4vw, 1.25rem);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.divider img { width: 28px; height: auto; }

/* Hero 2 */
.hero-alt {
  position: relative; min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 3rem 1rem;
  background: url('https://vivafit.life/wp-content/uploads/2025/08/VF_EU.webp') center/cover no-repeat; isolation: isolate;
}
.hero-alt::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: -1; }
.hero-alt .hero-content { max-width: 760px; color: #fff; }
.hero-alt img { width: 80px; height: auto; margin: 0 auto 1rem; }
.hero-alt h1 { font-weight: 800; font-size: 2.4rem; margin: 0 0 1rem; letter-spacing: .004em; text-shadow: 0 3px 10px rgba(0,0,0,.3); }
.hero-alt p { font-size: 1.1rem; font-weight: 400; margin: 0 0 1.2rem; line-height: 1.6; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.hero-alt .stats { font-size: 1.2rem; font-weight: 600; margin: 1rem 0; }
.btn-contact { display: inline-flex; align-items: center; gap: .5rem; background: var(--vf-green); color: #fff; font-weight: 700; padding: .9rem 1.8rem; border: none; border-radius: 999px; cursor: pointer; box-shadow: 0 8px 22px rgba(122,193,66,.35); transition: transform .2s; }
.btn-contact:hover { transform: translateY(-2px); }

/* Elite Metrics */
.elite-metrics { background: #fff; color: var(--vf-ink); padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.elite-metrics h2 { text-align: center; margin: 0 0 32px; font-weight: 800; letter-spacing: .01em; font-size: clamp(1.8rem, 3vw, 3rem); }
.elite-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.elite-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 20px 16px; text-align: center; box-shadow: 0 10px 24px rgba(0,0,0,.04); transition: transform .18s, box-shadow .18s, border-color .18s; }
.elite-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.08); border-color: #e9e4d1; }
.elite-ring { --gold-2: #b8912d; --icon-filter: invert(79%) sepia(38%) saturate(472%) hue-rotate(9deg) brightness(96%) contrast(90%); width: 108px; height: 108px; margin: 0 auto 14px; border-radius: 999px; border: 2px solid var(--gold-2); display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(184,145,45,.12), inset 0 10px 26px rgba(0,0,0,.12); background: radial-gradient(ellipse at 50% 30%, rgba(227,193,90,.18), transparent 55%); }
.elite-ring img { width: 46px; height: 46px; filter: var(--icon-filter); }
.elite-value { font-weight: 700; font-size: clamp(1.05rem, 1.2vw, 1.35rem); letter-spacing: .005em; }
.elite-rule { width: 80%; height: 2px; margin: 12px auto 10px; border-radius: 2px; background: linear-gradient(90deg, transparent, #b8912d, transparent); }
.elite-label { font-size: .98rem; font-weight: 500; color: #475569; }

/* Innovator Cards */
.innovator { background: #fff; color: var(--vf-ink); padding: 72px 0 64px; }
.innovator h2 { margin: 0 0 10px; text-align: center; font-weight: 800; letter-spacing: .01em; font-size: clamp(1.8rem, 3vw, 3rem); }
.innovator .subtitle { text-align: center; color: #475569; max-width: 820px; margin: 0 auto 36px; font-weight: 500; line-height: 1.55; }
.innovator .cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.innovator .card { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 24px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s, border-color .2s; }
.innovator .card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.10); border-color: #e5f2da; }
.innovator .card-media { position: relative; aspect-ratio: 16/10; background-size: cover; background-position: center; }
.innovator .card-body { padding: 18px 16px 22px; text-align: left; }
.innovator .kicker { font-size: .95rem; font-weight: 700; color: var(--vf-green); margin: 0 0 4px; }
.innovator .card h3 { margin: 0 0 8px; font-size: 1.25rem; line-height: 1.35; font-weight: 800; letter-spacing: .005em; }
.innovator .card p { margin: 0; color: #334155; font-weight: 500; line-height: 1.6; }

/* Testimonials */
.vf-testimonials { background: #f8f9fa; padding: 72px 0; }
.vf-testimonials h2 { margin: 0 0 8px; text-align: center; font-weight: 800; letter-spacing: .01em; font-size: clamp(1.8rem, 3vw, 3rem); }
.vf-testimonials .subtitle { text-align: center; color: #475569; max-width: 70ch; margin: 0 auto 32px; font-weight: 500; line-height: 1.55; }
.vf-testimonials .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tcard { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 22px 20px; box-shadow: 0 10px 24px rgba(0,0,0,.06); display: flex; flex-direction: column; height: 100%; transition: transform .18s, box-shadow .18s, border-color .18s; }
.tcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0,0,0,.10); border-color: #e5f2da; }
.quote { margin: 0 0 18px; color: var(--vf-ink); font-weight: 500; line-height: 1.6; position: relative; }
.quote:before { content: "“"; position: absolute; left: -8px; top: -6px; font-size: 2.2rem; line-height: 1; color: var(--vf-green); opacity: .25; }
figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #a5d86a, #7ac142); color: #0b1b10; font-weight: 800; }
.name { font-weight: 800; }
.meta { font-size: .95rem; color: #475569; }
.badge { display: inline-block; margin-left: 6px; padding: .25rem .5rem; border-radius: 999px; background: rgba(122,193,66,.12); color: #3e5f1d; font-weight: 700; font-size: .8rem; }

/* Feature Sections */
.feature-section { padding: 72px 0; }
.feature-section h2 { margin: 0 0 10px; text-align: center; font-weight: 800; letter-spacing: .01em; font-size: clamp(1.8rem, 3vw, 3rem); }
.feature-section .subtitle { text-align: center; color: #475569; max-width: 820px; margin: 0 auto 36px; font-weight: 500; line-height: 1.55; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature-item { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background-color: rgba(122,193,66,.1); display: grid; place-items: center; }
.feature-icon img { width: 28px; height: 28px; }
.feature-content h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; }
.feature-content p { margin: 0; color: #334155; font-weight: 500; line-height: 1.6; }
.section-takeaway { text-align: center; margin-top: 48px; padding: 1.5rem; background-color: #f8f9fa; border-radius: 16px; border: 1px solid var(--border); }
.section-takeaway p { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--vf-ink); }
#investor-trust { background-color: #f8f9fa; }
#why-vivafit .feature-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
#why-vivafit .feature-item {
  background: #fff; padding: 20px; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: 0 10px 24px rgba(0,0,0,.04); flex-direction: column; align-items: center; text-align: center; transition: transform .2s, box-shadow .2s;
}
#why-vivafit .feature-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.08); }
#why-vivafit .feature-icon { margin-bottom: 12px; }

/* Video Section */
.video-section { background:#fafafa; padding:60px 20px; text-align:center; }
.video-title { font-size:28px; font-weight:700; color:#222; margin-bottom:15px; }
.video-desc { font-size:16px; color:#555; max-width:700px; margin:0 auto 30px; }
.video-frame-wrap {
  position:relative; max-width:900px; margin:0 auto; border-radius:20px; overflow:hidden; box-shadow:0 8px 25px rgba(0,0,0,0.15);
}
.primary-cta {
  margin-top:25px; display:inline-block; background:#ff4d6d; color:#fff; padding:12px 30px; border-radius:35px; text-decoration:none; font-weight:600; border:none;
  box-shadow:0 5px 15px rgba(255,77,109,0.4); transition:.3s;
}

/* Form */
.form-section { padding-top: 60px; }
.form-container { background: #fff; padding: 2rem; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.1); margin: 3rem auto; max-width: 800px; }
.form-container h2 { text-align: center; color: var(--vf-ink); margin-bottom: 1rem; }
.form-group { margin-bottom: 1rem; display: flex; flex-direction: column; }
.form-group label { font-weight: 600; margin-bottom: .3rem; }
.form-group input, .form-group select, .form-group textarea { padding: .75rem; border: 1px solid #ccc; border-radius: 6px; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--vf-green); box-shadow: 0 0 0 3px rgba(122, 193, 66, 0.25); outline: none; }
button[type=submit] { display: block; margin: 1rem auto 0; background: var(--vf-green); color: #fff; font-weight: 700; padding: .9rem 1.8rem; border: none; border-radius: 999px; cursor: pointer; transition: background-color .2s; }
button[type=submit]:hover { background: #5a9e31; }
.error-message { color: red; font-size: .85rem; height: 1rem; margin-top: 0.25rem; }
.form-status { text-align: center; margin-top: 1rem; font-weight: 600; }
.form-status.success { color: green; }
.form-status.error { color: red; }

/* WhatsApp FAB */
.wa-fab { position: fixed; right: 18px; bottom: 22px; z-index: 999; display: flex; align-items: center; gap: 10px; }
.wa-fab a { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 999px; background: #25D366; border: 1px solid rgba(0,0,0,.06); box-shadow: 0 10px 24px rgba(37,211,102,.35); transition: transform .2s, box-shadow .2s; animation: wa-pulse 2.6s infinite; }
.wa-fab a:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 36px rgba(37,211,102,.45); }
.wa-fab a:focus { outline: 3px solid rgba(37,211,102,.5); outline-offset: 3px; }
.wa-fab img { width: 34px; height: 34px; }
.wa-fab .label { background: #ffffff; color: var(--vf-ink); font-weight: 800; padding: .6rem .9rem; border-radius: 999px; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(0,0,0,.08); }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 14px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* === Existing input styles === */
input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
}

/* Error message styling */
.error-message {
  color: red;
  font-size: 12px;
  display: none;
  margin-top: 4px;
}

/* ✅ Add this new part here */
.invalid {
  border-color: red !important;
  box-shadow: 0 0 0 2px rgba(255, 0, 0, 0.2);
}

.mobile-center {
  text-align: left; /* default for desktop */
}

@media (max-width: 768px) {
  .mobile-center {
    text-align: center;
  }
}

/* === Media Queries or Footer styles start below this === */
@media (max-width: 768px) {
  /* responsive adjustments */
}

/* Responsive */
@media (max-width: 1100px) {
  .elite-grid, .innovator .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .vf-testimonials .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .main-nav {
    position: absolute; top: 80px; left: 0; right: 0; background: rgba(15, 23, 32, 0.95);
    flex-direction: column; align-items: center; padding: 2rem 0; gap: 1.5rem;
    transform: translateY(-150%); transition: transform .4s ease-in-out;
  }
  .main-nav.active { transform: translateY(0); }
  .menu-toggle { display: block; }
  .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .elite-grid, .innovator .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .vf-testimonials .grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-content h1, .hero-alt h1 { font-size: 2rem; text-align: center; }
  .hero-content p, .hero-alt p { font-size: 1rem; }
  .cta-row { justify-content: center; }
  .wa-fab a { width: 56px; height: 56px; }
  .wa-fab .label { display: none; }
}
@media (max-width: 520px) {
  .elite-grid, .innovator .cards { grid-template-columns: 1fr; }
  .elite-ring { width: 100px; height: 100px; }
  .elite-ring img { width: 42px; height: 42px; }
}

/* Footer */
.site-footer {
  background:#1a1a1a; padding:30px 20px; text-align:center; color:#f5f5f5; line-height:1.6;
}
.footer-links { margin:8px 0; font-size:15px; font-weight:500; }
.footer-pill {
  background:#ff4d6d; color:#fff; padding:12px 28px; border-radius:35px; font-weight:600; text-decoration:none; font-size:15px;
  box-shadow:0 5px 15px rgba(255,77,109,0.4); transition:all .3s ease;
}
.footer-copy { margin:10px 0; font-size:12px; color:#aaa; font-weight:400; }
