/* ===== KECC FDA — Original Design System ===== */
/* Source: KECC_CONTEXT.md 2026-04-05 */
/* Colors: Navy #0A1628 | Teal #0E7C7B | Gold #C9A84C | White #FAFAF8 | Gray #F5F4F0 */
/* Fonts: DM Serif Display (headings) | DM Sans (body) */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

:root {
  /* ── Original Brand Colors ── */
  --navy:       #0A1628;
  --navy-2:     #0d1e35;
  --navy-3:     #112240;
  --teal:       #0E7C7B;
  --teal-2:     #0a6160;
  --teal-light: rgba(14,124,123,0.12);
  --gold:       #C9A84C;
  --gold-2:     #e2c97e;
  --gold-light: rgba(201,168,76,0.15);
  --white:      #FAFAF8;
  --gray-bg:    #F5F4F0;
  --gray-2:     #ECEAE4;
  --gray-3:     #D8D6CF;
  --text:       #1a2332;
  --text-2:     #4a5568;
  --text-3:     #718096;
  --border:     #e2e0d8;

  /* ── Spacing & Shape ── */
  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;
  --shadow:     0 2px 12px rgba(10,22,40,0.08), 0 1px 3px rgba(10,22,40,0.06);
  --shadow-lg:  0 8px 32px rgba(10,22,40,0.12), 0 2px 8px rgba(10,22,40,0.08);
  --shadow-navy:0 8px 32px rgba(10,22,40,0.4);
  --transition: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }
h4, h5, h6 { font-family: 'DM Sans', sans-serif; font-weight: 600; color: var(--navy); }

p  { color: var(--text-2); line-height: 1.75; }
a  { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-2); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 88px 0; }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { margin-bottom: 12px; color: var(--navy); }
.section-title p  { color: var(--text-2); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }

/* ===== Language Toggle ===== */
.lang-switch {
  display: flex;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  overflow: hidden;
}
.lang-switch a {
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.lang-switch a.active,
.lang-switch a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 32px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition);
}
.navbar.scrolled {
  background: rgba(10,22,40,0.97);
  backdrop-filter: blur(12px);
}
.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.25rem;
  color: var(--white);
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.btn-nav {
  background: var(--teal);
  color: #fff;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--transition), transform var(--transition);
}
.btn-nav:hover { background: var(--teal-2); color: #fff; transform: translateY(-1px); }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: rgba(255,255,255,0.8); margin: 4px 0;
  transition: all var(--transition);
}
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: var(--navy); padding: 16px 24px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08); z-index: 99;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 10px 0; color: rgba(255,255,255,0.7); border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 0.9rem; }
.mobile-menu a:last-child { border-bottom: none; }

/* ===== Hero ===== */
.hero {
  background: var(--navy);
  padding: 148px 0 96px;
  position: relative;
  overflow: hidden;
}

/* Subtle teal glow top center */
.hero::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px;
  background: radial-gradient(ellipse at 50% 20%,
    rgba(14,124,123,0.18) 0%,
    transparent 65%);
  pointer-events: none;
}

/* Gold accent line bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.4), transparent);
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(14,124,123,0.15);
  border: 1px solid rgba(14,124,123,0.35);
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem; font-weight: 500;
  padding: 5px 16px; border-radius: 20px;
  margin-bottom: 32px;
  font-family: 'DM Sans', sans-serif;
}

.hero h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 400;
}

.hero h1 .highlight,
.hero h1 span {
  color: var(--gold);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  margin: 0 auto 40px;
  line-height: 1.75;
  font-family: 'DM Sans', sans-serif;
}

.hero-buttons,
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn, .btn-primary {
  background: var(--teal);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 500;
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn.btn-primary:hover,
.btn-primary:hover { background: var(--teal-2); color: #fff; transform: translateY(-1px); }

.btn.btn-outline,
.btn-secondary, .btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  padding: 11px 28px;
  border-radius: var(--radius);
  font-size: 0.9rem; font-weight: 400;
  border: 1px solid rgba(255,255,255,0.25);
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
  display: inline-block;
}
.btn.btn-outline:hover,
.btn-secondary:hover, .btn-outline:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}

/* ===== Hero Stats ===== */
.hero-stats {
  display: flex; justify-content: center; gap: 64px;
  margin-top: 72px; padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.stat-item,
.hero-stats > div { text-align: center; }

.stat-num,
.hero-stat-num {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.2rem;
  color: var(--gold);
  line-height: 1;
  font-weight: 400;
}
.stat-label,
.hero-stat-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'DM Sans', sans-serif;
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--gray-bg);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.trust-bar-inner,
.trust-items {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text-2); font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
.trust-icon, .trust-item .icon { color: var(--teal); font-size: 0.9rem; }

/* ===== Services / Why KECC ===== */
.services, .why-kecc { background: var(--white); }
.services-grid,
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card,
.feature-card {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.service-card:hover,
.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--teal);
}
.service-icon,
.feature-icon {
  width: 48px; height: 48px;
  background: var(--teal-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; margin-bottom: 20px;
}
.service-card h3,
.feature-card h3 { margin-bottom: 10px; color: var(--navy); font-family: 'DM Sans', sans-serif; }
.service-card p,
.feature-card p  { font-size: 0.9rem; color: var(--text-2); }
.service-price {
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem; color: var(--text-2);
  font-family: 'DM Sans', sans-serif;
}
.service-price strong { color: var(--teal); font-size: 1.05rem; }

/* ===== How It Works / Steps ===== */
.how-it-works { background: var(--navy); }
.how-it-works .section-title h2 { color: var(--white); font-family: 'DM Serif Display', Georgia, serif; }
.how-it-works .section-title p  { color: rgba(255,255,255,0.55); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}
.step-item { text-align: center; }
.step-num {
  width: 52px; height: 52px;
  background: var(--teal);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem; color: #fff;
  margin: 0 auto 20px;
}
.step-item h3 { color: var(--white); margin-bottom: 10px; font-family: 'DM Sans', sans-serif; }
.step-item p  { color: rgba(255,255,255,0.55); font-size: 0.9rem; }

/* ===== Pricing ===== */
.pricing { background: var(--gray-bg); }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 960px; margin: 0 auto;
}
.pricing-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: box-shadow var(--transition);
}
.pricing-card:hover { box-shadow: var(--shadow-lg); }
.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal), var(--shadow-lg);
}
.pricing-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff;
  font-size: 0.75rem; font-weight: 600;
  padding: 3px 16px; border-radius: 20px;
  font-family: 'DM Sans', sans-serif;
}
.pricing-name { font-size: 0.8rem; color: var(--text-3); font-weight: 500; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.8px; font-family: 'DM Sans', sans-serif; }
.pricing-price { font-family: 'DM Serif Display', Georgia, serif; font-size: 2.6rem; color: var(--navy); letter-spacing: -0.02em; margin-bottom: 4px; font-weight: 400; }
.pricing-price span { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 400; color: var(--text-3); }
.pricing-desc { font-size: 0.875rem; color: var(--text-2); margin-bottom: 24px; font-family: 'DM Sans', sans-serif; }
.pricing-features { list-style: none; margin-bottom: 28px; }
.pricing-features li {
  font-size: 0.875rem; color: var(--text-2);
  padding: 7px 0; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  font-family: 'DM Sans', sans-serif;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.btn-outline-navy {
  display: block; text-align: center;
  padding: 11px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  transition: all var(--transition);
}
.btn-outline-navy:hover { border-color: var(--teal); color: var(--teal); }
.btn-teal-full {
  display: block; text-align: center;
  padding: 12px; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  background: var(--teal); color: #fff;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
}
.btn-teal-full:hover { background: var(--teal-2); color: #fff; }

/* ===== Case Studies / Testimonials ===== */
.case-studies, .testimonials { background: var(--white); }
.cases-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.case-card,
.testimonial-card {
  background: var(--gray-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.case-card:hover,
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.case-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 0.75rem; font-weight: 600;
  padding: 3px 10px; border-radius: 4px;
  margin-bottom: 14px;
  font-family: 'DM Sans', sans-serif;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.case-card h3,
.testimonial-card h3 { margin-bottom: 10px; color: var(--navy); font-family: 'DM Sans', sans-serif; font-size: 1.05rem; }
.case-card p,
.testimonial-text { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 16px; }
.case-result {
  font-size: 0.8rem; color: var(--teal); font-weight: 500;
  font-family: 'DM Sans', sans-serif;
}
.testimonial-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 12px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
  font-family: 'DM Sans', sans-serif;
}
.author-name { font-size: 0.875rem; font-weight: 600; color: var(--navy); font-family: 'DM Sans', sans-serif; }
.author-title { font-size: 0.78rem; color: var(--text-3); font-family: 'DM Sans', sans-serif; }

/* ===== CTA Section ===== */
.cta-section {
  background: var(--navy);
  text-align: center;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at 50% 0%, rgba(14,124,123,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section h2 { color: var(--white); margin-bottom: 16px; font-family: 'DM Serif Display', Georgia, serif; position: relative; }
.cta-section p  { color: rgba(255,255,255,0.6); max-width: 480px; margin: 0 auto 36px; position: relative; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== Footer ===== */
.footer {
  background: #060e1a;
  color: rgba(255,255,255,0.45);
  padding: 56px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .nav-logo { display: block; margin-bottom: 14px; font-size: 1.15rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.75; color: rgba(255,255,255,0.4); font-family: 'DM Sans', sans-serif; }
.footer-col h4 { color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 600; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.8px; font-family: 'DM Sans', sans-serif; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.85rem; color: rgba(255,255,255,0.4); transition: color var(--transition); font-family: 'DM Sans', sans-serif; }
.footer-col ul li a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: 0.8rem; font-family: 'DM Sans', sans-serif;
}
.footer-address { font-size: 0.8rem; color: rgba(255,255,255,0.3); margin-top: 12px; font-family: 'DM Sans', sans-serif; }

/* ===== Amy Chatbot ===== */
#amy-chat-widget, #kecc-chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 1000;
}
#amy-chat-btn, #kecc-chat-btn {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--teal);
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(14,124,123,0.4);
  overflow: hidden; transition: transform var(--transition), box-shadow var(--transition);
}
#amy-chat-btn:hover, #kecc-chat-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 24px rgba(14,124,123,0.5);
}
#amy-chat-btn img, #kecc-chat-btn img { width: 100%; height: 100%; object-fit: cover; }
#amy-chat-window, #kecc-chat-window {
  display: none;
  position: absolute; bottom: 64px; right: 0;
  width: 320px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-navy); overflow: hidden;
}
#amy-chat-window.open, #kecc-chat-window.open { display: flex; flex-direction: column; }
.amy-header, .kecc-chat-header {
  background: var(--navy); color: #fff;
  padding: 14px 16px;
  display: flex; align-items: center; gap: 10px;
}
.amy-header img, .kecc-chat-header img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.amy-header-info h4, .kecc-chat-header h4 { font-size: 0.875rem; font-weight: 600; font-family: 'DM Sans', sans-serif; }
.amy-header-info p, .kecc-chat-header p  { font-size: 0.75rem; color: rgba(255,255,255,0.55); font-family: 'DM Sans', sans-serif; }
.amy-messages, .kecc-chat-messages { flex: 1; padding: 16px; min-height: 200px; max-height: 300px; overflow-y: auto; }
.amy-msg, .kecc-chat-msg { margin-bottom: 12px; }
.amy-msg.bot .amy-bubble,
.kecc-chat-msg.bot .kecc-bubble {
  background: var(--gray-bg); border: 1px solid var(--border);
  color: var(--text); border-radius: 12px 12px 12px 4px;
  padding: 10px 14px; font-size: 0.875rem; max-width: 85%; display: inline-block;
  font-family: 'DM Sans', sans-serif;
}
.amy-msg.user, .kecc-chat-msg.user { text-align: right; }
.amy-msg.user .amy-bubble,
.kecc-chat-msg.user .kecc-bubble {
  background: var(--teal); color: #fff;
  border-radius: 12px 12px 4px 12px;
  padding: 10px 14px; font-size: 0.875rem; max-width: 85%; display: inline-block;
  font-family: 'DM Sans', sans-serif;
}
.amy-input-row, .kecc-chat-input {
  display: flex; border-top: 1px solid var(--border);
  padding: 10px;
}
.amy-input-row input, .kecc-chat-input input {
  flex: 1; border: 1px solid var(--border); border-radius: 6px;
  padding: 8px 12px; font-size: 0.875rem; outline: none;
  background: var(--gray-bg); font-family: 'DM Sans', sans-serif;
  transition: border-color var(--transition);
}
.amy-input-row input:focus, .kecc-chat-input input:focus { border-color: var(--teal); }
.amy-input-row button, .kecc-chat-input button {
  background: var(--teal); color: #fff; border: none;
  padding: 8px 14px; border-radius: 6px; cursor: pointer;
  font-size: 0.875rem; margin-left: 8px;
  font-family: 'DM Sans', sans-serif;
  transition: background var(--transition);
}
.amy-input-row button:hover, .kecc-chat-input button:hover { background: var(--teal-2); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links, .nav-right .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 120px 0 72px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .hero h1 { font-size: 1.9rem; }
}
