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

:root {
  --primary-color: hsl(350, 88%, 42%);
  --primary-dark: hsl(350, 85%, 38%);
  --secondary-color: hsl(210, 79%, 28%);
  --secondary-dark: hsl(210, 82%, 24%);
  --text-primary: hsl(222, 22%, 8%);
  --text-secondary: hsl(215, 13%, 37%);
  --text-tertiary: hsl(215, 13%, 60%);
  --bg-primary: hsl(0, 0%, 100%);
  --bg-secondary: hsl(210, 17%, 98%);
  --bg-tertiary: hsl(210, 17%, 95%);
  --border-light: hsl(214, 20%, 92%);
  --border-medium: hsl(214, 20%, 85%);
  --gray-50: hsl(0, 0%, 98%);
  --gray-100: hsl(0, 0%, 96%);
  --gray-200: hsl(0, 0%, 93%);
  --gray-300: hsl(0, 0%, 88%);
  --gray-400: hsl(0, 0%, 74%);
  --gray-500: hsl(0, 0%, 62%);
  --gray-600: hsl(0, 0%, 45%);
  --gray-700: hsl(0, 0%, 38%);
  --gray-800: hsl(0, 0%, 26%);
  --gray-900: hsl(0, 0%, 13%);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--gray-100);
}

.top-bar {
  background: linear-gradient(to right, var(--gray-50), hsl(210, 100%, 97%));
  border-bottom: 1px solid var(--gray-100);
  padding: 0.75rem 0;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.top-bar .contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.top-bar .contact-item:hover {
  color: var(--primary-color);
}

.top-bar .icon-wrapper {
  width: 2rem;
  height: 2rem;
  background: rgba(200, 16, 46, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.top-bar .contact-item:hover .icon-wrapper {
  background: rgba(200, 16, 46, 0.2);
}

.top-bar .icon-wrapper svg {
  width: 1rem;
  height: 1rem;
  color: var(--primary-color);
}

.top-bar a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.top-bar a:hover {
  color: var(--primary-color);
}

nav {
  padding: 1rem 0;
}

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

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  text-decoration: none;
  display: inline-block;
}

.logo-text .maple {
  color: var(--primary-color);
}

.logo-text .pharmacy {
  color: var(--text-primary);
}

.logo-text .home-health {
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.nav-link:hover {
  color: var(--primary-color);
  background-color: var(--gray-50);
}

.nav-link.active {
  color: var(--primary-color);
  background-color: rgba(200, 16, 46, 0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--primary-dark), var(--primary-color));
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.btn-secondary {
  background: linear-gradient(to right, var(--secondary-color), var(--secondary-dark));
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: linear-gradient(to right, var(--secondary-dark), var(--secondary-color));
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.btn .arrow {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s;
}

.btn:hover .arrow {
  transform: translateX(0.25rem);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gray-700);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: white;
  z-index: 999;
  padding: 2rem;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu .close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--gray-700);
}

.mobile-nav-menu {
  list-style: none;
  margin-top: 3rem;
}

.mobile-nav-menu li {
  margin-bottom: 1.5rem;
}

.mobile-nav-menu .nav-link {
  display: block;
  font-size: 1.25rem;
  padding: 1rem;
}

.hero-section {
  position: relative;
  background: linear-gradient(to bottom right, 
    hsl(210, 40%, 98%), 
    hsl(195, 100%, 97%), 
    hsl(180, 75%, 97%));
  padding: 5rem 0;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  mix-blend-mode: multiply;
  animation: blob 7s infinite;
}

.blob-1 {
  top: 0;
  left: -1rem;
  width: 18rem;
  height: 18rem;
  background: rgba(200, 16, 46, 0.1);
}

.blob-2 {
  top: 0;
  right: -1rem;
  width: 18rem;
  height: 18rem;
  background: rgba(15, 76, 129, 0.1);
  animation-delay: 2s;
}

.blob-3 {
  bottom: -2rem;
  left: 5rem;
  width: 18rem;
  height: 18rem;
  background: rgba(52, 211, 153, 0.1);
  animation-delay: 4s;
}

@keyframes blob {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(30px, -50px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.9); }
  100% { transform: translate(0px, 0px) scale(1); }
}

.hero-content {
  position: relative;
  z-index: 10;
}

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.status-badge.open {
  background: hsl(142, 76%, 90%);
  color: hsl(142, 76%, 30%);
}

.status-badge.closed {
  background: var(--gray-100);
  color: var(--gray-600);
}

.status-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
}

.status-dot.open {
  background: hsl(142, 76%, 45%);
  animation: pulse 2s infinite;
}

.status-dot.closed {
  background: var(--gray-400);
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn-new-prescription {
  background: linear-gradient(to right, hsl(142, 76%, 45%), hsl(142, 76%, 40%));
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-new-prescription:hover {
  background: linear-gradient(to right, hsl(142, 76%, 40%), hsl(142, 76%, 35%));
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.trust-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-600);
}

.trust-item svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(142, 76%, 45%);
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.hero-image {
  width: 100%;
  height: 24rem;
  object-fit: cover;
  transition: transform 0.7s;
}

.hero-image:hover {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2), transparent);
}

.glass {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.floating-card {
  position: absolute;
  padding: 1rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.floating-card-same-day {
  bottom: -1.5rem;
  left: -1.5rem;
}

.floating-card-delivery {
  top: -1.5rem;
  right: -1.5rem;
}

.floating-card-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-card-icon.green {
  background: hsl(142, 76%, 45%);
}

.floating-card-icon.blue {
  background: hsl(217, 91%, 60%);
}

.floating-card-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.floating-card-title {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.125rem;
}

.floating-card-text {
  font-size: 0.875rem;
  color: var(--gray-600);
}

footer {
  background: #333333;
  color: white;
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-title .maple-text {
  color: var(--primary-color);
}

.footer-description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: white;
  transition: color 0.3s;
}

.footer-social a:hover {
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.footer-contact i {
  margin-top: 0.25rem;
  color: var(--primary-color);
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-contact a:hover {
  color: var(--primary-color);
}

.footer-divider {
  border: none;
  border-top: 1px solid #666;
  margin-bottom: 2rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-bottom-links a:hover {
  color: white;
}

.copyright {
  font-size: 0.875rem;
  color: #e0e0e0;
}

.form-container {
  max-width: 800px;
  margin: 4rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.1);
}

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

.form-error {
  color: hsl(0, 84%, 60%);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-success {
  background: hsl(142, 76%, 95%);
  color: hsl(142, 76%, 30%);
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.loading {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

@media (max-width: 1023px) {
  .top-bar {
    display: none;
  }
  
  .nav-menu,
  .nav-actions {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-bottom {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .floating-card-same-day,
  .floating-card-delivery {
    position: static;
    margin-top: 1rem;
  }
}
