/* ================================================================
   MyCalPharm — Global Stylesheet
   Include on every page: <link rel="stylesheet" href="/assets/css/global.css">
   ================================================================ */

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --primary:       #1a73e8;
  --primary-dark:  #1557b0;
  --primary-light: #e8f0fe;
  --accent:        #34a853;
  --accent2:       #fbbc04;
  --accent3:       #ea4335;
  --surface:       #ffffff;
  --surface2:      #f8f9fa;
  --surface3:      #f1f3f4;
  --text:          #202124;
  --text2:         #5f6368;
  --text3:         #80868b;
  --border:        #dadce0;
  --shadow:        0 1px 2px rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --shadow-hover:  0 1px 3px rgba(60,64,67,.3), 0 4px 8px 3px rgba(60,64,67,.15);
  --radius:        12px;
  --radius-lg:     16px;
  --radius-xl:     24px;
}

/* ── BASE ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  font-family: "Google Sans Flex", sans-serif;
  color: var(--text);
  background: var(--surface2);
  margin: 0;
}

/* ── SECTION ─────────────────────────────────────────────────── */
.section         { padding: 64px 0; }
.section-alt     { background: var(--surface); }
.section-label   {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title   {
  font-family: 'Google Sans Flex', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-sub { color: var(--text2); font-size: 16px; font-weight: 500; max-width: 560px; }

/* ── PAGE HERO BANNER (inner pages) ─────────────────────────── */
.page-banner {
  background: linear-gradient(135deg, #e8f0fe 0%, #f0f7ff 60%, #e6f4ea 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 50%, rgba(26,115,232,.07) 0%, transparent 55%);
}
.page-banner-label {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12.5px; font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.page-banner h1 {
  font-family: 'Google Sans Flex', sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.page-banner h1 span { color: var(--primary); }
.page-banner p {
  font-size: 16px; color: var(--text2); font-weight: 500;
  max-width: 520px; line-height: 1.65; margin: 0;
}
.breadcrumb-wrap {
  margin-bottom: 16px;
}
.breadcrumb {
  background: none; padding: 0; margin: 0;
  font-size: 13px; font-weight: 600;
}
.breadcrumb-item a { color: var(--primary); text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-item.active { color: var(--text2); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--text3); }

/* ── GOOGLE CARD ─────────────────────────────────────────────── */
.g-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all .25s;
  height: 100%;
  position: relative;
}
.g-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.g-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 16px;
}
.g-card-icon.blue   { background: var(--primary-light); color: var(--primary); }
.g-card-icon.green  { background: #e6f4ea;              color: var(--accent);  }
.g-card-icon.yellow { background: #fef7e0;              color: #f09300;        }
.g-card-icon.red    { background: #fce8e6;              color: var(--accent3); }
.g-card-icon.purple { background: #f3e8fd;              color: #9c27b0;        }
.g-card-icon.teal   { background: #e0f5f5;              color: #00897b;        }
.g-card h5 { font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.g-card p  { font-size: 14px; color: var(--text2); line-height: 1.6; margin: 0; }

/* ── BUTTON STYLES ───────────────────────────────────────────── */
.btn-primary-solid {
  background: var(--primary); color: #fff; border: none;
  border-radius: 10px; padding: 13px 28px; font-size: 15px; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s; box-shadow: var(--shadow);
}
.btn-primary-solid:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); color: #fff; }
.btn-primary-outline {
  background: #fff; color: var(--primary); border: 1.5px solid var(--primary);
  border-radius: 10px; padding: 12px 26px; font-size: 15px; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: all .2s;
}
.btn-primary-outline:hover { background: var(--primary-light); transform: translateY(-1px); color: var(--primary); }

/* ── CHIP ────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface3); border: 1px solid var(--border);
  border-radius: 100px; padding: 4px 12px;
  font-size: 12.5px; font-weight: 600; color: var(--text2);
}
.chip.green  { background: #e6f4ea; border-color: #b7dfbf; color: var(--accent); }
.chip.blue   { background: var(--primary-light); border-color: #c5d9f7; color: var(--primary); }
.chip.yellow { background: #fef7e0; border-color: #f0d080; color: #b06000; }
.chip.red    { background: #fce8e6; border-color: #f5bcb8; color: var(--accent3); }

/* ── TIMELINE ────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 28px; }
.timeline-dot {
  position: absolute; left: -28px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary); border: 3px solid var(--primary-light);
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-year  { font-size: 12px; font-weight: 800; color: var(--primary); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 4px; }
.timeline-text  { font-size: 14px; color: var(--text2); line-height: 1.6; }

/* ── ENDORSEMENT CARD ────────────────────────────────────────── */
.endorse-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px 24px;
  display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow);
}
.endorse-card img { height: 52px; object-fit: contain; }

/* ── SCROLL REVEAL ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1);
}
.reveal.reveal-left  { transform: translateX(-32px); }
.reveal.reveal-right { transform: translateX(32px); }
.reveal.reveal-scale { transform: scale(.96); }
.reveal.visible      { opacity: 1; transform: translate(0) scale(1); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── LIGHTBOX ────────────────────────────────────────────────── */
.lightbox-backdrop {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.82);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 20px;
}
.lightbox-backdrop.open { opacity: 1; pointer-events: all; }
.lightbox-inner { position: relative; max-width: 90vw; max-height: 88vh; transform: scale(.92); transition: transform .3s ease; }
.lightbox-backdrop.open .lightbox-inner { transform: scale(1); }
.lightbox-inner img { max-width: 100%; max-height: 88vh; border-radius: 14px; box-shadow: 0 24px 80px rgba(0,0,0,.6); display: block; }
.lightbox-close {
  position: absolute; top: -14px; right: -14px;
  width: 36px; height: 36px; background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--text); cursor: pointer; border: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: transform .15s; z-index: 2;
}
.lightbox-close:hover { transform: scale(1.12); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section       { padding: 44px 0; }
  .page-banner   { padding: 40px 0 32px; }
}
