@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --navy: #0f2a33;
  --teal: #1f7a6d;
  --teal-soft: #2c8f80;
  --aqua: #7ed6c2;
  --sky: #e8f3f0;
  --sand: #f6f4ee;
  --white: #ffffff;
  --muted: #5e6a73;
  --border: #d5e1db;
  --shadow-soft: 0 16px 40px rgba(15, 42, 51, 0.08);
  --shadow-softer: 0 10px 24px rgba(15, 42, 51, 0.06);
  --radius: 18px;
  --radius-pill: 999px;
  --max-width: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  color: var(--navy);
  background: radial-gradient(circle at 18% 12%, rgba(126, 214, 194, 0.22), transparent 32%),
    radial-gradient(circle at 86% 8%, rgba(31, 122, 109, 0.18), transparent 26%),
    linear-gradient(180deg, var(--sand) 0%, #f9fbfa 60%, #eef4f2 100%);
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover, a:focus-visible {
  color: var(--teal-soft);
}

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

h1, h2, h3, h4 {
  margin: 0 0 0.35em;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(34px, 4.6vw, 50px); line-height: 1.15; }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

p { margin: 0 0 1em; color: var(--muted); }

.lead { font-size: 18px; color: #233540; line-height: 1.65; }

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

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 42, 51, 0.06);
  z-index: 20;
  box-shadow: 0 8px 24px rgba(15, 42, 51, 0.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
}

.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--teal), #165c51);
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

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

nav a {
  color: var(--navy);
  font-weight: 600;
  padding: 9px 10px;
  border-radius: 12px;
}

nav a.active { background: rgba(31, 122, 109, 0.1); color: var(--teal); }

.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--navy);
}

.cta-primary, .cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.cta-primary {
  background: linear-gradient(135deg, #1f7a6d, #165c51);
  color: var(--white);
  box-shadow: 0 16px 40px rgba(31, 122, 109, 0.2);
}

.cta-primary:hover, .cta-primary:focus-visible { transform: translateY(-1px); box-shadow: 0 20px 46px rgba(31, 122, 109, 0.24); }

.cta-secondary {
  background: rgba(31, 122, 109, 0.08);
  color: var(--teal);
  border-color: rgba(31, 122, 109, 0.25);
}

.cta-secondary:hover, .cta-secondary:focus-visible { transform: translateY(-1px); border-color: var(--teal); }

.floating-cta {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  box-shadow: 0 18px 46px rgba(15, 42, 51, 0.18);
}

.hero {
  padding: 110px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -45% -20% auto;
  height: 320px;
  background: radial-gradient(circle at 30% 40%, rgba(126, 214, 194, 0.18), transparent 48%),
    radial-gradient(circle at 70% 30%, rgba(31, 122, 109, 0.14), transparent 44%),
    linear-gradient(135deg, rgba(31, 122, 109, 0.05), rgba(15, 42, 51, 0.03));
  z-index: 0;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(31, 122, 109, 0.12);
  border-radius: var(--radius-pill);
  color: #0f5247;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-visual {
  min-height: 320px;
  background: linear-gradient(145deg, rgba(31, 122, 109, 0.08), rgba(15, 42, 51, 0.05));
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.hero-visual .hero-abstract {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.7;
}

.hero-visual .overlay-card {
  position: static;
  background: rgba(255,255,255,0.96);
  padding: 22px 24px;
  border-radius: 16px;
  color: var(--navy);
  max-width: 360px;
  width: 100%;
  box-shadow: 0 24px 56px rgba(15, 42, 51, 0.22);
  border: 1px solid rgba(31,122,109,0.28);
  z-index: 1;
}

.section {
  padding: 64px 0;
}

.section-header {
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 120px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(31,122,109,0.28), rgba(15,42,51,0.12));
  opacity: 0.8;
}

/* CTA sections sit closer to footer while keeping breathing space */
.cta-section {
  padding: 48px 0 36px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.section p { max-width: 900px; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid rgba(15, 42, 51, 0.06);
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(31,122,109,0.08);
  margin-bottom: 10px;
}

.case-visual {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(31,122,109,0.08);
  border: 1px solid rgba(31,122,109,0.2);
}

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--navy);
  box-shadow: var(--shadow-softer);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.metric {
  padding: 18px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(31, 122, 109, 0.1), rgba(15, 42, 51, 0.06));
  border: 1px solid rgba(31, 122, 109, 0.18);
  box-shadow: var(--shadow-softer);
}

.metric strong { font-size: 28px; display: block; color: var(--navy); }

.list { list-style: disc; padding-left: 18px; color: var(--muted); }

.details-list details {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--white);
  box-shadow: var(--shadow-softer);
}

.details-list details + details { margin-top: 10px; }

.details-list summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--navy);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.testimonials .card {
  position: relative;
  background-image: radial-gradient(circle at 20% 20%, rgba(126,214,194,0.18), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(31,122,109,0.12), transparent 40%);
  overflow: hidden;
}

.testimonial-text {
  font-size: 17px;
  color: var(--navy);
  line-height: 1.6;
}

.quote-mark { color: var(--aqua); font-size: 28px; }
.muted { color: var(--muted); }

.banner {
  padding: 26px;
  border-radius: var(--radius);
  background: linear-gradient(130deg, #1f7a6d, #0f2a33);
  color: var(--white);
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.banner p { color: rgba(255,255,255,0.9); margin: 0; }

footer {
  padding: 52px 28px 64px; /* increased internal breathing space */
  border-top: 1px solid rgba(15, 42, 51, 0.08);
  background: rgba(255,255,255,0.96);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(15,42,51,0.08), transparent 50%),
    linear-gradient(135deg, rgba(31,122,109,0.08), rgba(15,42,51,0.05));
  opacity: 0.12;
  pointer-events: none;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  align-items: start; /* aligns all footer columns to a consistent baseline */
}

.footer-brand {
  display: grid;
  gap: 10px; /* separates each line for readability */
  padding: 8px 0; /* subtle breathing room without growing footer height */
}

.brand-line {
  line-height: 1.7; /* clearer vertical spacing for text lines */
  color: var(--navy);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-name {
  font-size: 16px;
}

.brand-tagline {
  color: var(--muted);
}

.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a { color: var(--navy); }

.disclaimer { font-size: 13px; color: var(--muted); line-height: 1.6; }

form { display: grid; gap: 14px; }
label { font-weight: 700; color: var(--navy); margin-bottom: 6px; display: inline-block; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(31, 122, 109, 0.2);
}

textarea { min-height: 120px; resize: vertical; }

.form-note { font-size: 14px; color: var(--muted); }

.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }

.resource-card {
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-softer);
}

.contact-card { padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--white); box-shadow: var(--shadow-soft); }

nav ul.mobile { display: none; }

#chat-root {
  position: fixed !important;
  bottom: 20px;
  right: 20px;
  width: 350px;
  z-index: 9999;
}

.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 200;
}

.chat-launcher {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #1f7a6d, #165c51);
  color: #fff;
  box-shadow: 0 18px 46px rgba(15, 42, 51, 0.2);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-launcher:hover,
.chat-launcher:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 52px rgba(15, 42, 51, 0.24);
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 80px;
  width: 360px;
  max-width: calc(100vw - 32px);
  height: 520px;
  background: #fff;
  border: 1px solid rgba(15, 42, 51, 0.08);
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(15, 42, 51, 0.24);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 60;
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel.open {
  display: flex;
}

.chat-panel-header {
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(31, 122, 109, 0.12), rgba(15, 42, 51, 0.08));
  border-bottom: 1px solid rgba(15, 42, 51, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-panel-header h4 {
  margin: 0;
  font-size: 16px;
}

.chat-close {
  background: transparent;
  border: 1px solid rgba(15,42,51,0.15);
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.chat-frame {
  border: none;
  flex: 1;
  width: 100%;
  background: #f7faf8;
}

.chat-messages {
  flex: 1;
  padding: 14px 16px;
  overflow-y: auto;
  background: #f7faf8;
  display: grid;
  gap: 8px;
}

.chat-message {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}

.chat-message.user {
  background: rgba(31,122,109,0.12);
  color: #0f2a33;
  justify-self: end;
}

.chat-message.bot {
  background: #fff;
  border: 1px solid rgba(15,42,51,0.08);
  color: #233540;
  justify-self: start;
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(15, 42, 51, 0.06);
  background: #fff;
}

.chat-form input {
  flex: 1;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 15px;
}

.chat-send {
  padding: 12px 16px;
}

@media (max-width: 600px) {
  .chat-panel {
    right: 12px;
    bottom: 100px;
    height: 70vh;
  }
  .chat-launcher {
    right: 12px;
    bottom: 20px;
  }
}
@media (max-width: 900px) {
  nav ul {
    position: absolute;
    inset: 74px 16px auto;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    padding: 14px;
    flex-direction: column;
    align-items: flex-start;
    display: none;
  }

  nav ul.open { display: flex; }
  .mobile-toggle { display: inline-flex; align-items: center; gap: 6px; }
  .nav-inner { padding: 14px 18px; }
  .banner { grid-template-columns: 1fr; }
  .hero { padding-top: 88px; }
  .floating-cta { right: 12px; bottom: 12px; }
}
