/* ============================================================
   Memento Healthcare – Shared Stylesheet
   ============================================================ */

:root {
  --primary:     #1a6fa8;
  --primary-dark:#135489;
  --accent:      #27ae60;
  --accent-dark: #1e8449;
  --light-bg:    #f4f8fc;
  --border:      #dce6f0;
  --text:        #0f1e2d;
  --text-light:  #2c3e50;
  --white:       #ffffff;
  --shadow:      0 2px 12px rgba(0,0,0,.10);
  --radius:      8px;
  --max-width:   1100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

/* ---------- HEADER / NAV ---------- */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--white);
  text-decoration: none;
}
.logo span { color: #90caf9; }

nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

nav a {
  display: block;
  padding: .4rem 1rem;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .93rem;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
nav a:hover, nav a.active {
  background: rgba(255,255,255,.18);
  color: var(--white);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: .4rem 1.1rem !important;
}
.nav-cta:hover { background: var(--accent-dark) !important; }

.nav-login {
  border: 1.5px solid rgba(255,255,255,.55) !important;
  color: var(--white) !important;
  font-weight: 600;
  padding: .4rem 1.1rem !important;
  border-radius: var(--radius);
}
.nav-login:hover { background: rgba(255,255,255,.15) !important; border-color: var(--white) !important; }

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ---------- HERO ---------- */
.hero {
  background: linear-gradient(135deg, #0d3f63 0%, var(--primary-dark) 55%, #1a6fa8 100%);
  color: var(--white);
  padding: 80px 1.5rem 70px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 780px;
  margin: 0 auto .75rem;
  line-height: 1.25;
  color: #7ab3e0;
  text-shadow: 0 2px 6px rgba(0,0,0,.40);
}
.hero p {
  font-size: 1.15rem;
  opacity: 1;
  color: #7ab3e0;
  max-width: 640px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-accent  { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border: 2px solid var(--white); color: var(--white); margin-left: .75rem; }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }

/* ---------- SECTION SCAFFOLDING ---------- */
section { padding: 60px 1.5rem; }
section:nth-child(even) { background: var(--light-bg); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.section-sub {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}
.divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: .6rem 0 1.5rem;
}

/* ---------- CARDS ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 6px 24px rgba(0,0,0,.13); }
.card-icon {
  font-size: 2.2rem;
  margin-bottom: .75rem;
}
.card h3 {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: .5rem;
}
.card p { font-size: .95rem; color: var(--text-light); }
.card a {
  display: inline-block;
  margin-top: .9rem;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.card a:hover { text-decoration: underline; }

/* ---------- STATS BANNER ---------- */
.stats-banner {
  background: var(--primary-dark);
  color: var(--white);
  padding: 50px 1.5rem;
}
.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-size: 2.6rem;
  font-weight: 800;
  color: #90caf9;
  line-height: 1;
}
.stat-label {
  font-size: .95rem;
  opacity: .85;
  margin-top: .35rem;
}

/* ---------- TWO-COL FEATURE ---------- */
.feature-row {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}
.feature-row .feature-text { flex: 1 1 320px; }
.feature-row .feature-visual { flex: 1 1 280px; }
.feature-visual .info-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.info-box h4 { color: var(--primary-dark); margin-bottom: .75rem; font-size: 1.05rem; }
.info-box ul { padding-left: 1.2rem; }
.info-box li { font-size: .93rem; color: var(--text-light); margin-bottom: .3rem; }

/* ---------- TRIAL BOX ---------- */
.trial-box {
  background: linear-gradient(135deg, var(--accent) 0%, #2ecc71 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.trial-box h2 { font-size: 2rem; margin-bottom: .5rem; }
.trial-box p  { font-size: 1.05rem; opacity: .93; max-width: 580px; margin: 0 auto 1.5rem; }
.trial-days {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
}
.trial-days span { font-size: 1.2rem; font-weight: 400; }

/* ---------- APPLICATIONS GRID ---------- */
.app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1rem;
}
.chip {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .3rem .95rem;
  font-size: .88rem;
  color: var(--primary-dark);
}

/* ---------- SERVICES LIST ---------- */
.services-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.services-cols h4 {
  color: var(--primary-dark);
  margin-bottom: .75rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.services-cols ul { list-style: none; padding: 0; }
.services-cols li {
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .93rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}
.services-cols li::before { content: "✓"; color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* ---------- PAGE HERO (inner pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 50px 1.5rem 45px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.4rem); font-weight: 700; }
.page-hero p  { font-size: 1.05rem; opacity: .88; max-width: 600px; margin: .6rem auto 0; }

/* ---------- ARTICLE CONTENT ---------- */
.article-content {
  max-width: 820px;
  margin: 0 auto;
}
.article-content h2 {
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin: 2rem 0 .5rem;
}
.article-content p  { margin-bottom: 1rem; color: var(--text); }
.article-content ul { padding-left: 1.4rem; margin-bottom: 1rem; }
.article-content li { margin-bottom: .35rem; color: var(--text-light); }

.highlight-box {
  background: var(--light-bg);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.highlight-box p { margin: 0; }

/* ---------- FOOTER ---------- */
footer {
  background: #1a2a3a;
  color: rgba(255,255,255,.7);
  padding: 48px 1.5rem 28px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}
.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: .9rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .9rem;
  transition: color .2s;
}
.footer-col a:hover { color: #90caf9; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 1.25rem;
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 720px) {
  .hamburger { display: flex; }
  nav { display: none; position: absolute; top: 64px; left: 0; right: 0;
        background: var(--primary-dark); padding: .5rem 1rem 1rem; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 0; }
  nav a  { padding: .65rem 1rem; }
  .hero  { padding: 55px 1.25rem 50px; }
  .feature-row { gap: 1.5rem; }
  .trial-box { padding: 2rem 1.25rem; }
}
