/* ══════════════════════════════════════════
   INSTAVIEW PRO — SHARED STYLES
   ══════════════════════════════════════════ */

:root {
  --bg-primary: #070b14;
  --bg-secondary: #0d1526;
  --bg-card: #111927;
  --blue-primary: #2563eb;
  --blue-light: #3b82f6;
  --blue-glow: #60a5fa;
  --blue-soft: #1e3a6e;
  --accent-cyan: #06b6d4;
  --accent-purple: #8b5cf6;
  --text-primary: #f0f6ff;
  --text-secondary: #94a3b8;
  --text-muted: #4e6180;
  --border: #1e2f4a;
  --border-glow: #2563eb55;
  --gradient-blue: linear-gradient(135deg, #1d4ed8, #06b6d4);
  --gradient-card: linear-gradient(145deg, #111927, #0d1526);
  --shadow-blue: 0 0 40px #2563eb33;
  --shadow-card: 0 8px 32px #00000066;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: 'Clash Display', sans-serif; }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(7,11,20,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .3s;
}

.nav-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  background: var(--gradient-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none; white-space: nowrap;
  display: flex; align-items: center; gap: .5rem;
}

.nav-links { display: flex; align-items: center; gap: .2rem; list-style: none; }

.nav-item { position: relative; }

.nav-item > a {
  display: flex; align-items: center; gap: .3rem;
  color: var(--text-secondary); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  padding: .5rem .8rem; border-radius: 8px;
  transition: color .2s, background .2s;
  white-space: nowrap;
}

.nav-item > a:hover, .nav-item > a.active { color: var(--text-primary); background: #ffffff08; }

.nav-arrow {
  font-size: .6rem; transition: transform .25s;
  color: var(--text-muted);
}
.nav-item:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: .6rem;
  min-width: 220px;
  box-shadow: 0 20px 50px #000000aa;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, visibility .2s, transform .2s;
  z-index: 100;
}

.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-dropdown a {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .9rem; border-radius: 10px;
  color: var(--text-secondary); text-decoration: none;
  font-size: .88rem; font-weight: 500;
  transition: background .2s, color .2s;
}

.nav-dropdown a:hover { background: #ffffff0a; color: var(--text-primary); }

.nav-dropdown-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: #1e3a6e44; display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}

.nav-right { display: flex; align-items: center; gap: .8rem; }

.nav-cta {
  background: var(--gradient-blue);
  color: #fff; border: none; padding: .55rem 1.3rem;
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: .88rem; font-weight: 600; cursor: pointer;
  transition: opacity .2s, box-shadow .2s;
  text-decoration: none; white-space: nowrap;
}
.nav-cta:hover { opacity: .9; box-shadow: var(--shadow-blue); }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: .4rem;
}
.hamburger span { width: 22px; height: 2px; background: var(--text-secondary); border-radius: 2px; transition: .3s; }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 5%;
  z-index: 999;
  flex-direction: column; gap: .3rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: var(--text-secondary); text-decoration: none;
  padding: .7rem .8rem; border-radius: 8px;
  font-size: .9rem; font-weight: 500;
  transition: background .2s, color .2s;
}
.mobile-menu a:hover { background: #ffffff08; color: var(--text-primary); }

.mobile-section-label {
  color: var(--text-muted); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  padding: .8rem .8rem .3rem; margin-top: .4rem;
}

/* ── FOOTER ── */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  position: relative; z-index: 1;
}

.footer-main {
  max-width: 1200px; margin: auto;
  display: flex; gap: 3rem;
  padding: 3.5rem 5% 2.5rem;
}

/* Left col */
.footer-left { flex: 0 0 300px; }

.footer-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  background: var(--gradient-blue); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none; display: inline-block; margin-bottom: 1.2rem;
}

.footer-contact-list { display: flex; flex-direction: column; gap: .8rem; }

.footer-contact-item {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text-secondary); font-size: .88rem;
  text-decoration: none; transition: color .2s;
}
.footer-contact-item:hover { color: var(--text-primary); }

.footer-contact-icon {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: #1e3a6e44; border: 1px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}

.footer-hours {
  display: flex; align-items: center; gap: .75rem;
  color: var(--text-muted); font-size: .82rem; margin-top: .2rem;
}

/* Middle col */
.footer-middle { flex: 0 0 180px; }

.footer-col-title {
  font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-muted); margin-bottom: 1.2rem;
}

.footer-nav-list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }

.footer-nav-list a {
  color: var(--text-secondary); text-decoration: none;
  font-size: .88rem; transition: color .2s;
  display: flex; align-items: center; gap: .5rem;
}
.footer-nav-list a:hover { color: var(--text-primary); }

/* Right col */
.footer-right { flex: 1; }

.footer-legal-text {
  color: var(--text-muted); font-size: .8rem; line-height: 1.7;
  padding: 1.2rem; background: #ffffff04; border-radius: 10px;
  border: 1px solid var(--border);
}

.footer-legal-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent-cyan);
  margin-bottom: .6rem;
}

/* Footer bottom */
.footer-divider { height: 1px; background: var(--border); }

.footer-bottom {
  max-width: 1200px; margin: auto;
  padding: 1.4rem 5%;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 1rem;
}

.footer-social { display: flex; align-items: center; gap: .5rem; }

.footer-social-label {
  color: var(--text-muted); font-size: .8rem; font-weight: 600;
  margin-right: .3rem; white-space: nowrap;
}

.social-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, background .2s;
  text-decoration: none;
}
.social-icon:hover { border-color: var(--blue-primary); background: #1e3a6e44; }
.social-icon img, .social-icon svg { width: 16px; height: 16px; }

.footer-bottom-links {
  display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-muted); font-size: .8rem; text-decoration: none;
  transition: color .2s;
}
.footer-bottom-links a:hover { color: var(--text-secondary); }

.footer-copyright {
  color: var(--text-muted); font-size: .8rem; text-align: right;
}

/* ── SHARED UTILITIES ── */
.btn-primary {
  background: var(--gradient-blue); color: #fff;
  border: none; padding: .75rem 1.8rem;
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  transition: opacity .2s, box-shadow .2s; white-space: nowrap;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover { opacity: .9; box-shadow: var(--shadow-blue); }

.btn-outline {
  background: none; border: 1px solid var(--border);
  color: var(--text-primary); padding: .75rem 1.8rem;
  border-radius: 8px; font-family: 'DM Sans', sans-serif;
  font-size: .95rem; font-weight: 500; cursor: pointer;
  transition: border-color .3s, background .3s;
  text-decoration: none; display: inline-block;
}
.btn-outline:hover { border-color: var(--blue-primary); background: #2563eb11; }

.section-container { max-width: 1200px; margin: auto; padding: 5rem 5%; }
.section-label {
  display: inline-block; color: var(--accent-cyan);
  font-size: .78rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .8rem;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.section-sub { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; max-width: 580px; }
.section-header { margin-bottom: 3rem; }
.divider { height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); position: relative; z-index: 1; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

.page-hero {
  padding: 9rem 5% 5rem;
  position: relative; overflow: hidden;
}

.page-hero-orb {
  position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none;
}

@media (max-width: 960px) {
  .footer-main { flex-direction: column; gap: 2rem; }
  .footer-left, .footer-middle { flex: none; }
  .footer-bottom { grid-template-columns: 1fr; text-align: center; gap: .8rem; }
  .footer-copyright { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-bottom-links { justify-content: center; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .yt-btn-desktop { display: none !important; }
}