/* ============================================
   Reuse Network — Design System
   Clean, green, modern
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Greens */
  --green-900: #064e3b;
  --green-800: #065f46;
  --green-700: #047857;
  --green-600: #059669;
  --green-500: #10b981;
  --green-400: #34d399;
  --green-300: #6ee7b7;
  --green-200: #a7f3d0;
  --green-100: #d1fae5;
  --green-50:  #ecfdf5;

  /* Neutrals */
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50:  #f9fafb;

  --white: #ffffff;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --section-pad: 5rem 0;
  --container-width: 1140px;
  --container-narrow: 800px;

  /* Transitions */
  --transition: 0.25s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--green-500); }

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

.container--narrow {
  max-width: var(--container-narrow);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--gray-900);
}

h1 { font-size: 3rem; letter-spacing: -0.025em; }
h2 { font-size: 2.25rem; letter-spacing: -0.02em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.25rem;
  color: var(--gray-600);
  line-height: 1.8;
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 0.75rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--green-700);
  color: var(--white);
  border-color: var(--green-700);
}
.btn--primary:hover {
  background: var(--green-800);
  border-color: var(--green-800);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--green-700);
  border-color: var(--green-700);
}
.btn--outline:hover {
  background: var(--green-700);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--green-800);
  border-color: var(--white);
}
.btn--white:hover {
  background: var(--green-50);
  border-color: var(--green-50);
  color: var(--green-900);
}

.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--green-800);
  text-decoration: none;
}

.nav__logo svg {
  width: 2rem;
  height: 2rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--green-700);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--gray-700);
}

/* --- Hero --- */
.hero {
  padding: 9rem 0 5rem;
  background: linear-gradient(135deg, var(--green-50) 0%, var(--white) 50%, var(--green-50) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, var(--green-100) 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: 720px;
}

.hero h1 {
  margin-bottom: 1.5rem;
  font-size: 3.5rem;
}

.hero h1 span {
  color: var(--green-600);
}

.hero .lead {
  margin-bottom: 2rem;
  max-width: 600px;
}

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

/* --- Sections --- */
.section {
  padding: var(--section-pad);
}

.section--gray {
  background: var(--gray-50);
}

.section--green {
  background: var(--green-900);
  color: var(--green-100);
}

.section--green h2,
.section--green h3,
.section--green h4 {
  color: var(--white);
}

.section--green .label {
  color: var(--green-300);
}

.section--green-light {
  background: var(--green-50);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__header h2 {
  margin-bottom: 1rem;
}

.section__header p {
  color: var(--gray-600);
  font-size: 1.125rem;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 2rem;
}

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

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--green-300);
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.08);
  transform: translateY(-2px);
}

.card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--green-700);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.card p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

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

.stat__number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--green-400);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.9375rem;
  color: var(--green-200);
}

/* --- Process / Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.step {
  position: relative;
  padding: 2rem 1.5rem;
  text-align: center;
  counter-increment: step-counter;
}

.step::before {
  content: counter(step-counter);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 1.25rem;
}

.step h4 {
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

.testimonial__quote {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.testimonial__quote::before {
  content: '\201C';
  font-size: 2rem;
  color: var(--green-400);
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.15em;
}

.testimonial__author {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.9375rem;
}

.testimonial__role {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* --- Case Study Cards --- */
.case-card {
  background: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.case-card:hover {
  border-color: var(--green-300);
  box-shadow: 0 4px 24px rgba(5, 150, 105, 0.08);
  transform: translateY(-2px);
}

.case-card__img {
  height: 200px;
  background: var(--green-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card__img svg {
  width: 3rem;
  height: 3rem;
  stroke: var(--green-600);
  fill: none;
  stroke-width: 1.5;
}

.case-card__body {
  padding: 1.75rem;
}

.case-card__tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green-700);
  background: var(--green-100);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
}

.case-card__body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.case-card__body p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

.case-card__stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}

.case-card__stat strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-700);
}

.case-card__stat span {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* --- Sector Tags --- */
.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.sector-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}

.sector-tag:hover {
  border-color: var(--green-400);
  background: var(--green-50);
  color: var(--green-800);
}

.sector-tag svg {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--green-600);
  fill: none;
  stroke-width: 2;
}

/* --- CTA Banner --- */
.cta-banner {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: var(--white);
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-banner p {
  color: var(--green-200);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* --- About / Team --- */
.team-member {
  text-align: center;
}

.team-member__photo {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background: var(--green-100);
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-member__photo svg {
  width: 3rem;
  height: 3rem;
  stroke: var(--green-600);
  fill: none;
  stroke-width: 1.5;
}

.team-member h4 {
  margin-bottom: 0.25rem;
}

.team-member p {
  color: var(--gray-500);
  font-size: 0.875rem;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green-200);
}

.timeline__item {
  position: relative;
  padding-bottom: 2rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--green-600);
  border: 3px solid var(--green-100);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__year {
  font-weight: 700;
  color: var(--green-700);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.timeline__item h4 {
  margin-bottom: 0.5rem;
}

.timeline__item p {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--gray-800);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

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

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 4rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand {
  max-width: 280px;
}

.footer__brand p {
  font-size: 0.9375rem;
  margin-top: 1rem;
  color: var(--gray-500);
}

.footer h5 {
  color: var(--white);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul a {
  color: var(--gray-400);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

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

.footer__bottom {
  border-top: 1px solid var(--gray-800);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
}

/* --- Two Column Layout --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col--reverse {
  direction: rtl;
}

.two-col--reverse > * {
  direction: ltr;
}

/* --- Illustration Placeholders --- */
.illustration {
  aspect-ratio: 4/3;
  border-radius: 1rem;
  background: var(--green-50);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--green-100);
}

.illustration svg {
  width: 5rem;
  height: 5rem;
  stroke: var(--green-400);
  fill: none;
  stroke-width: 1;
}

/* --- Page Headers (inner pages) --- */
.page-header {
  padding: 8rem 0 3rem;
  background: var(--green-50);
  text-align: center;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--gray-600);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.5rem; }
  .hero { padding: 7rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }

  .nav__links {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  }

  .nav__links.open { display: flex; }
  .nav__toggle { display: block; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }

  .hero__buttons { flex-direction: column; }
  .hero__buttons .btn { text-align: center; justify-content: center; }
}

/* --- Utility --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
