/* =========================================================
   DV Investment Advisors — shared stylesheet
   ========================================================= */

:root {
  --navy-900: #0a1a33;
  --navy-800: #0d2145;
  --navy-700: #123059;
  --navy-600: #1b3f70;
  --gold-500: #c8a45c;
  --gold-400: #d8ba76;
  --gold-300: #e8d3a2;
  --ink: #16233a;
  --muted: #5c6a7e;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-softer: #eef2f8;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 51, .06), 0 4px 14px rgba(10, 26, 51, .05);
  --shadow-md: 0 10px 30px rgba(10, 26, 51, .10);
  --maxw: 1160px;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--gold-500); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy-900);
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 .6em;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; color: #33425a; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #dce6f4;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #b9c7dd; }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn--gold { background: var(--gold-500); color: var(--navy-900); }
.btn--gold:hover { background: var(--gold-400); color: var(--navy-900); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(200,164,92,.35); }
.btn--outline { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--outline:hover { border-color: var(--gold-400); color: var(--gold-300); }
.btn--ghost { border-color: var(--line); color: var(--navy-700); background: #fff; }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--navy-900); transform: translateY(-2px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__mark {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .02em;
  box-shadow: inset 0 0 0 1px rgba(200,164,92,.35);
}
.brand__text { line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 600; color: var(--navy-900); font-size: 1.12rem; }
.brand__sub { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav__links a {
  font-weight: 500;
  font-size: .97rem;
  color: var(--navy-800);
  padding: .3rem 0;
  position: relative;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--gold-500);
  transition: width .22s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after { width: 100%; }
.nav__links a.active { color: var(--navy-900); }

.nav__cta { margin-left: .5rem; }

.nav__toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 8px;
}
.nav__toggle span {
  display: block; height: 2px; background: var(--navy-800);
  border-radius: 2px; margin: 5px 0; transition: .25s;
}
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy-900);
  color: #eaf1fb;
  overflow: hidden;
}

/* Cross-fading skyscraper slideshow */
.hero__slides {
  position: absolute; inset: 0;
  z-index: 0;
  background: var(--navy-900);
}
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s ease, transform 8s ease;
  will-change: opacity, transform;
}
.hero__slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Navy tint + grid overlay for text legibility */
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(1200px 520px at 80% -10%, rgba(200,164,92,.20), transparent 60%),
    linear-gradient(120deg, rgba(8,20,40,.94) 0%, rgba(11,29,58,.86) 42%, rgba(18,48,89,.62) 100%);
}
.hero__overlay::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(700px 400px at 20% 30%, #000, transparent 75%);
}

/* Slide progress dots */
.hero__dots {
  position: absolute;
  left: 50%; bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: .55rem;
}
.hero__dot {
  width: 9px; height: 9px; padding: 0;
  border: none; border-radius: 999px;
  background: rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.hero__dot.active { background: var(--gold-400); width: 26px; }

@media (prefers-reduced-motion: reduce) {
  .hero__slide { transition: opacity .4s ease; transform: none; }
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding: 96px 0 104px;
  max-width: 760px;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero .lead { font-size: 1.22rem; color: #c6d4ea; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero .eyebrow { color: var(--gold-400); }

.hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid rgba(255,255,255,.12);
  max-width: 620px;
}
.stat__num { font-family: var(--font-head); font-size: 2rem; color: var(--gold-400); font-weight: 600; }
.stat__label { font-size: .86rem; color: #a9bad4; letter-spacing: .02em; }

/* ---------- Page banner (interior pages) ---------- */
.page-banner {
  background:
    radial-gradient(900px 400px at 90% -20%, rgba(200,164,92,.16), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #eaf1fb;
  padding: 72px 0 64px;
}
.page-banner h1 { color: #fff; margin-bottom: .4rem; }
.page-banner p { color: #b9c7dd; max-width: 640px; margin: 0; }
.breadcrumb { font-size: .82rem; color: #8fa4c4; margin-bottom: 1.2rem; letter-spacing: .02em; }
.breadcrumb a { color: #8fa4c4; }
.breadcrumb a:hover { color: var(--gold-300); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d5deec; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .98rem; margin-bottom: 0; }

.card__icon {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--bg-softer);
  color: var(--navy-700);
  margin-bottom: 1.1rem;
}
.card__icon svg { width: 26px; height: 26px; }

.card--num { position: relative; }
.card__num {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--gold-300);
  font-weight: 600;
  line-height: 1;
  margin-bottom: .6rem;
}

/* Service detail block */
.service {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.service:first-of-type { border-top: none; }
.service__side { position: sticky; top: 100px; }
.service__tag {
  display: inline-block;
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500); font-weight: 600; margin-bottom: .8rem;
}
.service h2 { font-size: 1.7rem; }
.service p:last-child { margin-bottom: 0; }

.check-list { list-style: none; padding: 0; margin: .5rem 0 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .8rem;
  color: #33425a;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .5rem;
  width: 12px; height: 12px;
  border: 2px solid var(--gold-500);
  border-top: none; border-right: none;
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* Two-column feature */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li {
  display: flex; gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.value-list li:last-child { border-bottom: none; }
.value-list .vnum {
  font-family: var(--font-head); color: var(--gold-500);
  font-weight: 600; font-size: 1.1rem; min-width: 2rem;
}
.value-list strong { color: var(--navy-900); display: block; margin-bottom: .1rem; }
.value-list span { color: var(--muted); font-size: .95rem; }

/* Pillars (vision/mission/values) */
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.pillar__label {
  font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-500); font-weight: 700; margin-bottom: .7rem;
}
.pillar h3 { font-size: 1.35rem; }

/* CTA band */
.cta {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-600));
  border-radius: 20px;
  padding: 3.4rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.cta h2 { color: #fff; margin-bottom: .6rem; }
.cta p { color: #c1cfe6; max-width: 560px; margin: 0 auto 1.8rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.4rem 0; border-bottom: 1px solid var(--line);
}
.contact-card:last-child { border-bottom: none; }
.contact-card__icon {
  width: 48px; height: 48px; flex: none;
  display: grid; place-items: center;
  border-radius: 12px; background: var(--bg-softer); color: var(--navy-700);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-card a, .contact-card p { font-size: 1.05rem; margin: 0; color: #33425a; }

.form-field { margin-bottom: 1.2rem; }
.form-field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--navy-800); }
.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200,164,92,.18);
}
.form-note { font-size: .85rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: #b7c5dc;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__sub { color: #8093b0; }
.footer-about { margin-top: 1rem; max-width: 340px; color: #93a4c1; font-size: .96rem; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 600; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .65rem; }
.footer-col a { color: #b7c5dc; font-size: .96rem; }
.footer-col a:hover { color: var(--gold-400); }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem;
  padding-top: 1.6rem; font-size: .85rem; color: #7d8fac;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .service { grid-template-columns: 1fr; gap: 1.2rem; }
  .service__side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem 24px 1.4rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav__links.open { transform: translateY(0); }
  .nav__links li { width: 100%; }
  .nav__links a { display: block; padding: .9rem 0; border-bottom: 1px solid var(--bg-softer); width: 100%; }
  .nav__links a::after { display: none; }
  .nav__cta { margin: .8rem 0 0; }
  .nav__toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero__stats { grid-template-columns: 1fr; gap: 1.2rem; }
  .section { padding: 64px 0; }
  .cta { padding: 2.2rem 1.5rem; }
}

/* ---------- Language selector (circular flag switcher) ---------- */
.nav__links { margin-left: auto; }
.nav__right { display: flex; align-items: center; gap: .5rem; margin-left: 1.4rem; }

.lang-switch { position: relative; }
.lang-switch__btn {
  width: 42px; height: 42px;
  padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer;
  display: grid; place-items: center;
  transition: transform .18s ease;
}
.lang-switch__btn:hover { transform: translateY(-1px); }
.lang-switch__btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(200,164,92,.35); }

.flag {
  display: block; width: 30px; height: 30px;
  border-radius: 50%; overflow: hidden; flex: none;
  box-shadow: 0 0 0 1px rgba(10,26,51,.12), var(--shadow-sm);
}
.flag svg { width: 100%; height: 100%; display: block; }
.lang-switch__btn .flag {
  width: 34px; height: 34px;
  box-shadow: 0 0 0 1.5px rgba(200,164,92,.6), 0 2px 8px rgba(10,26,51,.18);
  transition: box-shadow .18s ease;
}
.lang-switch__btn:hover .flag { box-shadow: 0 0 0 2px var(--gold-500), 0 4px 12px rgba(10,26,51,.22); }

.lang-switch__menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 190px; list-style: none; margin: 0; padding: .4rem;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  pointer-events: none; transition: opacity .16s ease, transform .16s ease;
  z-index: 60;
}
.lang-switch.open .lang-switch__menu { opacity: 1; transform: none; pointer-events: auto; }

.lang-switch__opt {
  display: flex; align-items: center; gap: .7rem; width: 100%;
  padding: .55rem .6rem; border: 0; background: transparent;
  border-radius: var(--radius-sm); cursor: pointer; text-align: left;
  font-family: var(--font-body); font-size: .95rem; font-weight: 500; color: var(--navy-800);
  transition: background .15s ease;
}
.lang-switch__opt:hover { background: var(--bg-soft); }
.lang-switch__opt.is-active { background: var(--bg-softer); color: var(--navy-900); font-weight: 600; }
.lang-switch__name { line-height: 1.1; }

@media (max-width: 720px) {
  .nav__right { margin-left: 0; }
}

/* ---------- RTL (Hebrew) support ---------- */
[dir="rtl"] .nav__links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .nav__right { margin-left: 0; margin-right: 1.4rem; }
[dir="rtl"] .nav__cta { margin-left: 0; }
[dir="rtl"] .nav__links a::after { left: auto; right: 0; }
[dir="rtl"] .lang-switch__menu { right: auto; left: 0; transform-origin: top left; }
[dir="rtl"] .lang-switch__opt { text-align: right; }
[dir="rtl"] .breadcrumb { direction: rtl; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 2rem; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }

@media (max-width: 720px) {
  [dir="rtl"] .nav__right { margin-right: 0; }
}
