/* ============================================
   ROSCO RR TECH SOLUTIONS — Main Stylesheet
   Palette: Deep navy · Amber gold · Off-white
   Fonts: Syne (headings) · DM Sans (body)
   ============================================ */

:root {
  --navy: #0b1120;
  --navy-mid: #111b2e;
  --navy-light: #1a2845;
  --gold: #f0a500;
  --gold-light: #fbbf24;
  --off-white: #f5f3ee;
  --text: #e8e4dc;
  --text-muted: #8a9ab8;
  --border: rgba(240,165,0,0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3 { font-family: 'Syne', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
em { font-style: italic; color: var(--gold); }
a { color: var(--gold); text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.8; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem 4vw;
  background: rgba(11,17,32,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem; font-weight: 800;
  color: var(--off-white);
  margin-right: auto;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex; list-style: none; gap: 1.8rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.95rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover,
.nav-links a.active { color: var(--off-white); }
.nav-links a.active { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.btn-nav {
  background: var(--gold);
  color: var(--navy);
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-nav:hover { background: var(--gold-light); opacity: 1; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex; align-items: center;
  padding: 6rem 4vw 4rem;
  gap: 4rem;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(240,165,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,165,0,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--navy));
  pointer-events: none;
}
.hero-content { flex: 1; max-width: 640px; }
.hero-badge {
  display: inline-block;
  background: rgba(240,165,0,0.12);
  border: 1px solid var(--border);
  color: var(--gold);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}
.hero-content h1 {
  animation: fadeUp 0.6s 0.1s ease both;
  margin-bottom: 1.2rem;
}
.hero-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  animation: fadeUp 0.6s 0.2s ease both;
  margin-bottom: 2rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.6s 0.3s ease both; }
.btn-primary {
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 700; font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
  border: none; cursor: pointer; display: inline-block;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); opacity: 1; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid rgba(255,255,255,0.2);
  transition: border-color var(--transition), color var(--transition);
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); opacity: 1; }
.btn-full { width: 100%; text-align: center; }

/* hero visual */
.hero-visual {
  flex: 1; position: relative;
  min-height: 380px;
  display: flex; align-items: center; justify-content: center;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.orb1 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(240,165,0,0.25), transparent 70%);
  top: 10%; left: 10%;
}
.orb2 {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(30,80,200,0.3), transparent 70%);
  bottom: 10%; right: 5%;
}
.card-float {
  position: absolute;
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
  max-width: 220px;
}
.card-float.cf2 {
  bottom: 15%; right: 5%;
  animation-delay: -2s;
}
.card-float:first-of-type { top: 20%; left: 0; }
.cf-icon { font-size: 1.5rem; }
.cf-title { font-family: 'Syne', sans-serif; font-size: 0.9rem; font-weight: 700; }
.cf-sub { font-size: 0.75rem; color: var(--text-muted); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  position: relative;
  padding: 6rem 4vw 4rem;
  text-align: center;
  overflow: hidden;
}
.page-hero-content { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.page-hero h1 { margin: 1rem 0 0.8rem; }
.page-hero p { color: var(--text-muted); font-size: 1.05rem; }

/* ── STATS ── */
.stats {
  display: flex; flex-wrap: wrap; gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat {
  flex: 1; min-width: 150px;
  background: var(--navy);
  padding: 2rem;
  text-align: center;
}
.stat span {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 2.2rem; font-weight: 800;
  color: var(--gold);
}
.stat p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ── SECTION ── */
.section { padding: 5rem 4vw; }
.section-alt { background: var(--navy-mid); }
.section-label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.section-title { margin-bottom: 2.5rem; }

/* ── CARDS GRID ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); border-color: rgba(240,165,0,0.4); }
.card-icon { font-size: 2rem; margin-bottom: 0.9rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.92rem; }
.card-link { display: inline-block; margin-top: 1rem; font-size: 0.9rem; font-weight: 600; }
.card-price {
  display: inline-block;
  margin-top: 1rem;
  background: rgba(240,165,0,0.1);
  border: 1px solid var(--border);
  color: var(--gold);
  padding: 0.3rem 0.8rem;
  border-radius: 6px;
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem; font-weight: 700;
}
.card-price span { font-weight: 400; font-size: 0.78rem; color: var(--text-muted); }

/* ── SERVICE TABLE ── */
.service-table { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.service-row {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--navy-light);
  padding: 1.5rem 2rem;
  transition: background var(--transition);
}
.service-row:hover { background: var(--navy-mid); }
.sr-icon { font-size: 1.8rem; flex-shrink: 0; }
.sr-body { flex: 1; }
.sr-body h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.sr-body p { color: var(--text-muted); font-size: 0.9rem; }
.sr-price {
  flex-shrink: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: var(--gold);
  text-align: right;
  min-width: 150px;
}
.sr-price span { display: block; font-size: 0.75rem; font-weight: 400; color: var(--text-muted); }

/* ── SOLUTIONS GRID ── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.sol-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  border-top: 3px solid var(--gold);
  transition: transform var(--transition);
}
.sol-card:hover { transform: translateY(-4px); }
.sol-icon { font-size: 2rem; margin-bottom: 0.8rem; }
.sol-card h3 { margin-bottom: 0.5rem; }
.sol-card p { color: var(--text-muted); font-size: 0.9rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, rgba(240,165,0,0.12), rgba(240,165,0,0.04));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 4vw;
  text-align: center;
}
.cta-content h2 { margin-bottom: 0.6rem; }
.cta-content p { color: var(--text-muted); margin-bottom: 1.8rem; }

/* ── CONTACT ── */
.contact-section { max-width: 1100px; margin: 0 auto; }
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: start; }
.contact-form-wrap h2 { margin-bottom: 1.5rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group select option { background: var(--navy-mid); }
.form-group textarea { resize: vertical; }
.form-success { display: none; text-align: center; padding: 2rem; font-size: 1.1rem; color: var(--gold); }
.contact-info h2 { margin-bottom: 1.5rem; }
.ci-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.2rem; }
.ci-icon { font-size: 1.4rem; flex-shrink: 0; }
.ci-item strong { display: block; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); letter-spacing: 0.05em; text-transform: uppercase; }
.ci-item p, .ci-item a { color: var(--text); font-size: 0.95rem; }
.ci-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.contact-info h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.hours-table { display: flex; flex-direction: column; gap: 0.5rem; }
.hours-table div { display: flex; justify-content: space-between; font-size: 0.92rem; color: var(--text-muted); }

/* ── FOOTER ── */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 3rem 4vw 2rem;
  text-align: center;
}
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  margin-bottom: 0.5rem;
}
.footer-logo span { color: var(--gold); }
.footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; justify-content: center; gap: 2rem; margin: 1.2rem 0; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); opacity: 1; }
.footer-copy { font-size: 0.8rem; color: rgba(138,154,184,0.5); margin-top: 1rem; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { flex-direction: column; min-height: unset; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-visual { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .service-row { flex-direction: column; align-items: flex-start; }
  .sr-price { text-align: left; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
