/* ============================================
   Moyum — Corporate Website Styles
   Minimal, professional, accessible.
   ============================================ */

:root {
  --clr-primary: #1a365d;       /* dark navy */
  --clr-accent: #2b6cb0;        /* medium blue */
  --clr-light: #ebf4ff;         /* light blue bg */
  --clr-text: #2d3748;          /* body text */
  --clr-muted: #718096;         /* muted text */
  --clr-bg: #ffffff;
  --clr-alt: #f7fafc;           /* alternating section bg */
  --clr-border: #e2e8f0;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --max-w: 1100px;
  --font-main: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--clr-text);
  background: var(--clr-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--clr-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clr-primary); }

/* ---------- helpers ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.section   { padding: 4rem 0; }
.section-alt { background: var(--clr-alt); }

.section-title {
  font-size: 1.75rem;
  color: var(--clr-primary);
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: -.01em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .65rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background .2s, color .2s;
}
.btn-primary {
  background: var(--clr-accent);
  color: #fff !important;
}
.btn-primary:hover { background: var(--clr-primary); }

/* ---------- header ---------- */
.site-header {
  background: var(--clr-bg);
  border-bottom: 1px solid var(--clr-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: auto;
  padding-top: .65rem;
  padding-bottom: .65rem;
}
.logo {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--clr-primary);
  letter-spacing: .02em;
}
.logo img {
  width: 150px;
  height: auto;
  vertical-align: middle;
}
.nav-list { list-style: none; display: flex; gap: 1.5rem; }
.nav-list a {
  color: var(--clr-text);
  font-weight: 500;
  font-size: .95rem;
}
.nav-list a:hover { color: var(--clr-accent); }

.lang-switcher { display: flex; gap: .35rem; }
.lang-btn {
  background: transparent;
  border: 1px solid var(--clr-border);
  border-radius: 4px;
  padding: .25rem .6rem;
  font-size: .8rem;
  cursor: pointer;
  color: var(--clr-text);
  transition: background .2s, color .2s;
}
.lang-btn:hover { background: var(--clr-light); }
.lang-btn.active {
  background: var(--clr-accent);
  color: #fff;
  border-color: var(--clr-accent);
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent) 100%);
  color: #fff;
  padding: 4.5rem 0;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin-bottom: .75rem; letter-spacing: -.02em; }
.hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 1.5rem; }
.hero .btn-primary { background: #fff; color: var(--clr-primary) !important; }
.hero .btn-primary:hover { background: var(--clr-light); }

/* ---------- cards ---------- */
.card {
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

/* ---------- services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.service-card h3 { color: var(--clr-primary); margin-bottom: .75rem; }
.service-card ul { list-style: none; padding-left: 0; }
.service-card li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: .4rem;
  color: var(--clr-text);
}
.service-card li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
}
.card-icon { font-size: 1.8rem; margin-bottom: .5rem; }

/* ---------- products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.product-card {
  display: flex;
  flex-direction: column;
}
.product-body { flex: 1; }
.product-card h2 { color: var(--clr-primary); margin-bottom: .5rem; }
.product-card p  { font-size: .97rem; color: var(--clr-text); }
.product-header { display: flex; align-items: center; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.product-logo          { width: 64px; height: 42px; object-fit: contain; flex-shrink: 0; }
.product-body          { text-align: center; margin-top: .25rem; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-logo[src*="nolan"]   { width: auto; height: calc(42px * 0.9); background: transparent !important; object-fit: contain; }
.product-logo[src*="shield-key-envelope"] { margin-right: .35rem; }
.product-link   { display: inline-block; margin-top: .75rem; color: var(--clr-primary); font-weight: 600; text-decoration: none; transition: opacity .2s; }
.product-link:hover,
.product-link:focus { opacity: .7; }

.product-features {
  list-style: none;
  padding: 0;
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.product-features li {
  font-size: .92rem;
  color: var(--clr-text);
  position: relative;
  padding-left: 1.25rem;
  text-align: center;
}
.product-features li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--clr-accent);
  font-weight: 700;
}

/* ---------- about ---------- */
.about-text { text-align: center; max-width: 680px; margin: 0 auto; font-size: 1.05rem; color: var(--clr-muted); }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}
.contact-panel {
  text-align: center;
}
.contact-panel a { color: var(--clr-accent); }

.contact-email {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-primary);
  margin-bottom: .75rem;
}

.contact-company {
  font-weight: 600;
}

.site-url { margin-top: .3rem; font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--clr-primary);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 1.5rem 0;
  font-size: .875rem;
}
.footer-note {
  margin-top: .4rem;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; height: auto; padding-top: .75rem; }
  .nav-list { gap: 1rem; }
  .hero h1 { font-size: 1.6rem; }
  .section   { padding: 2.5rem 0; }
  .service-grid,
  .product-grid,
  .contact-grid { grid-template-columns: 1fr; }
}
