/* ══════════════════════════════════════════
   ALLERGENIX THERAPEUTICS — style.css
   Palette: deep navy #0D0A2E / indigo #1A0F4B
            violet #7C3AED / lavender #A97FF5
            white #FFFFFF / muted #8B8BAA
   ══════════════════════════════════════════ */

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

:root {
  --bg:        #0D0A2E;
  --bg2:       #120D38;
  --bg3:       #1A1248;
  --card-bg:   #1E1550;
  --violet:    #7C3AED;
  --violet-h:  #6D28D9;
  --lavender:  #A97FF5;
  --white:     #FFFFFF;
  --gray:      #8B8BAA;
  --border:    rgba(124,58,237,0.18);
  --nav-h:     72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ── UTILITY ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.max-660 { max-width: 660px; margin-left: auto; margin-right: auto; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--violet);
  color: var(--white);
  font-weight: 600; font-size: 14px;
  padding: 10px 22px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--violet-h); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--white);
  font-weight: 600; font-size: 14px;
  padding: 10px 22px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.25);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.05); }

.btn-lg { padding: 14px 32px; font-size: 15px; border-radius: 10px; }
.btn-full { width: 100%; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(13,10,46,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav.scrolled { background: rgba(13,10,46,0.97); }

.nav-inner {
  max-width: 1140px; margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-size: 17px; font-weight: 700;
  color: var(--white); letter-spacing: -0.01em;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
}

.nav-link {
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--white); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--violet); border-radius: 2px;
}

/* hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; flex-direction: column; gap: 0;
  padding: 16px 24px 24px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
.mobile-menu .btn-primary { margin-top: 16px; width: 100%; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 70% 50%, rgba(124,58,237,0.22) 0%, transparent 70%),
    linear-gradient(180deg, #0D0A2E 0%, #120D38 100%);
}

/* Subtle animated orb */
.hero-bg::after {
  content: '';
  position: absolute;
  right: 5%; top: 20%;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 6s ease-in-out infinite;
}

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

.hero-content {
  position: relative; z-index: 2;
  max-width: 1140px; margin: 0 auto; padding: 80px 24px;
  max-width: 700px; margin-left: 80px;
}

@media (max-width: 900px) {
  .hero-content { margin-left: auto; margin-right: auto; text-align: center; }
}

.hero-title {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px; font-weight: 400;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── SECTIONS ── */
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 16px; line-height: 1.15;
}

.section-sub {
  font-size: 17px; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 56px;
}

.eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lavender); margin-bottom: 16px;
}

/* ── BAND ── */
.band {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg3) 100%);
}

/* ── WHY US ── */
.why-us { padding: 100px 0; background: var(--bg); }

.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(124,58,237,0.45); transform: translateY(-3px); }

.card-icon {
  width: 46px; height: 46px;
  background: rgba(124,58,237,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lavender);
  margin-bottom: 20px;
}

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.65; }

/* ── CTA BAND ── */
.cta-band {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--bg3) 0%, rgba(124,58,237,0.15) 100%);
  border-top: 1px solid var(--border);
}

.cta-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px; color: rgba(255,255,255,0.65);
  margin-bottom: 40px; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ── PAGE HERO ── */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 80px;
  background: linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  max-width: 720px; margin: 0 auto;
  line-height: 1.6;
}

.page-title-lg {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 20px;
}

/* ── SERVICES ── */
.service-block { padding: 80px 0; background: var(--bg); }
.service-block.alt { background: var(--bg2); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}

.service-grid.reverse { direction: rtl; }
.service-grid.reverse > * { direction: ltr; }

.service-text h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800; letter-spacing: -0.025em;
  margin: 20px 0 16px;
}

.service-text p {
  font-size: 15px; color: rgba(255,255,255,0.7);
  line-height: 1.75; margin-bottom: 12px;
}

.target-tag {
  font-size: 12px !important;
  color: var(--lavender) !important;
  font-style: italic;
  margin-top: 16px !important;
}

.service-benefits {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}

.service-benefits h4 {
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
}

.service-benefits p {
  font-size: 14px; color: rgba(255,255,255,0.65);
  line-height: 1.65; margin-bottom: 20px;
}

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li {
  font-size: 14px; color: rgba(255,255,255,0.75);
  padding-left: 22px; position: relative; line-height: 1.5;
}
.check-list li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--violet); font-weight: 700;
}

/* ── ABOUT ── */
.about-story { padding: 80px 0; background: var(--bg); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.about-text h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800; letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 15px; color: rgba(255,255,255,0.7);
  line-height: 1.75; margin-bottom: 16px;
}

.molecule-visual {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
}

.molecule-visual svg { width: 100%; max-width: 280px; }

.values-section { padding: 80px 0; background: var(--bg2); }

/* ── CONTACT ── */
.contact-section { padding: 80px 0; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}

.contact-form-wrap h3,
.contact-info h3 {
  font-size: 22px; font-weight: 700; margin-bottom: 28px;
}

.contact-form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 8px; }

.field label {
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.field input,
.field select,
.field textarea {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.3); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--violet); }
.field select option { background: #1A0F4B; }

.form-success {
  display: none;
  background: rgba(124,58,237,0.15);
  border: 1px solid var(--violet);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px; color: var(--lavender);
}
.form-success.show { display: block; }

.contact-info p {
  font-size: 15px; color: rgba(255,255,255,0.65);
  line-height: 1.7; margin-bottom: 32px;
}

.info-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}

.info-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(124,58,237,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--lavender);
}

.info-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 4px;
}

.info-value {
  font-size: 15px; color: var(--white);
}
a.info-value:hover { color: var(--lavender); }

.response-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 16px;
}

.response-box h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.response-box p { font-size: 14px; color: rgba(255,255,255,0.6); margin: 0; }

/* ── FOOTER ── */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}

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

.footer-links a {
  font-size: 13px; color: var(--gray);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }

.footer-copy { font-size: 12px; color: var(--gray); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content { margin-left: auto; text-align: center; padding: 60px 24px; }
  .hero-ctas { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }

  .service-grid,
  .service-grid.reverse,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; direction: ltr; gap: 40px; }

  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }

  .section-sub { margin-bottom: 36px; }
  .cards-3 { margin-top: 36px; }
}
