/* =========================================================
   MATRIXGEN LIMITED — Shared Stylesheet
   Theme: Teal / Green modern
   ========================================================= */

:root {
  --teal-dark: #0a3d3f;
  --teal: #0d7a76;
  --teal-bright: #1eb39e;
  --green-accent: #5ed6a3;
  --green-soft: #e8faf3;
  --ink: #16292a;
  --ink-soft: #4a5d5e;
  --paper: #ffffff;
  --paper-alt: #f4faf8;
  --border: #dcece7;
  --shadow: 0 10px 30px rgba(10, 61, 63, 0.08);
  --radius: 14px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--teal-dark);
  line-height: 1.25;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  background: var(--green-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(13, 122, 118, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(13, 122, 118, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-outline:hover {
  background: var(--teal-dark);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  background: #ffffff;
  color: var(--teal-dark);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 42px;
  width: auto;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  color: var(--ink);
  transition: background 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
  background: var(--green-soft);
  color: var(--teal);
}

.main-nav a.active {
  background: var(--teal-dark);
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--teal-dark);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--teal-dark);
  margin: 4px 0;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(circle at 12% 20%, rgba(94, 214, 163, 0.18), transparent 45%),
    radial-gradient(circle at 88% 80%, rgba(30, 179, 158, 0.16), transparent 45%),
    linear-gradient(180deg, var(--paper-alt) 0%, #ffffff 100%);
  padding: 84px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero p.lead {
  font-size: 1.12rem;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-art {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 28px;
}

.hero-art ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.hero-art li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--paper-alt);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-bright);
  flex-shrink: 0;
}

/* ---------- Page header (inner pages) ---------- */
.page-header {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
}

/* ---------- Sections ---------- */
section {
  padding: 72px 0;
}

.section-alt {
  background: var(--paper-alt);
}

.section-head {
  max-width: 680px;
  margin: 0 0 44px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 26px;
}

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

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 61, 63, 0.12);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.card ul {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.card ul li {
  margin-bottom: 6px;
}

/* Service page — detailed rows */
.service-block {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 26px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
}

.service-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--teal);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--teal-bright);
}

.service-block h3 {
  margin-bottom: 8px;
}

.service-block p {
  margin-bottom: 10px;
}

.service-block ul {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.service-block ul li {
  margin-bottom: 6px;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat h3 {
  font-size: 2.2rem;
  color: var(--teal);
  margin-bottom: 6px;
}

.stat p {
  margin: 0;
  font-weight: 600;
  color: var(--ink-soft);
}

/* ---------- Values / About ---------- */
.values-grid {
  grid-template-columns: repeat(3, 1fr);
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-hero .panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: #fff;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  margin: 0 auto 28px;
}

/* ---------- Contact ---------- */
.contact-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 44px;
}

.contact-info .item {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.contact-info .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--green-soft);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}

.contact-info h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.contact-info p {
  margin: 0;
}

.map-embed {
  margin-top: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-embed iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

form.contact-form {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--teal-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  margin-bottom: 18px;
  background: var(--paper-alt);
  color: var(--ink);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal-bright);
  outline-offset: 1px;
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: -6px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}

.footer-grid img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-grid p {
  color: rgba(255,255,255,0.72);
}

.footer-grid h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid ul li {
  margin-bottom: 10px;
}

.footer-grid ul a {
  color: rgba(255,255,255,0.75);
  transition: color 0.15s ease;
}

.footer-grid ul a:hover {
  color: var(--green-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .container,
  .about-hero,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    inset: 68px 16px auto 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 10px;
    display: none;
    z-index: 99;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav a {
    text-align: center;
  }

  .nav-toggle {
    display: block;
  }

  .grid-3, .grid-2, .values-grid {
    grid-template-columns: 1fr;
  }

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

  .service-block {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
