/* ===================== CTROMED Rwanda — Stylesheet ===================== */

:root {
  --green-900: #0a4a2c;
  --green-800: #0d5c37;
  --green-700: #0f7a45;
  --green-600: #159954;
  --green-100: #e6f4ec;
  --navy-900: #0e1f2b;
  --navy-800: #16303f;
  --ink: #1b2a2f;
  --gray-700: #4b5a5f;
  --gray-500: #7c8b90;
  --gray-200: #e6ebec;
  --gray-100: #f4f7f6;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(14, 31, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(14, 31, 43, 0.16);
  --radius: 14px;
  --container: 1180px;
}

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

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 .6em;
  color: var(--navy-900);
}

h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--gray-700); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }

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

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

.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--gray-100); }
.section-dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: var(--white);
}
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #c4d2d6; }

.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(15, 122, 69, .3);
}
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline-dark {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--gray-200);
}
.btn-outline-dark:hover { border-color: var(--green-700); color: var(--green-700); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 42px; width: auto; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Poppins', sans-serif; font-size: 1.05rem; color: var(--navy-900); }
.brand-text span { font-size: .68rem; letter-spacing: .1em; color: var(--green-700); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy-900);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--green-100);
  color: var(--green-800);
}
.nav-cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--navy-900);
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 24px 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(10,26,20,.92) 30%, rgba(10,26,20,.55) 75%);
  z-index: -1;
}
.hero-inner { max-width: 680px; padding: 100px 0; }
.hero h1 { color: var(--white); }
.hero p.lead { color: #dbe6e2; font-size: 1.1rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }

.page-hero {
  position: relative;
  min-height: 42vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,26,20,.55), rgba(10,26,20,.92));
  z-index: -1;
}
.page-hero-inner { padding: 60px 0 44px; max-width: 760px; }
.page-hero h1 { color: var(--white); }
.breadcrumb { color: #c4d2d6; font-size: .9rem; margin-bottom: 10px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Cards / Grids ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 980px) {
  .grid-3, .grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-5 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { height: 190px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-img img { transform: scale(1.06); }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 10px; }
.card-body p { flex: 1; }
.card-link { font-weight: 600; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; }
.card-link:hover { color: var(--green-900); }

.icon-badge {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.icon-badge svg { width: 26px; height: 26px; }

/* ---------- Sector detail blocks ---------- */
.sector-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 64px 0;
}
.sector-block:not(:last-child) { border-bottom: 1px solid var(--gray-200); }
.sector-block.reverse .sector-media { order: 2; }
.sector-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.sector-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--green-700);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.check-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--gray-700);
}
.check-list svg { flex-shrink: 0; margin-top: 3px; color: var(--green-700); width: 18px; height: 18px; }

@media (max-width: 880px) {
  .sector-block, .sector-block.reverse { grid-template-columns: 1fr; }
  .sector-block.reverse .sector-media { order: 0; }
  .sector-media img { height: 260px; }
}

/* ---------- Stats / feature strips ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.stat h3 { font-size: 2rem; color: var(--green-700); margin-bottom: 4px; }
.stat span { color: var(--gray-500); font-size: .9rem; }
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }

.feature-row { display: flex; gap: 16px; margin-bottom: 26px; }
.feature-row .icon-badge { margin-bottom: 0; }
.feature-row h3 { margin-bottom: 6px; font-size: 1.1rem; }
.feature-row p { margin: 0; }

/* ---------- About / values ---------- */
.value-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--gray-200);
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--green-800), var(--green-700));
  border-radius: 24px;
  padding: 56px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 6px; }
.cta-banner p { color: #dcf0e5; margin: 0; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .icon-badge { background: rgba(255,255,255,.1); color: var(--green-600); }
.contact-item strong { display: block; color: var(--white); margin-bottom: 2px; }
.contact-item span, .contact-item a { color: #c4d2d6; }
.contact-item a:hover { color: var(--white); }

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-top: 24px;
}
.map-frame iframe { width: 100%; height: 260px; border: 0; display: block; }

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-family: inherit;
  font-size: .95rem;
  background: var(--gray-100);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-700);
  background: var(--white);
}
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #c4d2d6; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 40px; border-radius: 6px; }
.footer-brand strong { color: var(--white); font-family: 'Poppins', sans-serif; }
.site-footer h4 { color: var(--white); font-size: .95rem; letter-spacing: .04em; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .85rem;
  color: #90a2a7;
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
