/* ============================================================
   RGD Industries — Core Stylesheet
   Computer Systems Design & Related Services
   ============================================================ */

/* ----- Reset & Base ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-deep: #080f1a;
  --navy: #0d1b2e;
  --navy-mid: #152238;
  --navy-light: #1e3350;
  --gold: #c8943e;
  --gold-bright: #d4a44a;
  --gold-pale: #f5e6cc;
  --white: #ffffff;
  --off-white: #f7f8fa;
  --gray-light: #e4e7ed;
  --gray-mid: #c0c5ce;
  --text-heading: #0d1b2e;
  --text-body: #2d3544;
  --text-muted: #5c6475;
  --text-on-dark: #e2e6f0;
  --text-on-dark-muted: #a8b4c8;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

a { color: var(--navy-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 90px 0; }
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 2px solid transparent;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: var(--navy-deep);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy-deep);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

/* ----- Header / Navigation ----- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.site-header.scrolled {
  background: rgba(8, 15, 26, 0.97);
  backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
  text-decoration: none;
}
.logo span { color: var(--gold); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  padding: 8px 20px;
  background: var(--gold);
  color: var(--navy-deep) !important;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--gold-bright) !important; color: var(--navy-deep) !important; }
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: all 0.3s;
}

/* ----- Hero Section ----- */
.hero {
  padding: 160px 0 120px;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,148,62,0.10) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(30,51,80,0.6) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-title {
  color: var(--white);
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--gold);
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  max-width: 500px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-card-stack {
  position: relative;
  width: 380px;
  height: 380px;
}
.hero-card {
  position: absolute;
  width: 280px;
  padding: 28px;
  background: var(--navy-mid);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  color: var(--text-on-dark);
}
.hero-card:nth-child(1) {
  top: 0;
  left: 0;
  z-index: 3;
}
.hero-card:nth-child(2) {
  top: 60px;
  left: 50px;
  z-index: 2;
  opacity: 0.7;
}
.hero-card:nth-child(3) {
  top: 120px;
  left: 100px;
  z-index: 1;
  opacity: 0.4;
}
.hero-card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.hero-card h4 {
  color: var(--white);
  margin-bottom: 6px;
  font-size: 1rem;
}
.hero-card p {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ----- Stats Bar ----- */
.stats-bar {
  background: var(--navy);
  padding: 40px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-number {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  font-family: var(--font-heading);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----- About Section ----- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-visual {
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  position: relative;
}
.about-visual::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.about-visual h3 {
  color: var(--white);
  margin-bottom: 20px;
}
.about-visual-items {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.about-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.about-item-icon {
  width: 42px;
  height: 42px;
  background: rgba(200,148,62,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.about-item h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.about-item p {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}
.about-content h2 { margin-bottom: 18px; }
.about-content p {
  color: var(--text-body);
  margin-bottom: 16px;
  font-size: 1rem;
  line-height: 1.75;
}
.about-content .btn { margin-top: 12px; }

/* ----- Services Section ----- */
.services { background: var(--off-white); }
.services-header {
  text-align: center;
  margin-bottom: 56px;
}
.services-header h2 { margin-bottom: 14px; }
.services-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-light);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.service-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ----- Process Section ----- */
.process { background: var(--navy-deep); }
.process .section-label { color: var(--gold); }
.process h2 { color: var(--white); text-align: center; margin-bottom: 56px; }
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  counter-reset: step;
}
.process-step {
  text-align: center;
  position: relative;
}
.process-step::after {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 46px;
  background: var(--gold);
  color: var(--navy-deep);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  z-index: 2;
}
.process-step-content {
  margin-top: 36px;
  padding: 32px 22px 28px;
  background: var(--navy-mid);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.06);
}
.process-step-content h3 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 8px;
}
.process-step-content p {
  color: var(--text-on-dark-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ----- Contact Section ----- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.contact-info h2 { margin-bottom: 18px; }
.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 1.02rem;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}
.contact-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail h4 {
  font-size: 0.9rem;
  color: var(--text-heading);
  margin-bottom: 2px;
}
.contact-detail p {
  font-size: 0.92rem;
  color: var(--text-muted);
}
.contact-detail a { color: var(--navy-light); }
.contact-form-card {
  background: var(--navy-mid);
  border-radius: var(--radius-lg);
  padding: 40px 34px;
  border: 1px solid rgba(255,255,255,0.06);
}
.contact-form-card h3 {
  color: var(--white);
  margin-bottom: 6px;
}
.contact-form-card > p {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  color: var(--white);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit .btn { width: 100%; }

/* ----- Footer ----- */
.site-footer {
  background: var(--navy-deep);
  padding: 64px 0 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 44px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col p {
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  line-height: 1.65;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
  color: var(--text-on-dark-muted);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-brand { margin-bottom: 12px; }
.footer-brand .logo { font-size: 1.3rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p {
  color: var(--text-on-dark-muted);
  font-size: 0.82rem;
}
.footer-bottom-links {
  display: flex;
  gap: 22px;
}
.footer-bottom-links a {
  color: var(--text-on-dark-muted);
  font-size: 0.82rem;
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ============================================================
   Legal Pages (Privacy Policy & Terms of Service)
   ============================================================ */
.legal-page .site-header { position: relative; }
.legal-hero {
  background: var(--navy-deep);
  padding: 110px 0 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,148,62,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.legal-hero h1 {
  color: var(--white);
  position: relative;
  z-index: 1;
}
.legal-hero .effective-date {
  color: var(--text-on-dark-muted);
  font-size: 0.92rem;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}
.legal-content {
  padding: 70px 0 90px;
  background: var(--white);
}
.legal-content-inner {
  max-width: 820px;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 44px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gray-light);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.15rem;
  color: var(--navy-mid);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-content p {
  color: var(--text-body);
  margin-bottom: 14px;
  line-height: 1.78;
  font-size: 1rem;
}
.legal-content ul, .legal-content ol {
  margin: 10px 0 20px 24px;
  color: var(--text-body);
  line-height: 1.78;
}
.legal-content ul li, .legal-content ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}
.legal-content a { color: var(--navy-light); text-decoration: underline; }
.legal-content strong { color: var(--text-heading); }
.legal-content .highlight-box {
  background: var(--off-white);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.legal-content .highlight-box p {
  margin-bottom: 0;
  color: var(--text-body);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 130px 0 90px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-visual::after { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    padding: 20px 24px;
    gap: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }
  .nav-links.mobile-open a { font-size: 1rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-btns { flex-direction: column; }
  .btn { text-align: center; }
}
