:root {
  --safe-blue: #153d96;
  --safe-blue-dark: #102c70;
  --safe-green: #2d9a43;
  --safe-green-soft: #e8f6ea;
  --safe-ink: #14203a;
  --safe-muted: #687186;
  --safe-line: #e5eaf1;
}

html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--safe-ink);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,.brand-name { font-family: "Manrope", sans-serif; }

.bg-light-subtle { background: #f7f9fc !important; }
.site-header { backdrop-filter: blur(14px); }
.navbar.bg-opacity-90 { background-color: rgba(255,255,255,.90) !important; }
.nav-link { font-weight: 600; color: #46516a; }
.nav-link:hover { color: var(--safe-blue); }

.btn-primary {
  --bs-btn-bg: var(--safe-blue);
  --bs-btn-border-color: var(--safe-blue);
  --bs-btn-hover-bg: var(--safe-blue-dark);
  --bs-btn-hover-border-color: var(--safe-blue-dark);
  --bs-btn-active-bg: var(--safe-blue-dark);
  --bs-btn-active-border-color: var(--safe-blue-dark);
}
.btn-outline-secondary { --bs-btn-color: #46516a; --bs-btn-border-color: var(--safe-line); --bs-btn-hover-bg: #f5f7fb; --bs-btn-hover-color: var(--safe-ink); --bs-btn-hover-border-color: var(--safe-line); }

.brand-mark {
  width: 44px; height: 44px; display: grid; grid-template-columns: repeat(2,1fr); gap: 5px; flex: 0 0 auto;
}
.brand-mark i { border-radius: 7px; background: #4fb66b; display:block; }
.brand-mark i:first-child { background:#7ad483; }
.brand-mark i:nth-child(3) { background:#466ec1; }
.brand-mark-lg { width: 56px; height: 56px; gap: 5px; }
.brand-mark-sm { width: 34px; height: 34px; gap: 4px; }
.brand-text { display:flex; flex-direction:column; line-height:.95; }
.brand-name { font-weight:800; letter-spacing:-1.5px; color:var(--safe-blue); }
.brand-name .safe { color:var(--safe-blue); }
.brand-name .rx { color:var(--safe-green); }
.brand-text small { margin-top:4px; color:var(--safe-blue); font-weight:700; }

.hero { background: linear-gradient(180deg,#fff 0%,#fbfcff 100%); }
.py-lg-6 { padding-top: 7rem !important; padding-bottom: 7rem !important; }
.eyebrow,.section-kicker { color:var(--safe-green); font:800 12px/1 "Manrope",sans-serif; letter-spacing:.14em; text-transform:uppercase; }
.eyebrow::before { content:""; display:inline-block; width:28px; height:2px; margin-right:8px; vertical-align:middle; background:var(--safe-green); }
.hero h1 { letter-spacing:-4px; }
.hero h1 span { color:var(--safe-blue); }
.hero-lede { max-width:650px; line-height:1.7; }
.status-dot { width:8px; height:8px; background:var(--safe-green); border-radius:50%; box-shadow:0 0 0 5px var(--safe-green-soft); }

.hero-visual { max-width:440px; min-height:510px; display:grid; place-items:center; }
.hero-blob { position:absolute; border-radius:80px; }
.hero-blob-one { width:290px; height:290px; background:#e5f5e8; right:0; top:30px; transform:rotate(28deg); }
.hero-blob-two { width:250px; height:250px; background:#e8eefc; left:0; bottom:20px; transform:rotate(-22deg); }
.hero-card { z-index:2; width:100%; max-width:430px; min-height:390px; padding:38px; background:rgba(255,255,255,.96); border:1px solid #dfe5ee; border-radius:34px; box-shadow:0 32px 100px rgba(25,57,110,.16); transform:rotate(-2deg); }
.delivery-chip { color:#15712b; background:var(--safe-green-soft); }
.letter-spacing { letter-spacing:.15em; }

.highlight-item { padding:30px 34px; border-right:1px solid var(--safe-line); }
.highlight-item:first-child { padding-left:0; }
.highlight-item:last-child { border-right:0; }
.highlight-item > span { color:var(--safe-green); font:700 12px/1 "Manrope",sans-serif; letter-spacing:.12em; }
.highlight-item h3 { margin:8px 0 0; font-size:20px; font-weight:800; }
.highlight-item p { margin:8px 0 0; color:var(--safe-muted); font-size:14px; line-height:1.55; }

.section-pad { padding:7rem 0; }
.service-card { min-height:230px; transition:transform .2s ease,box-shadow .2s ease; }
.service-card:hover { transform:translateY(-4px); box-shadow:0 18px 60px rgba(26,49,92,.10); }
.service-card-featured { background:var(--safe-blue); color:#fff; }
.service-icon { width:48px; height:48px; display:grid; place-items:center; border-radius:14px; background:#f0f3f8; color:var(--safe-blue); font-size:21px; font-weight:800; }
.service-card-featured .service-icon { background:rgba(255,255,255,.13); color:#fff; }

.contact-shell { background:var(--safe-ink); }
.contact-kicker { color:#86d895; }
.contact-panel { background:#1d2a46; border:1px solid rgba(255,255,255,.08); }
.contact-row { display:grid; grid-template-columns:110px 1fr; gap:20px; padding:24px 26px; border-bottom:1px solid rgba(255,255,255,.08); }
.contact-row:last-child { border-bottom:0; }
.contact-row > span { color:#94a0b7; font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.contact-row a,.contact-row p { margin:0; color:#fff; font-weight:600; line-height:1.5; overflow-wrap:anywhere; text-decoration:none; }
.contact-row a:hover { color:#90db9d; }

@media (max-width: 991.98px) {
  .hero-visual { min-height:440px; }
  .highlight-item { border-right:0; border-bottom:1px solid var(--safe-line); }
  .highlight-item:first-child { padding-left:34px; }
  .highlight-item:last-child { border-bottom:0; }
}
@media (max-width: 767.98px) {
  .py-lg-6 { padding-top:4rem !important; padding-bottom:4rem !important; }
  .section-pad { padding:4.5rem 0; }
  .hero h1 { letter-spacing:-2.5px; font-size:clamp(3rem,12vw,4.5rem); }
  .hero-visual { min-height:390px; }
  .hero-card { padding:28px; min-height:350px; transform:none; }
  .contact-row { grid-template-columns:1fr; gap:8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior:auto; } .service-card { transition:none; } }


/* Supplied SafeRx logo */
.site-logo {
  display: block;
  width: 190px;
  height: auto;
  max-height: 72px;
  object-fit: contain;
}

.hero-logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  object-fit: contain;
}

@media (max-width: 575.98px) {
  .site-logo { width: 155px; max-height: 60px; }
  .hero-logo { width: min(100%, 300px); }
}


/* Multi-page additions */
.page-hero { background: linear-gradient(180deg,#fff 0%,#fbfcff 100%); }
.simple-panel { padding: 38px; background:#fff; border:1px solid #dfe5ee; border-radius:30px; box-shadow:0 24px 70px rgba(25,57,110,.10); }
.soft-rule { height:1px; background:var(--safe-line); margin:28px 0; }
.mini-card { display:flex; flex-direction:column; gap:8px; height:100%; padding:22px; border:1px solid var(--safe-line); border-radius:18px; background:#fff; }
.mini-card strong { font-family:"Manrope",sans-serif; font-size:18px; }
.mini-card span { color:var(--safe-muted); line-height:1.55; font-size:14px; }
.footer-logo { width:150px; height:auto; }
.nav-link.active { color:var(--safe-blue) !important; }
@media (max-width:575.98px) { .simple-panel { padding:24px; } .footer-logo { width:135px; } }

/* Smooth scrolling + subtle reveal animations */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.65,.3,1);
  will-change: opacity, transform;
}

.reveal.reveal-left {
  transform: translateX(-28px);
}

.reveal.reveal-right {
  transform: translateX(28px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.hover-lift {
  transition: transform .35s ease, box-shadow .35s ease;
}

.hover-lift:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 45px rgba(15, 42, 90, .10);
}

.navbar {
  transition: background-color .3s ease, box-shadow .3s ease, padding .3s ease;
}

.navbar.navbar-scrolled {
  box-shadow: 0 8px 30px rgba(15, 42, 90, .08);
}

.hero-content {
  animation: heroEnter .9s cubic-bezier(.2,.65,.3,1) both;
}

@keyframes heroEnter {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal,
  .reveal.reveal-left,
  .reveal.reveal-right {
    opacity: 1;
    transform: none;
  }
}

.review-card {
  border: 1px solid rgba(15,42,90,.08);
  background: linear-gradient(135deg, #f7fbff, #ffffff);
}
.review-card .display-6 span { letter-spacing: .08em; font-size: .65em; }
.map-placeholder { min-height: 300px; background: #eef5f7; }
.footer-links a { color: inherit; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* Expanded pharmacy service content */
.content-panel {
  border: 1px solid rgba(15,42,90,.08);
  box-shadow: 0 14px 45px rgba(15,42,90,.05);
}
.content-panel p:last-child { margin-bottom: 0; }

/* One consistent footer logo on every page */
.footer-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
footer .footer-logo {
  display: block;
  width: 168px !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
}
@media (max-width: 575.98px) {
  footer .footer-logo { width: 150px !important; }
}


/* Homepage prescription forms — added without changing the existing site styles */
.rx-form-tabs .nav-link {
  color: #1b4b9b;
  font-weight: 700;
  background: #fff;
  border: 1px solid rgba(27, 75, 155, .16);
}
.rx-form-tabs .nav-link.active {
  background: #0aa6ad;
  border-color: #0aa6ad;
  color: #fff;
}
.rx-form-card {
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(27, 75, 155, .10);
  border-radius: 24px;
  padding: clamp(24px, 4vw, 48px);
  box-shadow: 0 16px 45px rgba(25, 60, 110, .08);
}
.rx-form-title {
  margin: 0;
  text-align: center;
  color: #183f91;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: .04em;
}
.rx-form-rule {
  width: 72px;
  height: 2px;
  margin: 13px auto 32px;
  background: #0aa6ad;
}
.rx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 22px;
}
.rx-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rx-field label {
  color: #334155;
  font-size: .88rem;
  font-weight: 600;
}
.rx-field input,
.rx-field select,
.rx-field textarea {
  width: 100%;
  border: 1px solid #d8e1e8;
  border-radius: 8px;
  background: #fff;
  color: #24323d;
  padding: 12px 14px;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rx-field textarea {
  resize: vertical;
  min-height: 105px;
}
.rx-field input:focus,
.rx-field select:focus,
.rx-field textarea:focus {
  border-color: #0aa6ad;
  box-shadow: 0 0 0 3px rgba(10,166,173,.10);
}
.rx-full {
  grid-column: 1 / -1;
}
.rx-select-field {
  max-width: 50%;
}
.rx-helper {
  color: #56636d;
  margin: 26px 0 12px;
  line-height: 1.6;
}
.rx-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #24323d;
  font-weight: 600;
  cursor: pointer;
}
.rx-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: #0aa6ad;
}
.rx-med-grid {
  margin-top: 8px;
}
.rx-message-field {
  margin-top: 22px;
}
.rx-submit {
  text-align: center;
  margin-top: 28px;
}
.rx-submit .btn {
  min-width: 140px;
}
.rx-form-status {
  min-height: 1.4em;
  margin: 14px 0 0;
  text-align: center;
  font-size: .92rem;
  color: #56636d;
}
.rx-form-status.error {
  color: #b42318;
}
.rx-form-status.success {
  color: #18794e;
}
@media (max-width: 767.98px) {
  .rx-grid {
    grid-template-columns: 1fr;
  }
  .rx-full {
    grid-column: auto;
  }
  .rx-select-field {
    max-width: none;
  }
  .rx-form-card {
    border-radius: 18px;
  }
}

/* Standalone prescription request pages */
.standalone-form-page { background: linear-gradient(180deg,#fff 0%,#f7f9fc 100%); min-height: 100vh; }
.standalone-form-main { padding: 5.5rem 0 6.5rem; }
.standalone-form-card { max-width: 980px; margin: 0 auto; background:#fff; border:1px solid var(--safe-line); border-radius:28px; padding:clamp(24px,4vw,52px); box-shadow:0 20px 70px rgba(25,57,110,.09); }
.standalone-form-title { text-align:center; font-size:clamp(1.8rem,3vw,2.5rem); font-weight:800; margin:0; letter-spacing:-.04em; }
.standalone-rule { width:72px; height:3px; margin:16px auto 28px; background:#0aa6ad; border-radius:999px; }
.standalone-notice { margin:0 auto 30px; max-width:800px; padding:15px 18px; border:1px solid #dcecf0; background:#f4fbfc; border-radius:14px; color:#52606d; line-height:1.65; font-size:.94rem; }
.standalone-form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:22px 24px; }
.standalone-field { display:flex; flex-direction:column; gap:8px; }
.standalone-field.full { grid-column:1/-1; }
.standalone-field label { color:#24323d; font-weight:700; font-size:.92rem; }
.standalone-field input,.standalone-field select,.standalone-field textarea { width:100%; border:1px solid #d8e0e8; border-radius:12px; background:#fff; color:#24323d; padding:13px 14px; font:inherit; outline:none; transition:border-color .2s ease,box-shadow .2s ease; }
.standalone-field textarea { min-height:120px; resize:vertical; }
.standalone-field input:focus,.standalone-field select:focus,.standalone-field textarea:focus { border-color:#0aa6ad; box-shadow:0 0 0 4px rgba(10,166,173,.10); }
.standalone-helper { color:#56636d; line-height:1.65; margin:30px 0 12px; }
.standalone-checkbox { display:flex; align-items:center; gap:10px; font-weight:700; color:#24323d; }
.standalone-checkbox input { width:18px; height:18px; accent-color:#0aa6ad; }
.standalone-med-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 24px; }
.standalone-actions { text-align:center; margin-top:32px; }
.standalone-actions .btn { min-width:150px; }
.standalone-status { min-height:1.5em; margin:14px 0 0; text-align:center; font-size:.92rem; }
.standalone-status.error { color:#b42318; }
.standalone-status.success { color:#18794e; }
.standalone-back { margin-top:24px; text-align:center; }
@media (max-width:767.98px) { .standalone-form-main { padding:4rem 0 4.5rem; } .standalone-form-grid,.standalone-med-grid { grid-template-columns:1fr; gap:18px; } .standalone-field.full { grid-column:auto; } .standalone-form-card { border-radius:20px; } }

/* Global spacing polish */
.container { --bs-gutter-x: 1.5rem; }
.navbar .container { min-height: 76px; }
.navbar-nav { row-gap: .5rem; }
.section-pad { padding-top: clamp(5rem, 8vw, 7rem); padding-bottom: clamp(5rem, 8vw, 7rem); }
.hero { padding-top: clamp(4.5rem, 8vw, 7rem) !important; padding-bottom: clamp(4.5rem, 8vw, 7rem) !important; }
.simple-panel { padding: clamp(26px,3vw,38px); }
footer { padding-top: 1.75rem !important; padding-bottom: 1.75rem !important; }
@media (max-width:767.98px) { .navbar .container { min-height:68px; } .section-pad { padding-top:4.25rem; padding-bottom:4.25rem; } }

/* Hero CTA sizing and mobile spacing */
.hero-actions { align-items: center; }
.hero-actions .btn { width: auto; min-width: 0; white-space: nowrap; padding-left: 1.05rem; padding-right: 1.05rem; }
@media (max-width: 767.98px) {
  .hero { padding-top: 3.25rem !important; padding-bottom: 3.25rem !important; }
  .hero h1 { font-size: clamp(2.35rem, 10.5vw, 3.5rem); letter-spacing: -2px; margin-bottom: 1.1rem !important; }
  .hero-lede { font-size: 1rem; line-height: 1.55; margin-bottom: 1.25rem !important; }
  .hero-actions { gap: .55rem !important; margin-bottom: 1.25rem !important; }
  .hero-actions .btn { font-size: .92rem; padding: .62rem .9rem; }
}
