/* ============================================================
   marketing-v2-base.css
   Shared base rules common to ALL V2 marketing pages:
   home (/), /nri-owners, /rental-owners, /self-residing-owners

   Load this FIRST, before the page-specific file, in head_v2.php:

   <link href="<?= base_url('css/marketing-v2-base.css') ?>" rel="stylesheet">
   <link href="<?= base_url('css/page-' . $current_v2_slug . '.css') ?>" rel="stylesheet">

   This file only contains rules verified IDENTICAL across all four
   page <style> blocks (reset, body defaults, reveal-on-scroll
   animation, container). Anything that differs between pages
   (hero colors, section accents, card variants) stays in the
   page-specific file to avoid cross-page bleed, since several
   pages reuse the same class names with different values.
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink);
}

/* Reveal-on-scroll (identical pattern + JS across all 4 pages) */
.rev {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.rev.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .16s; }
.d3 { transition-delay: .24s; }
.d4 { transition-delay: .32s; }
.d5 { transition-delay: .40s; }

.tc { text-align: center; }
.white { color: var(--white) !important; }

/* Shared button skeleton — page files add color variants
   (.btn--green / .btn--amber / .btn--primary etc.) on top */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: var(--r-pill, 9999px);
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn--lg { font-size: 16px; padding: 16px 36px; }
.btn--sm { font-size: 13px; padding: 9px 20px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Shared nav skeleton */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13, 21, 38, .95);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 30px; width: auto; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .55); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-ctas { display: flex; gap: 10px; align-items: center; }
.nav-signin { font-size: 13.5px; font-weight: 500; color: rgba(255, 255, 255, .55); transition: color .2s; }
.nav-signin:hover { color: var(--white); }
@media (max-width: 768px) { .nav-links, .nav-signin { display: none; } }

/* Section nav (sticky sub-nav) skeleton — used on nri/rental/self pages */
.section-nav {
  position: sticky;
  top: 64px;
  z-index: 900;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  padding-top: 12px;
}
.section-nav-inner { display: flex; gap: 0; white-space: nowrap; }
.sn-link {
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.sn-link:hover { color: var(--blue); }
.sn-link.active { color: var(--blue); border-bottom-color: var(--blue); }

/* FAQ accordion skeleton — shared across all 4 pages and the
   toggleFaq() JS helper (see marketing-v2.js) */
.faq-list { display: flex; flex-direction: column; gap: 0; max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color .2s;
}
.faq-q:hover { color: var(--blue); }
.faq-q i { font-size: 1.1rem; color: var(--muted); flex-shrink: 0; transition: transform .25s; }
.faq-q.open i { transform: rotate(45deg); color: var(--blue); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .25s ease; }
.faq-a.open { max-height: 500px; padding-bottom: 18px; }
.faq-a p { font-size: 14px; color: var(--muted); line-height: 1.75; }

/* Footer skeleton */
.footer { background: #070d1a; padding: 52px 0 26px; border-top: 1px solid rgba(255, 255, 255, .05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.fbrand img { height: 28px; margin-bottom: 14px; }
.fbrand p { font-size: 12.5px; color: rgba(255, 255, 255, .38); line-height: 1.75; max-width: 250px; }
.fcol h6 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255, 255, 255, .4); margin-bottom: 14px; }
.fcol ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.fcol ul a { font-size: 13px; color: rgba(255, 255, 255, .4); transition: color .2s; }
.fcol ul a:hover { color: var(--white); }
.fbottom { border-top: 1px solid rgba(255, 255, 255, .05); padding-top: 22px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.fbottom p { font-size: 12px; color: rgba(255, 255, 255, .25); }
.socials { display: flex; gap: 14px; }
.socials a { color: rgba(255, 255, 255, .3); font-size: .95rem; transition: color .2s; }

.section { padding: 96px 0; }
.section--surf { background: var(--surf); }
.section--dark { background: var(--ink); }
.section--ink2 { background: var(--ink-2); }