/* ============================================
   MEDILINE PHARMACY - GLOBAL STYLES
   Modern, Professional Healthcare Website
   ============================================ */

/* CSS Variables - Color System */
:root {
  --primary-teal: #0d9488;
  --primary-teal-dark: #0f766e;
  --primary-teal-light: #14b8a6;
  --secondary-blue: #0ea5e9;
  --accent-emerald: #10b981;
  --neutral-white: #ffffff;
  --neutral-50: #f9fafb;
  --neutral-100: #f3f4f6;
  --neutral-200: #e5e7eb;
  --neutral-gray: #6b7280;
  --neutral-dark: #1f2937;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --radius: 0.75rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--neutral-white);
  color: var(--neutral-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--neutral-gray);
  font-size: 1rem;
  line-height: 1.6;
}

a {
  color: var(--primary-teal);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-teal-dark);
}

/* ============================================
   CONTAINER & GENERAL LAYOUT
   ============================================ */

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--neutral-dark);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.section-header h2 i {
  color: var(--primary-teal);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--neutral-gray);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--neutral-white);
  box-shadow: var(--shadow-md);
}

.navbar {
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0d9488;
  cursor: pointer;
}

.nav-logo img {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.nav-logo span {
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--neutral-dark);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-teal);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary-teal);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary-teal);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--neutral-white);
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    max-height: 0;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    max-height: 500px;
  }

  .nav-container {
    padding: 0 1rem;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 0.875rem 1.75rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

.btn-primary {
  background: var(--primary-teal);
  color: var(--neutral-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-teal);
  border: 2px solid var(--primary-teal);
}

.btn-secondary:hover {
  background: var(--primary-teal);
  color: var(--neutral-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--neutral-white);
  color: var(--primary-teal);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 50%, var(--neutral-white) 100%);
  min-height: 650px;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  color: var(--neutral-dark);
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--neutral-gray);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.hero-image-container {
  perspective: 1000px;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}

.hero-image-container:hover .hero-image {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .hero-image-container {
    height: 300px;
  }

  .hero-cta {
    flex-direction: column;
  }
}

/* ============================================
   ABOUT PREVIEW SECTION
   ============================================ */

.about-preview {
  background: var(--neutral-50);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
}

.link-arrow {
  color: var(--primary-teal);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}

.link-arrow:hover {
  transform: translateX(4px);
  gap: 0.75rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */

.services {
  background: var(--neutral-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--neutral-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 2px solid transparent;
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  border-color: var(--primary-teal);
}

.service-icon {
  font-size: 3.5rem;
  color: var(--primary-teal);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.service-card h3 {
  color: var(--neutral-dark);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   TRUST INDICATORS SECTION
   ============================================ */

.trust-indicators {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  padding: 4rem 2rem;
}

.trust-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.trust-card {
  background: var(--neutral-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.trust-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.trust-icon {
  font-size: 3rem;
  color: var(--accent-emerald);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}

.trust-card h3 {
  font-size: 1.25rem;
  color: var(--neutral-dark);
  margin-bottom: 0.75rem;
}

.trust-card p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ============================================
   LEADERSHIP SECTION
   ============================================ */

.leadership {
  padding: 4rem 2rem;
  background: var(--neutral-white);
}

.leadership-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--neutral-50);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.leadership-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.leadership-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.leadership-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.leadership-content h3 {
  font-size: 2rem;
  color: var(--neutral-dark);
  margin-bottom: 0.25rem;
}

.role {
  font-size: 1.1rem;
  color: var(--primary-teal);
  font-weight: 600;
  margin-bottom: 1rem !important;
}

.bio {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--neutral-gray);
  margin-bottom: 1.5rem !important;
}

.qualifications {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  background: var(--primary-teal);
  color: var(--neutral-white);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.badge i {
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .leadership-card {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .leadership-image img {
    height: 300px;
  }

  .leadership-content h3 {
    font-size: 1.5rem;
  }
}

/* ============================================
   BRANCHES SECTION
   ============================================ */

.branches {
  padding: 4rem 2rem;
  background: var(--neutral-50);
}

.branches-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.branch-card {
  background: var(--neutral-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.branch-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}

.branch-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.branch-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.branch-card:hover .branch-image img {
  transform: scale(1.05);
}

.branch-card h3 {
  font-size: 1.5rem;
  color: var(--neutral-dark);
  margin: 0;
  padding: 1.5rem 1.5rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.branch-card h3 i {
  color: var(--primary-teal);
}

.branch-address,
.branch-hours,
.branch-phone {
  padding: 0.25rem 1.5rem;
  font-size: 1rem;
  color: var(--neutral-gray);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.branch-card .btn {
  align-self: center;
  margin: 1.5rem auto;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-banner {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--primary-teal) 0%, var(--primary-teal-dark) 100%);
  text-align: center;
}

.cta-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.cta-banner h2 {
  font-size: 2.5rem;
  color: var(--neutral-white);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.cta-banner p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--neutral-dark);
  color: var(--neutral-white);
  padding: 3rem 2rem 1rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--neutral-white);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section h4 i {
  color: var(--primary-teal-light);
}

.footer-section p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section p i {
  color: var(--primary-teal-light);
  min-width: 1rem;
}

.footer-section a {
  color: var(--primary-teal-light);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--neutral-white);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-teal-light);
  color: var(--neutral-dark);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */

.service-card,
.trust-card,
.branch-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.animated,
.trust-card.animated,
.branch-card.animated {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .section-container {
    padding: 2rem 1rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .cta-banner h2 {
    font-size: 1.75rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .cta-banner h2 {
    font-size: 1.5rem;
  }
}
