/* ============================================================
   Forge Systems Limited — Global Styles
   Brand: dark steel background · orange accent · silver text
   ============================================================ */

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

:root {
  --orange:   #e86a10;
  --orange-dk:#c45708;
  --bg:       #0d0f14;
  --bg-card:  #161b26;
  --bg-nav:   #0a0c10;
  --silver:   #c8cfd8;
  --white:    #f0f2f5;
  --border:   #252c3a;
  --radius:   8px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--silver);
  line-height: 1.7;
  font-size: 16px;
}

a {
  color: var(--orange);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #ffaa55; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  color: var(--white);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title { margin-bottom: 16px; }
.section-sub {
  color: var(--silver);
  max-width: 600px;
  margin-bottom: 48px;
}

.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}

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

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

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo img {
  height: 40px;
  width: auto;
}
.nav-logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.5px;
}
.nav-logo-text span { color: var(--orange); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 36px;
}
.nav-links a {
  color: var(--silver);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  border-color: var(--orange);
}

.nav-cta { flex-shrink: 0; }

/* Hamburger — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

/* Grid / circuit background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,106,16,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,106,16,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(232,106,16,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,106,16,0.12);
  border: 1px solid rgba(232,106,16,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--orange); }

.hero-sub {
  font-size: 1.15rem;
  color: var(--silver);
  margin-bottom: 40px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Section spacing ---------- */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-card);
}

/* ---------- Cards ---------- */
.cards-grid {
  display: grid;
  gap: 24px;
}
.cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: rgba(232,106,16,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--silver); }

/* ---------- Portfolio Cards ---------- */
.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.portfolio-card:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

.portfolio-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a2236 0%, #0d1526 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 1px solid var(--border);
}

.portfolio-body { padding: 28px; }
.portfolio-body h3 { margin-bottom: 10px; }
.portfolio-body p { font-size: 0.92rem; color: var(--silver); margin-bottom: 16px; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.tag {
  background: rgba(232,106,16,0.12);
  color: var(--orange);
  border: 1px solid rgba(232,106,16,0.25);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ---------- Features / Why list ---------- */
.feature-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--silver);
}
.feature-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(232,106,16,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--orange);
  margin-top: 2px;
}
.feature-list li strong { display: block; color: var(--white); margin-bottom: 2px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(232,106,16,0.15) 0%, rgba(232,106,16,0.04) 100%);
  border: 1px solid rgba(232,106,16,0.25);
  border-radius: 16px;
  padding: 64px 48px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 12px; }
.cta-banner p { margin-bottom: 32px; color: var(--silver); }

/* ---------- Services detail list ---------- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}
.service-detail:last-child { margin-bottom: 0; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }

.service-icon-large {
  font-size: 5rem;
  text-align: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.service-includes {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--silver);
}
.service-includes li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- About page ---------- */
.about-hero {
  padding: 80px 0 0;
}
.about-lead {
  font-size: 1.2rem;
  color: var(--white);
  max-width: 700px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}
.value-card .big-icon { font-size: 2.5rem; margin-bottom: 12px; }
.value-card h3 { font-size: 1rem; margin-bottom: 8px; }
.value-card p { font-size: 0.88rem; color: var(--silver); }

/* ---------- Contact Page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--silver); margin-bottom: 32px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: rgba(232,106,16,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-item-text strong { display: block; color: var(--white); font-size: 0.85rem; margin-bottom: 2px; }
.contact-item-text span { color: var(--silver); font-size: 0.92rem; }

/* Form */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
}
.form-card h3 { margin-bottom: 28px; }

.form-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.form-field.full { grid-column: 1 / -1; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--orange);
}
textarea { resize: vertical; min-height: 120px; }
select option { background: var(--bg-card); }

.form-submit { width: 100%; padding: 15px; font-size: 1rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,106,16,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,106,16,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--silver); font-size: 1.1rem; max-width: 560px; }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 64px;
}
.stat-item {
  background: var(--bg-card);
  padding: 32px 24px;
  text-align: center;
}
.stat-item .stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item .stat-label { font-size: 0.85rem; color: var(--silver); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: var(--silver);
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--silver);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #5a6478;
}
.footer-bottom a { color: #5a6478; }
.footer-bottom a:hover { color: var(--orange); }

/* ---------- Divider ---------- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .service-detail {
    grid-template-columns: 1fr;
  }
  .service-detail.reverse { direction: ltr; }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 20px;
  }
  .nav-links.open + .nav-cta {
    display: block;
    padding: 0 24px 20px;
  }

  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; text-align: center; }

  .cta-banner { padding: 40px 24px; }
  .form-group { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: 1; }
}