/* =====================================================
   STRAWHAT SOFTWARE - GLOBAL STYLESHEET
   Theme: Deep Space | Gold & Cyan | Outfit
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-deep:       #050810;
  --bg-mid:        #0a0f1e;
  --bg-card:       rgba(255,255,255,0.03);
  --gold:          #e8b84b;
  --gold-dim:      #a07a20;
  --gold-soft:     rgba(232,184,75,0.15);
  --amber:         #f5a623;
  --cyan:          #22d3ee;
  --blue-glow:     #3b82f6;
  --red-accent:    #D83340;
  --text-main:     #f0ece0;
  --text-body:     #a8a8b8;
  --text-muted:    #5a5a6a;
  --border-card:   rgba(232,184,75,0.18);
  --border-subtle: rgba(255,255,255,0.07);
  --max-w:         1060px;
  --radius:        12px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-deep);
  color: var(--text-body);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}

/* Starfield background — subtle on all pages */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    radial-gradient(1px 1px at 15% 20%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 42% 8%,  rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 68% 35%, rgba(255,255,255,0.30) 0%, transparent 100%),
    radial-gradient(1px 1px at 85% 15%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 25% 60%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 72% 72%, rgba(255,255,255,0.25) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 10% 85%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 90%, rgba(255,255,255,0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 92% 55%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 40%, rgba(255,255,255,0.12) 0%, transparent 100%),
    radial-gradient(1px 1px at 78% 50%, rgba(255,255,255,0.18) 0%, transparent 100%),
    radial-gradient(1px 1px at 5%  50%, rgba(255,255,255,0.15) 0%, transparent 100%);
  pointer-events: none;
}

/* Ambient glow top — warm gold */
body::after {
  content: '';
  position: fixed; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 400px;
  background: radial-gradient(ellipse, rgba(232,184,75,0.05) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}

/* ── Wrapper ── */
.site-wrap {
  position: relative; z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══ HEADER / NAV ═══ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,8,16,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232,184,75,0.12);
}
.site-header::after {
  content: '';
  position: absolute; bottom: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0.5;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 103px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 17px;
  text-decoration: none;
}
/* Hat image cropped to show just the hat, no text */
.header-logo-img {
  position: relative;
  width: 132px;
  height: 64px;
  overflow: hidden;
  flex-shrink: 0;
}
.header-logo-img img {
  position: absolute;
  width: 191px;
  height: auto;
  left: -31px;
  top: -94px;
}
.header-logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--text-main);
  line-height: 1.2;
}
.header-logo-text span { color: var(--gold); }
.header-logo-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--cyan);
  opacity: 0.7;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}
.site-nav a {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-body);
  text-decoration: none;
  padding: 7px 17px;
  border-radius: 7px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}
.site-nav a:hover {
  color: var(--gold);
  border-color: rgba(232,184,75,0.25);
  background: rgba(232,184,75,0.05);
}
.site-nav a.active {
  color: var(--gold);
  border-color: rgba(232,184,75,0.35);
  background: rgba(232,184,75,0.07);
}

/* ═══ PAGE HERO (inner pages) ═══ */
.page-hero {
  padding: 56px 0 44px;
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 240px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}
.page-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.page-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero p {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ═══ CONTENT SECTIONS ═══ */
.content-section {
  padding: 52px 0;
}
.content-section + .content-section {
  border-top: 1px solid var(--border-subtle);
}
.section-label {
  font-size: 10px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 10px;
}
.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.section-title em {
  font-style: normal;
  color: var(--gold);
}

/* ═══ CARDS ═══ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.sh-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.sh-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(232,184,75,0.04) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s;
  pointer-events: none;
}
.sh-card::after {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 28px; height: 28px;
  border-top: 1px solid rgba(232,184,75,0.3);
  border-right: 1px solid rgba(232,184,75,0.3);
  border-radius: 0 var(--radius) 0 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.sh-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,184,75,0.40);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 24px rgba(232,184,75,0.07);
}
.sh-card:hover::before { opacity: 1; }
.sh-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.sh-card-tag {
  font-size: 9px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  border: 1px solid rgba(232,184,75,0.2);
  border-radius: 20px;
  padding: 2px 9px;
  display: inline-block;
  margin-bottom: 12px;
}
.sh-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.4px;
  margin-bottom: 10px;
}
.sh-card p {
  font-size: 13.5px;
  color: var(--text-body);
  line-height: 1.6;
}
.sh-card a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34,211,238,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.sh-card a:hover { color: var(--gold); border-color: var(--gold); }

/* ═══ MISSION / HIGHLIGHT BLOCK ═══ */
.highlight-block {
  background: rgba(232,184,75,0.04);
  border: 1px solid rgba(232,184,75,0.15);
  border-radius: var(--radius);
  padding: 40px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.highlight-block::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.5;
}
.highlight-block .section-label { color: var(--gold-dim); }
.highlight-block p {
  font-size: 15px;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ═══ PROSE (about, terms, privacy) ═══ */
.prose h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  margin: 28px 0 10px;
  letter-spacing: 0.3px;
}
.prose p {
  margin-bottom: 16px;
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.75;
}
.prose ul, .prose ol {
  margin: 0 0 16px 20px;
  font-size: 14.5px;
  color: var(--text-body);
  line-height: 1.75;
}
.prose li { margin-bottom: 6px; }
.prose a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(34,211,238,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.prose a:hover { color: var(--gold); border-color: rgba(232,184,75,0.5); }
.prose strong { color: var(--text-main); font-weight: 600; }

/* ═══ CONTACT ═══ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}
.contact-item {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.contact-item h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.contact-item p { font-size: 14px; color: var(--text-body); margin: 0; }
.contact-item a { color: var(--cyan); text-decoration: none; transition: color 0.2s; }
.contact-item a:hover { color: var(--gold); }

/* ═══ CTA BUTTON ═══ */
.btn-gold {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232,184,75,0.45);
  border-radius: 6px;
  padding: 10px 24px;
  text-decoration: none;
  transition: all 0.25s ease;
  background: transparent;
}
.btn-gold:hover {
  background: rgba(232,184,75,0.1);
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(232,184,75,0.15);
}

/* ═══ DIVIDER ═══ */
.gold-divider {
  width: 180px; height: 1px; margin: 0 auto 32px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

/* ═══ FOOTER ═══ */
.site-footer {
  position: relative;
  margin-top: 80px;
  border-top: 1px solid rgba(232,184,75,0.12);
  background: rgba(5,8,16,0.6);
}
.site-footer::before {
  content: '';
  position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
  opacity: 0.5;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 44px 24px 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand {
  flex: 0 0 auto;
}
.footer-brand-name {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.footer-brand-name span { color: var(--gold); }
.footer-brand-tagline {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 60px;
}
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--gold); }
.footer-dots {
  display: flex; align-items: center; gap: 10px;
}
.footer-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 6px var(--gold);
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-up   { animation: fadeUp  0.7s ease both; }
.anim-up-2 { animation: fadeUp  0.7s 0.1s ease both; }
.anim-up-3 { animation: fadeUp  0.7s 0.2s ease both; }
.anim-up-4 { animation: fadeUp  0.7s 0.3s ease both; }

/* ═══ RESPONSIVE ═══ */
  /* ── Hamburger button ── */
  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(232,184,75,0.07);
    border: 1px solid rgba(232,184,75,0.25);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
  }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Mobile dropdown ── */
  .mobile-nav {
    display: none;
    flex-direction: column;
    background: rgba(5,8,16,0.98);
    border-top: 1px solid rgba(232,184,75,0.12);
    border-bottom: 1px solid rgba(232,184,75,0.12);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.3s ease;
    padding: 0 16px;
  }
  .mobile-nav.open {
    max-height: 400px;
    padding: 8px 16px 12px;
  }
  .mobile-nav a {
    font-family: 'Outfit', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-body);
    text-decoration: none;
    padding: 13px 16px;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a::before {
    content: '';
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(232,184,75,0.3);
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .mobile-nav a:hover,
  .mobile-nav a.active {
    color: var(--gold);
    background: rgba(232,184,75,0.06);
  }
  .mobile-nav a:hover::before,
  .mobile-nav a.active::before { background: var(--gold); }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .header-inner { height: 80px; }
  .header-logo-img { width: 100px; height: 48px; }
  .header-logo-img img { width: 144px; left: -23px; top: -71px; }
  .header-logo-text { font-size: 19px; }
  .header-logo-sub { font-size: 10px; letter-spacing: 3px; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-links { gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .page-hero h1 { font-size: 28px; }
  .highlight-block { padding: 28px 24px; }
}
@media (max-width: 520px) {
  .card-grid-4 { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .header-logo-sub { display: none; }
  .footer-links { flex-direction: column; gap: 20px; }
}
