/* Design tokens */
:root {
  --bg-outside: #1a7f2e;        /* green outside frame (adjust if needed) */
  --frame: #ffffff;             /* white frame border */
  --surface: #ffffff;           /* content surface inside frame */

  --text: #1a1a1a;
  --muted: #6b7280;

  --brand: #0057b8;             /* primary blue */
  --brand-dark: #004a9d;
  --accent: #00c853;            /* CTA green */

  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e5e7eb;

  --impact-bg: #e8f5e9;         /* soft green */
  --shadow-lg: 0 20px 35px rgba(0,0,0,0.12);
  --shadow-md: 0 12px 24px rgba(0,0,0,0.10);
  --shadow-sm: 0 6px 12px rgba(0,0,0,0.08);

  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --container: 1200px;
  --container-sm: 1100px;
  --container-xs: 680px;
}

/* Base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: var(--bg-outside);        /* green outside the frame */
  line-height: 1.6;
}

/* Single site-wide frame */
.site-frame {
  max-width: var(--container);
  margin: 24px auto;
  padding: 24px;
  border: 8px solid var(--frame);       /* white frame border */
  border-radius: var(--radius-lg);
  background: var(--surface);           /* white content area */
  box-shadow: var(--shadow-lg);
}

/* Header */
.header { position: relative; z-index: 10; }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 12px 8px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-icon { width: 48px; height: 48px; object-fit: contain; }
.brand-name { font-weight: 800; letter-spacing: 0.4px; color: var(--brand); text-transform: uppercase; }

.nav-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 600; }
.nav-link:hover { color: var(--brand); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-weight: 700; border-radius: var(--radius-sm);
  padding: 12px 22px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #00b64d; }

.btn-neutral { background: var(--gray-100); color: var(--text); }
.btn-neutral:hover { background: var(--gray-200); }

.btn-outline { border: 2px solid var(--brand); color: var(--brand); background: transparent; }
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-small { padding: 8px 14px; font-weight: 700; }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0,87,184,0.20) 0%, rgba(0,87,184,0.08) 100%);
}
.hero-media { position: absolute; inset: 0; }
.hero-bg {
  position: absolute; inset: 0;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.02);
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.05) 100%);
}

.hero-content {
  position: relative; z-index: 1;
  max-width: 900px; margin: 0 auto; text-align: center; padding: 54px 22px;
}
.hero-title {
  margin: 0 0 10px; font-size: 2.8rem; line-height: 1.1; letter-spacing: -0.5px; color: #fff; font-weight: 800;
}
.hero-subtitle {
  margin: 0 0 22px; font-size: 1.15rem; color: #eef3f8;
}
.hero-actions { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* Sections */
.section { padding: 80px 12px; }
.section-alt { background: var(--gray-50); border-radius: var(--radius-lg); }
.section-impact { background: var(--impact-bg); border-radius: var(--radius-lg); }

.container { max-width: var(--container-sm); margin: 0 auto; }
.section-head { text-align: center; margin: 0 0 28px; }
.section-title { margin: 0 0 8px; font-size: 2rem; font-weight: 800; color: var(--brand); }
.section-desc { margin: 0; color: var(--muted); }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
}

/* Cards */
.feature-card, .service-card {
  background: #fff; border: 1px solid #e6ebf2; border-radius: var(--radius-md);
  box-shadow: var(--shadow-md); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover, .service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature-media, .service-media { height: 180px; background: var(--gray-100); }
.feature-media img, .service-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature-title, .service-title { margin: 14px 16px 6px; font-size: 1.1rem; font-weight: 800; color: var(--brand); }
.feature-text, .service-text { margin: 0 16px 18px; color: var(--muted); }

/* Impact metrics */
.metric-card {
  background: #fff; border: 1px solid #d9e7dc; border-radius: var(--radius-md);
  padding: 18px; text-align: center; box-shadow: var(--shadow-sm);
}
.metric-title { margin: 0 0 6px; font-weight: 800; color: #0f7a3b; }
.metric-text { margin: 0; color: var(--muted); }

/* Why cards */
.why-card {
  background: #fff; border: 1px solid #e6ebf2; border-radius: var(--radius-md);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.why-title { margin: 0 0 6px; font-weight: 800; color: var(--brand); }
.why-text { margin: 0; color: var(--muted); }

/* Footer */
.footer { margin-top: 24px; }
.footer-inner { padding: 44px 0; }
.footer-top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 24px;
}
.footer-cta .btn-primary { padding: 12px 18px; }

.footer-grid {
  display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--gray-50); border: 1px solid #e6ebf2; border-radius: var(--radius-md); padding: 18px;
}
.footer-title { margin: 0 0 8px; font-weight: 800; color: var(--brand-dark); }
.footer-text, .footer-list { margin: 0; color: var(--muted); }
.footer-list { list-style: none; padding: 0; }
.footer-list li { margin: 6px 0; }

.footer-bottom { text-align: center; margin-top: 18px; color: var(--muted); }

/* Responsive frame and typography */
@media (max-width: 1024px) {
  .site-frame { max-width: 960px; padding: 20px; border-width: 7px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .site-frame { max-width: var(--container-xs); padding: 16px; border-width: 6px; margin: 16px auto; }
  .header-inner { flex-wrap: wrap; }
  .brand-name { font-size: 1.05rem; }
  .hero { min-height: 60vh; }
  .hero-title { font-size: 2.2rem; }
}
@media (max-width: 480px) {
  .site-frame { max-width: 94%; padding: 12px; border-width: 5px; margin: 12px auto; }
  .nav-list { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .hero { min-height: 52vh; }
  .hero-content { padding: 36px 16px; }
  .hero-title { font-size: 1.9rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
