/* ========================================
   NextRx Solutions — Dark Theme
   ======================================== */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy: #07111f;
  --navy-mid: #0d1e33;
  --navy-light: #132840;
  --navy-surface: #0f1f35;
  --teal: #0da882;
  --teal-bright: #1fcfa0;
  --teal-dim: #0a7a60;
  --white: #f0f7ff;
  --off-white: #d0dce8;
  --muted: #4a7a9b;
  --accent-line: #1e4060;
  --text: #c8daea;
  --text-light: #6a96b8;
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.hidden { display: none !important; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Shared --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--teal);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 560px;
  margin: 0 auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}

.btn--primary {
  background: var(--teal);
  color: var(--navy);
}

.btn--primary:hover {
  background: var(--teal-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13, 168, 130, 0.35);
}

.btn--full {
  width: 100%;
}

/* ========================================
   Navigation
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(7, 17, 31, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  transition: box-shadow var(--transition);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  border-bottom-color: var(--accent-line);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__logo-icon {
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: 'Sora', sans-serif;
}

.nav__logo-name {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav__logo-name span {
  color: var(--teal);
}

.nav__logo-tagline {
  font-size: 6.5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: 'Sora', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
  transition: color var(--transition);
  position: relative;
  letter-spacing: 0.02em;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--white);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--teal);
  color: var(--navy);
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--teal-bright);
  color: var(--navy);
  transform: translateY(-1px);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 1px;
}

.nav__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero Banner
   ======================================== */
.banner {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #05101c 0%, #0d1e33 50%, #061420 100%);
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 168, 130, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 168, 130, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(13, 168, 130, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.banner-inner {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
}

.banner-content {
  display: flex;
  flex-direction: column;
}

/* Logo lockup in banner */
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 52px;
  padding-top: 20px;
  animation: fadeUp 0.8s ease both;
}

.logo-divider {
  width: 1px;
  height: 52px;
  background: var(--accent-line);
  flex-shrink: 0;
}

.wordmark .name {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.01em;
  line-height: 1;
}

.wordmark .name span {
  color: var(--teal);
}

.wordmark .tagline {
  font-family: 'Sora', sans-serif;
  font-size: 8.5px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.eyebrow {
  font-family: 'Sora', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
  animation: fadeUp 0.8s 0.15s ease both;
}

.headline {
  font-family: 'Sora', sans-serif;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.25s ease both;
}

.headline em {
  font-style: normal;
  color: var(--teal-bright);
}

.body-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: #6a96b8;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 44px;
  animation: fadeUp 0.8s 0.35s ease both;
}

.cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  animation: fadeUp 0.8s 0.45s ease both;
}

.btn-primary {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #07111f;
  background: var(--teal);
  border: none;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--teal-bright);
  transform: translateY(-1px);
}

.btn-ghost {
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--white);
}

.btn-ghost::after {
  content: '\2192';
  font-size: 15px;
}

/* Hero icon side */
.icon-side {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 1.2s 0.2s ease both;
}

.figure-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(13, 168, 130, 0.12);
}

.ring-1 { width: 320px; height: 320px; }
.ring-2 { width: 420px; height: 420px; border-color: rgba(13, 168, 130, 0.07); }
.ring-3 { width: 520px; height: 520px; border-color: rgba(13, 168, 130, 0.04); }

.orbit {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  animation: spin 18s linear infinite;
}

.orbit::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.orbit-2 {
  width: 420px;
  height: 420px;
  animation: spin 28s linear infinite reverse;
  opacity: 0.5;
}

.orbit-2::before {
  width: 5px;
  height: 5px;
  background: var(--teal-dim);
  box-shadow: 0 0 8px var(--teal-dim);
}

.hero-svg {
  position: relative;
  z-index: 2;
  animation: helixBreath 4s ease-in-out infinite;
}

.rung { animation: rungPulse 3s ease-in-out infinite; }
.rung:nth-child(1) { animation-delay: 0s; }
.rung:nth-child(2) { animation-delay: 0.4s; }
.rung:nth-child(3) { animation-delay: 0.8s; }
.rung:nth-child(4) { animation-delay: 1.2s; }

/* ========================================
   About
   ======================================== */
.about {
  padding: 100px 0;
  background: var(--navy);
}

.about__content {
  max-width: 760px;
  margin: 0 auto;
}

.about__lead {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--teal-bright);
  margin-bottom: 20px;
  line-height: 1.7;
}

.about__content p {
  color: var(--text-light);
  margin-bottom: 16px;
}

.about__content p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Services
   ======================================== */
.services {
  padding: 100px 0;
  background: var(--navy-mid);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--navy-surface);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--accent-line);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(13, 168, 130, 0.3);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  color: var(--teal);
  margin-bottom: 24px;
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.service-card__description {
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 0.975rem;
}

.service-card__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.95rem;
}

.service-card__list li:last-child {
  margin-bottom: 0;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  opacity: 0.7;
}

/* ========================================
   Why NextRx
   ======================================== */
.why {
  padding: 100px 0;
  background: var(--navy);
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 56px;
}

.why__number {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}

.why__item-title {
  font-family: 'Sora', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.why__item p {
  color: var(--text-light);
  font-size: 0.975rem;
}

/* ========================================
   Contact
   ======================================== */
.contact {
  padding: 100px 0;
  background: var(--navy-mid);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: 'Sora', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--off-white);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  border: 1.5px solid var(--accent-line);
  border-radius: var(--radius);
  background: var(--navy);
  color: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: var(--muted);
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 168, 130, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  margin-top: 16px;
  font-size: 0.925rem;
  font-weight: 500;
  text-align: center;
}

.form-status--success {
  color: var(--teal-bright);
}

.form-status--error {
  color: #f87171;
}

.contact__info {
  padding-top: 12px;
}

.contact__info-item {
  margin-bottom: 32px;
}

.contact__info-item h3 {
  font-family: 'Sora', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact__info-item a,
.contact__info-item p {
  font-size: 1.05rem;
  color: var(--white);
  font-weight: 500;
  transition: color var(--transition);
}

.contact__info-item a:hover {
  color: var(--teal);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: #040c18;
  padding: 56px 0 32px;
  color: var(--muted);
  border-top: 1px solid var(--accent-line);
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 40px;
}

.footer__brand .nav__logo {
  margin-bottom: 12px;
  display: inline-flex;
}

.footer__tagline {
  font-size: 0.925rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-size: 0.925rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  font-size: 0.85rem;
}

/* ========================================
   Blog Page
   ======================================== */
.blog-header {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #05101c 0%, #0d1e33 50%, #061420 100%);
  text-align: center;
}

.blog-header__title {
  font-family: 'Sora', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.blog-header__subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
}

.blog-content {
  padding: 80px 0;
  min-height: 40vh;
  background: var(--navy);
}

.blog-empty {
  text-align: center;
  padding: 60px 20px;
}

.blog-empty__icon {
  width: 64px;
  height: 64px;
  color: var(--muted);
  margin: 0 auto 24px;
}

.blog-empty__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.blog-empty__text {
  color: var(--text-light);
  max-width: 440px;
  margin: 0 auto;
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Keyframes
   ======================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rungPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes helixBreath {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(13, 168, 130, 0.2)); }
  50% { filter: drop-shadow(0 0 40px rgba(13, 168, 130, 0.4)); }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  .services__grid {
    grid-template-columns: 1fr;
  }

  .why__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer__content {
    flex-direction: column;
    gap: 28px;
  }

  .banner-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 32px;
  }

  .icon-side {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--navy-mid);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 32px 32px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    border-left: 1px solid var(--accent-line);
  }

  .nav__menu.active {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1.05rem;
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--accent-line);
  }

  .nav__link::after {
    display: none;
  }

  .nav__link--cta {
    margin-top: 12px;
    text-align: center;
    border-bottom: none;
  }

  .headline {
    font-size: 2.2rem !important;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .about,
  .services,
  .why,
  .contact {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .service-card {
    padding: 32px 28px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .banner-inner {
    padding-top: 100px;
    min-height: auto;
    padding-bottom: 60px;
  }
}

@media (max-width: 480px) {
  .headline {
    font-size: 1.85rem !important;
  }

  .container {
    padding: 0 16px;
  }

  .logo-lockup {
    gap: 12px;
    margin-bottom: 36px;
  }
}
