/* ==========================================================================
   Mos Infra Solutions — design system
   ========================================================================== */

:root {
  --bg: #0a1220;
  --bg-raised: #101b30;
  --surface: #14213a;
  --surface-border: #223350;
  --accent: #3fa9f5;
  --accent-strong: #1f7fd1;
  --accent-soft: rgba(63, 169, 245, 0.12);
  --text: #e8eef7;
  --text-muted: #9fb0c7;
  --heading: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(2, 8, 20, 0.55);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: #7cc4f8; }

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Header / navigation
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(63, 169, 245, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--heading);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
}

.brand span { font-size: 1.02rem; text-transform: uppercase; }
.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--surface-border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
}

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

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

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

.nav-links a.active {
  color: var(--heading);
  border-bottom-color: var(--accent);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border-bottom: none;
  font-weight: 600;
  transition: filter 0.2s, transform 0.2s;
}

.nav-links .nav-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }

.nav-links .lang-switch {
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--surface-border);
}

.nav-links .lang-switch:hover { border-color: var(--accent); color: var(--heading); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--surface-border);
    padding: 0.5rem 4%;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.85rem 0; border-bottom: 1px solid rgba(34, 51, 80, 0.6); }
  .nav-links a.active { border-bottom-color: var(--accent); }
  .nav-links .nav-cta { margin: 0.9rem 0; text-align: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 7.5rem 0 8rem;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.88) 0%, rgba(10, 18, 32, 0.55) 55%, var(--bg) 100%),
    url("../img/hero.jpg") center 65% / cover no-repeat;
  overflow: hidden;
}

.hero-inner { max-width: 720px; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(63, 169, 245, 0.35);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.4rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.2rem;
}

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: filter 0.2s, transform 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px rgba(31, 127, 209, 0.35);
}

.btn-primary:hover { filter: brightness(1.12); transform: translateY(-2px); color: #fff; }

.btn-ghost {
  border: 1px solid var(--surface-border);
  color: var(--text);
  background: rgba(16, 27, 48, 0.6);
}

.btn-ghost:hover { border-color: var(--accent); color: #fff; transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */

.page-hero {
  padding: 5rem 0 3.5rem;
  background:
    linear-gradient(180deg, rgba(10, 18, 32, 0.92) 0%, var(--bg) 100%),
    url("../img/hero.jpg") center 70% / cover no-repeat;
}

.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero p { color: var(--text-muted); max-width: 640px; font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

section { padding: 4.5rem 0; }

.section-head { max-width: 640px; margin-bottom: 2.8rem; }

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--heading);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.7rem;
}

h3 { color: var(--heading); font-size: 1.18rem; margin-bottom: 0.5rem; }

.section-head p { color: var(--text-muted); }

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

/* --------------------------------------------------------------------------
   Cards & grids
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: 1.4rem;
}

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

@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(63, 169, 245, 0.5);
  box-shadow: var(--shadow);
}

.card .icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(63, 169, 245, 0.3);
  margin-bottom: 1.1rem;
  font-size: 1.3rem;
}

.card p { color: var(--text-muted); font-size: 0.95rem; }

.card ul {
  list-style: none;
  margin: 0.9rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card ul li {
  padding-left: 1.4rem;
  position: relative;
  margin-bottom: 0.45rem;
}

.card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.card .goal {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--surface-border);
  font-size: 0.92rem;
  color: var(--text);
}

.card .goal strong { color: var(--accent); font-weight: 600; }

/* --------------------------------------------------------------------------
   Process steps
   -------------------------------------------------------------------------- */

.step { position: relative; }

.step .num {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), #7cc4f8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.8rem;
}

/* --------------------------------------------------------------------------
   Checklist
   -------------------------------------------------------------------------- */

.checklist {
  list-style: none;
  color: var(--text-muted);
}

.checklist li {
  padding-left: 2rem;
  position: relative;
  margin-bottom: 0.7rem;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.price-card { text-align: left; }

.price-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--heading);
  margin: 0.4rem 0 0.2rem;
}

.price-card .price small { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-top: 0.15rem; }

.highlight-card {
  background: linear-gradient(145deg, rgba(31, 127, 209, 0.25), rgba(63, 169, 245, 0.08));
  border-color: rgba(63, 169, 245, 0.55);
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-photo { max-width: 260px; }
}

.about-photo {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.about-photo img { border-radius: 50%; background: #fff; margin-inline: auto; }
.about-photo h3 { margin-top: 1.2rem; }
.about-photo p { color: var(--text-muted); font-size: 0.9rem; }

.prose p { color: var(--text-muted); margin-bottom: 1.1rem; }
.prose p strong { color: var(--text); }

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }

.tag {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(63, 169, 245, 0.3);
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.contact-item .icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(63, 169, 245, 0.3);
  font-size: 1.15rem;
}

.contact-item h3 { font-size: 1rem; margin-bottom: 0.15rem; }
.contact-item p, .contact-item a { color: var(--text-muted); font-size: 0.96rem; }
.contact-item a:hover { color: var(--accent); }

form .field { margin-bottom: 1.1rem; }

label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

input, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(63, 169, 245, 0.18);
}

textarea { min-height: 150px; resize: vertical; }

button.btn { border: none; cursor: pointer; font: inherit; font-weight: 600; }

.form-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.8rem; }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  background:
    linear-gradient(120deg, rgba(31, 127, 209, 0.35), rgba(10, 18, 32, 0.9)),
    url("../img/hero.jpg") center / cover no-repeat;
  border-top: 1px solid rgba(63, 169, 245, 0.2);
  border-bottom: 1px solid rgba(63, 169, 245, 0.2);
  text-align: center;
  padding: 4.5rem 0;
}

.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { color: var(--text-muted); margin-bottom: 1.8rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: #070d18;
  border-top: 1px solid var(--surface-border);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.93rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.site-footer h3 { font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer p { color: var(--text-muted); }

.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 0.55rem; }
.site-footer ul a { color: var(--text-muted); }
.site-footer ul a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--surface-border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }
