/*
Theme Name: Vitanex
Theme URI: https://vitanex.app
Author: Jay Bhatt
Author URI: https://vitanex.app
Description: Landing page theme for Vitanex — a family health management app connecting caregivers and parents. Care, connected.
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: vitanex
Tags: landing-page, custom-colors, one-page
*/

  :root {
    --primary: #0E7C6B;
    --dark-primary: #004D40;
    --accent: #00796B;
    --border: #B2DFDB;
    --subtitle: #546E7A;
    --hint: #B0BEC5;
    --card: #FFFFFF;
    --icon-bg: #E0F2F1;
    --grad-start: #E0F7FA;
    --grad-end: #FFF3E0;
    --shadow-light: 0 4px 10px rgba(0,0,0,0.05);
    --shadow-medium: 0 6px 18px rgba(0,0,0,0.10);
    --radius-sm: 16px;
    --radius-md: 20px;
  }

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

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-primary);
    background: linear-gradient(135deg, var(--grad-start), var(--grad-end));
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  .wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
span.brand-mark {
    margin-top: 10px;
}
  /* ---------- NAV ---------- */
  .site-header {
    position: sticky; top: 0; z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.55);
    border-bottom: 1px solid rgba(178,223,219,0.5);
  }
  nav { display: flex; align-items: center; justify-content: space-between; height: 85px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; color: var(--dark-primary); text-decoration: none; }
  /*.brand-mark {*/
  /*  width: 38px; height: 38px; border-radius: 12px;*/
  /*  background: var(--icon-bg);*/
  /*  display: grid; place-items: center;*/
  /*  color: var(--accent);*/
  /*}*/
  /*.brand-mark svg { width: 22px; height: 22px; }*/
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-links a { text-decoration: none; color: var(--subtitle); font-size: 15px; font-weight: 500; transition: color .2s; }
  .nav-links a:hover { color: var(--primary); }
  .nav-cta {
    background: var(--primary); color: #fff !important;
    padding: 10px 22px; border-radius: 30px; font-weight: 600 !important;
    box-shadow: 0 8px 20px rgba(14,124,107,0.25);
    transition: transform .2s, box-shadow .2s;
  }
  .nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(14,124,107,0.32); }
  .nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--dark-primary); }

  /* ---------- HERO ---------- */
  .hero { padding: 90px 0 70px; }
  .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--card); color: var(--accent);
    padding: 8px 16px; border-radius: 30px; font-size: 13px; font-weight: 600;
    box-shadow: var(--shadow-light); margin-bottom: 24px;
  }
  .eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
  .hero h1 { font-size: 52px; line-height: 1.12; font-weight: 700; color: var(--dark-primary); letter-spacing: -0.5px; }
  .hero h1 .hl { color: var(--primary); }
  .hero p.sub { font-size: 18px; color: var(--subtitle); margin: 22px 0 34px; max-width: 520px; }
  .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
  .btn-primary {
    background: var(--primary); color: #fff; border: none;
    padding: 17px 32px; border-radius: 30px; font-family: inherit;
    font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 24px rgba(14,124,107,0.28);
    transition: transform .2s, box-shadow .2s;
  }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(14,124,107,0.35); }
  .btn-ghost {
    background: var(--card); color: var(--accent); border: 1.5px solid var(--border);
    padding: 17px 30px; border-radius: 30px; font-family: inherit;
    font-size: 16px; font-weight: 600; cursor: pointer; text-decoration: none;
    display: inline-flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow-light); transition: transform .2s, border-color .2s;
  }
  .btn-ghost:hover { transform: translateY(-2px); border-color: var(--primary); }

  /* ---------- HERO PHOTO ---------- */
  .photo-stage { position: relative; display: grid; place-items: center; }
  .photo-frame {
    position: relative; width: 100%; max-width: 520px; aspect-ratio: 3 / 2;
    border-radius: 28px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,77,64,0.22), 0 8px 20px rgba(0,0,0,0.08);
    border: 6px solid #fff;
    /* fallback gradient shows if the photo fails to load */
    background: linear-gradient(160deg, var(--icon-bg), var(--grad-end));
  }
  .photo-frame img {
    width: 100%; height: 100%; object-fit: cover; display: block;
  }
  /* floating accent chip on the photo */
  .photo-chip {
    position: absolute; left: 18px; bottom: 18px;
    display: flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(6px);
    padding: 12px 16px; border-radius: 16px; box-shadow: var(--shadow-medium);
  }
  .photo-chip .chip-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--icon-bg); display: grid; place-items: center; color: var(--primary); flex-shrink: 0; }
  .photo-chip .chip-ic svg { width: 20px; height: 20px; }
  .photo-chip .chip-txt b { display: block; font-size: 14px; font-weight: 600; color: var(--dark-primary); line-height: 1.2; }
  .photo-chip .chip-txt span { font-size: 12px; color: var(--subtitle); }

  /* ---------- SECTION SHELL ---------- */
  section { padding: 80px 0; }
  .sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
  .sec-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; }
  .sec-head h2 { font-size: 38px; font-weight: 700; color: var(--dark-primary); letter-spacing: -0.4px; }
  .sec-head p { font-size: 17px; color: var(--subtitle); margin-top: 14px; }

  /* ---------- EMPATHY ---------- */
  .empathy { position: relative; }
  .empathy-inner { max-width: 980px; margin: 0 auto; }
  .empathy-head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
  .empathy-head h2 { font-size: 38px; font-weight: 700; color: var(--dark-primary); letter-spacing: -0.4px; }
  .empathy-head p { font-size: 17px; color: var(--subtitle); margin-top: 14px; }
  /* the three worries */
  .worries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
  .worry {
    background: var(--card); border-radius: var(--radius-md); padding: 28px 24px;
    box-shadow: var(--shadow-light); border: 1px solid rgba(178,223,219,0.4);
    position: relative;
  }
  .worry .qmark {
    font-size: 30px; font-weight: 700; color: var(--border); line-height: 1;
    margin-bottom: 12px; font-family: Georgia, serif;
  }
  .worry p { font-size: 16px; color: var(--dark-primary); font-weight: 500; }
  /* resolution bar */
  .resolution {
    display: flex; align-items: center; gap: 20px;
    background: linear-gradient(135deg, var(--dark-primary), var(--accent));
    border-radius: var(--radius-md); padding: 30px 36px;
    box-shadow: 0 18px 40px rgba(0,77,64,0.24);
  }
  .resolution .res-ic {
    flex-shrink: 0; width: 54px; height: 54px; border-radius: 16px;
    background: rgba(255,255,255,0.15); display: grid; place-items: center; color: #fff;
  }
  .resolution .res-ic svg { width: 28px; height: 28px; }
  .resolution p { font-size: 18px; color: #fff; line-height: 1.5; }
  .resolution p b { font-weight: 600; }

  /* ---------- STEPS ---------- */
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .step {
    background: var(--card); border-radius: var(--radius-md); padding: 34px 28px;
    box-shadow: var(--shadow-light); border: 1px solid rgba(178,223,219,0.4);
    position: relative; transition: transform .25s, box-shadow .25s;
  }
  .step:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
  .step-num {
    width: 44px; height: 44px; border-radius: 14px; background: var(--icon-bg);
    color: var(--primary); font-weight: 700; font-size: 18px;
    display: grid; place-items: center; margin-bottom: 20px;
  }
  .step h3 { font-size: 19px; font-weight: 600; color: var(--dark-primary); margin-bottom: 8px; }
  .step p { font-size: 15px; color: var(--subtitle); }
  .step-line { position: absolute; top: 56px; right: -24px; width: 24px; height: 2px; background: var(--border); }
  .steps .step:last-child .step-line { display: none; }

  /* ---------- FEATURES ---------- */
  .features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .feat {
    background: var(--card); border-radius: var(--radius-md); padding: 32px 28px;
    box-shadow: var(--shadow-light); border: 1px solid rgba(178,223,219,0.4);
    transition: transform .25s, box-shadow .25s;
  }
  .feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-medium); }
  .feat-icon {
    width: 56px; height: 56px; border-radius: 16px; background: var(--icon-bg);
    display: grid; place-items: center; color: var(--accent); margin-bottom: 20px;
  }
  .feat-icon svg { width: 28px; height: 28px; }
  .feat h3 { font-size: 19px; font-weight: 600; color: var(--dark-primary); margin-bottom: 8px; }
  .feat p { font-size: 15px; color: var(--subtitle); }

  /* ---------- FINAL CTA ---------- */
  .final-cta { text-align: center; }
  .cta-card {
    background: linear-gradient(135deg, var(--dark-primary), var(--accent));
    border-radius: 28px; padding: 64px 48px; max-width: 880px; margin: 0 auto;
    box-shadow: 0 24px 50px rgba(0,77,64,0.28); position: relative; overflow: hidden;
  }
  .cta-card::before { content: ""; position: absolute; top: -60px; right: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,0.07); }
  .cta-card::after { content: ""; position: absolute; bottom: -80px; left: -50px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,243,224,0.08); }
  .cta-card h2 { font-size: 38px; font-weight: 700; color: #fff; position: relative; }
  .cta-card p { font-size: 18px; color: rgba(255,255,255,0.85); margin: 16px 0 32px; position: relative; }
  .cta-card .btn-primary { background: #fff; color: var(--accent); position: relative; box-shadow: 0 12px 28px rgba(0,0,0,0.18); }
  .cta-card .btn-primary:hover { box-shadow: 0 16px 32px rgba(0,0,0,0.24); }

  /* ---------- FOOTER ---------- */
  .site-footer { padding: 56px 0 40px; border-top: 1px solid rgba(178,223,219,0.5); }
  .foot-grid { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
  .foot-links { display: flex; gap: 28px; flex-wrap: wrap; }
  .foot-links a { text-decoration: none; color: var(--subtitle); font-size: 15px; transition: color .2s; }
  .foot-links a:hover { color: var(--primary); }
  .foot-tag { font-size: 14px; color: var(--hint); margin-top: 18px; text-align: center; width: 100%; }

  /* ---------- REVEAL ANIM ---------- */
  .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .step:hover, .feat:hover, .btn-primary:hover, .btn-ghost:hover, .nav-cta:hover { transform: none; }
  }

  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 920px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero p.sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .eyebrow { margin-left: auto; margin-right: auto; }
    .steps, .features { grid-template-columns: 1fr 1fr; }
    .worries { grid-template-columns: 1fr; }
    .step-line { display: none; }
  }
  @media (max-width: 680px) {
    .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(12px); flex-direction: column; gap: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height .3s ease; border-bottom: 1px solid var(--border); }
    .nav-links.open { max-height: 360px; padding: 12px 0; }
    .nav-links a { padding: 14px 24px; width: 100%; }
    .nav-cta { margin: 8px 24px; text-align: center; }
    .nav-toggle { display: block; }
    .hero { padding: 56px 0 50px; }
    .hero h1 { font-size: 38px; }
    .sec-head h2, .empathy-card h2, .cta-card h2 { font-size: 28px; }
    section { padding: 60px 0; }
    .steps, .features { grid-template-columns: 1fr; }
    .empathy-head h2 { font-size: 28px; }
    .resolution { flex-direction: column; text-align: center; padding: 32px 24px; }
    .empathy-card, .cta-card { padding: 44px 28px; }
    .foot-grid { flex-direction: column; text-align: center; }
  }

/* ---------- WORDPRESS ADMIN BAR GUARD ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
