:root {
  /* Refined Brand Colors from User Images */
  --primary-dark: #6D327C;
  /* Deep purple from logo */
  --primary-medium: #9E7696;
  /* Muted purple from logo text */
  --primary-light: #CB8BB6;
  /* Mauve from prescription footer left */
  --primary-accent: #7A4671;
  /* Plum from prescription footer right */
  --accent: #E5D2E1;
  /* Soft background tint */
  --footer-plum: #64315B;
  /* Deep plum from footer */
  --white: #ffffff;

  /* Neutral & Backgrounds */
  --bg-primary: #ffffff;
  --bg-secondary: #faf6f9;
  /* Soft tint */
  --bg-tertiary: #f5edf3;

  /* Text */
  --text-main: #2d1a29;
  --text-muted: #665b65;
  --text-inverse: #ffffff;

  /* Utility */
  --border-color: #e8dee5;
  --shadow-sm: 0 4px 6px rgba(94, 39, 80, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(94, 39, 80, 0.1);
  --shadow-lg: 0 20px 25px -5px rgba(94, 39, 80, 0.1);

  /* Spacing */
  --max-width: 1200px;
  --section-pd: 80px 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5 {
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--primary-medium);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary,
.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(199, 141, 178, 0.4);
}

.btn-primary:hover,
.btn-primary-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(199, 141, 178, 0.6);
  color: white;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--primary-dark);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 500;
  border: 2px solid var(--primary-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--primary-dark);
  color: var(--white);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: #ffffff;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 80px;
  width: 180px;
  display: block;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.02) saturate(1.02);
  transition: height 0.3s ease;
}

@media (max-width: 768px) {
  .logo {
    position: relative;
    top: 0;
    left: 0;
  }

  .logo-img {
    height: auto;
    width: 120px;
    /* Scales down the logo safely for mobile */
  }
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a:not(.btn-primary-sm) {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  position: relative;
}

.nav-links a:not(.btn-primary-sm):hover,
.nav-links a.active {
  color: var(--primary-light);
}

.dropdown {
  position: relative;
}

.dropdown>a {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dropdown-icon {
  width: 16px;
  height: 16px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 1);
  min-width: 220px;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  padding: 10px 0;
  z-index: 1100;
  display: block;
  /* Ensure it stays block for transition */
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: var(--bg-secondary);
  color: var(--primary-dark) !important;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-dark);
}

/* Sections */
section {
  padding: var(--section-pd);
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Hero Section */
.hero {
  padding-top: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .hero {
    padding-top: 80px;
    /* Brings the hero text up nicely under the logo on phones */
    min-height: auto;
    padding-bottom: 60px;
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.2;
}

.hero-content {
  flex: 1;
  padding-right: 50px;
  z-index: 2;
}

.hero-image {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.hero-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feature Image Card */
.img-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--white);
}

.img-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.img-card-content {
  padding: 24px;
}

/* Form */
.booking-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(199, 141, 178, 0.1);
}

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

/* Footer Refined for Prescription Style */
.footer {
  background: var(--primary-light);
  color: #ffffff;
  padding: 0;
  position: relative;
  overflow: hidden;
}

.footer-top-accent {
  height: 8px;
  background: white;
  width: 100%;
  opacity: 0.3;
}

.footer-main-split {
  display: flex;
  min-height: 150px;
}

.footer-left {
  flex: 3;
  padding: 40px 20px;
  text-align: center;
  background: var(--primary-light);
}

.footer-right {
  flex: 1;
  background: var(--primary-accent);
}

.footer-address-title {
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

.footer-address-text {
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 15px auto;
  opacity: 0.9;
}

.footer-contact-text {
  font-size: 1.4rem;
  font-weight: 500;
}

@media (max-width: 768px) {
  .footer-main-split {
    flex-direction: column;
  }

  .footer-right {
    height: 40px;
  }
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer h4 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.footer ul a:hover {
  color: var(--primary-light);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: all 0.3s;
}

.social-links a:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
}

.footer-phone {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 15px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn svg {
  width: 30px;
  height: 30px;
}

/* Responsive */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .hero-content {
    padding-right: 0;
    margin-bottom: 40px;
  }

  .hero-text {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    padding: 40px 20px;
    transition: 0.3s;
    overflow-y: auto;
  }

  .nav-links.active {
    left: 0;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: var(--bg-secondary);
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  h1 {
    font-size: 2.5rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}