@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg:        #FBFBF9;
  --surface:   #FFFFFF;
  --border:    #E6E4DD;
  --text:      #14181C;
  --muted:     #5A6470;
  --accent:    #14345A;
  --accent-lt: #EAF0F7;
  --accent-md: #1E4576;
  --green:     #1A6B45;
  --green-lt:  #EEFAF4;
  --header-bg: rgba(251,251,249,.9);
  --serif:     'Lora', Georgia, serif;
  --sans:      'Inter', system-ui, sans-serif;
  --radius:    6px;
  --shadow:    0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1,h2,h3,h4 { font-family: var(--serif); line-height: 1.25; }
h1 { font-size: clamp(2rem,5vw,3.25rem); font-weight: 600; }
h2 { font-size: clamp(1.5rem,3vw,2.125rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
h4 { font-size: .95rem; font-weight: 600; font-family: var(--sans); }
p  { color: #3D3D3A; }
a  { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* ── Nav ── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.site-logo {
  font-family: var(--serif); font-size: 1.1rem;
  font-weight: 600; color: var(--accent); letter-spacing: -.01em;
}
.site-logo span { color: var(--text); }
.site-logo img,
.site-logo-img,
.custom-logo  { max-height: 40px; width: auto; display: block; }

/* Full-width page template (Elementor / builder pages) — no width cap */
.fullwidth-main { width: 100%; }
.fullwidth-main > .entry-content { max-width: none; }

#primary-menu {
  display: flex; gap: 32px; list-style: none;
}
#primary-menu a {
  font-size: .875rem; font-weight: 500;
  color: var(--muted); transition: color .15s;
}
#primary-menu a:hover,
#primary-menu .current-menu-item > a { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-size: .875rem; font-weight: 500;
  padding: 10px 20px; border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer; transition: all .15s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-md); border-color: var(--accent-md); color: #fff; }
.btn-outline  { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-white    { background: #fff; color: var(--accent); border-color: #fff; }
.btn-white:hover { background: #f0f0f0; color: var(--accent); }
.btn-sm       { padding: 8px 16px; font-size: .8125rem; }
.btn-full     { width: 100%; justify-content: center; }

/* ── Hamburger ── */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); display: block; transition: all .2s; }

/* ── Mobile nav ── */
.nav-mobile {
  display: none; flex-direction: column;
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 12px 24px 20px; gap: 0;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  padding: 12px 0; font-size: .9375rem;
  border-bottom: 1px solid var(--border); color: var(--text);
}
.nav-mobile a:last-child { border-bottom: none; }

/* ── Section label ── */
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.section-label::before { content: ''; width: 24px; height: 1px; background: var(--muted); }
.section-num { font-size: .75rem; font-weight: 700; color: var(--accent); letter-spacing: .06em; }

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Cards ── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; color: var(--accent);
}
.card-icon svg { width: 22px; height: 22px; }
.icon-blue   { background: var(--accent-lt); color: var(--accent); }
.icon-green  { background: var(--green-lt);  color: var(--green); }
.icon-amber  { background: #FFF8ED;          color: #B05A00; }
.icon-purple { background: #F3EFFE;          color: #6D4AAE; }
.card h3 { margin-bottom: 8px; }
.card > p { font-size: .9rem; color: var(--muted); line-height: 1.65; }

/* ── Hero ── */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-lt);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.hero h1 { margin-bottom: 20px; max-width: 720px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.1rem; color: var(--muted);
  max-width: 540px; margin-bottom: 36px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 0; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 60px;
  padding-top: 32px; border-top: 1px solid var(--border); flex-wrap: wrap;
}
.hero-stat .num {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 600;
}
.hero-stat .label { font-size: .8125rem; color: var(--muted); margin-top: 2px; }

/* ── Page header ── */
.page-header { padding: 64px 0 48px; border-bottom: 1px solid var(--border); }
.page-header h1 { margin-bottom: 12px; }
.page-header .page-desc { font-size: 1.05rem; color: var(--muted); max-width: 560px; }

/* ── Blog post cards ── */
.post-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; overflow: hidden;
  transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column;
}
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.post-card-img { aspect-ratio: 16/9; overflow: hidden; background: var(--accent-lt); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-cat {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.post-card h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.post-card h3 a:hover { color: var(--accent); }
.post-card .excerpt { font-size: .875rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--muted); }
.post-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border); }

/* ── Pharma news feed ── */
.pharma-feed { display: grid; gap: 12px; }
@media (min-width: 700px) { .pharma-feed { grid-template-columns: 1fr 1fr; } }
.feed-item {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 20px;
  transition: box-shadow .2s, transform .2s;
}
.feed-item:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.feed-source {
  display: inline-block; font-size: .65rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px; margin-bottom: 10px;
  background: var(--accent-lt); color: var(--accent);
}
.feed-source.feed-grp-fda  { background: var(--green-lt); color: var(--green); }
.feed-source.feed-grp-news { background: #FFF8ED; color: #B05A00; }
.feed-title {
  display: block; font-family: var(--serif); font-size: 1.02rem;
  font-weight: 600; line-height: 1.4; color: var(--text); margin-bottom: 6px;
}
.feed-item:hover .feed-title { color: var(--accent); }
.feed-meta { display: block; font-size: .8rem; color: var(--muted); }

/* Feed: updated stamp + source filter tabs */
.feed-updated { font-size: .8rem; color: var(--muted); margin-bottom: 14px; }
.feed-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.feed-tab {
  font-size: .8125rem; font-weight: 500; padding: 7px 15px;
  border-radius: 6px; border: 1.5px solid var(--border);
  background: transparent; color: var(--muted); cursor: pointer; transition: all .15s;
}
.feed-tab:hover { border-color: var(--accent); color: var(--accent); }
.feed-tab.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Notes cards ── */
.notes-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
}
.badge-available { background: var(--green-lt); color: var(--green); }
.badge-soon { background: #FFF8ED; color: #B05A00; }
.notes-card h3 { font-size: 1.1rem; }
.notes-card .notes-desc { font-size: .875rem; color: var(--muted); }
.notes-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto;
}
.price { font-weight: 700; font-size: 1rem; }
.price del { font-size: .8rem; color: var(--muted); font-weight: 400; margin-right: 4px; }

/* ── Feature checklist (notes) ── */
.feature-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px 16px; margin: 0 0 24px; max-width: 480px;
}
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--muted); }
.feature-list li svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ── Details / accordion ── */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.toggle { display: inline-block; transition: transform .2s ease; font-weight: 400; }
details[open] > summary .toggle { transform: rotate(45deg); }

/* ── Service rows ── */
.service-row {
  display: flex; align-items: flex-start; gap: 20px;
  padding: 28px 0; border-bottom: 1px solid var(--border);
}
.service-row:first-child { border-top: 1px solid var(--border); }
.service-num { font-size: .75rem; font-weight: 700; color: var(--accent); min-width: 28px; margin-top: 4px; }
.service-content { flex: 1; }
.service-content h3 { margin-bottom: 6px; }
.service-content p { font-size: .9rem; color: var(--muted); }
.service-tag {
  font-size: .75rem; padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--muted); white-space: nowrap;
}

/* ── Testimonial block ── */
.testimonial-block {
  background: var(--accent); color: #fff;
  border-radius: 12px; padding: 48px;
}
.testimonial-block blockquote {
  font-family: var(--serif); font-size: clamp(1.1rem,2vw,1.35rem);
  line-height: 1.65; font-style: italic; margin-bottom: 24px; opacity: .95;
}
.cite { display: flex; align-items: center; gap: 12px; }
.cite-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: .875rem; flex-shrink: 0;
}
.cite-name { font-weight: 600; font-size: .9rem; }
.cite-role { font-size: .8rem; opacity: .7; }

/* ── Newsletter section ── */
.newsletter-box {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 48px; text-align: center;
}
.newsletter-box h2 { margin-bottom: 10px; }
.newsletter-box .nl-sub { color: var(--muted); margin-bottom: 28px; }
.nl-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto; }
.nl-form input[type="email"] {
  flex: 1; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--sans); font-size: .9rem;
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color .15s;
}
.nl-form input:focus { border-color: var(--accent); }
.nl-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* ── Contact form ── */
.contact-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 40px;
}
.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: 6px; }
.form-row input,
.form-row select,
.form-row textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--sans); font-size: .9rem;
  background: var(--bg); color: var(--text); outline: none;
  transition: border-color .15s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-color: var(--accent); }
.form-row textarea { resize: vertical; min-height: 140px; }
.wpcf7-submit { /* override for CF7 submit */
  background: var(--accent) !important; color: #fff !important;
  border: none !important; padding: 12px 24px !important;
  border-radius: var(--radius) !important; font-weight: 500 !important;
  cursor: pointer !important; font-size: .9rem !important;
  width: 100% !important; transition: background .15s !important;
}
.wpcf7-submit:hover { background: var(--accent-md) !important; }

/* ── Content area (single/page) ── */
.entry-content {
  font-size: 1.05rem; line-height: 1.8; max-width: 720px;
}
.entry-content h2 { margin: 40px 0 16px; }
.entry-content h3 { margin: 32px 0 12px; font-family: var(--sans); font-size: 1.1rem; }
.entry-content p  { margin-bottom: 20px; color: #2D2D2A; }
.entry-content ul,
.entry-content ol { margin: 0 0 20px 22px; color: #2D2D2A; }
.entry-content li { margin-bottom: 8px; }
.entry-content blockquote {
  border-left: 3px solid var(--accent); padding: 12px 20px;
  background: var(--accent-lt); border-radius: 0 6px 6px 0;
  margin: 24px 0; font-style: italic; color: var(--accent);
}
.entry-content code {
  background: #F1F0EC; padding: 2px 6px;
  border-radius: 4px; font-size: .9em;
}
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ── Sidebar ── */
.sidebar-widget {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 24px; margin-bottom: 20px;
}
.sidebar-widget .widget-title {
  font-family: var(--sans); font-size: .8125rem; font-weight: 600;
  color: var(--muted); letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 16px;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li {
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .875rem;
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget a { color: var(--text); }
.sidebar-widget a:hover { color: var(--accent); }

/* ── Tag pills ── */
.tag-pill {
  display: inline-block; font-size: .75rem; font-weight: 500;
  padding: 4px 10px; border-radius: 100px;
  background: var(--accent-lt); color: var(--accent); margin: 2px;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8125rem; color: var(--muted); margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: .4; }

/* ── Pagination ── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination .page-numbers {
  width: 40px; height: 40px; display: flex; align-items: center;
  justify-content: center; border-radius: var(--radius);
  border: 1.5px solid var(--border); font-size: .875rem;
  color: var(--text); transition: all .15s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--accent); border-color: var(--accent); color: #fff;
}

/* ── Category filter ── */
.cat-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.cat-btn {
  font-size: .8125rem; font-weight: 500;
  padding: 8px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--border);
  cursor: pointer; transition: all .15s;
  background: transparent; color: var(--muted);
}
.cat-btn:hover { border-color: var(--accent); color: var(--accent); }
.cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── Divider ── */
hr.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Alert ── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: .875rem; display: none; }
.alert-success { background: var(--green-lt); color: var(--green); border: 1px solid #A7E6C5; }
.alert-error   { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; }
.alert.show    { display: block; }

/* ── Utilities ── */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }

/* ── Footer ── */
#site-footer {
  background: var(--text); color: #D4D4CE; padding: 64px 0 32px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 32px;
}
.footer-brand-logo {
  font-family: var(--serif); font-size: 1.1rem;
  font-weight: 600; color: #fff; display: block; margin-bottom: 12px;
}
.footer-brand-logo span { color: #8AABDF; }
.footer-brand p { font-size: .875rem; color: #9B9B95; max-width: 240px; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--sans); font-size: .8125rem; font-weight: 600;
  color: #fff; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: .875rem; color: #9B9B95; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8125rem; color: #6B6B65;
}
.footer-bottom a { color: #9B9B95; }
.footer-bottom a:hover { color: #fff; }
.footer-social { display: flex; gap: 16px; }
.footer-legal-menu { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-legal-menu a { font-size: .8125rem; color: #9B9B95; }
.footer-legal-menu a:hover { color: #fff; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo-link .custom-logo { max-height: 40px; width: auto; }

/* ── 404 ── */
.error-404 { text-align: center; padding: 100px 0; }
.error-404 h1 { font-size: 6rem; color: var(--accent); margin-bottom: 16px; }
.error-404 h2 { margin-bottom: 12px; }
.error-404 p  { color: var(--muted); margin-bottom: 28px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  #primary-menu,
  .nav-actions .btn-outline { display: none; }
  .nav-toggle { display: flex; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nl-form { flex-direction: column; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 56px 0; }
  .testimonial-block { padding: 32px 24px; }
  .contact-card { padding: 28px 20px; }
  .post-layout { grid-template-columns: 1fr !important; }
}
@media (max-width: 540px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { gap: 20px; }
}
