/* ============================================
   EGH Space - Main Stylesheet
   ============================================ */

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

:root {
  --primary: #0a2540;
  --accent: #00b4d8;
  --accent-dark: #0096c7;
  --text: #1a1a2e;
  --text-light: #555f77;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 4px 24px rgba(10,37,64,0.10);
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--accent-dark);
}

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

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

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 37, 64, 0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(10,37,64,0.18);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-text {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.nav-logo-sub {
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: block;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: #c9d6e8;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 22px;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a2540 0%, #0d3b6e 60%, #0a2540 100%);
  display: flex;
  align-items: center;
  padding-top: 68px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,180,216,0.13) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,180,216,0.15);
  border: 1px solid rgba(0,180,216,0.35);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.18;
  margin-bottom: 22px;
  letter-spacing: -0.5px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-desc {
  font-size: 1.08rem;
  color: #a8bcd4;
  margin-bottom: 38px;
  max-width: 520px;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.97rem;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline {
  border: 2px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 12px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.97rem;
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0,180,216,0.07);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-group {
  position: relative;
  width: 340px;
  height: 320px;
}

.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(8px);
  color: #fff;
}

.hero-card:nth-child(1) { top: 0; left: 0; width: 220px; }
.hero-card:nth-child(2) { bottom: 0; right: 0; width: 200px; }

.hero-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.hero-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.hero-card p {
  font-size: 0.8rem;
  color: #a8bcd4;
  line-height: 1.5;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */

section {
  padding: 90px 0;
}

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

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 52px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  background: var(--primary);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}

.stat-item {
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: #a8bcd4;
  font-weight: 500;
}

/* ============================================
   SERVICES
   ============================================ */

.services {
  background: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 30px;
  transition: box-shadow 0.25s, transform 0.2s, border-color 0.2s;
}

.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.service-icon {
  width: 54px;
  height: 54px;
  background: rgba(0,180,216,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 22px;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ============================================
   ABOUT
   ============================================ */

.about {
  background: var(--bg-alt);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.about-list {
  list-style: none;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-light);
}

.about-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  margin-top: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M13.78 4.22a.75.75 0 0 1 0 1.06l-7.25 7.25a.75.75 0 0 1-1.06 0L2.22 9.28a.75.75 0 0 1 1.06-1.06L6 10.94l6.72-6.72a.75.75 0 0 1 1.06 0z'/%3E%3C/svg%3E");
  background-size: 11px;
  background-repeat: no-repeat;
  background-position: center;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 2px 12px rgba(10,37,64,0.06);
}

.about-feature-card .icon {
  font-size: 1.6rem;
  min-width: 40px;
}

.about-feature-card h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.about-feature-card p {
  font-size: 0.87rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   INDUSTRIES
   ============================================ */

.industries {
  background: var(--bg);
}

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.industry-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 22px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  background: var(--bg);
}

.industry-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
  transform: translateY(-3px);
}

.industry-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}

.industry-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  background: var(--bg-alt);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--text-light);
  font-size: 0.97rem;
  margin-bottom: 36px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(0,180,216,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item-text strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.contact-item-text span,
.contact-item-text a {
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-form {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.93rem;
  color: var(--text);
  font-family: inherit;
  background: var(--bg-alt);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
  margin-top: 8px;
}

.form-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--primary);
  color: #a8bcd4;
  padding: 60px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  color: #8fa3bc;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  color: #8fa3bc;
  font-size: 0.9rem;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  color: #5a7290;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: #5a7290;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--accent);
}

/* ============================================
   LEGAL PAGES
   ============================================ */

.legal-hero {
  background: var(--primary);
  padding: 120px 0 60px;
  text-align: center;
}

.legal-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.legal-hero p {
  color: #a8bcd4;
  font-size: 1rem;
}

.legal-content {
  padding: 72px 0 96px;
  background: var(--bg);
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.legal-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 10px;
}

.legal-body p {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 16px;
}

.legal-body ul {
  margin: 12px 0 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-body ul li {
  font-size: 0.96rem;
  color: var(--text-light);
  line-height: 1.7;
}

.legal-body a {
  color: var(--accent);
}

.legal-info-box {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 36px;
}

.legal-info-box p {
  margin: 0;
  font-size: 0.93rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual { display: none; }
  .hero-actions { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(10,37,64,0.98); padding: 24px; gap: 18px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
  .contact-form { padding: 28px 20px; }
}
