/* ==========================================================================
   VisionaryiP Alliance — Shared Design System
   ========================================================================== */

:root {
  --navy: #060D1F;
  --navy-mid: #0C1830;
  --navy-light: #132040;
  --gold: #C8973B;
  --gold-light: #E2B86A;
  --gold-pale: #F5E6C8;
  --white: #FFFFFF;
  --off-white: #F9F7F3;
  --cream: #F2EDE4;
  --text-dark: #0E1724;
  --text-mid: #445566;
  --text-light: #7A8CA0;
  --border: rgba(200, 151, 59, 0.2);
  --border-light: rgba(255, 255, 255, 0.08);
  --transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  --container: 1280px;
  --nav-height: 76px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

body.page-home {
  background: var(--navy);
  color: var(--white);
}

body.page-inner {
  background: var(--white);
  color: var(--text-dark);
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
}

.label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Layout utilities ─── */
.si,
.section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }
.rd4 { transition-delay: 0.4s; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ─── Navigation ─── */
nav,
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
  background: rgba(6, 13, 31, 0.97);
  backdrop-filter: blur(20px);
}

body.page-home nav,
body.page-home #navbar {
  border-bottom-color: transparent;
  background: transparent;
}

body.page-home nav.scrolled,
body.page-home #navbar.scrolled {
  background: rgba(6, 13, 31, 0.97);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-mark,
.nav-mark {
  width: 40px;
  height: 40px;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name,
.nav-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.nav-logo-sub,
.nav-sub {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.25s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--gold-light);
}

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 10px 22px !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--white);
}

/* ─── Mobile menu ─── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(6, 13, 31, 0.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.mobile-menu a:hover {
  color: var(--gold-light);
}

.mobile-close {
  position: absolute;
  top: 24px;
  right: 5%;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 24px;
  padding: 8px;
}

/* ─── Legal / utility pages ─── */
.legal-hero {
  min-height: 420px;
}

.legal-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 300;
  color: var(--white);
  max-width: 760px;
}

.legal-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.8;
  max-width: 640px;
  margin-top: 18px;
}

.legal-content {
  background: var(--off-white);
  padding: 72px 0 96px;
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 24px 70px rgba(6, 13, 31, 0.08);
  padding: clamp(32px, 5vw, 56px);
}

.legal-card h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 30px 0 10px;
}

.legal-card p {
  font-size: 15px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 16px;
}

.legal-card a {
  color: #7A5C28;
  font-weight: 600;
}

.legal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ─── Page hero (inner pages) ─── */
.page-hero {
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.hero-bg,
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 60% 40%, rgba(200, 151, 59, 0.08) 0%, transparent 60%);
}

.hero-grid,
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 151, 59, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 151, 59, 0.03) 1px, transparent 1px);
  background-size: 80px 80px;
}

.hero-inner,
.page-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 120px 5% 56px;
  width: 100%;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb span {
  color: rgba(200, 151, 59, 0.6);
}

/* ─── Buttons ─── */
.btn-primary,
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  padding: 15px 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.25s, transform 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover,
.btn-gold:hover {
  background: var(--gold-light);
}

.btn-outline,
.btn-outline-white {
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  padding: 15px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.25s, background 0.25s;
}

.btn-outline:hover,
.btn-outline-white:hover {
  border-color: var(--gold);
  background: rgba(200, 151, 59, 0.08);
}

.btn-outline-dark {
  border: 1.5px solid var(--text-dark);
  color: var(--text-dark);
  padding: 15px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.25s, background 0.25s;
}

.btn-outline-dark:hover {
  border-color: var(--gold);
  background: rgba(200, 151, 59, 0.04);
}

/* ─── WhatsApp float ─── */
.wa-float,
.wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
}

.wa-tooltip {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  border: 1px solid var(--border);
}

.wa-float:hover .wa-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.wa-btn {
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s;
}

.wa-btn:hover {
  transform: scale(1.08);
}

.wa-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ─── Footer ─── */
footer {
  background: #030810;
  padding: 72px 0 28px;
  border-top: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.45);
}

.footer-grid,
.fg {
  display: grid;
  grid-template-columns: minmax(240px, 280px) repeat(3, minmax(0, 1fr));
  gap: 48px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 5%;
  margin-bottom: 56px;
}

.footer-brand {
  min-width: 0;
}

.footer-logo-wrap,
.fl-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo-mark,
.fl-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold);
  flex-shrink: 0;
}

.footer-logo-name,
.fl-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
}

.footer-logo-sub,
.fl-sub {
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-desc,
.fd {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-col,
.fc-col {
  min-width: 0;
}

.footer-col h4,
.fc-col h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer-links,
.flinks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.flinks a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover,
.flinks a:hover {
  color: rgba(255, 255, 255, 0.85);
  padding-left: 4px;
}

.footer-socials,
.fsoc {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-social,
.fsc,
.team-social-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  flex-shrink: 0;
}

.footer-social:hover,
.fsc:hover,
.team-social-btn:hover {
  border-color: var(--gold);
  background: rgba(200, 151, 59, 0.12);
  color: var(--gold);
}

.footer-social svg,
.footer-social svg path,
.fsc svg,
.fsc svg path,
.team-social-btn svg,
.team-social-btn svg path {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}

.footer-contact-list,
.fct {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-list li,
.fct li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.5;
  list-style: none;
}

.footer-links li,
.flinks li {
  list-style: none;
}

.footer-contact-list a,
.fct a {
  color: inherit;
  text-decoration: none;
}

.footer-contact-list a:hover,
.fct a:hover {
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-list svg,
.fct svg {
  width: 15px;
  height: 15px;
  max-width: 15px;
  max-height: 15px;
  display: block;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom,
.fb {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 5% 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy,
.fc-py {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
}

.footer-bottom-links,
.fbl {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom-links a,
.fbl a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover,
.fbl a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .footer-grid,
  .fg {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .footer-grid,
  .fg {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 40px;
  }

  .footer-bottom,
  .fb {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-menu {
    gap: 24px;
    padding: 80px 24px 40px;
  }

  .mobile-menu a {
    font-size: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
