/* ================================================
   Enjoy Automation — Professional Engineering Site
   Shared Stylesheet
   ================================================ */

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

:root {
  --navy:       #0a1628;
  --navy-mid:   #112240;
  --steel:      #1e3a5f;
  --accent:     #e8630a;
  --accent-lt:  #ff7f2a;
  --silver:     #8892a4;
  --light:      #ccd6f6;
  --white:      #f0f4ff;
  --text:       #e2e8f0;
  --text-muted: #94a3b8;
  --border:     rgba(255,255,255,0.08);
  --radius:     8px;
  --shadow:     0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.25s ease;
  --max-w:      1200px;
  --nav-h:      72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--accent-lt); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { color: var(--text-muted); margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ---------- Layout Helpers ---------- */
.container  { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section    { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.section-alt { background: var(--navy-mid); }

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

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p  { max-width: 600px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-lt);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232,99,10,0.35);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-lt);
  transform: translateY(-2px);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--white);
  text-decoration: none;
}
.nav-logo img { height: 40px; width: auto; }
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}
.nav-links a {
  color: var(--silver);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all var(--transition);
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}
.nav-links .btn {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

.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: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: #010c18;
}

/* SVG circuit-hex background */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-bg.svg') center/cover no-repeat;
}

/* Overlay — darkens the SVG slightly and lets text pop */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(1, 12, 24, 0.55) 0%,
    rgba(1, 12, 24, 0.25) 55%,
    rgba(1, 12, 24, 0.45) 100%
  );
}

/* Hide old grid overlay — not needed with SVG bg */
.hero-grid { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

/* Eyebrow pill — cyan theme to match hex background */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 200, 224, 0.12);
  border: 1px solid rgba(0, 200, 224, 0.35);
  color: #00e0cc;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 { margin-bottom: 1.25rem; }

/* Accent word stays orange — pops nicely on dark teal */
.hero h1 span { color: var(--accent); }
.hero p {
  font-size: 1.15rem;
  color: var(--silver);
  margin-bottom: 2.5rem;
  max-width: 560px;
  line-height: 1.75;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-stats {
  position: absolute;
  bottom: 3rem;
  right: 0;
  z-index: 2;
  display: flex;
  gap: 2rem;
}
.hero-stat {
  text-align: center;
  background: rgba(0, 200, 224, 0.05);
  border: 1px solid rgba(0, 200, 224, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  backdrop-filter: blur(6px);
}
.hero-stat .num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .lbl {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition);
}
.card:hover {
  border-color: rgba(232,99,10,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: 10px;
  background: rgba(232,99,10,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.card h3 { margin-bottom: 0.75rem; font-size: 1.1rem; }
.card p  { font-size: 0.9rem; }

/* ---------- Service Feature Block ---------- */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.feature-block:last-child { border-bottom: none; }
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-visual {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.feature-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.feature-text h2 { margin-bottom: 1rem; }
.feature-text p  { margin-bottom: 1.5rem; }
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ---------- Industry Cards ---------- */
.industry-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.industry-card:hover {
  border-color: rgba(232,99,10,0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.industry-card-img {
  aspect-ratio: 16/9;
  background: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.industry-card-body { padding: 1.75rem; }
.industry-card-body h3 { margin-bottom: 0.75rem; }
.industry-card-body p  { font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ---------- Project Cards ---------- */
.project-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: all var(--transition);
}
.project-card:hover {
  border-color: rgba(232,99,10,0.3);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.project-card-img {
  aspect-ratio: 16/9;
  background: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
}
.project-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  background: rgba(10,22,40,0.85);
  border: 1px solid var(--border);
  color: var(--accent-lt);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}
.project-card-body { padding: 1.5rem; }
.project-card-body h3 { margin-bottom: 0.5rem; }
.project-card-body p  { font-size: 0.875rem; }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 5rem;
  background: var(--navy-mid);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 50%, rgba(232,99,10,0.08) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p  { font-size: 1.1rem; max-width: 600px; }

/* ---------- About Page ---------- */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.value-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.value-icon { font-size: 2rem; margin-bottom: 1rem; }
.value-item h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.value-item p  { font-size: 0.875rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-item-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(232,99,10,0.12);
  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.9rem; }
.contact-item-text span   { font-size: 0.875rem; color: var(--text-muted); }

.contact-form {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--light);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select option { background: var(--navy); }

/* ---------- CTA Banner ---------- */
.cta-banner {
  padding: 6rem 0;
  background: var(--steel);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(232,99,10,0.15) 0%, transparent 70%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p  { max-width: 520px; margin: 0 auto 2.5rem; font-size: 1.05rem; }
.cta-banner .cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
  background: #060e1a;
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: 0.875rem; margin-top: 1rem; max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.footer-logo img { height: 32px; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.footer-tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ---------- Divider ---------- */
.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.divider-center { margin: 1rem auto 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(10,22,40,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-block, .feature-block.reverse { direction: ltr; grid-template-columns: 1fr; gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { position: static; margin-top: 3rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
