
/* ==========================================================================
   UNITED MEDEX SOLUTIONS - 2-PAGE MODERN PHARMACY & MEDICAL SUPPLIES STYLING
   ========================================================================== */

:root {
  --primary: #064e3b;          /* Deep Medical Forest / Pharmacy Green */
  --primary-dark: #022c22;     /* Midnight Emerald */
  --primary-light: #047857;    /* Vibrant Clinical Green */
  --secondary: #0f766e;        /* Dark Teal */
  --accent: #059669;           /* Pharmacy Mint */
  --accent-soft: #ecfdf5;      /* Soft Mint Glow */
  --amber: #d97706;            /* Warm Amber / Rx Gold */
  
  --text-main: #0f172a;        /* Deep Slate */
  --text-muted: #475569;       /* Soft Charcoal */
  --text-light: #64748b;
  
  --bg-page: #fbfbf9;          /* Warm Boutique Cream-White */
  --bg-card: #ffffff;
  --bg-subtle: #f4f6f3;        /* Soft Botanical Grey/Green */
  --border: #e2e8e0;
  --border-focus: #059669;
  
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-subtle: 0 2px 8px rgba(6, 78, 59, 0.04);
  --shadow-card: 0 8px 24px -4px rgba(6, 78, 59, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 16px 36px -6px rgba(6, 78, 59, 0.14), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= TOP ANNOUNCEMENT BAR ================= */
.top-notice-bar {
  background: var(--primary-dark);
  color: #d1fae5;
  font-size: 0.84rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-notice-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.top-left-badges {
  display: flex;
  align-items: center;
  gap: 16px;
}
.pill-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #a7f3d0;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.top-right-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
}
.top-right-contacts a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.top-right-contacts a:hover {
  color: #34d399;
}

/* ================= HEADER & NAV ================= */
header.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-subtle);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}
.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.pharmacy-emblem {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 10px rgba(6, 78, 59, 0.2);
}
.brand-titles h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
  line-height: 1.1;
}
.brand-titles h1 span {
  color: var(--primary-light);
}
.brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.main-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.94rem;
  transition: all 0.2s;
  padding: 6px 0;
  position: relative;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
}
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}
.btn-rx-transfer {
  background: var(--primary);
  color: white !important;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s;
  box-shadow: 0 3px 8px rgba(6, 78, 59, 0.2);
}
.btn-rx-transfer:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

/* ================= HERO SECTION ================= */
.pharmacy-hero {
  background: linear-gradient(170deg, #f0fdf4 0%, #ecfdf5 45%, #fbfbf9 100%);
  padding: 65px 0 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #a7f3d0;
  color: var(--primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 22px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.08);
}
.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.15;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}
.hero-title em {
  font-style: normal;
  color: var(--primary-light);
  text-decoration: underline;
  text-decoration-color: #a7f3d0;
  text-underline-offset: 6px;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.65;
}

/* Pharmacy Quick Lookup Box */
.pharmacy-quick-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.quick-box-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  background: var(--primary);
  color: white;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.pharmacy-quick-box h3 {
  font-size: 1.28rem;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.pharmacy-quick-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.refill-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.refill-input {
  flex: 1;
  padding: 13px 16px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s;
}
.refill-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.12);
}
.btn-refill-submit {
  background: var(--primary);
  color: white;
  border: none;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-refill-submit:hover {
  background: var(--primary-light);
}

.email-quick-callout {
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 18px;
  border: 1px dashed #cbd5e1;
}
.email-quick-callout div {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.email-quick-callout a {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}
.email-quick-callout a:hover {
  text-decoration: underline;
}

/* ================= METRIC STRIP ================= */
.metric-strip {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.metric-item {
  display: flex;
  align-items: center;
  gap: 16px;
}
.metric-icon-bubble {
  width: 50px;
  height: 50px;
  background: var(--accent-soft);
  color: var(--primary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.metric-numbers .stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}
.metric-numbers .stat-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ================= SECTION HEADINGS ================= */
.section-pad {
  padding: 80px 0;
}
.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}
.section-kicker {
  display: inline-block;
  color: var(--primary-light);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 10px;
}
.section-header-center h2 {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 14px;
}
.section-header-center p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ================= PHARMACY CATEGORIES ================= */
.pharmacy-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.pharma-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all 0.28s ease;
  display: flex;
  flex-direction: column;
}
.pharma-card:hover {
  transform: translateY(-5px);
  border-color: #a7f3d0;
  box-shadow: var(--shadow-hover);
}
.pharma-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.pharma-icon-box.green { background: #dcfce7; color: #15803d; }
.pharma-icon-box.teal { background: #ccfbf1; color: #0f766e; }
.pharma-icon-box.amber { background: #fef3c7; color: #b45309; }
.pharma-icon-box.blue { background: #e0f2fe; color: #0369a1; }
.pharma-icon-box.purple { background: #f3e8ff; color: #7e22ce; }
.pharma-icon-box.rose { background: #ffe4e6; color: #be123c; }

.pharma-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.pharma-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}
.pharma-items-list {
  list-style: none;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
}
.pharma-items-list li {
  font-size: 0.85rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 500;
}
.pharma-items-list li svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* ================= CATALOG FILTER & CARDS (PAGE 2) ================= */
.catalog-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 35px;
}
.filter-btn {
  background: white;
  border: 1px solid var(--border);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.catalog-search-wrap {
  max-width: 500px;
  margin: 0 auto 30px;
  position: relative;
}
.catalog-search-input {
  width: 100%;
  padding: 14px 20px 14px 45px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  outline: none;
  background: white;
  box-shadow: var(--shadow-subtle);
}
.catalog-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6,78,59,0.12);
}
.search-icon-pos {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.products-shelf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.product-item-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: all 0.2s;
}
.product-item-card:hover {
  box-shadow: var(--shadow-card);
  border-color: #a7f3d0;
  transform: translateY(-3px);
}
.item-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.status-pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-full);
}
.status-pill.otc { background: #dcfce7; color: #166534; }
.status-pill.rx { background: #fef3c7; color: #92400e; }
.status-pill.clinical { background: #e0e7ff; color: #3730a3; }
.item-sku {
  font-size: 0.75rem;
  color: var(--text-light);
  font-family: monospace;
}
.product-item-card h4 {
  font-size: 1.12rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-weight: 700;
}
.product-item-card .item-notes {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}
.item-footer-action {
  border-top: 1px solid #f1f5f9;
  padding-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.packaging-detail {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}
.btn-inquire-pill {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.btn-inquire-pill:hover {
  color: var(--primary-light);
}

/* ================= HOW IT WORKS (PHARMACY PROCESS) ================= */
.process-steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 20px;
}
.process-step-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  text-align: center;
}
.step-number-circle {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 18px;
}
.process-step-item h4 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.process-step-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ================= INLINE ORDER & INTAKE SECTION ================= */
.order-section-wrap {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 80px 0;
}
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 45px;
}
.contact-sidebar-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.contact-method-group {
  margin-bottom: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.method-icon-wrap {
  width: 44px;
  height: 44px;
  background: var(--accent-soft);
  color: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.method-details h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 3px;
}
.method-details p, .method-details a {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
}
.method-details a:hover {
  color: var(--primary);
}

.prescription-form-container {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.form-tab-switcher {
  display: flex;
  gap: 10px;
  background: var(--bg-subtle);
  padding: 5px;
  border-radius: var(--radius-sm);
  margin-bottom: 26px;
}
.form-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.form-tab-btn.active {
  background: white;
  color: var(--primary-dark);
  box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 16px;
}
.form-field-group {
  margin-bottom: 18px;
}
.form-field-group label {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}
.form-input-elem {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s;
}
.form-input-elem:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1);
}
textarea.form-input-elem {
  resize: vertical;
  min-height: 110px;
}

/* ================= FOOTER ================= */
footer.site-footer {
  background: #022019;
  color: #94a3b8;
  padding: 60px 0 28px;
  font-size: 0.9rem;
  border-top: 3px solid var(--primary-light);
}
.footer-grid-4 {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.1fr 1.3fr;
  gap: 36px;
  margin-bottom: 45px;
}
.footer-column h5 {
  color: white;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-column p {
  line-height: 1.65;
  color: #cbd5e1;
  font-size: 0.88rem;
}
.footer-link-list {
  list-style: none;
}
.footer-link-list li {
  margin-bottom: 9px;
}
.footer-link-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-link-list a:hover {
  color: #34d399;
}
.footer-emergency-notice {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #fef08a;
}
.footer-bottom-row {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.84rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-two-col { grid-template-columns: 1fr; }
  .pharmacy-categories-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .process-steps-row { grid-template-columns: 1fr 1fr; }
  .two-col-layout { grid-template-columns: 1fr; }
  .footer-grid-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .pharmacy-categories-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .process-steps-row { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.3rem; }
  .main-nav { display: none; }
}
