/* =========================================================
   3D Universe — style.css (cleaned & ordered)
   - Removed duplicated / overwritten rules
   - Consolidated header behavior (FIXED topbar)
   - Unified hero image + parallax (current markup: <img class="heroPic">)
   ========================================================= */

/* =========================================================
   1) CSS VARIABLES
   ========================================================= */
:root{
  --bg1:#f7f9fc;
  --bg2:#eef3f9;
  --card:rgba(255,255,255,0.72);
  --text:#1d2430;
  --muted:#5b677a;
  --line:rgba(20,35,55,0.12);
  --shadow: 0 10px 30px rgba(15, 30, 55, 0.10);
  --radius:18px;
  --maxw: 1100px;

  /* Header + anchor offsets */
  --tint-h: 6px;     /* safari tint strip height */
  --header-h: 110px; /* set to your actual combined header height */
  --anchor-gap: 24px;/* extra breathing room when scrolling to sections */
}

/* =========================================================
   2) BASE / RESET
   ========================================================= */
*{ box-sizing:border-box; }

html{
  scroll-behavior: auto; /* JS handles easing scroll */
}

html, body{
  margin: 0;
  height: auto;
  min-height: 100%;
}

body{
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--text);
  background: #f5f7fb;

  /* sticky footer layout */
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /* IMPORTANT: fixed header compensation */
  padding-top: calc(var(--tint-h) + var(--header-h));
  overflow-x: hidden;
}

/* main grows to push footer down */
main{
  flex: 1 0 auto;
  min-height: 0;
}

/* footer doesn’t shrink */
footer{
  flex-shrink: 0;
}

a{ color:inherit; text-decoration:none; }
a:hover{ text-decoration:underline; }
img{ max-width:100%; display:block; }

.container{
  width:min(var(--maxw), calc(100% - 32px));
  margin: 0 auto;
}

/* =========================================================
   3) SAFARI TINT STRIP
   ========================================================= */
.safari-tint-bar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--tint-h);
  background: #45a6ff;
  z-index: 2147483647;
}

/* =========================================================
   4) HEADER / TOPBAR (FIXED)
   - Contains both branding row and nav row
   ========================================================= */
.topbar{
  position: fixed;
  top: var(--tint-h);
  left: 0;
  right: 0;
  width: 100%;
  z-index: 2147483646;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  background: linear-gradient(#45a6ff, #2b60bc);
  border-bottom: 1px solid var(--line);
  font-weight: 100;
}

/* Shared header row container */
.header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}

/* =========================================================
   4a) BRANDING ROW (compact)
   ========================================================= */
.header-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 6px 0; /* compact */
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}

.brand,
.brand:hover,
.brand:focus,
.brand:active{
  text-decoration:none;
  border-bottom:none;
}

.logo{
  width:48px;
  height:48px;
}

/* brand typography */
.brandtext{
  display:flex;
  flex-direction:column;
  line-height:1;
}

.brand-title{
  font-size:1.9rem;
  font-family:'Roboto', sans-serif;
  letter-spacing: normal;
  text-transform: lowercase;
  line-height: 1;
  color: #fff;
}

.brand-tagline{
  font-size:0.9rem;
  letter-spacing:0.08em;
  opacity:0.70;
  margin-top: 0.1rem;
  color: #fff;
  font-weight:250;
}

/* socials right */
.socials-right{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:14px;
}

.socials-right a{
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.socials-right a:hover{
  color: #fff;
  transform: translateY(-1px);
}

/* =========================================================
   4b) NAV ROW (compact)
   ========================================================= */
.header-nav-wrap{
  background: #45a6ff;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.header-nav{
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 2px 0; /* extra-compact */
}

/* nav row layout */
.navwrap-full{
  width: 100%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

/* (CHANGED) Removed the mobile-only justify-content change so nav stays identical on mobile */
/*
@media (max-width: 768px){
  .navwrap-full{ justify-content:flex-start; }
}
*/

.navwrap{
  display:flex;
  align-items:center;
  gap:14px;
}

.nav{
  display:flex;
  align-items:center;
  gap: 10px;
  position: relative; /* for .nav-highlight */
}

/* nav item styling */
.nav a,
.nav button{
  font-size: 14px;
  line-height: 1.2;
  color: #fff;

  padding: 3px 9px;
  margin: 2px 0;

  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor:pointer;
}

/* hover + active */
.nav a:hover,
.nav button:hover{
  text-decoration:none;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.nav a.active{
/*
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.35);
*/
}

/* mobile toggle */
.mobileToggle{
  display:none;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 12px;

  padding: 5px 9px;
  font-size: 12.5px;
  cursor:pointer;
}

/* dropdown */
.dropdown{ position: relative; }

.dropdown-panel{
  position:absolute;
  right:0;
  top: 100%;
  margin-top: 0px;

  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;

  display:none;
}

.dropdown-panel a{
  display:block;
  padding: 10px 10px;
  border-radius: 12px;

  color: #222;
  text-decoration: none;
}

.dropdown-panel a:hover{
  background: rgba(0,0,0,0.05);
  color: #000;
}

/* click-open fallback (mobile + touch) */
.dropdown.open .dropdown-panel{ display:block; }

/* hover-open for desktop (keeps panel in DOM for animation) */
@media (hover: hover) and (pointer: fine){
  .dropdown-panel{
    display:block;
    opacity:0;
    visibility:hidden;
    transform: translateY(0px);
    pointer-events:none;
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s linear 150ms;
  }

  .dropdown:hover .dropdown-panel,
  .dropdown:focus-within .dropdown-panel{
    opacity:1;
    visibility:visible;
    transform: translateY(0);
    pointer-events:auto;
    transition: opacity 150ms ease, transform 150ms ease, visibility 0s;
  }
}

/* Apple-like sliding highlight */
.nav{
  position: relative;
}

.nav a,
.nav button{
  position: relative;
  z-index: 2; /* sit above the highlight */
}

.nav-highlight{
  position:absolute;
  left:0;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;              /* match your nav padding */
  border-radius: 12px;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  width: 0;
  opacity: 0;
  z-index: 1;                /* behind links */
  pointer-events:none;

  /* the “Apple glide” */
  transition:
    left 240ms cubic-bezier(.22,.61,.36,1),
    width 240ms cubic-bezier(.22,.61,.36,1),
    opacity 120ms ease;
}

/* =========================================================
   5) SECTION / ANCHOR OFFSETS
   ========================================================= */
.panel{
  scroll-margin-top: calc(var(--tint-h) + var(--header-h) + var(--anchor-gap));
}

/* =========================================================
   6) TYPOGRAPHY
   ========================================================= */
h1{
  font-weight: 400;
  font-size:1.8em;
}

h3{ font-weight:normal; }

.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: rgb(0,0,0,0.5);
  font-weight:100;
  border-left: solid 3px rgba(0,0,0,0.2);
  padding-left:5px;
}

.h1{
  margin: 10px 0 10px;
  letter-spacing: -0.01em;
}

.lead{
  margin:0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15.5px;
}

/* =========================================================
   7) CARDS / BUTTONS
   ========================================================= */
.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  font-size: 14px;
  cursor:pointer;
  text-decoration:none;
  margin:5px;
}

.btn:hover{
  text-decoration:none;
  filter: brightness(0.99);
  background:#45a6ff;
  color:rgb(255,255,255);
}

.btn.primary{
  background: rgba(10, 60, 160, 0.12);
  border-color: rgba(10, 60, 160, 0.18);
}

.btn.primary:hover{
  background:#45a6ff;
  color:rgb(255,255,255);
}

/* =========================================================
   8) HERO
   ========================================================= */
.hero{
  padding: 34px 0 18px;
}

.heroCard{
  padding: 26px;
  display:grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.heroCardMedia{
  grid-template-columns: 1.1fr 0.9fr;
}

.sideBox{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap: 10px;
}

.sideBox h3{
  margin:0;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.miniList{
  margin:0;
  padding-left: 16px;
  color: var(--muted);
  line-height:1.6;
  font-size: 14px;
}

.ctas{
  display:flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

/* =========================================================
   9) SECTIONS / GRID TILES
   ========================================================= */
.section{
  padding: 14px 0 28px;
}

.sectionGrid{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.tile{
  padding: 18px;
}

.tile h3{
  margin: 0 0 8px;
  font-size: 16px;
}

.tile p{
  margin:0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

/* =========================================================
   10) INNER PAGES (about.php etc.)
   ========================================================= */
.page{
  padding: 24px 0 34px;
}

.pageHeader{
  padding: 18px;
}

.pageHeader h1{
  margin: 0 0 8px;
  font-size: 26px;
}

.pageHeader p{
  margin:0;
  color: var(--muted);
  line-height: 1.6;
}

.contentCard{
  margin-top: 14px;
  padding: 18px;
}

.contentCard h2{
  margin: 0 0 10px;
  font-size: 18px;
}

.contentCard p,
.contentCard li{
  color: var(--muted);
  line-height:1.7;
  font-size: 14.5px;
}

.contentCard ul{
  margin: 10px 0 0;
  padding-left: 18px;
}

/* =========================================================
   11) FOOTER
   ========================================================= */
.footer{
  border-top: 1px solid var(--line);
  padding: 10px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.footerRow{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.footer a{ color: var(--muted); }

/* =========================================================
   12) RESPONSIVE (core)
   ========================================================= */
@media (max-width: 900px){
  .heroCard{ grid-template-columns: 1fr; }
  .sectionGrid{ grid-template-columns: 1fr; }

  /* (CHANGED) Removed mobile nav behavior so navigation does NOT change on mobile:
     - no .mobileToggle display
     - no collapsing / absolute positioning / dropdown restyling
  */
}

/* =========================================================
   13) COMMISSIONS — "How it works" timeline
   ========================================================= */
.processWrap{
  border-radius: var(--radius);
}

.processTitle{
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 6px 0 10px;
  padding-left: 6px;
}

.process{
  position: relative;
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius);
background: #45a6ff;
  border: 1px solid rgba(20,35,55,0.10);
}

.processLine{
  position: absolute;
  left: 35px;
  top: 60px;
  bottom: 110px;
  width: 2px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
}

.processStep{
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: start;
  gap: 14px;
}

.processNum{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;

  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;

  color: #0f2b3a;
  background: rgba(255,255,255,1);
  border: 1px solid rgba(20,35,55,0.12);
  box-shadow: 0 6px 16px rgba(15,30,55,0.08);
}

.processCard{
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(20,35,55,0.10);
  border-radius: 16px;
  padding: 16px;
}

.processCard h3{
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.processCard p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14.5px;
}

@media (max-width: 900px){
  .processWrap{ grid-column: 1 / -1; }
}

/* =========================================================
   14) SECTION BACKGROUND ACCENTS
   ========================================================= */
.accent{
  position: relative;
  overflow: hidden;
}

.accent::before{
  content:"";
  position:absolute;
  inset: -140px -120px auto -120px;
  height: 260px;
  pointer-events:none;
  filter: blur(14px);
  opacity: 0.55;
  z-index: 0;
}

.accent > .container{
  position: relative;
  z-index: 1;
}

/* =========================================================
   15) SECTION HERO LAYOUT (text + hero image)
   ========================================================= */
.sectionHero{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: center;
}

.sectionHero.reverse{
  grid-template-columns: 0.85fr 1.15fr;
}

.sectionHero.reverse .sectionHeroMedia{
  order: -1; /* image left */
}

.heroMedia,
.sectionHeroMedia{
  display:flex;
  align-items: stretch;
  min-width: 0; /* Safari/grid safety */
}

/* =========================================================
   16) HERO IMAGES + PARALLAX (current markup: <img class="heroPic">)
   ========================================================= */
img.heroPic{
  display:block;
  width:100%;
  height:100%;
  object-fit: cover;

  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(20,35,55,0.12);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.35);
}

.heroMedia img.heroPic{ aspect-ratio: 4 / 5; }            /* Home */
.sectionHeroMedia img.heroPic{ aspect-ratio: 16 / 10; }   /* Sections */

img.heroPic[data-parallax]{
  --py: 0px;
  transform: translate3d(0, var(--py), 0) scale(1.50);
  transform-origin: center;
  will-change: transform;
  transition: transform 70ms linear;
}

/* Keep class around if you use it in markup; don’t override transform here */
.parallax{ will-change: transform; }

@media (prefers-reduced-motion: reduce){
  img.heroPic[data-parallax]{
    transform: none !important;
    transition: none !important;
  }
}

/* =========================================================
   17) RESPONSIVE — stack section heroes on mobile
   ========================================================= */
@media (max-width: 900px){
  .sectionHero,
  .sectionHero.reverse,
  .heroCardMedia{
    grid-template-columns: 1fr;
  }
  .sectionHero.reverse .sectionHeroMedia{
    order: 0;
  }
}

/* =========================================================
   HERO IMAGE FRAME (wrapper) + VISIBLE PARALLAX
   Fixes:
   - too much space (gives a controlled aspect-ratio)
   - rounded borders (radius on the frame + clipping)
   - visible parallax (moves the inner img, frame stays put)
========================================================= */

/* Make sure media columns don't force the grid wider */
.heroMedia,
.sectionHeroMedia{
  min-width: 0;
  display: flex;
  align-items: stretch;
}

/* FRAME (stays still) */
.heroPic{
  position: relative;
  width: 100%;

  border-radius: var(--radius);
  overflow: hidden; /* IMPORTANT: clips the drifting image */
  border: 1px solid rgba(20,35,55,0.12);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,0.25);

  /* stop “giant image” layout */
  max-height: 520px; /* desktop safety cap */
}

/* Home image: tall-ish, but not huge */
.heroMedia .heroPic{
  aspect-ratio: 4 / 5;
  max-height: 560px;
}

/* Section images: wide */
.sectionHeroMedia .heroPic{
  aspect-ratio: 16 / 10;
  max-height: 420px;
}

/* INNER IMAGE (moves) */
.heroPic > img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;

  /* Parallax */
  --py: 0px;
  transform: translate3d(0, var(--py), 0) scale(1.10); /* scale hides edges while moving */
  will-change: transform;
  transition: transform 50ms linear; /* snappier = more visible */
}

/* Mobile: keep images from dominating */
@media (max-width: 900px){
  .heroPic{
    max-height: 360px;
  }
  .heroMedia .heroPic{
    aspect-ratio: 16 / 10; /* make home less tall on mobile */
    max-height: 360px;
  }
  .sectionHeroMedia .heroPic{
    max-height: 320px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce){
  .heroPic > img{
    transform: none !important;
    transition: none !important;
  }
}

/* === PARALLAX LOCK: frame never moves === */
.heroPic{
  transform: none !important;     /* stop any old transforms on the frame */
  will-change: auto !important;
}

/* Move ONLY the image */
.heroPic > img{
  --py: 0px;
  transform: translate3d(0, var(--py), 0) scale(1.16) !important;
  transform-origin: center;
  will-change: transform;
  transition: transform 0ms;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-reduced-motion: reduce){
  .heroPic > img{ transform: none !important; }
}
/* Prevent “double highlight” (link hover/active + sliding pill) */
.nav a:hover,
.nav button:hover,
.nav a.active{
  background: transparent !important;
  border-color: transparent !important;
}
/* Force text content to align to top inside hero/section cards */
.sectionHeroText,
.heroCard > div:first-child{
  align-self: flex-start;
}
html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Push footer to bottom when content is short */
footer.footer{
  margin-top: auto;
}
/* Non-home pages: hide the nav highlight until the user interacts */
.not-home .topbar .navHighlight{
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

/* Show highlight when the menu is hovered or keyboard-focused */
.not-home .topbar:hover .navHighlight,
.not-home .topbar:focus-within .navHighlight{
  opacity: 1;
}
.navwrap {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  gap: 2px;
}

/* Push account link to the far right */
.nav-account {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.nav-account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  opacity: 0.85;
}

.nav-account-link:hover {
  opacity: 1;
  background: rgba(255,255,255,0.15);
}
/* =========================================
   Header account / profile dropdown
   ========================================= */

/* Wrapper on the right side of nav */
.nav-account {
  position: relative;
  display: flex;
  align-items: center;
}

/* Trigger button + login icon */
.account-trigger,
.nav-account-link {
  font-size: 16px;
  line-height: 1;
  color: #fff;
  padding: 6px 10px;
  margin: 2px 0;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.account-trigger i,
.nav-account-link i {
  font-size: 18px;
}

/* Hover state */
.account-trigger:hover,
.nav-account-link:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Dropdown container */
.account-dropdown {
  position: relative;
}

/* Dropdown menu */
.account-menu {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 190px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(15, 30, 55, 0.22);
  border: 1px solid rgba(20, 35, 55, 0.12);
  padding: 6px;
  display: none;
  z-index: 1200;
}

/* Menu items */
.account-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1d2430;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
  transition: background 0.15s ease, color 0.15s ease;
}

/* Icons inside menu */
.account-menu a i {
  font-size: 16px;
  color: #587cb5;
}

/* Hover state for menu items */
.account-menu a:hover {
  background: rgba(88, 124, 181, 0.12);
  color: #0f172a;
}

/* Divider line */
.account-divider {
  height: 1px;
  margin: 6px 0;
  background: rgba(20, 35, 55, 0.12);
}

/* -----------------------------------------
   Visibility logic
   ----------------------------------------- */

/* Desktop hover */
@media (hover: hover) {
  .account-dropdown:hover .account-menu {
    display: block;
  }
}

/* Mobile / keyboard / touch (tap to open) */
.account-dropdown:focus-within .account-menu {
  display: block;
}

/* Prevent focus outline on mouse click */
.account-trigger:focus {
  outline: none;
}

/* -----------------------------------------
   Small screens (safety)
   ----------------------------------------- */
@media (max-width: 520px) {
  .account-menu {
    min-width: 170px;
  }
}