: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; }
