/*
Theme Name: MedScience Consulting
Theme URI: https://medscienceconsulting.com/
Author: MedScience Consulting
Description: A focused one-page WordPress theme for Varduhi Ghazaryan, MD, MPH.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: medscience-consulting
*/

:root {
  --navy: #072f3b;
  --navy-deep: #041f28;
  --teal: #0b7774;
  --aqua: #79d2cb;
  --gold: #d0a85d;
  --ink: #15343d;
  --muted: #587078;
  --mist: #edf7f6;
  --white: #ffffff;
  --line: #d6e7e5;
  --shadow: 0 20px 54px rgba(5, 48, 58, .12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(214,231,229,.9);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-logo { width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain; }
.brand-name { font-size: 16px; line-height: 1.15; }
.brand-name small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: #284a52; font-size: 14px; font-weight: 680; text-decoration: none; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--teal); }
.nav-contact { padding: 10px 16px; color: var(--white) !important; background: var(--navy); border-radius: 999px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); font-size: 22px; }

.hero {
  min-height: 690px;
  display: flex;
  align-items: center;
  color: var(--white);
  background-color: var(--navy-deep);
  background-image: linear-gradient(90deg, rgba(3,31,40,.98) 0%, rgba(3,31,40,.91) 38%, rgba(3,31,40,.30) 70%, rgba(3,31,40,.08) 100%), url('assets/images/medical-science-hero.png');
  background-position: center;
  background-size: cover;
}
.hero-content { max-width: 710px; padding: 105px 0 110px; }
.eyebrow { margin: 0 0 18px; color: var(--aqua); font-size: 13px; font-weight: 780; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; color: var(--navy); line-height: 1.12; letter-spacing: -.035em; }
h1 { margin-bottom: 22px; color: var(--white); font-family: Georgia, 'Times New Roman', serif; font-size: clamp(44px, 6.8vw, 78px); font-weight: 500; }
.hero-lead { max-width: 630px; margin: 0 0 34px; color: #d9ecec; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.55; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 23px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--aqua); color: var(--navy-deep); }
.button-secondary { margin-left: 10px; border-color: rgba(255,255,255,.42); color: var(--white); }
.hero-proof { display: flex; flex-wrap: wrap; gap: 16px 26px; margin-top: 52px; padding-top: 27px; border-top: 1px solid rgba(255,255,255,.22); color: #c9dfdf; font-size: 14px; }
.hero-proof span::before { content: '•'; margin-right: 9px; color: var(--gold); }

section { padding: 100px 0; }
.section-soft { background: var(--mist); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head .eyebrow { color: var(--teal); }
h2 { margin-bottom: 17px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(34px, 4.5vw, 54px); font-weight: 500; }
.section-intro { margin: 0; color: var(--muted); font-size: 19px; }
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 76px; align-items: start; }
.credential-panel { padding: 34px; border-radius: var(--radius); color: var(--white); background: var(--navy); box-shadow: var(--shadow); }
.credential-panel h3 { margin-bottom: 9px; color: var(--white); font-family: Georgia, serif; font-size: 30px; font-weight: 500; }
.credential-panel p { margin: 0 0 25px; color: #cbe0e0; }
.credential-list { margin: 0; padding: 0; list-style: none; }
.credential-list li { padding: 14px 0; border-top: 1px solid rgba(255,255,255,.13); }
.credential-list strong { display: block; color: var(--aqua); font-size: 12px; letter-spacing: .11em; text-transform: uppercase; }
.about-copy p { margin-top: 0; color: #3f5a62; }
.about-copy .lead { color: var(--ink); font-family: Georgia, serif; font-size: 27px; line-height: 1.42; }

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card { min-height: 270px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-number { display: inline-grid; width: 42px; height: 42px; margin-bottom: 26px; place-items: center; border-radius: 50%; color: var(--teal); background: var(--mist); font-size: 13px; font-weight: 800; }
.service-card h3 { margin-bottom: 12px; font-size: 21px; letter-spacing: -.02em; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }

.expertise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px 70px; }
.expertise-item { padding: 0 0 25px; border-bottom: 1px solid var(--line); }
.expertise-item h3 { margin-bottom: 7px; font-size: 18px; }
.expertise-item p { margin: 0; color: var(--muted); font-size: 15px; }

.evidence { color: var(--white); background: var(--navy); }
.evidence h2 { color: var(--white); }
.evidence .section-intro { color: #c9dfdf; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 46px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); }
.evidence-item { padding: 31px; background: var(--navy); }
.evidence-item strong { display: block; margin-bottom: 9px; color: var(--aqua); font-family: Georgia, serif; font-size: 29px; font-weight: 500; }
.evidence-item span { color: #cbe0e0; font-size: 14px; }
.text-link { display: inline-block; margin-top: 30px; color: var(--aqua); font-weight: 750; }

.contact { text-align: center; }
.contact-card { padding: 70px 30px; border-radius: 30px; background: linear-gradient(145deg, #e7f5f3, #f7fbfa); border: 1px solid var(--line); }
.contact-card .section-head { margin: 0 auto 30px; }
.email-link { font-size: clamp(17px, 2.5vw, 24px); word-break: break-word; }
.fine-print { max-width: 780px; margin: 24px auto 0; color: var(--muted); font-size: 13px; }

.site-footer { padding: 32px 0; color: #bcd1d3; background: var(--navy-deep); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.site-footer a { color: var(--aqua); }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .site-nav { position: fixed; inset: 78px 0 auto 0; display: none; padding: 26px 20px 34px; align-items: stretch; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 17px; }
  .nav-contact { text-align: center; }
  .hero { min-height: 620px; background-image: linear-gradient(90deg, rgba(3,31,40,.97), rgba(3,31,40,.76)), url('assets/images/medical-science-hero.png'); }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wrap { width: min(100% - 28px, 1160px); }
  section { padding: 74px 0; }
  .brand-name { font-size: 14px; }
  .hero-content { padding: 82px 0 88px; }
  .hero-proof { display: block; }
  .hero-proof span { display: block; margin: 8px 0; }
  .button { width: 100%; }
  .button-secondary { margin: 10px 0 0; }
  .services-grid, .expertise-grid, .evidence-grid { grid-template-columns: 1fr; }
  .evidence-grid { gap: 0; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
