/* =============================================
   Veritas Health — Shared Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #1a2f4e;
  --blue: #0d6eaf;
  --blue-lt: #e8f3fa;
  --teal: #00a5c8;
  --gray: #5a6472;
  --gray-lt: #f4f6f8;
  --border: #dde2e8;
  --text: #2c3340;
  --white: #ffffff;
  --gold: #c9933a;
  --red: #c0392b;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: "Arial", "Helvetica Neue", sans-serif;
  color: var(--navy);
  line-height: 1.25;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1.25rem;
}
h2 {
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 0.4rem;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--blue);
}
h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1rem;
}
ul,
ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
li {
  margin-bottom: 0.35rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  background: var(--navy);
  color: var(--white);
  padding: 6px 12px;
  z-index: 9999;
}
.skip-link:focus {
  left: 0;
}

/* --- Header / Nav --- */
header {
  background: #efefef;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid #d8d8d8;
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

.site-logo img {
  height: 36px;
  width: auto;
}
.site-logo svg {
  height: 36px;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0;
  align-items: center;
}

nav li {
  position: relative;
}

nav a,
nav button {
  display: block;
  padding: 0.6rem 0.9rem;
  color: #222222;
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}
nav a:hover,
nav button:hover {
  color: var(--blue);
  background: rgba(0, 0, 0, 0.06);
  text-decoration: none;
}
nav a.active {
  color: var(--blue);
}

/* Dropdown */
.has-dropdown > button::after {
  content: " ▾";
  font-size: 0.7rem;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 210px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-top: 3px solid var(--teal);
  z-index: 200;
}
.dropdown a {
  color: var(--navy);
  font-weight: 500;
  padding: 0.55rem 1rem;
  display: block;
  border-bottom: 1px solid var(--border);
}
.dropdown li:last-child a {
  border-bottom: none;
}

.dropdown a:hover {
  background: var(--blue-lt);
  color: var(--blue);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  display: block;
}

/* Mobile hamburger (simple) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #333;
  margin: 5px 0;
}

/* --- Page Layout --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  padding: 2.5rem 0 3rem;
}

.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}
.page-hero h1 {
  color: var(--white);
  margin-bottom: 0;
  font-size: 2.2rem;
}
.page-hero .subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-top: 0.5rem;
}

/* Content sections */
.content-section {
  margin-bottom: 2.5rem;
}
.content-section p:last-child {
  margin-bottom: 0;
}

/* Two-col layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* --- Home Page --- */
.hero-banner {
  background: var(--gray-lt);
  color: var(--white);
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero-banner h1 {
  color: var(--blue);
  font-size: 2rem;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  font-weight: 700;
  line-height: 1.3;
}
.site-logos {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}
.site-logos img,
.site-logos svg {
  height: 40px;
  width: auto;
}
.site-logos a:hover {
  opacity: 0.85;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2.5rem 0;
}
.feature-card {
  background: var(--gray-lt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
}
.feature-card h2 {
  font-size: 1.15rem;
  border: none;
  padding: 0;
  color: var(--blue);
}
.feature-card p {
  font-size: 0.925rem;
  color: var(--gray);
}
.feature-card a {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: Arial, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--blue);
}

/* --- Testimonials --- */
.testimonials-section {
  background: var(--gray-lt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.testimonials-section h2 {
  text-align: center;
  border: none;
  margin-bottom: 1.5rem;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
}
.testimonial-card blockquote {
  font-style: italic;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.testimonial-card cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  font-style: normal;
}

/* Author/Client testimonials in sidebar style */
.testimonial-author {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.testimonial-author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.testimonial-author blockquote {
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gray);
}
.testimonial-author cite {
  display: block;
  font-style: normal;
  font-weight: 600;
  color: var(--blue);
  font-size: 0.875rem;
  margin-top: 0.4rem;
}

/* --- Medical Advisory Board Grid --- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.board-member {
  text-align: center;
}
.board-member img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--border);
}
.board-member a {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  display: block;
}
.board-member a:hover {
  color: var(--blue);
}
.board-member span {
  display: block;
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.2rem;
}

/* --- Team members --- */
.team-member {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.team-member img {
  width: 130px;
  height: 130px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}
.team-member h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: 0.15rem;
}
.team-member .title {
  color: var(--blue);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  font-family: Arial, sans-serif;
}

/* --- Our Sites grid --- */
.sites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.site-card {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.site-card img.site-illustration {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.site-card .site-info {
  padding: 1rem;
}
.site-card img.site-logo {
  height: 32px;
  margin: 0 auto 0.75rem;
}
.site-card p {
  font-size: 0.9rem;
  color: var(--gray);
}
.site-card a.site-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  font-family: Arial, sans-serif;
}

/* --- Advertise page --- */
.ad-solution {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem;
  align-items: start;
  margin-bottom: 2rem;
}
.ad-solution img {
  border-radius: 4px;
}
.ad-bullets {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.ad-bullets li {
  font-size: 0.9rem;
}

/* Partner logos */
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
}
.partners-grid img {
  height: 45px;
  width: auto;
  filter: grayscale(20%);
}

/* --- Ad products --- */
.ad-product {
  margin-bottom: 2.5rem;
}
.ad-product h3 {
  font-size: 1.1rem;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  margin-bottom: 1rem;
  border-radius: 3px;
}
.ad-example-img {
  max-width: 460px;
  margin: 0.75rem 0;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* --- Video grid (Telly awards) --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.video-entry {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.video-entry img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.video-entry .video-info {
  padding: 0.75rem;
}
.video-entry a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}
.video-entry a:hover {
  color: var(--blue);
}
.video-entry .medal {
  font-size: 0.8rem;
  color: var(--gray);
}
.medal-gold {
  color: var(--gold);
  font-weight: 700;
}
.medal-silver {
  color: #8a9aaa;
  font-weight: 700;
}
.medal-bronze {
  color: #a0704a;
  font-weight: 700;
}

/* --- Awards page --- */
.award-year-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.award-year-nav a {
  padding: 0.35rem 0.75rem;
  background: var(--gray-lt);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--navy);
}
.award-year-nav a:hover {
  background: var(--blue-lt);
  color: var(--blue);
  text-decoration: none;
}

.award-year-section {
  margin-bottom: 2.5rem;
}
.award-year-section h2 {
  font-size: 1.6rem;
  border-bottom: 3px solid var(--gold);
  padding-bottom: 0.4rem;
}

.award-entry {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.award-entry img {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}
.award-entry h3 {
  font-size: 0.95rem;
  border: none;
  padding: 0;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.award-entry p {
  font-size: 0.875rem;
  color: var(--gray);
  margin: 0;
}
.award-entry a {
  font-size: 0.875rem;
}

/* --- Trusted Resource page --- */
.resource-list {
  list-style: none;
  padding: 0;
}
.resource-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}
.resource-list li a {
  font-weight: 600;
}
.resource-list li span {
  display: block;
  color: var(--gray);
  font-size: 0.875rem;
}

/* --- Contact Form Placeholder --- */
.contact-form {
  background: var(--gray-lt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  /* margin-bottom: 2rem; */
}
.contact-form p {
  margin-bottom: 0;
}
.form-note {
  font-size: 0.875rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 0.3rem;
  font-family: Arial, sans-serif;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 0.9rem;
  font-family: inherit;
}
.form-group textarea {
  height: 120px;
  resize: vertical;
}
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: var(--blue);
  color: var(--white);
  font-family: Arial, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}
.btn:hover {
  background: var(--navy);
  text-decoration: none;
  color: var(--white);
}

/* Contact page cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.contact-card {
  background: var(--gray-lt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
}
.contact-card h3 {
  color: var(--navy);
  border: none;
  padding: 0;
}

/* --- Policy / Legal pages --- */
.policy-content h2 {
  font-size: 1.2rem;
}
.policy-content h3 {
  font-size: 1rem;
  color: var(--navy);
  border: none;
  padding: 0;
}
.policy-content ul {
  margin-bottom: 1rem;
}

/* --- Citation / Link-us page --- */
.citation-example {
  background: var(--gray-lt);
  border-left: 4px solid var(--teal);
  padding: 0.75rem 1rem;
  margin: 0.5rem 0 1rem;
  font-size: 0.9rem;
}

/* --- Policies index page --- */
.policies-list {
  list-style: none;
  padding: 0;
}
.policies-list li {
  border-bottom: 1px solid var(--border);
}
.policies-list a {
  display: block;
  padding: 1rem 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.policies-list a:hover {
  padding-left: 0.5rem;
}

/* --- Career listings --- */
.job-listing {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.job-listing h3 {
  font-size: 1.1rem;
  color: var(--navy);
}
.story-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.story-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Footer --- */
footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-sites {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer-sites strong {
  color: var(--white);
  margin-right: 0.25rem;
}
.footer-sites a,
.footer-links a {
  color: rgba(255, 255, 255, 0.75);
}
.footer-sites a:hover,
.footer-links a:hover {
  color: var(--white);
}
.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.footer-copy {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: var(--blue);
}
.breadcrumb span {
  margin: 0 0.3rem;
}

/* --- Callout boxes --- */
.callout {
  background: var(--blue-lt);
  border: 1px solid #b0d4eb;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}
.callout p {
  margin: 0;
  font-size: 0.9rem;
}
.callout.warning {
  background: #fff8e1;
  border-color: #f9c74f;
}

/* --- Social icons --- */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.social-links a {
  background: var(--blue);
  color: #fff;
  padding: 0.35rem 0.75rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-family: Arial, sans-serif;
  font-weight: 600;
}
.social-links a:hover {
  background: var(--navy);
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .three-col,
  .two-col,
  .feature-grid,
  .testimonials-grid,
  .board-grid,
  .sites-grid,
  .contact-cards,
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ad-solution {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  nav {
    display: none;
  }
  nav.open {
    display: block;
    background: #efefef;
    width: 100%;
    border-top: 1px solid #d8d8d8;
  }
  .nav-toggle {
    display: block;
  }
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 0.75rem 1rem;
  }
  .three-col,
  .two-col,
  .feature-grid,
  .testimonials-grid,
  .board-grid,
  .sites-grid,
  .contact-cards,
  .video-grid,
  .award-entry {
    grid-template-columns: 1fr;
  }
  .board-member {
    display: inline-block;
  }
  h1 {
    font-size: 1.6rem;
  }
  .team-member {
    flex-direction: column;
  }
  .testimonial-author {
    flex-direction: column;
  }
  .footer-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}
