/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal: #1a7a6e;
  --teal-light: #2a9d8f;
  --green: #5ab533;
  --green-light: #7bc94e;
  --dark: #0f1a17;
  --dark-2: #172720;
  --mid: #243b31;
  --light: #f5f7f5;
  --white: #ffffff;
  --text: #1a2e26;
  --text-muted: #5a7a6e;
  --gradient: linear-gradient(135deg, var(--teal) 0%, var(--green) 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 26, 23, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: block;
  width: 220px;
  height: 60px;
  background: url('logo-2.png') center 48% / auto 190% no-repeat;
}

.hero-logo {
  width: 420px;
  max-width: 85%;
  /* crop whitespace: negative margins pull surrounding content closer */
  margin: -3rem auto -2rem;
  display: block;
}

.footer-logo-wrap {
  width: 260px;
  max-width: 80%;
  height: 80px;
  overflow: hidden;
  margin: 0 auto 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  width: 100%;
  opacity: 0.85;
  margin-top: -40%;
  margin-bottom: -40%;
}

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

nav ul a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--white); }

.btn-nav {
  background: var(--gradient);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: opacity 0.2s !important;
}

.btn-nav:hover { opacity: 0.9; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(26,122,110,0.2) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(90,181,51,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-label {
  display: inline-block;
  background: rgba(26,122,110,0.2);
  border: 1px solid rgba(26,122,110,0.4);
  color: var(--teal-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: white;
  text-decoration: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(90,181,51,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(90,181,51,0.35);
}

.btn-full { width: 100%; text-align: center; }

/* ===== SECTIONS ===== */
.section { padding: 6rem 2rem; }
.section-light { background: var(--light); }
.section-dark { background: var(--dark-2); }

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.container-narrow {
  max-width: 680px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.section-tag.light { color: var(--green-light); }

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section-dark h2 { color: var(--white); }
.section-light h2 { color: var(--text); }

.section-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
  margin-bottom: 3rem;
}

.section-dark .section-intro { color: rgba(255,255,255,0.6); }

/* ===== TWO COL ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.two-col p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  text-align: justify;
  hyphens: auto;
}

/* ===== STATS ===== */
.stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  border-left: 3px solid;
  border-image: var(--gradient) 1;
  padding-left: 1.2rem;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(90,181,51,0.3);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  text-align: justify;
  hyphens: auto;
}

/* ===== CTA BOX ===== */
.cta-box {
  background: rgba(26,122,110,0.12);
  border: 1px solid rgba(26,122,110,0.25);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.cta-box p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== COMING SOON ===== */
.coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  border: 2px dashed rgba(26,122,110,0.3);
  border-radius: 16px;
}

.coming-soon span {
  color: var(--text-muted);
  font-style: italic;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal-light);
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner { max-width: 400px; margin: 0 auto; }


footer p {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.7); }

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.75rem !important;
  color: rgba(255,255,255,0.2) !important;
}

/* ===== AI CHAT WIDGET ===== */
.chat-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(90,181,51,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(90,181,51,0.5);
}

.chat-toggle svg { width: 26px; height: 26px; fill: white; }

.chat-bubble {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 370px;
  max-height: 520px;
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  z-index: 998;
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s, opacity 0.3s;
}

.chat-bubble.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chat-header {
  background: var(--gradient);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.chat-header-info h4 {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-header-info span {
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.msg.bot {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.msg.user {
  background: var(--gradient);
  color: white;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

.msg.typing {
  background: rgba(255,255,255,0.06);
  align-self: flex-start;
  padding: 0.7rem 1.2rem;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 1rem;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  animation: bounce 1.2s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

.chat-input-row {
  padding: 1rem;
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.chat-input-row input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.65rem 0.9rem;
  color: white;
  font-family: inherit;
  font-size: 0.88rem;
}

.chat-input-row input::placeholder { color: rgba(255,255,255,0.3); }
.chat-input-row input:focus { outline: none; border-color: var(--teal-light); }

.chat-send {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.chat-send:hover { opacity: 0.85; }
.chat-send svg { width: 16px; height: 16px; fill: white; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  nav ul { display: none; }
  .chat-bubble { width: calc(100vw - 2rem); right: 1rem; bottom: 5rem; }
  .chat-toggle { right: 1rem; bottom: 1rem; }
}
