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

:root {
  --primary-blue: #00A9E0;
  --primary-green: #7BC043;
  --vibrant-green: #8CC63F;
  --bg-white: #FFFFFF;
  --bg-light: #F8FAFC;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light: #FFFFFF;
  --accent-red: #EF4444;
  
  --font-main: 'Outfit', sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  
  --container-width: 1200px;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 18px; /* Increased for accessibility */
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* --- Navigation --- */
header {
  background: var(--bg-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  height: 60px;
  width: auto;
}

.pharmacy-name {
  line-height: 1;
}

.pharmacy-name h1 {
  font-size: 1.5rem;
  color: var(--primary-blue);
  text-transform: uppercase;
}

.pharmacy-name span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

nav ul {
  display: flex;
  gap: 2rem;
}

nav a {
  font-weight: 500;
  color: var(--text-dark);
}

nav a:hover {
  color: var(--primary-blue);
}

.nav-cta {
  background: var(--primary-blue);
  color: var(--bg-white);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.nav-cta:hover {
  background: #008fbc;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/hero.png');
  background-size: cover;
  background-position: center;
  height: 80vh;
  display: flex;
  align-items: center;
  color: var(--text-light);
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.badge {
  background: var(--primary-green);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.btn {
  padding: 1.2rem 2.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary-blue);
}

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

/* --- Contact Form --- */
.form-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.form-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  background: white;
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.form-intro h2 {
  font-size: 2.2rem;
  color: var(--text-dark);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input, .form-group textarea {
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

#form-status.success {
  background: #dcfce7;
  color: #166534;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

#form-status.error {
  background: #fee2e2;
  color: #991b1b;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* --- Services --- */
.services {
  padding: 5rem 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-header .divider {
  width: 80px;
  height: 4px;
  background: var(--primary-green);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  border-color: var(--primary-blue);
  background: white;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  color: var(--primary-blue);
  font-size: 2rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

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

/* --- Promotions --- */
.promotions {
  padding: 5rem 0;
  background: var(--primary-blue);
  color: white;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.promo-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.promo-offer {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-left: 8px solid var(--primary-green);
  margin-bottom: 2rem;
}

.offer-circle {
  width: 100px;
  height: 100px;
  background: var(--primary-green);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.offer-circle .pct {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.offer-circle .off {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* --- Location & Contact --- */
.contact-section {
  padding: 5rem 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.info-card {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.info-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  flex-shrink: 0;
}

.info-text h4 {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.info-text p {
  font-weight: 600;
  font-size: 1.1rem;
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 400px;
  background: #eee;
}

/* --- Footer --- */
footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo h2 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  color: var(--primary-green);
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* --- Announcement Bar & Live Store Status --- */
.announcement-bar {
  background: #0f172a;
  color: white;
  padding: 0.6rem 0;
  font-size: 0.95rem;
}

.announcement-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.announcement-item i {
  width: 18px;
  height: 18px;
  color: var(--vibrant-green);
}

.announcement-divider {
  opacity: 0.3;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-badge i {
  width: 14px;
  height: 14px;
}

.status-open {
  background: rgba(123, 192, 67, 0.2);
  color: #8CC63F;
  border: 1px solid rgba(140, 198, 63, 0.4);
}

.status-closed {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.status-loading {
  background: rgba(255, 255, 255, 0.1);
  color: #CBD5E1;
}

/* --- Button Enhancements & Hero Stats --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: none;
  font-family: inherit;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  padding: 1.2rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--vibrant-green);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-top: 0.3rem;
}

/* --- Services Search Filter --- */
.service-search-wrapper {
  position: relative;
  max-width: 550px;
  margin: 2rem auto 0;
}

.service-search-wrapper input {
  width: 100%;
  padding: 1rem 3rem 1rem 3.2rem;
  border-radius: 50px;
  border: 2px solid #E2E8F0;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.service-search-wrapper input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 169, 224, 0.15);
}

.service-search-wrapper .search-icon {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.service-search-wrapper .search-clear {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
}

/* --- FAQ Accordion --- */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-white);
}

.faq-accordion {
  max-width: 800px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1.5px solid #E2E8F0;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.2rem 1.5rem;
  background: var(--bg-white);
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question span {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.faq-icon {
  color: var(--primary-blue);
  width: 20px;
  height: 20px;
}

.faq-chevron {
  transition: transform 0.3s ease;
  color: var(--text-muted);
  width: 20px;
  height: 20px;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary-blue);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  background: var(--bg-light);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 1.2rem 1.5rem;
  border-top: 1px solid #F1F5F9;
}

/* --- Modal Window --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  position: relative;
  padding: 2.5rem 2rem 2rem;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-backdrop.open .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #E2E8F0;
}

.modal-tabs {
  display: flex;
  background: #F1F5F9;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.8rem;
  gap: 0.4rem;
}

.modal-tab-btn {
  flex: 1;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.modal-tab-btn.active {
  background: white;
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.modal-form {
  display: none;
}

.modal-form.active {
  display: block;
}

.modal-form h3 {
  color: var(--primary-blue);
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.style-full {
  width: 100%;
  margin-top: 1rem;
}

.modal-status {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.modal-status.success {
  display: block;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

.modal-status.error {
  display: block;
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.footer-btn-link {
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.footer-btn-link:hover {
  color: var(--primary-blue);
}

/* --- Mobile Navigation & Action Bar --- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-action-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  padding: 0.8rem 1rem;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  gap: 0.8rem;
}

.mobile-action-btn {
  flex: 1;
  padding: 0.8rem;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.action-call {
  background: #F1F5F9;
  color: var(--text-dark);
}

.action-refill {
  background: var(--primary-blue);
  color: white;
}

/* --- Mobile Responsive Rules --- */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }

  nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
  }

  .nav-wrapper {
    flex-wrap: wrap;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .mobile-action-bar {
    display: flex;
  }

  body {
    padding-bottom: 70px;
  }

  .announcement-wrapper {
    font-size: 0.85rem;
  }
}

