/* ===========================================================
   Magneor LLC — site stylesheet
   Palette + logo: Omagni blue system
   =========================================================== */

:root {
  --navy: #252D38;
  --navy-deep: #12161C;
  --navy-soft: #1B222C;
  --gray: #5B6472;
  --gray-light: #8B93A0;
  --line: #E3E7EC;
  --line-dark: #2E3946;
  --accent: #086B9E;      /* accessible solid blue — buttons, links, body accents */
  --accent-2: #0B84C4;    /* brighter blue — hovers */
  --grad-start: #6683b7;
  --grad-mid: #4bbbfd;
  --grad-end: #7cffff;
  --bg-light: #F6F9FC;
  --bg-white: #FFFFFF;
  --radius: 14px;
  --maxw: 1160px;
  --shadow: 0 10px 30px rgba(18, 22, 28, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--navy);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .eyebrow, .logo-word {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

a { color: inherit; }

.gradient-text {
  background: linear-gradient(90deg, var(--grad-start), var(--grad-mid) 55%, var(--grad-end));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Poppins', Arial, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(8, 107, 158, 0.28);
}
.btn-primary:hover { background: var(--accent-2); }

.btn-ghost-dark {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-ghost-light {
  border-color: rgba(37,45,56,0.25);
  color: var(--navy);
}
.btn-ghost-light:hover { border-color: var(--navy); background: rgba(37,45,56,0.05); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo img { height: 30px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
}
.nav-links a {
  text-decoration: none;
  color: var(--navy);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover { border-color: var(--accent-2); color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  display: block;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, #1c2734 0%, var(--navy-deep) 62%);
  color: #fff;
  overflow: hidden;
  padding: 108px 0 120px;
  text-align: center;
}
.hero-shape {
  position: absolute;
  border: 1.5px solid rgba(75,187,253,0.16);
  transform: rotate(45deg);
  border-radius: 22%;
}
.hero-shape.s1 { width: 520px; height: 520px; top: -220px; left: -160px; }
.hero-shape.s2 { width: 340px; height: 340px; bottom: -160px; right: -100px; border-color: rgba(124,255,255,0.12); }

.hero-inner { position: relative; z-index: 2; }
.hero .eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-logo {
  width: 128px;
  margin: 0 auto 30px;
  filter: drop-shadow(0 10px 26px rgba(75,187,253,0.35));
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.15;
  font-weight: 600;
  max-width: 780px;
  margin: 0 auto 20px;
}
.hero p.sub {
  color: #B9C2CE;
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 38px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- generic section ---------- */
section { padding: 96px 0; }
.section-light { background: var(--bg-white); }
.section-tint  { background: var(--bg-light); }
.section-dark  { background: var(--navy-deep); color: #fff; }

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent-2);
}
.section-dark .eyebrow { color: var(--grad-mid); }

h2.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  margin: 10px 0 18px;
  max-width: 640px;
}

.section-body { color: var(--gray); font-size: 16.5px; max-width: 560px; }
.section-dark .section-body { color: #AEB7C3; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.about-visual img {
  width: 100%;
  max-width: 300px;
  opacity: 0.92;
}
.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(75,187,253,0.12), transparent 70%);
}

/* ---------- services ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 46px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(18,22,28,0.12); }
.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--grad-start), var(--grad-mid));
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; stroke: #fff; }
.card h3 { font-size: 18px; margin: 0 0 10px; font-weight: 600; }
.card p { color: var(--gray); font-size: 14.5px; margin: 0; }

/* ---------- approach ---------- */
.approach-wrap { display: flex; flex-direction: column; align-items: flex-start; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: flex-start;
}
form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow);
}
form.contact-form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--gray); letter-spacing: 0.3px; }
.field input {
  border: 1.5px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--navy);
  outline: none;
  transition: border-color 0.15s ease;
}
.field input:focus { border-color: var(--accent-2); }
.form-note { font-size: 12.5px; color: var(--gray-light); margin-top: 4px; }
#formStatus { font-size: 13.5px; margin-top: 10px; min-height: 18px; color: var(--accent); }
#formStatus.error { color: #B3261E; }

/* ---------- footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: #AEB7C3;
  padding: 56px 0 30px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-logo { display: flex; align-items: center; gap: 12px; }
.footer-logo img { height: 26px; width: auto; }
.footer-links { display: flex; gap: 26px; list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.footer-links a { text-decoration: none; color: #AEB7C3; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 12.5px;
  color: #6C7686;
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; padding: 10px 0 20px; }
  .card-grid { grid-template-columns: 1fr; }
  form.contact-form { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links { position: absolute; top: 76px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 18px 28px 26px; border-bottom: 1px solid var(--line); display: none; gap: 18px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
}
