/* OVA Home website - shared styles (header, footer, text pages). Home page extras: home.css + home.js.
   Colours match the app (lib/constant/app_color.dart): navy #103D5E, green #23D1A5. */
:root {
  --navy: #103d5e;
  --navy-dark: #0b2c44;
  --night: #06111a;
  --night-2: #0a1a27;
  --teal: #23d1a5;
  --teal-soft: rgba(35, 209, 165, 0.16);
  --sky: #7cc4ef;
  --ink: #1b2733;
  --muted: #5b6b78;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --radius: 16px;
  --max: 1160px;
  --text-max: 760px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

/* ---------- header (dark glass, same on every page) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 17, 26, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 10px; display: block; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.brand span { font-weight: 700; font-size: 1.12rem; letter-spacing: 0.2px; }
.brand:hover { color: #fff; }
.nav { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.nav a { position: relative; text-decoration: none; color: rgba(255, 255, 255, 0.72); font-size: 0.95rem; padding: 4px 0; transition: color 0.2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--teal); color: #04241b; font-weight: 600; }
.nav .nav-cta::after { display: none; }
.nav .nav-cta:hover { color: #04241b; background: #3ee0b7; }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: var(--navy); color: #fff; text-decoration: none; font-weight: 600;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
}
.btn:hover { background: var(--navy-dark); color: #fff; transform: translateY(-2px); }
.btn.secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn.secondary:hover { background: var(--navy); color: #fff; }

/* ---------- text pages (policy, terms, support, delete account) ---------- */
.page-hero {
  background:
    radial-gradient(600px 240px at 85% 0%, rgba(35, 209, 165, 0.22), transparent 70%),
    radial-gradient(700px 300px at 0% 100%, rgba(124, 196, 239, 0.18), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero .wrap { max-width: var(--text-max); }
.page-hero .eyebrow { color: var(--teal); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 10px; }
.page-hero h1 { font-size: 2.4rem; line-height: 1.15; margin: 0 0 10px; letter-spacing: -0.5px; animation: rise 0.8s var(--ease) both; }
.page-hero .meta { color: rgba(255, 255, 255, 0.66); margin: 0; animation: rise 0.8s 0.1s var(--ease) both; }

.page { padding: 48px 0 72px; }
.page .wrap { max-width: var(--text-max); }
.page h2 { font-size: 1.3rem; color: var(--navy); margin: 40px 0 10px; scroll-margin-top: 90px; }
.page h3 { font-size: 1.05rem; margin: 24px 0 6px; }
.page li { margin-bottom: 6px; }
.page table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 0.95rem; }
.page th, .page td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.page th { background: var(--bg-soft); color: var(--navy); }
.table-scroll { overflow-x: auto; }
.note { background: var(--bg-soft); border-left: 4px solid var(--teal); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.contact-box {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 16px 0;
  background: linear-gradient(180deg, #fff, var(--bg-soft));
}
.contact-box p { margin: 4px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff;
  transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(16, 61, 94, 0.1); border-color: rgba(35, 209, 165, 0.5); }
.contact-card h3 { margin: 0 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.contact-card p { margin: 0; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 10px 0; background: #fff; transition: border-color 0.2s; }
.faq details[open] { border-color: rgba(35, 209, 165, 0.6); }
.faq summary { cursor: pointer; padding: 15px 0; font-weight: 600; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--teal); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: #9fb3c2; padding: 56px 0 28px; font-size: 0.93rem; position: relative; }
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(35, 209, 165, 0.6), transparent);
}
.site-footer a { color: #e6eef4; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .hours { margin: 12px 0 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: #fff; font-weight: 700; }
.footer-brand img { width: 32px; height: 32px; border-radius: 9px; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 36px; padding-top: 18px; color: #6f8596; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- small screens ---------- */
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .nav { gap: 18px; }
  .nav .nav-cta { display: none; }
  .page-hero { padding: 44px 0 40px; }
  .page-hero h1 { font-size: 1.8rem; }
  /* tables become stacked cards */
  .page table, .page tbody, .page tr, .page td { display: block; width: 100%; }
  .page thead { display: none; }
  .page tr { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; padding: 4px 0; }
  .page td { border-bottom: 0; padding: 6px 14px; }
  .page td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--navy); font-size: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- WhatsApp button (every page, bottom right) ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 80; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45), 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: waPulse 2.4s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 14px 34px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 34px; height: 34px; }
.wa-float svg path:nth-child(2) { fill: #25d366; }
.wa-tip {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%) translateX(8px); white-space: nowrap;
  padding: 7px 12px; border-radius: 10px; background: #fff; color: #12202c; font-size: 0.88rem; font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s;
}
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: translateY(-50%); }
@media (max-width: 600px) { .wa-float { right: 14px; bottom: 14px; width: 54px; height: 54px; } }

/* company name, shown once in small text on the legal pages */
.legal-entity { margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--muted); }
