/* ============================================
   RigbyTEK - Static Site Styles
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #0f172a;
  --bg-light: #1e293b;
  --bg-card: #1e293b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-heading: #f8fafc;
  --border: #334155;
  --accent: #38bdf8;
  --success: #22c55e;
  --radius: 8px;
  --max-width: 1100px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

hr { border: none; border-top: 1px solid var(--border); margin: 3rem 0; }

/* ---- HEADER ---- */
.site-header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }
.logo:hover { color: var(--text-heading); }

.main-nav { display: flex; gap: 2rem; }
.main-nav a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a.active { color: var(--text-heading); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ---- HERO ---- */
.hero {
  padding: 6rem 0 5rem;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg) 100%);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-heading);
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ---- SERVICE CARDS ---- */
.services-grid { padding: 5rem 0; }

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.card-icon { font-size: 2rem; margin-bottom: 1rem; }
.card h3 {
  color: var(--text-heading);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}
.card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ---- WHY US ---- */
.why-us {
  padding: 4rem 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-us h2 {
  color: var(--text-heading);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.why-us p {
  color: var(--text-muted);
  max-width: 800px;
  margin-bottom: 1.5rem;
}

.check-list { list-style: none; padding: 0; }
.check-list li {
  padding: 0.5rem 0 0.5rem 2rem;
  position: relative;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

/* ---- CTA BANNER ---- */
.cta-banner {
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 {
  color: var(--text-heading);
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.cta-banner p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; }

/* ---- PAGE CONTENT ---- */
.page-content {
  padding: 4rem 0;
}

.page-content h1 {
  font-size: 2.5rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.page-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.page-content h2 {
  font-size: 1.75rem;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.page-content h3 {
  font-size: 1.25rem;
  color: var(--text-heading);
  margin-bottom: 0.75rem;
}

.page-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 800px;
}

.page-content ul {
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.page-content li { margin-bottom: 0.5rem; }

.page-content em {
  color: var(--accent);
  font-style: italic;
}

.page-content strong { color: var(--text-heading); }

.cta-inline { text-align: center; padding: 2rem 0; }

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
}

.contact-form { margin-top: 1rem; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.required { color: var(--primary); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-info-section h2 { margin-bottom: 1.5rem; }
.contact-info-section p { margin-bottom: 0.75rem; }

/* ---- FOOTER ---- */
.site-footer {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { display: inline-block; margin-bottom: 0.75rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; }

.site-footer h4 {
  color: var(--text-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.footer-contact p,
.footer-links p { margin-bottom: 0.5rem; }
.footer-contact a,
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-contact a:hover,
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1.05rem; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .cta-buttons { flex-direction: column; align-items: center; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-light);
    flex-direction: column;
    padding: 1rem 24px;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .mobile-toggle { display: block; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .page-content h1 { font-size: 2rem; }
}
