/* Myhna Vistara | animations.css — Transitions, keyframes, motion
   Do not edit selectors — only values */

  @keyframes heroFadeUp{
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes heroFadeUpSm{
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .hero-left{
    position: relative;
    z-index: 2;
    width: 50%;
    max-width: 720px;
    padding: 0 72px;
    color: var(--white);
    animation: heroFadeUp 1s ease 0.3s both;
  }

  .hero-h1{
    font-family: var(--display);
    font-size: clamp(60px, 6.6vw, 96px);
    font-weight: 300;
    line-height: 1.05;
    color: var(--white);
    margin: 0 0 0;
    letter-spacing: -0.01em;
  }
  .hero-h1 span{ display: block; }
  .hero-h1 .italic{
    font-style: italic;
    color: var(--gold);
    font-weight: 300;
  }

  .hero-rule{
    width: 48px;
    height: 2px;
    background: var(--gold);
    margin: 28px 0;
  }

  .hero-sub{
    font-family: var(--body);
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.72);
    line-height: 1.85;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    max-width: 400px;
    margin: 0 0 36px;
  }

  .trust-row{
    display:flex; flex-wrap:wrap; gap: 12px;
  }
  .trust-pill{
    border: 1px solid var(--gold-border);
    background: rgba(210, 171, 103, 0.10);
    padding: 10px 20px;
    font-family: var(--body);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  @keyframes scrollDrop{
    0%   { top: -12px; opacity: 0; }
    30%  { opacity: 1; }
    100% { top: 40px; opacity: 0; }
  }

  @keyframes tbPulseScale {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.35); }
  }

  @keyframes distIn{
    to { opacity: 1; transform: translateY(0); }
  }
  .dist-time{
    font-family: var(--display);
    font-size: clamp(48px, 4.4vw, 56px);
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1;
    letter-spacing: -0.02em;
  }
  .dist-time .unit{
    font-family: var(--body);
    font-size: 14px;
    color: var(--text-ghost);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-left: 10px;
    vertical-align: middle;
  }
  .dist-place{
    font-family: var(--body);
    font-size: 17px;
    font-weight: 300;
    color: var(--text-faint);
    margin-top: 8px;
  }
  .dist-rule{
    width: 28px; height: 1px;
    background: rgba(175,129,46,0.4);
    margin: 14px 0 0;
  }

  .disclaimer{
    text-align: center;
    margin-top: 44px;
    font-family: var(--body);
    font-size: 13px;
    color: var(--gold);
    display:flex; align-items:center; justify-content:center; gap:8px;
    font-weight: 400;
  }
  .disclaimer svg{ width:14px; height:14px; }

  /* footer hairline */
  .hr-fill{ height: 80px; background: var(--cream); }

  @keyframes popupFadeIn  { from{opacity:0} to{opacity:1} }
  @keyframes popupFadeOut { from{opacity:1} to{opacity:0} }
  @keyframes popupScaleIn { from{transform:scale(0.85);opacity:0} to{transform:scale(1);opacity:1} }
  @keyframes popupScaleOut{ from{transform:scale(1);opacity:1}  to{transform:scale(0.9);opacity:0} }
  @keyframes popupSlideUp  { from{transform:translateY(100%)} to{transform:translateY(0)} }
  @keyframes popupSlideDown{ from{transform:translateY(0)}    to{transform:translateY(100%)} }

  /* Static popup — hidden by default; shown via is-open class from ui.js */
  .popup-overlay{
    position:fixed; inset:0; z-index:9999;
    background:rgba(0,0,0,0.6);
    display:none; align-items:center; justify-content:center;
    padding:16px;
  }
  .popup-overlay.is-open{
    display:flex;
    animation:popupFadeIn 300ms ease-out forwards;
  }
  .popup-overlay.is-open .popup-modal{
    animation:popupScaleIn 300ms ease-out forwards;
  }
  .popup-overlay.popup-closing{
    display:flex;
    animation:popupFadeOut 200ms ease-in forwards;
  }
  .popup-overlay.popup-closing .popup-modal{ animation:popupScaleOut 200ms ease-in forwards; }
  .popup-modal{
    position:relative; background:var(--popup-card-bg);
    border-radius:12px; border-top:4px solid var(--gold-accent);
    width:480px; max-width:90vw; max-height:90vh; overflow-y:auto;
    padding:36px 32px 28px;
    /* animation applied via .popup-overlay.is-open .popup-modal above */
  }
  .popup-close{
    position:absolute; top:14px; right:16px;
    width:32px; height:32px; min-width:44px; min-height:44px;
    background:none; border:none; cursor:pointer;
    font-size:24px; color:var(--navy-dark); line-height:1;
    display:flex; align-items:center; justify-content:center;
    border-radius:4px;
  }
  .popup-close:hover{ background:rgba(10,31,68,0.06); }
  .popup-eyebrow{
    font-family:Lato,sans-serif; font-size:11px; font-weight:700;
    letter-spacing:0.12em; color:var(--gold-accent); text-transform:uppercase;
    margin-bottom:10px;
  }
  .popup-headline{
    font-family:'Crimson Pro',serif; font-size:24px; font-weight:600;
    color:var(--navy-dark); margin:0 0 8px;
  }
  .popup-sub{
    font-family:Lato,sans-serif; font-size:14px; color:var(--text-muted);
    line-height:1.55; margin:0 0 20px;
  }
  .popup-form{ display:flex; flex-direction:column; gap:12px; }
  .popup-field{ position:relative; }
  .popup-field input,
  .popup-field select{
    width:100%; box-sizing:border-box; padding:11px 14px;
    border:1px solid #D8D0C0; border-radius:6px;
    font-family:Lato,sans-serif; font-size:14px; color:#333;
    background:var(--white); outline:none; transition:border-color .15s;
  }
  .popup-field input:focus,
  .popup-field select:focus{ border-color:var(--gold-accent); }
  .popup-field.has-error input,
  .popup-field.has-error select{ border-color:var(--color-error); }
  .popup-field .field-error{
    display:none; font-size:11px; color:var(--color-error);
    margin-top:4px; padding-left:2px;
  }
  .popup-field .field-error.show{ display:block; }
  .popup-phone-row{ display:flex; align-items:center; gap:8px; }
  .popup-phone-row input{ flex:1; }
  .popup-dial{
    font-family:Lato,sans-serif; font-size:14px; color:#333;
    background:#f0ece4; border:1px solid #D8D0C0; border-radius:6px;
    padding:11px 10px; white-space:nowrap; flex-shrink:0;
  }
  .popup-dnd{
    font-size:10px; color:var(--text-ghost); line-height:1.5; margin:0;
  }
  .popup-submit{
    width:100%; padding:14px; background:var(--navy-dark); color:var(--white);
    border:none; border-radius:var(--btn-radius); cursor:pointer;
    font-family:Lato,sans-serif; font-size:15px; font-weight:700;
    letter-spacing:0.04em; transition:background .2s;
  }
  .popup-submit:hover{ background:#14305e; }
  .popup-submit:disabled{ opacity:.7; cursor:not-allowed; }
  .popup-wa{
    display:block; text-align:center;
    font-family:Lato,sans-serif; font-size:13px; color:var(--navy-dark);
    margin-top:14px; text-decoration:none;
  }
  .popup-wa:hover{ text-decoration:underline; }
  .popup-trust{
    display:flex; justify-content:center; gap:16px; flex-wrap:wrap;
    margin-top:16px; padding-top:14px;
    border-top:1px solid rgba(0,0,0,0.08);
    font-family:Lato,sans-serif; font-size:11px; color:var(--text-dim);
  }


@keyframes vSpin { to { transform: rotate(360deg); } }
