/* =============================================
   AyuVis Pharma - Global Stylesheet
   ============================================= */

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

/* ── CSS Variables ── */
:root {
  --primary: #6b21a8;
  --primary-light: #9333ea;
  --primary-dark: #4c1d95;
  --accent: #f97316;
  --accent-light: #fb923c;
  --green: #16a34a;
  --blue: #2563eb;
  --teal: #0d9488;
  --red: #dc2626;
  --bg: #f8f5ff;
  --surface: #ffffff;
  --surface2: #f3f0fa;
  --text: #1e1b2e;
  --text-muted: #64748b;
  --border: #e2d9f3;
  --shadow-sm: 0 1px 3px rgba(107, 33, 168, 0.08);
  --shadow-md: 0 4px 16px rgba(107, 33, 168, 0.12);
  --shadow-lg: 0 12px 40px rgba(107, 33, 168, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --navbar-h: 76px;
}

/* ── Reset ── */
*,
*::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(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  height: var(--navbar-h);
  display: flex;
  align-items: center;
  padding: 0 5%;
  box-shadow: 0 2px 20px rgba(107, 33, 168, 0.10);
  border-bottom: 2px solid var(--primary);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.nav-logo {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 12px rgba(107, 33, 168, 0.3);
}

.nav-brand-text h1 {
  font-size: 1.15rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}

.nav-brand-text p {
  font-size: 0.68rem;
  color: var(--accent);
  font-style: italic;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-links li.current-menu-item>a,
.nav-links li.current-page-ancestor>a,
.nav-links li.active>a,
.nav-links a:hover {
  color: var(--primary);
  background: var(--surface2);
}

.nav-links a.btn-nav {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  padding: 9px 22px;
}

.nav-links li.current-menu-item>a.btn-nav,
.nav-links li.current-page-ancestor>a.btn-nav,
.nav-links li.active>a.btn-nav,
.nav-links a.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Page wrapper ── */
.page-content {
  padding-top: var(--navbar-h);
}

/* ── Section utilities ── */
.section {
  padding: 80px 5%;
}

.section-alt {
  background: var(--surface2);
}

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

.section-tag {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(107, 33, 168, 0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--primary-light);
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
}

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

.section-header.center {
  text-align: center;
}

.section-header.center .section-sub {
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(107, 33, 168, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(107, 33, 168, 0.4);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.btn-accent:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

/* ── Cards ── */
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(107, 33, 168, 0.25);
}

/* ── Footer ── */
.footer {
  background: linear-gradient(135deg, #1e1b2e 0%, #2d1b69 100%);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.footer-brand p {
  font-style: italic;
  color: var(--accent-light);
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.footer-brand .tagline {
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
}

.footer h3 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(249, 115, 22, 0.4);
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer ul li a:hover {
  color: var(--accent-light);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  align-items: flex-start;
}

.footer-contact .icon {
  width: 32px;
  height: 32px;
  background: rgba(107, 33, 168, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

.header-socials {
  display: flex;
  gap: 10px;
  margin-left: 30px;
}

.header-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  transition: var(--transition);
}

.header-socials a:hover {
  background: var(--primary);
  color: #fff;
}

/* ── Scroll-to-top ── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 999;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  cursor: pointer;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-4px);
}

/* ── Animations ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

.animate-up {
  animation: fadeUp 0.6s ease both;
}

.animate-in {
  animation: fadeIn 0.6s ease both;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

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

  .nav-links a {
    width: 100%;
    text-align: center;
    border-radius: var(--radius);
  }

  .section {
    padding: 60px 6%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}