/* =========================================================
   Sema Technologies — Stylesheet
   Modular sections: Tokens, Base, Layout, Components, Pages
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --color-primary: #0b7a5b;
  --color-primary-dark: #075c45;
  --color-accent: #ffb703;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fa;
  --color-border: #e5e7eb;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;

  --max-width: 1100px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.5em; }
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container.narrow { max-width: 880px; }

.section { padding: 4rem 0; }
.section-alt { background: var(--color-bg-alt); }

.section-title {
  font-size: 1.75rem;
  margin-bottom: 0.4em;
}
.section-sub {
  color: var(--color-muted);
  margin-bottom: 2rem;
}

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

@media (max-width: 800px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  h1 { font-size: 1.75rem; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.2px;
}
.brand span { color: var(--color-text); }

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
}
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.4rem;
  cursor: pointer;
}

@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    padding: 1rem 1.25rem;
    gap: 0.75rem;
  }
  .nav-links.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
  font-size: 1rem;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0b7a5b 0%, #075c45 100%);
  color: #fff;
  padding: 5rem 0;
}
.hero-inner { text-align: center; }
.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5em;
}
.hero .lead {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 0 auto 2rem;
  opacity: 0.95;
}
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-outline { color: #fff; border-color: #fff; }
.hero .btn-outline:hover { background: #fff; color: var(--color-primary); }

/* ---------- Page Hero (about/contact) ---------- */
.page-hero {
  background: var(--color-bg-alt);
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--color-border);
}
.page-hero .lead { color: var(--color-muted); margin: 0; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(11, 122, 91, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.bullets {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--color-muted);
}
.bullets li { margin-bottom: 0.3em; }

/* ---------- Feature blocks ---------- */
.feature h4 { color: var(--color-primary); }
.feature p { color: var(--color-muted); margin: 0; }

/* ---------- CTA strip ---------- */
.cta {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 0;
}
.cta-inner { text-align: center; }
.cta h2 { margin-bottom: 0.3em; }
.cta p { opacity: 0.95; margin-bottom: 1.5rem; }

/* ---------- Contact ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.site-footer h5 {
  color: #fff;
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.site-footer li { margin-bottom: 0.4rem; }
.footer-meta {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  line-height: 1.6;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
  color: #94a3b8;
}

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