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

:root {
  --beige: #E8D5B5;
  --beige-light: #F5ECD8;
  --beige-dark: #D4C4A8;
  --brown-dark: #2E2020;
  --brown-mid: #5C4A42;
  --brown-light: #8B6F5E;
  --green: #2D6A4F;
  --green-light: #52B788;
  --green-pale: #D8F3DC;
  --white: #FFFFFF;
  --off-white: #FAFAF8;
  --text-dark: #1A1A1A;
  --text-mid: #4A4A4A;
  --text-light: #7A7A7A;
  --shadow-sm: 0 2px 8px rgba(46,32,32,0.08);
  --shadow-md: 0 8px 32px rgba(46,32,32,0.12);
  --shadow-lg: 0 20px 60px rgba(46,32,32,0.16);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--off-white);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(232, 213, 181, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(92,74,66,0.15);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(232, 213, 181, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--brown-dark);
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--brown-mid);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--brown-mid);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-links a:hover {
  background: var(--brown-dark);
  color: var(--beige);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brown-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--beige) 0%, var(--beige-light) 50%, #F0E6D0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(92,74,66,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(45,106,79,0.06) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(46,32,32,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46,32,32,0.08);
  border: 1px solid rgba(46,32,32,0.15);
  color: var(--brown-mid);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero-logo {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 8px 24px rgba(46,32,32,0.15));
  animation: floatLogo 4s ease-in-out infinite;
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 8px;
}

.title-main {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: var(--brown-dark);
  letter-spacing: 4px;
  line-height: 1;
}

.title-sub {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--brown-mid);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-top: 4px;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin: 16px 0 20px;
}

.hero-desc {
  max-width: 600px;
  font-size: 1.05rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}

.btn-primary {
  background: var(--brown-dark);
  color: var(--beige);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(46,32,32,0.25);
}

.btn-primary:hover {
  background: var(--brown-mid);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(46,32,32,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--brown-dark);
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--brown-dark);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--brown-dark);
  color: var(--beige);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(92,74,66,0.15);
  border-radius: var(--radius);
  padding: 20px 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brown-dark);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(92,74,66,0.2);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--brown-mid);
  border-bottom: 2px solid var(--brown-mid);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(4px); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown-dark);
  margin-bottom: 16px;
}

.section-header h2 em {
  font-style: italic;
  color: var(--green);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--off-white);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  border: 1px solid rgba(92,74,66,0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brown-mid), var(--green));
  transform: scaleX(0);
  transition: var(--transition);
}

.about-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(92,74,66,0.2);
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.about-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.about-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
}

.about-note {
  background: linear-gradient(135deg, #FFF8E7, #FFF3D0);
  border: 1px solid rgba(92,74,66,0.2);
  border-left: 4px solid var(--brown-mid);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.note-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.about-note p {
  color: var(--text-mid);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--beige-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(92,74,66,0.1);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card.featured {
  background: var(--brown-dark);
  color: var(--beige);
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card.featured h3,
.service-card.featured p {
  color: var(--beige);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.service-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-mid);
  font-size: 0.95rem;
  line-height: 1.7;
  flex: 1;
}

.service-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--green-light);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--beige);
  transform: translateX(4px);
}

/* ===== NEURO SECTION ===== */
.neuro-section {
  padding: 100px 0;
  background: linear-gradient(160deg, var(--brown-dark) 0%, #3D2828 50%, #2A1F1F 100%);
  position: relative;
  overflow: hidden;
}

.neuro-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 50%, rgba(82,183,136,0.08) 0%, transparent 50%),
    radial-gradient(circle at 90% 20%, rgba(232,213,181,0.06) 0%, transparent 50%);
  pointer-events: none;
}

.section-header.light h2 { color: var(--beige); }
.section-header.light h2 em { color: var(--green-light); }
.light-tag {
  background: rgba(82,183,136,0.15);
  color: var(--green-light);
}
.light-desc { color: rgba(232,213,181,0.8); }

/* ===== CHAT WIDGET ===== */
.chat-wrapper {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 580px;
}

.chat-header {
  background: linear-gradient(135deg, var(--brown-dark), var(--brown-mid));
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.chat-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.chat-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.chat-info { flex: 1; }

.chat-info h3 {
  color: var(--beige);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(232,213,181,0.75);
  font-size: 0.78rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.chat-badge {
  background: rgba(232,213,181,0.15);
  color: var(--beige-dark);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #F8F6F2;
  scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--beige-dark); border-radius: 4px; }

.message {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  animation: msgIn 0.3s ease;
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-message { flex-direction: row; }
.user-message { flex-direction: row-reverse; }

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--beige);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--beige-dark);
}

.msg-avatar img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.msg-bubble {
  max-width: 75%;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  position: relative;
}

.bot-message .msg-bubble {
  background: var(--white);
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.user-message .msg-bubble {
  background: var(--brown-dark);
  color: var(--beige);
  border-bottom-right-radius: 4px;
}

.msg-bubble p { margin-bottom: 6px; }
.msg-bubble p:last-of-type { margin-bottom: 0; }

.msg-time {
  display: block;
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 6px;
  text-align: right;
}

.user-message .msg-time { color: rgba(232,213,181,0.6); }

/* Typing indicator */
.typing-indicator .msg-bubble {
  padding: 14px 18px;
}

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

.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--brown-mid);
  border-radius: 50%;
  animation: typingDot 1.2s infinite;
}

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

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* Suggestions */
.chat-suggestions {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--white);
  border-top: 1px solid rgba(92,74,66,0.08);
  flex-shrink: 0;
}

.suggestion-btn {
  background: var(--beige-light);
  border: 1px solid rgba(92,74,66,0.2);
  color: var(--brown-mid);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}

.suggestion-btn:hover {
  background: var(--brown-dark);
  color: var(--beige);
  border-color: var(--brown-dark);
}

/* Chat Input */
.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
  background: var(--white);
  border-top: 1px solid rgba(92,74,66,0.1);
  flex-shrink: 0;
}

#chatInput {
  flex: 1;
  border: 1.5px solid rgba(92,74,66,0.2);
  border-radius: 50px;
  padding: 12px 20px;
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--off-white);
  outline: none;
  transition: var(--transition);
}

#chatInput:focus {
  border-color: var(--brown-mid);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(92,74,66,0.08);
}

#chatInput::placeholder { color: var(--text-light); }

#sendBtn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brown-dark);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

#sendBtn svg {
  width: 18px;
  height: 18px;
  color: var(--beige);
}

#sendBtn:hover {
  background: var(--brown-mid);
  transform: scale(1.05);
}

#sendBtn:active { transform: scale(0.95); }

.neuro-disclaimer {
  max-width: 760px;
  margin: 20px auto 0;
  text-align: center;
}

.neuro-disclaimer p {
  color: rgba(232,213,181,0.55);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--off-white);
}

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

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  border: 1px solid rgba(92,74,66,0.1);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brown-dark);
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--text-mid);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.contact-link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  word-break: break-all;
  transition: var(--transition);
}

.contact-link:hover { color: var(--brown-dark); }

/* ===== FOOTER ===== */
.footer {
  background: var(--brown-dark);
  color: var(--beige);
  padding: 60px 0 0;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(232,213,181,0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.footer-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--beige);
  letter-spacing: 1px;
}

.footer-name span {
  font-weight: 300;
  font-size: 0.9rem;
  display: block;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(232,213,181,0.6);
  margin-top: 2px;
}

.footer-tagline {
  color: rgba(232,213,181,0.5);
  font-size: 0.85rem;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  color: var(--beige);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.footer-col a {
  color: rgba(232,213,181,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

.footer-col a:hover { color: var(--beige); }

.footer-bottom {
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(232,213,181,0.4);
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.footer-note {
  color: rgba(232,213,181,0.3) !important;
  font-size: 0.72rem !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--beige);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(92,74,66,0.15);
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero-stats {
    gap: 20px;
    padding: 16px 24px;
  }

  .service-card.featured {
    grid-column: span 1;
  }

  .chat-wrapper { height: 520px; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }

  .hero-cta { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { width: 40px; height: 1px; }
  .chat-suggestions { display: none; }
}