/* ═══════════════════════════════════════════
   VERTO — SHARED DESIGN SYSTEM v1.0
   Off-white · Navy · Blue · Playfair + Jakarta
   Use this in every page via <link> tag
═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg:        #FAFAF7;
  --bg2:       #F2F1EC;
  --bg3:       #E8E5DC;
  --white:     #FFFFFF;
  --navy:      #0D1B3E;
  --blue:      #1847C8;
  --blue-lt:   #EBF0FD;
  --blue-ll:   #F4F6FE;
  --text:      #0D1B3E;
  --text2:     #4A5568;
  --text3:     #8896A8;
  --border:    #E2DFD6;
  --border2:   #CBC8BE;
  --green:     #16A34A;
  --green-lt:  #DCFCE7;
  --amber:     #D97706;
  --amber-lt:  #FEF3C7;
  --red:       #DC2626;
  --red-lt:    #FEE2E2;
  --shadow-sm: 0 1px 4px rgba(13,27,62,.05);
  --shadow-md: 0 4px 20px rgba(13,27,62,.08);
  --shadow-lg: 0 12px 48px rgba(13,27,62,.10);
  --r:         10px;
  --r-lg:      16px;
  --r-xl:      24px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: 'Playfair Display', serif; line-height: 1.12; color: var(--navy); }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; }
img { max-width: 100%; display: block; }

/* ── SHARED NAV ── */
.v-nav {
  position: sticky; top: 0; z-index: 200;
  height: 66px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
  background: rgba(250,250,247,.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,223,214,.7);
  transition: box-shadow .3s;
}
.v-nav.scrolled { box-shadow: 0 2px 20px rgba(13,27,62,.06); }
.v-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--navy);
  letter-spacing: -.02em; text-decoration: none;
}
.v-logo-mark {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--navy); display: flex; align-items: center; justify-content: center;
}
.v-logo-v { font-style: italic; font-size: 18px; color: #fff; font-family: 'Playfair Display', serif; }
.v-nav-links { display: flex; gap: 32px; }
.v-nav-links a { font-size: 13.5px; font-weight: 500; color: var(--text2); transition: color .15s; }
.v-nav-links a:hover, .v-nav-links a.active { color: var(--navy); }
.v-nav-right { display: flex; gap: 8px; align-items: center; }
.v-live {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--text3);
  padding: 5px 12px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--white);
}
.v-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; animation: vldot 2s infinite; }
@keyframes vldot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.v-btn {
  font-size: 13.5px; font-weight: 600; padding: 8px 18px;
  border-radius: var(--r); transition: all .15s; border: none;
}
.v-btn-ghost { background: transparent; color: var(--text2); border: 1.5px solid var(--border2); }
.v-btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.v-btn-solid { background: var(--navy); color: #fff; }
.v-btn-solid:hover { background: #162040; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(13,27,62,.2); }
.v-btn-blue { background: var(--blue); color: #fff; }
.v-btn-blue:hover { background: #1340b0; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(24,71,200,.3); }

/* ── SHARED FOOTER ── */
.v-footer { background: var(--navy); padding: 64px 52px 32px; }
.v-footer-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.vf-logo { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.vf-logo-mark { width: 30px; height: 30px; border-radius: 7px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.vf-logo-v { font-style: italic; font-size: 16px; color: rgba(255,255,255,.7); }
.vf-desc { font-size: 13.5px; color: rgba(255,255,255,.35); line-height: 1.7; max-width: 260px; }
.vf-col h4 { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 16px; }
.vf-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,.45); margin-bottom: 9px; transition: color .15s; }
.vf-col a:hover { color: #fff; }
.vf-bottom { padding-top: 26px; border-top: 1px solid rgba(255,255,255,.07); display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: rgba(255,255,255,.25); flex-wrap: wrap; gap: 12px; }
.vf-links { display: flex; gap: 20px; }
.vf-links a { color: rgba(255,255,255,.25); transition: color .15s; }
.vf-links a:hover { color: rgba(255,255,255,.6); }

/* ── PAGE HEADERS ── */
.v-page-hero {
  padding: 72px 52px 64px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}
.v-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 14px;
}
.v-page-h { font-size: clamp(32px,4vw,48px); font-weight: 800; letter-spacing: -.025em; margin-bottom: 14px; }
.v-page-sub { font-size: 17px; color: var(--text2); line-height: 1.75; max-width: 560px; }

/* ── SHARED COMPONENTS ── */
.v-section { padding: 80px 52px; }
.v-section-inner { max-width: 1240px; margin: 0 auto; }
.v-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; transition: all .2s; }
.v-card:hover { box-shadow: var(--shadow-md); }
.v-badge { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.v-badge-blue { background: var(--blue-lt); color: var(--blue); }
.v-badge-green { background: var(--green-lt); color: var(--green); }
.v-badge-amber { background: var(--amber-lt); color: var(--amber); }
.v-badge-navy { background: var(--navy); color: #fff; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.v-reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.v-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:1024px) { .v-nav-links{display:none} .v-footer-top{grid-template-columns:1fr 1fr} }
@media(max-width:768px) { .v-nav{padding:0 20px} .v-section{padding:56px 20px} .v-page-hero{padding:48px 20px} .v-footer{padding:48px 20px 24px} .v-footer-top{grid-template-columns:1fr} }


/* ════════════════════════════════════
   VERTO — MOBILE & APP-LIKE STYLES
   Phone-first. Tap-friendly. 
════════════════════════════════════ */

/* Mobile hamburger menu */
.v-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: transparent;
  border: none;
}
.v-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all .25s;
}

/* Mobile nav drawer */
.v-mobile-nav {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250,250,247,.98);
  backdrop-filter: blur(20px);
  z-index: 199;
  flex-direction: column;
  padding: 24px 28px;
  gap: 0;
  overflow-y: auto;
  border-top: 1px solid var(--border);
}
.v-mobile-nav.open { display: flex; }
.v-mobile-nav a {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}
.v-mobile-nav a:last-of-type { border: none; }
.v-mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}
.v-mobile-live {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text3);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

@media(max-width:1024px) {
  .v-nav-links { display: none !important; }
  .v-hamburger { display: flex; }
  .v-live { display: none; }
}

@media(max-width:768px) {
  /* Nav */
  .v-nav { padding: 0 16px; height: 58px; }
  .v-logo { font-size: 20px; }
  .v-logo-mark { width: 30px; height: 30px; }
  .v-btn { font-size: 13px; padding: 7px 14px; }
  .v-btn-ghost { display: none; }

  /* Page headers */
  .v-page-hero { padding: 40px 20px 36px; }
  .v-page-h { font-size: 28px; }
  .v-page-sub { font-size: 15px; }

  /* Sections */
  .v-section { padding: 48px 20px; }
  .v-section-inner { padding: 0; }

  /* Footer */
  .v-footer { padding: 48px 20px 100px; }
  .v-footer-top { grid-template-columns: 1fr !important; gap: 32px; }
  .vf-desc { max-width: 100%; }

  /* Cards */
  .v-card { padding: 20px; }
}

/* Bottom navigation bar (app-like) — shows on mobile */
.v-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(250,250,247,.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 190;
  align-items: center;
  justify-content: space-around;
  padding: 0 8px;
  box-shadow: 0 -4px 20px rgba(13,27,62,.07);
}
.v-bn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all .15s;
  flex: 1;
  max-width: 80px;
  background: transparent;
  border: none;
  text-decoration: none;
  color: var(--text3);
}
.v-bn-item.active { color: var(--navy); background: var(--bg2); }
.v-bn-item:hover { color: var(--navy); }
.v-bn-icon { font-size: 20px; line-height: 1; }
.v-bn-label { font-size: 10px; font-weight: 600; letter-spacing: .02em; font-family: 'Plus Jakarta Sans', sans-serif; }

/* Add bottom padding on mobile so content not hidden behind bottom nav */
@media(max-width:768px) {
  .v-bottom-nav { display: flex; }
  body { padding-bottom: 64px; }
  /* Increase touch targets */
  .f-btn, .v-btn, button { min-height: 40px; }
  .c-card { min-height: 200px; }
  /* Readable font on mobile */
  body { font-size: 15px; }
  h1 { font-size: clamp(26px, 7vw, 48px) !important; }
  h2 { font-size: clamp(22px, 5.5vw, 36px) !important; }
}

/* Smooth scroll on iOS */
* { -webkit-overflow-scrolling: touch; }

/* No horizontal scroll */
html, body { overflow-x: hidden; max-width: 100vw; }

/* Touch-friendly inputs */
@media(max-width:768px) {
  input, select, textarea {
    font-size: 16px !important; /* Prevents iOS zoom */
    min-height: 44px;
  }
}

/* ══════════════════════════════════════
   LOADING STATES + SKELETONS + TOASTS
══════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--bg2) 25%, var(--bg3) 50%, var(--bg2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r);
}
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.skeleton-line { height: 14px; margin-bottom: 8px; }
.skeleton-line.short { width: 40%; }
.skeleton-line.medium { width: 65%; }
.skeleton-line.full { width: 100%; }
.skeleton-circle { width: 44px; height: 44px; border-radius: 50%; }
.skeleton-card { height: 120px; width: 100%; margin-bottom: 14px; }

/* Spinner */
.v-spinner {
  width: 20px; height: 20px;
  border: 2.5px solid var(--border2);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* AI typing indicator */
.typing-dots {
  display: flex; gap: 4px; align-items: center; padding: 8px 0;
}
.typing-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); opacity: .4;
  animation: typingBounce .8s ease-in-out infinite;
}
.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }
@keyframes typingBounce { 0%,80%,100%{transform:scale(0.7);opacity:.4} 40%{transform:scale(1);opacity:1} }

/* Toast notifications */
.v-toast {
  position: fixed; top: 20px; right: 20px; z-index: 9999;
  background: var(--navy); color: #fff;
  padding: 12px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 20px rgba(13,27,62,.25);
  max-width: 320px; line-height: 1.4;
  animation: toastIn .3s ease;
  display: flex; align-items: flex-start; gap: 8px;
}
.v-toast.success { background: #16A34A; }
.v-toast.warning { background: #D97706; }
.v-toast.error   { background: #DC2626; }
@keyframes toastIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* Empty states */
.v-empty {
  text-align: center; padding: 48px 24px;
}
.v-empty-icon { font-size: 44px; margin-bottom: 14px; }
.v-empty-title { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.v-empty-body  { font-size: 14px; color: var(--text2); line-height: 1.65; max-width: 320px; margin: 0 auto 20px; }

/* Page loading overlay */
.page-loader {
  position: fixed; inset: 0; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; transition: opacity .3s;
}
.page-loader.hide { opacity: 0; pointer-events: none; }
.loader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px; font-weight: 700; color: var(--navy);
  display: flex; align-items: center; gap: 10px;
}
.loader-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-style: italic; font-size: 18px; color: #fff;
}
