/* Compact styles for Cameron and Associates */
:root{
  --bg:#0b0f14;
  --panel:#121821;
  --text:#e7edf5;
  --muted:#a6b3c2;
  --brand:#64c1ff;
  --brand2:#8cf0e0;
  --accent:#c79a00;               /* gold accent for nav CTA/border */
  --ring:0 0 0 6px rgba(100,193,255,.35);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 80% -20%, rgba(100,193,255,.08), transparent 60%),
    radial-gradient(1000px 500px at 0% 0%, rgba(140,240,224,.07), transparent 55%),
    var(--bg);
  line-height:1.6;
}

a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}

.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* === Prominent sticky nav bar === */
.site-head{
  position:sticky; /* stays visible on scroll */
  top:0;
  z-index:1000;
  background:#0e111a;             /* deep, clean contrast */
  border-bottom:3px solid var(--accent);
  box-shadow:0 6px 18px rgba(0,0,0,.12);
  margin-top:12px;                /* breathing room from the top edge */
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:72px;                /* roomy bar height */
  padding-block:14px;
}

/* brand lockup */
.brand{
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight:800;
  letter-spacing:.3px;
  color:#fff;
}
.logo{
  width:36px;height:36px;border-radius:10px;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
  display:grid;place-items:center;color:#07121b;font-weight:900;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}

/* links */
.links{display:flex;gap:1rem}
.site-head .links a{
  color:#fff;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  opacity:.95;
  transition:background .2s ease, opacity .2s ease, transform .08s ease;
}
.site-head .links a:hover{background:rgba(255,255,255,.08);opacity:1}
.site-head .links a:active{transform:translateY(1px)}

/* nav CTA */
.site-head .links .cta{
  background:var(--accent);
  color:#0e111a !important;
  border:1px solid var(--accent);
}
.site-head .links .cta:hover{filter:brightness(.95)}

/* Keyboard focus (a11y) */
.site-head .links a:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  box-shadow:0 0 0 2px rgba(199,154,0,.2);
}

/* Anchor jumps won't hide under the sticky bar */
section[id]{scroll-margin-top:96px}

/* === Hero === */
.hero{padding:80px 0 44px;text-align:left}
.eyebrow{
  display:inline-block;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;
  color:var(--muted);
  border:1px solid rgba(255,255,255,.1);
  border-radius:999px;padding:.35rem .7rem;
  background:rgba(18,24,33,.6)
}
h1{font-size:clamp(28px,4vw,48px);line-height:1.15;margin:.75rem 0 1rem;font-weight:900}
.lead{color:var(--muted);max-width:780px}
.badge{
  display:inline-block;background:linear-gradient(180deg,var(--brand),var(--brand2));
  color:#07121b;border-radius:999px;padding:.15rem .5rem;font-weight:800
}

/* === Buttons === */
.btn{
  display:inline-flex;align-items:center;gap:.5rem;border-radius:12px;
  padding:.8rem 1rem;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.04);color:var(--text);cursor:pointer
}
.btn.primary{
  background:linear-gradient(180deg,rgba(100,193,255,.18),rgba(140,240,224,.12));
  border-color:rgba(100,193,255,.45)
}
.btn.primary:focus,.btn.primary:hover{outline:none;box-shadow:var(--ring)}

/* === Layout === */
section{padding:56px 0}
.grid{display:grid;gap:22px}
.g3{grid-template-columns:repeat(3,1fr)}
.g2{grid-template-columns:repeat(2,1fr)}
@media(max-width:1000px){.g3{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.g2,.g3{grid-template-columns:1fr}}

/* === Cards === */
.card{
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;padding:22px;
  box-shadow:0 10px 30px rgba(0,0,0,.35)
}
.card h3{margin:0 0 .4rem}
.card p{margin:.2rem 0 1rem;color:var(--muted)}
.card ul{margin:.2rem 0 1rem 1.2rem;color:var(--muted)}
.card .actions{display:flex;gap:.6rem;flex-wrap:wrap}

/* === Forms === */
.form label{display:flex;flex-direction:column;gap:.3rem}
.form input,.form textarea{
  width:100%;padding:.65rem .75rem;background:#0d1520;
  border:1px solid rgba(255,255,255,.12);border-radius:10px;color:var(--text)
}
.form input:focus,.form textarea:focus{outline:none;box-shadow:var(--ring)}
.form .req{color:#ffb4b4;margin-left:.2rem}
.form .hp{position:absolute!important;left:-50000px!important;opacity:0}

/* === Helpers === */
.muted{color:var(--muted)}
.site-foot{padding:40px 0 70px;color:var(--muted);text-align:center}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* === Mobile tweaks === */
@media (max-width: 720px){
  .nav{min-height:64px;padding-block:10px}
  .site-head .links a{padding:8px 10px}
  
  /* === NAV FIXES (spacing + no-wrap + separation) === */

/* More space from the browser frame + clearer separation */
.site-head{
  margin-top: 18px;                 /* increase top gap (set to 0 if you want flush) */
  box-shadow: 0 8px 28px rgba(0,0,0,.18);
  border-bottom: 3px solid var(--accent);
}

/* Taller bar; remove any fixed height conflicts */
.nav{
  min-height: 78px;
  padding-block: 16px;
  height: auto;
}

/* Keep each link on a single line so "Gold Mining News" doesn't wrap */
.site-head .links a{
  white-space: nowrap;              /* <- stops the two-line wrap */
  line-height: 1.15;
  padding: 10px 12px;
}

/* Ensure anchor jumps don't hide under the taller sticky bar */
section[id]{ scroll-margin-top: 120px; }

/* Optional: small-screen tweak so the row remains comfy */
@media (max-width: 900px){
  .nav{ min-height: 72px; padding-block: 12px; }
  .site-head .links a{ padding: 8px 10px; }
  
  /* ===== Mobile nav fixes: Android + iPhone ===== */

/* Respect iOS notches and keep sticky bar clear of the status bar */
@supports (padding: max(0px)) {
  .site-head { padding-top: max(0px, env(safe-area-inset-top)); }
  .site-head { top: env(safe-area-inset-top); }
}

/* Base link tweaks so touch targets are large and single-line */
.site-head .links a{
  display:inline-flex;               /* allows vertical centering + min size */
  align-items:center;
  white-space:nowrap;                /* stop wrapping (e.g., “Gold Mining News”) */
  min-height:44px;                   /* Apple HIG touch target */
  line-height:1;
}

/* Tablet / small desktop refinements */
@media (max-width: 900px){
  .nav{
    min-height:72px;
    padding-block:12px;
    gap:10px;
  }
  /* Make the link row scroll horizontally if it overflows */
  .site-head .links{
    flex:1 1 auto;
    display:flex;
    flex-wrap:nowrap;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch; /* smooth momentum on iOS */
    gap:.75rem;
    overscroll-behavior-x:contain;
    scrollbar-width:none;             /* Firefox */
  }
  .site-head .links::-webkit-scrollbar{ display:none; } /* Chrome/Safari */
  .site-head .links a{ padding:10px 12px; }
}

/* Phones: tighten spacing, hide long brand text to free room */
@media (max-width: 560px){
  .logo{ width:30px; height:30px; }
  .brand .brand-text{ display:none; }        /* keep the CA badge only */
  .site-head{ margin: 12px 10px 0; border-radius:12px; overflow:hidden; }
  .site-head .links{ gap:.55rem; }
  .site-head .links a{ padding:10px 10px; font-size:15px; }
}

/* Extra: bigger top gap + stronger separation (works with rounded bar above) */
.site-head{
  margin-top:18px;                   /* breathing room from frame */
  box-shadow:0 8px 28px rgba(0,0,0,.18);
}

/* Ensure anchor jumps don’t hide under the taller sticky bar */
section[id]{ scroll-margin-top: 120px; }
  
  /* —— Ticker right under the header gold line —— */
.ticker-bar{
  background:#0e111a;
  border-bottom:1px solid rgba(255,255,255,.08);
  /* sits snug under the header; tweak padding if you want it taller */
  padding:6px 0;
}
.ticker-bar .container{
  max-width:1100px;
  margin:0 auto;
  padding:0 20px;
}

/* Make sure sticky header + ticker don’t hide anchor targets */
section[id]{ scroll-margin-top: 140px; }

@media (max-width:720px){
  .ticker-bar{ padding:4px 0; }
}

}
}