/* Medical Professional Connections -- shared stylesheet
   Rebuilt to visually match the NTV360 editor version of the site. */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&family=Instrument+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Unna:ital,wght@0,400;1,400;1,700&display=swap');

:root {
  --cream: #fffbf2;
  --green: #91cb77;
  --green-light: #c7e6b8;
  --orange: #f4915a;
  --blue: #225fc7;
  --black: #111111;
  --white: #ffffff;
  --text-muted: #4a4a4a;
  --radius: 24px;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --font-body: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
  --font-head: 'Instrument Sans', Arial, sans-serif;
  --font-accent: 'Unna', Georgia, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--black);
  background: var(--cream);
  line-height: 1.65;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--black);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: 3rem; }
h2 {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
  font-size: 2.6rem;
}
h3 { font-size: 1.3rem; font-family: var(--font-head); font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
header.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 32px;
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  font-family: var(--font-head);
}
.brand img { height: 64px; width: auto; }

nav.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-family: var(--font-head);
  font-size: 1.05rem;
}
nav.main-nav li { display: flex; align-items: center; gap: 10px; }
nav.main-nav li + li::before {
  content: '/';
  color: var(--black);
  margin-right: 0;
}
nav.main-nav a { color: var(--black); padding-bottom: 2px; }
nav.main-nav a.active,
nav.main-nav a:hover {
  color: var(--green);
  border-bottom: 2px solid var(--green);
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white) !important;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 14px 26px;
  border-radius: 50px;
  white-space: nowrap;
}

/* ---------- Mobile nav toggle (hamburger) ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--black);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--orange);
  color: var(--white) !important;
  padding: 15px 32px;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: #e07d43; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white) !important;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

/* ---------- Hero ---------- */
.hero {
  padding: 28px 24px 130px;
}
.hero-media {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  border-radius: var(--radius);
  min-height: 480px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  /* intentionally no overflow:hidden here -- the circular CTA badge
     hangs partly outside this box and must not be clipped */
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(0,0,0,0.75) 40%, rgba(0,0,0,0.05) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 60px 56px;
  color: var(--white);
}
.hero-inner h1 {
  color: var(--white);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 3.1rem;
}
.hero-inner h1 em,
.hero-inner h1 .accent {
  color: var(--green);
  font-style: italic;
}
.hero-inner p {
  color: var(--white);
  font-size: 1.05rem;
}
.hero-badge {
  position: absolute;
  z-index: 2;
  right: 40px;
  bottom: -50px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 20px;
  line-height: 1.3;
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.hero-badge:hover {
  background: #e07d43;
  color: var(--white) !important;
  transform: translateY(-2px);
}
.hero .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.5em;
}
.hero .badge {
  background: rgba(255,255,255,0.18);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-family: var(--font-head);
}

/* ---------- General sections ---------- */
section { padding: 70px 24px; }
section.alt { background: var(--white); }
section.tint { background: #eaf3fb; }
section.green { background: var(--green); }
section.green .eyebrow { color: var(--white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.6em;
  font-family: var(--font-head);
}

/* centered pill badges (e.g. "Who We Help" needs list) */
.pill-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 1.5em 0;
  padding: 0;
  list-style: none;
}
.pill-badges .pill {
  background: var(--green);
  color: var(--black);
  border-radius: 20px;
  padding: 12px 22px;
  font-size: 1rem;
  font-family: var(--font-body);
}

/* plain centered inline list (e.g. "Areas We Serve" cities) */
.plain-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 1.5em 0;
  padding: 0;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--blue);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}
.grid > * {
  flex: 0 1 300px;
}

/* blue-bordered content cards */
.card {
  background: transparent;
  border: 1px solid var(--blue);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
}
.card h3 { color: var(--blue); }

/* tight woven photo/text grid ("What We Do") -- every cell is an identical square */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  gap: 14px;
}
.services-grid .grid-photo,
.services-grid .grid-card {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}
.services-grid .grid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}
.services-grid .grid-card {
  border: 1px solid var(--blue);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}
.services-grid .grid-card h3 {
  color: var(--blue);
  font-size: 1rem;
  margin-bottom: 0.4em;
  line-height: 1.2;
}
.services-grid .grid-card p {
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0;
  color: var(--text-muted);
}
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .grid-card,
  .services-grid .grid-photo { grid-column: auto !important; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* gradient highlight cards ("why choose us") */
.highlight-card {
  background: linear-gradient(135deg, var(--green-light), #f7f6bf);
  border-radius: 24px;
  padding: 32px;
  text-align: center;
}
.highlight-card .emoji { font-size: 1.6rem; margin-bottom: 0.4em; }
.highlight-card h3 { color: var(--black); }

/* panel-in-photo layout (flexible care options) */
.panel-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius);
  overflow: hidden;
}
.panel-photo .panel {
  background: var(--white);
  padding: 40px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.panel-photo .panel p {
  font-size: 1.35rem;
  line-height: 1.5;
  text-align: justify;
  margin: 0;
}
.panel-photo .photo {
  background-size: cover;
  background-position: center;
  min-height: 320px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 2em;
}

.steps { counter-reset: step; }
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.steps.tight .step {
  margin-bottom: 20px;
  gap: 18px;
}
.steps.tight .step:last-child {
  margin-bottom: 24px;
}
.steps.tight h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2em;
}
.steps.tight p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* crop out empty background space so the photo reads tighter next to text */
.crop-tall {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 15% 30%;
}

/* fills the full height of its grid row so it lines up top-to-bottom with
   the content in the column next to it, instead of over/under-hanging it */
.crop-fill {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% 30%;
}
.step-num {
  flex-shrink: 0;
  width: 60px; height: 60px;
  border-radius: 12px;
  background: var(--green);
  color: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
}

.list-check { list-style: none; padding: 0; margin: 1em 0; }
.list-check.two-col {
  columns: 2;
  column-gap: 40px;
}
.list-check.two-col li {
  break-inside: avoid;
  margin-bottom: 4px;
  line-height: 1.35;
}
@media (max-width: 600px) {
  .list-check.two-col { columns: 1; }
}

.list-check.three-col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 14px;
  column-gap: 24px;
}
.list-check.three-col li {
  display: block;
  flex: 0 0 calc(33.333% - 16px);
  padding-left: 0;
  margin-bottom: 0;
  line-height: 1.35;
  text-align: center;
}
.list-check.three-col li::before {
  position: static;
  display: inline-block;
  margin-right: 6px;
}
@media (max-width: 700px) {
  .list-check.three-col li { flex-basis: 100%; }
}
.list-check li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
.list-check li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: bold;
}

/* ---------- Contact form ---------- */
.form-banner {
  max-width: 560px;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-weight: 600;
  font-family: var(--font-head);
}
.form-banner.success {
  background: #e6f4ea;
  color: #1e7b34;
  border: 1px solid #1e7b34;
}
.form-banner.error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #b3261e;
}

form.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 560px;
  background: #f4f4f2;
  border-radius: 20px;
  padding: 30px;
}
form.contact-form .full { grid-column: 1 / -1; }
form.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-head);
}
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--green);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--white);
}
form.contact-form textarea { min-height: 110px; resize: vertical; }
form.contact-form .btn { grid-column: 1 / -1; justify-self: start; }

.info-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.info-box .icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 10px;
  border: 1px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.info-box h3 { color: var(--blue); margin-bottom: 0.2em; font-family: var(--font-accent); font-style: italic; font-weight: 400; }
.info-box .map-embed {
  flex-shrink: 0;
  width: 220px;
  height: 160px;
  border: 1px solid var(--green);
  border-radius: 12px;
}
@media (max-width: 900px) {
  .info-box .map-embed { width: 100%; height: 200px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--white);
  text-align: center;
  padding: 70px 24px;
}
.cta-band h2 { color: var(--blue); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--cream);
  color: var(--black);
  padding: 60px 24px 0;
  font-size: 0.95rem;
  border-top: 2px solid var(--orange);
}
footer.site-footer .container {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
footer.site-footer .footer-col {
  padding: 0;
}
footer.site-footer .footer-col:first-child {
  text-align: center;
}
footer.site-footer .foot-logo { max-width: 190px; margin-bottom: 10px; }
footer.site-footer .foot-brand-name { color: var(--green); font-weight: 700; font-family: var(--font-head); }
footer.site-footer h4 {
  color: var(--blue);
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: 1.4rem;
}
footer.site-footer a { color: var(--black); }
footer.site-footer a:hover { color: var(--orange); }
footer.site-footer .quick-links a { display: block; margin-bottom: 4px; line-height: 1.4; }
.footer-bottom {
  text-align: center;
  padding: 18px 24px;
  background: var(--green);
  color: var(--white);
  font-size: 0.9rem;
  font-family: var(--font-head);
}

.img-cover {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.faq h3 { margin-top: 1.4em; color: var(--blue); font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: 1.3rem; }

@media (max-width: 900px) {
  .two-col, .panel-photo, .feature-row { grid-template-columns: 1fr; }
  footer.site-footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  header.site-header { flex-wrap: wrap; row-gap: 12px; padding: 14px 20px; }
  .brand { order: 1; }
  .nav-toggle { order: 2; display: flex; }
  .phone-badge {
    order: 3;
    flex: 0 0 100%;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.95rem;
  }
  nav.main-nav {
    order: 4;
    flex: 0 0 100%;
    display: none;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 6px;
  }
  nav.main-nav li { width: 100%; }
  nav.main-nav li + li::before { content: none; }
  nav.main-nav a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  }
  h1, .hero-inner h1 { font-size: 2.1rem; }
  h2 { font-size: 1.9rem; }
  .hero-inner { padding: 40px 28px; }
  .hero-badge { right: 20px; bottom: -30px; width: 130px; height: 130px; font-size: 0.85rem; }
  form.contact-form { grid-template-columns: 1fr; }
  footer.site-footer .container { grid-template-columns: 1fr; }
  footer.site-footer .footer-col { padding-bottom: 24px; }
}
