/* ==========================================================================
   Akshara Pharmaceuticals — Premium Static Site
   Palette: Deep Teal · Emerald · Lime
   ========================================================================== */

:root {
  --black: #061616;
  --black-soft: #0a1f1f;
  --black-card: #143838;
  --white: #ffffff;
  --off-white: #eef5f5;
  --gray-100: #d1e0e0;
  --gray-300: #9eb8b8;
  --gray-500: #6a8585;
  --gold: #1db98a;
  --gold-light: #4de8c0;
  --gold-dark: #159e73;
  --gold-glow: rgba(29, 185, 138, 0.35);
  --accent-lime: #99cc33;
  --accent-warm: #c5b358;
  --teal-card: #1a4d4d;
  --gradient-gold: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  --gradient-dark: linear-gradient(160deg, #041212 0%, #0f2a2a 50%, #061616 100%);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.18);
  --shadow-gold: 0 12px 40px var(--gold-glow);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --nav-height: 80px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Page Loader ---------- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: var(--black);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-ring {
  width: 52px;
  height: 52px;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

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

/* ---------- Typography ---------- */
.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto;
}

.text-white-muted,
.section-subtitle.text-white-muted {
  color: rgba(255, 255, 255, 0.72);
}

/* ---------- Buttons ---------- */
.btn-gold {
  --bs-btn-color: var(--black);
  --bs-btn-bg: var(--gold);
  --bs-btn-border-color: var(--gold);
  --bs-btn-hover-color: var(--black);
  --bs-btn-hover-bg: var(--gold-light);
  --bs-btn-hover-border-color: var(--gold-light);
  --bs-btn-focus-shadow-rgb: 29, 185, 138;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-gold:active::after {
  opacity: 1;
}

.btn-outline-gold {
  --bs-btn-color: var(--white);
  --bs-btn-border-color: rgba(29, 185, 138, 0.55);
  --bs-btn-hover-color: var(--black);
  --bs-btn-hover-bg: var(--gold);
  --bs-btn-hover-border-color: var(--gold);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  background: transparent;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-outline-gold:hover {
  transform: translateY(-2px);
}

.btn-outline-dark {
  --bs-btn-color: var(--black);
  --bs-btn-border-color: var(--black);
  --bs-btn-hover-bg: var(--black);
  --bs-btn-hover-color: var(--white);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
}

/* ---------- Navbar ---------- */
.site-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: var(--nav-height);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.site-navbar.scrolled {
  background: rgba(6, 22, 22, 0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(29, 185, 138, 0.12);
}

.site-navbar .navbar-brand img {
  height: 48px;
  width: auto;
  transition: transform var(--transition);
}

.site-navbar .navbar-brand:hover img {
  transform: scale(1.02);
}

.site-navbar .nav-link {
  color: rgba(255, 255, 255, 0.82) !important;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  position: relative;
  transition: color var(--transition);
}

.site-navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: var(--white) !important;
}

.site-navbar .nav-link.active::after,
.site-navbar .nav-link:hover::after {
  transform: scaleX(1);
}

.navbar-toggler {
  border-color: rgba(29, 185, 138, 0.35) !important;
  padding: 0.5rem 0.65rem;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.navbar-collapse {
  transition: all 0.35s ease;
}

@media (max-width: 991.98px) {
  .site-navbar .navbar-collapse {
    background: rgba(6, 22, 22, 0.97);
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(29, 185, 138, 0.15);
  }

  .site-navbar .nav-link::after {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-dark);
  padding: calc(var(--nav-height) + 2rem) 0 4rem;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55vw;
  height: 55vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(29, 185, 138, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-content .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  max-width: 520px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 1rem;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(29, 185, 138, 0.25);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-lg);
}

.hero-image-wrap img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  animation: floatImage 6s ease-in-out infinite;
}

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

.hero-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.hero-stats .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.25rem;
}

.hero-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

/* ---------- Sections ---------- */
.section-padding {
  padding: 5.5rem 0;
}

.section-padding-sm {
  padding: 4rem 0;
}

.bg-off-white {
  background: var(--off-white);
}

.bg-black {
  background: var(--black);
  color: var(--white);
}

/* ---------- Cards ---------- */
.premium-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.premium-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 185, 138, 0.25);
}

.premium-card-dark {
  background: var(--black-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.premium-card-dark:hover {
  border-color: rgba(29, 185, 138, 0.3);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(29, 185, 138, 0.12);
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.value-pill {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--gray-100);
  background: var(--white);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
}

.value-pill:hover {
  border-color: var(--gold);
  color: var(--gold-dark);
}

/* ---------- Product Cards ---------- */
.product-card {
  background: var(--teal-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(29, 185, 138, 0.15);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 16px 48px rgba(29, 185, 138, 0.18);
  border-color: rgba(29, 185, 138, 0.35);
}

.product-card .img-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--gray-100);
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.55s ease;
}

.product-card:hover img {
  transform: scale(1.06);
}

.product-card .card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--teal-card);
  color: var(--white);
}

.product-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--white);
}

.product-card .text-muted {
  color: rgba(255, 255, 255, 0.72) !important;
}

.product-card .meta-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-top: 1rem;
  margin-bottom: 0.35rem;
}

.product-card ul {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  padding-left: 0;
}

.product-card ul li::before {
  content: "•";
  color: var(--gold);
  margin-right: 0.5rem;
}

.product-card .btn-outline-dark {
  --bs-btn-color: var(--white);
  --bs-btn-border-color: rgba(255, 255, 255, 0.45);
  --bs-btn-hover-bg: var(--gold);
  --bs-btn-hover-color: var(--black);
  --bs-btn-hover-border-color: var(--gold);
}

/* ---------- Stats ---------- */
.stats-section {
  background: var(--black);
  border-top: 1px solid rgba(29, 185, 138, 0.15);
  border-bottom: 1px solid rgba(29, 185, 138, 0.15);
}

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Gallery ---------- */
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item.featured {
  aspect-ratio: auto;
  min-height: 320px;
}

@media (min-width: 992px) {
  .gallery-item.featured {
    min-height: 100%;
    grid-row: span 2;
  }
}

/* ---------- FAQ Accordion ---------- */
.accordion-premium .accordion-item {
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md) !important;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.accordion-premium .accordion-button {
  font-weight: 600;
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  color: var(--black);
  box-shadow: none !important;
}

.accordion-premium .accordion-button:not(.collapsed) {
  background: var(--off-white);
  color: var(--gold-dark);
}

.accordion-premium .accordion-button::after {
  filter: none;
}

.accordion-premium .accordion-body {
  padding: 0 1.5rem 1.25rem;
  color: var(--gray-500);
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
}

.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  padding: 0.85rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 0.2rem rgba(29, 185, 138, 0.15);
}

.form-label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.form-success {
  color: #1a7f4b;
  font-weight: 600;
  font-size: 0.9rem;
}

.social-link {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-100);
  color: var(--black);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: translateY(-3px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.72);
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(29, 185, 138, 0.12);
}

.site-footer .footer-logo {
  height: 52px;
  width: auto;
  margin-bottom: 1.25rem;
}

.site-footer h6 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--gold-light);
}

.site-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

/* ---------- About Images ---------- */
.about-img {
  border-radius: var(--radius-lg);
  width: 100%;
  object-fit: cover;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition);
}

.about-img:hover {
  transform: scale(1.02);
}

/* ---------- Utilities ---------- */
.gold-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

.gold-line-left {
  margin-left: 0;
}

/* ---------- Responsive Tweaks ---------- */
@media (max-width: 767.98px) {
  :root {
    --nav-height: 72px;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .hero-section {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero-stats .stat-value {
    font-size: 1.25rem;
  }

  .btn-gold,
  .btn-outline-gold,
  .btn-outline-dark {
    width: 100%;
  }

  .hero-cta .btn + .btn {
    margin-top: 0.75rem;
  }
}

@media (min-width: 320px) and (max-width: 575.98px) {
  .section-title {
    font-size: 1.85rem;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
