/* ═══════════════════════════════════════════════
   GEM STATE CAPITAL — shared.css
   Import this in every page <head> after Google Fonts
   ═══════════════════════════════════════════════ */

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

:root {
  --black:     #0c0c0c;
  --surface:   #141414;
  --surface2:  #1c1c1c;
  --border:    rgba(255,255,255,0.08);
  --gold:      #C9922A;
  --gold-light:#e8b04a;
  --gold-dim:  rgba(201,146,42,0.15);
  --white:     #f5f0e8;
  --muted:     rgba(245,240,232,0.55);
  --font-display: 'Bebas Neue', sans-serif;
  --font-cond:    'Barlow Condensed', sans-serif;
  --font-body:    'Barlow', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--black); color: var(--white); font-family: var(--font-body); font-weight: 300; line-height: 1.65; overflow-x: hidden; }
::selection { background: var(--gold); color: #000; }

/* ── NAV ── */
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center; justify-content: space-between; padding: 0 4vw; height: 68px; background: rgba(12,12,12,0.92); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); transition: background 0.3s; }
.nav-logo { font-family: var(--font-cond); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.nav-logo .gem { width: 28px; height: 28px; background: var(--gold); clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a { font-family: var(--font-cond); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); text-decoration: none; transition: color 0.2s; display: flex; align-items: center; gap: 4px; }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a .caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.dropdown { position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(-6px); background: #1a1a1a; border: 1px solid var(--border); border-radius: 6px; min-width: 180px; padding: 6px 0; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.nav-links > li:hover .dropdown { opacity: 1; pointer-events: all; transform: translateX(-50%) translateY(0); }
.dropdown a { display: block; padding: 9px 18px; font-size: 0.75rem; white-space: nowrap; border-radius: 0; color: var(--muted); }
.dropdown a:hover { background: var(--gold-dim); color: var(--gold); }
.nav-cta { font-family: var(--font-cond); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; background: var(--gold); color: #000 !important; padding: 8px 20px; border-radius: 3px; text-decoration: none; transition: background 0.2s, transform 0.15s; }
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: 0.3s; }

/* ── PAGE HERO ── */
.page-hero { padding: 160px 8vw 100px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero-bg { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(201,146,42,0.06) 0%, transparent 70%); }
.page-hero-grid { position: absolute; inset: 0; z-index: 0; opacity: 0.03; background-image: linear-gradient(rgba(201,146,42,0.8) 1px, transparent 1px), linear-gradient(90deg, rgba(201,146,42,0.8) 1px, transparent 1px); background-size: 60px 60px; }
.page-hero-content { position: relative; z-index: 1; max-width: 760px; }
.page-eyebrow { font-family: var(--font-cond); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 12px; animation: fadeUp 0.6s ease both 0.1s; }
.page-eyebrow::before { content: ''; display: inline-block; width: 40px; height: 1px; background: var(--gold); }
.page-headline { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6.5rem); line-height: 0.93; margin-bottom: 1.6rem; animation: fadeUp 0.7s ease both 0.25s; }
.page-headline span { color: var(--gold); }
.page-sub { font-size: clamp(1rem, 1.6vw, 1.15rem); font-weight: 300; color: var(--muted); line-height: 1.75; animation: fadeUp 0.7s ease both 0.4s; }

/* ── TYPOGRAPHY & LAYOUT ── */
section { padding: 110px 8vw; }
.section-label { font-family: var(--font-cond); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.section-title { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; margin-bottom: 1.2rem; }
.section-sub { font-size: 1.05rem; font-weight: 300; color: var(--muted); max-width: 560px; line-height: 1.7; }
.divider { width: 48px; height: 2px; background: var(--gold); margin: 1.8rem 0 2.8rem; }

/* ── BUTTONS ── */
.btn-primary { font-family: var(--font-cond); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: var(--gold); color: #000; padding: 15px 36px; border-radius: 3px; text-decoration: none; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; border: none; cursor: pointer; display: inline-block; }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,146,42,0.3); }
.btn-outline { font-family: var(--font-cond); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: transparent; color: var(--white); padding: 14px 36px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.25); text-decoration: none; transition: border-color 0.2s, color 0.2s, transform 0.15s; cursor: pointer; display: inline-block; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

/* ── CARDS ── */
.cards-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 3.5rem; }
.card { background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 2.2rem 2rem; transition: border-color 0.25s, transform 0.25s; position: relative; overflow: hidden; }
.card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.card:hover { border-color: rgba(201,146,42,0.3); transform: translateY(-4px); }
.card:hover::after { transform: scaleX(1); }
.card-title { font-family: var(--font-cond); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 0.8rem; }
.card-body { font-size: 0.95rem; color: var(--muted); line-height: 1.7; }

/* ── SECTION WITH TOP GOLD LINE ── */
.section-surface { background: var(--surface); position: relative; overflow: hidden; }
.section-surface::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

/* ── CTA BANNER ── */
.cta-banner { background: var(--black); text-align: center; position: relative; overflow: hidden; padding: 140px 8vw; }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(201,146,42,0.08) 0%, transparent 70%); }
.cta-overline { font-family: var(--font-cond); font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; display: block; position: relative; z-index: 1; }
.cta-headline { font-family: var(--font-display); font-size: clamp(3rem, 7vw, 6rem); line-height: 0.95; position: relative; z-index: 1; margin-bottom: 1.5rem; }
.cta-sub { font-size: 1rem; font-weight: 300; color: var(--muted); margin-bottom: 3rem; position: relative; z-index: 1; max-width: 440px; margin-left: auto; margin-right: auto; }
.cta-btn-wrap { position: relative; z-index: 1; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: #080808; border-top: 1px solid var(--border); padding: 60px 8vw 40px; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 60px; }
.footer-brand p { font-size: 0.875rem; color: var(--muted); max-width: 300px; line-height: 1.7; margin-top: 1rem; }
.footer-col h4 { font-family: var(--font-cond); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.8rem; color: rgba(245,240,232,0.3); }
.footer-bottom a { color: rgba(245,240,232,0.3); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--muted); }
.disclaimer { margin-top: 1.5rem; font-size: 0.72rem; color: rgba(245,240,232,0.2); line-height: 1.6; }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; font-family: var(--font-cond); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; background: var(--surface2); border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; color: var(--white); font-family: var(--font-body); font-size: 0.95rem; font-weight: 300; padding: 12px 16px; outline: none; transition: border-color 0.2s; -webkit-appearance: none; }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(245,240,232,0.25); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); }
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9922A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-group select option { background: #1c1c1c; color: var(--white); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; align-items: flex-start; gap: 0; position: fixed; top: 68px; left: 0; right: 0; background: #111; padding: 1.5rem 6vw 2rem; border-bottom: 1px solid var(--border); max-height: calc(100vh - 68px); overflow-y: auto; z-index: 99; }
  .nav-links.open > li { width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links.open > li > a { padding: 14px 0; font-size: 1rem; width: 100%; }
  .dropdown { position: static; transform: none; opacity: 1; pointer-events: all; background: transparent; border: none; padding: 0 0 10px 16px; }
  .dropdown a { padding: 8px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  section { padding: 80px 6vw; }
  .footer-inner { grid-template-columns: 1fr; }
  .cta-btn-wrap { flex-direction: column; align-items: center; }
}
