/* ============================================================
   Morris Technology Group — Design System
   Google Fonts (Sora + DM Sans) loaded via <link> tags in HTML
   ============================================================ */

:root {
  --navy:       #07112b;
  --navy-mid:   #0d1f45;
  --navy-light: #162952;
  --teal:       #00c8d7;
  --teal-dim:   #00a8b5;
  --teal-glow:  rgba(0,200,215,0.14);
  --white:      #ffffff;
  --text:       #e2e8f4;
  --text-muted: #8a9bbf;
  --border:     rgba(0,200,215,0.15);
  --card-bg:    rgba(13,31,69,0.7);
  --font-head:  'Sora', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --max-w:      1140px;
  --ease:       cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(0,200,215,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(0,150,200,0.06) 0%, transparent 60%);
  pointer-events: none; z-index: 0;
}

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 600; }
p  { color: var(--text-muted); font-weight: 300; font-size: 1.05rem; }
a  { text-decoration: none; color: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
section { padding: 5rem 0; position: relative; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1.2rem 0;
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(7,17,43,0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.8rem 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 0 2rem;
}
.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo img { height: 38px; width: auto; display: block; }
.nav-logo-text { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; color: var(--white); line-height: 1.15; letter-spacing: 0.01em; }
.nav-logo-text span { display: block; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }

.nav-links { display: flex; align-items: center; gap: 0.2rem; list-style: none; }
.nav-links a {
  padding: 0.5rem 0.95rem; font-size: 0.9rem; font-weight: 500;
  color: var(--text-muted); border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--teal); }
.nav-cta {
  background: var(--teal) !important; color: var(--navy) !important;
  font-weight: 600 !important; padding: 0.55rem 1.2rem !important;
  border-radius: 8px !important;
}
.nav-cta:hover { background: var(--teal-dim) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none; transition: 0.25s var(--ease);
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: var(--teal-dim); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,200,215,0.28); }
.btn-outline { background: transparent; color: var(--white); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

/* ── Section label ── */
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 1rem;
}
.section-label::before {
  content: ''; display: block;
  width: 20px; height: 2px; background: var(--teal); border-radius: 2px;
}

/* ── Cards ── */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: 0.3s var(--ease); position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0; transition: 0.3s var(--ease);
}
.card:hover { border-color: rgba(0,200,215,0.35); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.card:hover::before { opacity: 1; }

/* ── Icon boxes — use SVG icons ── */
.icon-box {
  width: 48px; height: 48px; border-radius: 13px;
  background: var(--teal-glow); border: 1px solid rgba(0,200,215,0.22);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.2rem; flex-shrink: 0;
}
.icon-box svg {
  width: 21px; height: 21px;
  stroke: var(--teal); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* ── Divider ── */
.divider { width: 44px; height: 3px; background: linear-gradient(90deg, var(--teal), transparent); border-radius: 2px; margin: 1.25rem 0; }

/* ── Footer ── */
.footer { background: var(--navy-mid); border-top: 1px solid var(--border); padding: 4rem 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand p { font-size: 0.9rem; line-height: 1.75; margin-top: 1rem; max-width: 280px; }
.footer-logo { height: 48px; width: auto; }
.footer-col h4 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s; }
.footer-col ul a:hover { color: var(--teal); }
.footer-contact-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.7rem; }
.footer-contact-item svg { width: 14px; height: 14px; stroke: var(--teal); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; color: var(--text-muted); }

/* ── Page Hero ── */
.page-hero { padding: 9rem 0 5rem; position: relative; }
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { font-size: 1.15rem; max-width: 580px; }

/* ── Scroll animations ── */
.fade-up { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Utility ── */
.text-teal  { color: var(--teal); }
.text-white { color: var(--white); }
.text-muted { color: var(--text-muted); }
.mb-sm { margin-bottom: 0.75rem; }
.mb-md { margin-bottom: 1.5rem; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .page-hero { padding: 7rem 0 3rem; }
  .page-hero p { font-size: 1.05rem; }
}
@media (max-width: 600px) {
  section { padding: 3rem 0; }
  .container { padding: 0 1.25rem; }
  h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 4.5vw, 1.8rem); }
  .page-hero { padding: 6.5rem 0 2.5rem; }
  .page-hero p { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .footer-contact-item { overflow-wrap: break-word; word-break: break-word; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.9rem; }
  .hero-actions .btn,
  .btn-group .btn,
  .form-submit { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
  .btn-group { flex-direction: column; align-items: stretch; }
  .card { padding: 1.5rem; }
}

/* ── Mobile nav overlay ── */
.nav-links.open {
  display: flex; flex-direction: column; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(7,17,43,0.98); align-items: center; justify-content: center;
  gap: 0.5rem; z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-links.open a {
  font-size: 1.25rem;
  padding: 0.75rem 2rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}
/* Hamburger toggle must sit above the overlay */
.nav-toggle { z-index: 201; position: relative; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
/* Hamburger → X animation */
.nav-links.open ~ .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-links.open ~ .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-links.open ~ .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Touch targets ── */
@media (max-width: 900px) {
  .nav-links a { min-height: 44px; display: flex; align-items: center; }
  .footer-col ul a { min-height: 44px; display: inline-flex; align-items: center; }
  .learn-more { min-height: 44px; display: inline-flex; align-items: center; }
}
