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

:root {
  --sage: #4a7c6f;
  --sage-light: #6aab9a;
  --sage-dark: #2d5247;
  --cream: #faf7f2;
  --warm-white: #fffef9;
  --charcoal: #1c1c1c;
  --muted: #6b6b6b;
  --border: #e2ddd6;
  --gold: #c9a96e;
  --error: #c0392b;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.6;
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.brand-cross { color: var(--sage); font-size: 1.4rem; }
.brand-name { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: 0.01em; }
.brand-name em { font-style: italic; color: var(--sage); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--sage); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 60px;
  overflow: hidden;
  background: var(--warm-white);
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 8s ease-in-out infinite;
}
.orb1 { width: 420px; height: 420px; background: #a8d5c2; top: -80px; left: -100px; animation-delay: 0s; }
.orb2 { width: 300px; height: 300px; background: #c9e8df; top: 30%; right: -80px; animation-delay: 3s; }
.orb3 { width: 250px; height: 250px; background: #e8d5b0; bottom: 0; left: 30%; animation-delay: 5s; }
@keyframes float { 0%,100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }

.hero-content { position: relative; z-index: 1; max-width: 720px; animation: fadeUp 0.9s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  background: rgba(74,124,111,0.1);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 20px;
}
.hero-title em { font-style: italic; color: var(--sage); }
.hero-sub { font-size: 1.1rem; color: var(--muted); max-width: 500px; margin: 0 auto 36px; line-height: 1.7; }

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--sage);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(74,124,111,0.25);
}
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,124,111,0.35); }

.btn-ghost {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--sage);
  border: 1.5px solid var(--sage);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { background: var(--sage); color: #fff; }

.hero-stats {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 60px;
  padding: 28px 48px;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: fadeUp 0.9s 0.3s ease both;
}
.stat { text-align: center; }
.stat-num { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 500; color: var(--sage); }
.stat-label { font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-div { width: 1px; height: 48px; background: var(--border); }

/* ===== SECTIONS ===== */
.section { padding: 100px 24px; }
.container { max-width: 860px; margin: 0 auto; }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.ai-label { display: flex; align-items: center; gap: 6px; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--charcoal);
}
.section-sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 48px; max-width: 540px; }

/* ===== TABS ===== */
.section-forms { background: var(--cream); }
.tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tab {
  padding: 10px 22px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { border-color: var(--sage); color: var(--sage); }
.tab.active { background: var(--sage); border-color: var(--sage); color: #fff; font-weight: 500; }

/* ===== FORMS ===== */
.form-panel { display: none; animation: fadeUp 0.4s ease both; }
.form-panel.active { display: block; }

.form {
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 0.85rem; font-weight: 500; color: var(--charcoal); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74,124,111,0.12);
  background: var(--warm-white);
}
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }

.radio-group, .checkbox-group { display: flex; flex-wrap: wrap; gap: 12px; }
.radio-item, .check-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.9rem; color: var(--charcoal); cursor: pointer;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  transition: all 0.2s;
}
.radio-item:hover, .check-item:hover { border-color: var(--sage); }
.radio-item input, .check-item input { accent-color: var(--sage); }

.range-input { width: 100%; accent-color: var(--sage); margin-top: 4px; }
.range-label { font-size: 0.85rem; color: var(--sage); font-weight: 500; }

.btn-submit { width: 100%; padding: 16px; font-size: 1rem; border-radius: var(--radius); }

/* ===== CHATBOT ===== */
.section-chat {
  background: linear-gradient(160deg, #1c2e28 0%, #2d4a40 50%, #1a2e26 100%);
  color: #fff;
}
.section-chat .section-label { color: var(--sage-light); }
.section-chat .section-title { color: #fff; }
.section-chat .section-sub { color: rgba(255,255,255,0.6); }

.chat-wrapper {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.chat-window {
  height: 360px;
  overflow-y: auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  scroll-behavior: smooth;
}
.chat-window::-webkit-scrollbar { width: 4px; }
.chat-window::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 2px; }

.chat-message { display: flex; gap: 12px; align-items: flex-start; }
.chat-message.user { flex-direction: row-reverse; }

.avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.bot-avatar { background: var(--sage); color: #fff; }
.user-avatar { background: var(--gold); color: var(--charcoal); font-weight: 700; font-size: 0.8rem; }

.bubble {
  max-width: 72%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.65;
}
.chat-message.bot .bubble {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  border-bottom-left-radius: 4px;
}
.chat-message.user .bubble {
  background: var(--sage);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.typing-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.5); animation: typingBlink 1.2s ease-in-out infinite; }
.typing-dot:nth-child(2) { animation-delay: 0.3s; }
.typing-dot:nth-child(3) { animation-delay: 0.6s; }
@keyframes typingBlink { 0%,80%,100% { opacity: 0.2; transform: scale(0.8); } 40% { opacity: 1; transform: scale(1); } }

.chat-suggestions {
  display: flex;
  gap: 8px;
  padding: 16px 24px 0;
  flex-wrap: wrap;
}
.suggestion {
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  background: transparent;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
}
.suggestion:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.4); }

.chat-input-row {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
#chat-input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  padding: 12px 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}
#chat-input::placeholder { color: rgba(255,255,255,0.35); }
#chat-input:focus { border-color: var(--sage-light); background: rgba(255,255,255,0.1); }
#send-btn {
  width: 46px; height: 46px;
  background: var(--sage);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}
#send-btn:hover { background: var(--sage-dark); transform: scale(1.05); }
#send-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.chat-disclaimer { text-align: center; padding: 12px 24px 20px; font-size: 0.75rem; color: rgba(255,255,255,0.35); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  animation: fadeUp 0.3s ease;
}
.modal-icon {
  width: 64px; height: 64px;
  background: var(--sage);
  color: #fff;
  border-radius: 50%;
  font-size: 1.8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.modal h3 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 10px; }
.modal p { color: var(--muted); margin-bottom: 28px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
  text-align: center;
}
.footer-inner { max-width: 600px; margin: 0 auto; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .brand-cross { color: var(--sage-light); }
.footer-brand .brand-name { color: #fff; }
.footer-copy { font-size: 0.85rem; line-height: 1.7; }
.footer-copy.small { font-size: 0.75rem; opacity: 0.5; margin-top: 6px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 16px; font-size: 0.85rem; }
  .hero-stats { flex-direction: column; gap: 20px; padding: 24px; }
  .stat-div { width: 48px; height: 1px; }
  .form-grid { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .bubble { max-width: 85%; }
}
