/* ============================================================
   Liberty Vision — style.css
   Design tokens captured from live site 2026-03-16
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { text-decoration: none; }
address { font-style: normal; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --- Custom Properties --- */
:root {
  /* Brand */
  --color-brand-blue:     #4d97ff;
  --color-brand-blue-alt: #4a91f3;
  --color-navy:           #303945;

  /* Text */
  --color-text-body:         #424242;
  --color-text-heading:      #333333;
  --color-text-nav:          #2d2d2d;
  --color-text-white:        #ffffff;
  --color-text-white-muted:  rgba(255,255,255,0.85);
  --color-text-muted:        #6b7280;

  /* Backgrounds */
  --color-bg-page:    #ffffff;
  --color-bg-header:  #ffffff;
  --color-bg-navy:    #303945;
  --color-bg-submenu: #ffffff;

  /* Links */
  --color-link:        #4d97ff;
  --color-link-footer: #2ea3f2;

  /* Typography */
  --font-primary: "Encode Sans", Helvetica, Arial, sans-serif;
  --font-hero:    "Exo 2", Helvetica, Arial, sans-serif;

  /* Spacing */
  --container-max:    1080px;
  --content-max:      795px;
  --sidebar-width:    225px;
  --header-height:    84px;
  --section-gap:      60px;
}

/* --- Base Typography --- */
body {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text-body);
  background: var(--color-bg-page);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.2;
}

h1 { font-size: 35px; line-height: 1.0; }
h2 { font-size: 30px; line-height: 1.0; letter-spacing: 1px; }
h3 { font-size: 22px; }
h4 { font-size: 27px; line-height: 1.0; letter-spacing: 1px; color: var(--color-brand-blue); }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--color-link); }
a:hover { opacity: 0.8; }

strong, b { font-weight: 700; }
em, i { font-style: italic; }

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
}

.content-wrap {
  display: flex;
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 30px;
}

.content-area {
  flex: 1;
  min-width: 0;
  max-width: var(--content-max);
}

/* --- Header --- */
.site-header {
  background: var(--color-bg-header);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #e8e8e8;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  flex-shrink: 0;
}

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

/* --- Navigation --- */
.site-nav {
  display: flex;
  align-items: center;
}

.nav-toggle { display: none; }
.nav-hamburger { display: none; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav-menu > li {
  position: relative;
}

.nav-menu > li > a {
  display: block;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-nav);
  padding: 0 16px;
  line-height: var(--header-height);
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li:focus-within > a {
  color: var(--color-brand-blue);
}

/* Dropdown */
.nav-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg-submenu);
  min-width: 240px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  z-index: 200;
}

/* Invisible bridge so hover stays active when moving from nav text to dropdown */
.nav-menu > li.has-dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
}

.nav-menu > li:hover .dropdown,
.nav-menu > li:focus-within .dropdown {
  display: block;
}

.nav-menu .dropdown li a {
  display: block;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-nav);
  padding: 6px 20px;
  transition: color 0.2s, background 0.2s;
}

.nav-menu .dropdown li a:hover {
  color: var(--color-brand-blue);
  background: #f5f7fb;
}

/* Prevent ® superscript from affecting nav item vertical alignment */
.nav-menu sup,
.footer-nav-bar sup {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 0;
}

/* Hamburger spans */
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-nav);
  margin: 5px 0;
  transition: 0.3s;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-bg-navy);
  color: var(--color-text-white);
  padding: 30px 0 0;
}

.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  padding-top: 10px;
  padding-bottom: 30px;
}

.footer-heading {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-brand-blue);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-contact-col a,
.social-links a {
  color: var(--color-link-footer);
  font-size: 14px;
}

.footer-contact-col a:hover,
.social-links a:hover {
  color: #fff;
}

.footer-nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 0;
}

.footer-nav-bar a {
  color: var(--color-link-footer);
  font-size: 14px;
  padding: 4px 14px;
  border-right: 1px solid rgba(255,255,255,0.3);
}

.footer-nav-bar a:last-child {
  border-right: none;
}

.footer-nav-bar a:hover {
  color: #fff;
}

.footer-contact-col address p {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--color-text-white);
}

.social-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 14px 0 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* --- Main Content Sections (dark navy) --- */
.section-navy {
  background: var(--color-bg-navy);
  color: var(--color-text-white);
  padding: 60px 0;
}

.section-navy h1,
.section-navy h2,
.section-navy h3 {
  color: var(--color-text-white);
}

.section-navy p {
  font-family: var(--font-hero);
  font-size: 22px;
  line-height: 1.2;
}

.section-white {
  background: var(--color-bg-page);
  padding: 60px 0;
}

/* --- Page Header --- */
.page-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e8e8e8;
}

.page-title {
  font-size: 32px;
  color: var(--color-text-heading);
}

/* --- Blog Post --- */
.post {
  margin-bottom: var(--section-gap);
}

.post-header {
  margin-bottom: 24px;
}

.post-meta {
  font-size: 14px;
  color: var(--color-text-body);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.post-title {
  font-size: 35px;
  font-weight: 700;
  color: var(--color-text-heading);
  line-height: 1.1;
}

.post-featured-image {
  margin-bottom: 30px;
}

.post-featured-image img {
  width: 100%;
  height: auto;
}

.post-content {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--color-text-body);
}

.post-content p { margin-bottom: 1.2em; }
.post-content h2 { margin: 1.5em 0 0.5em; }
.post-content h3 { margin: 1.2em 0 0.4em; }
.post-content ul, .post-content ol { margin: 0 0 1em 1.5em; list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 0.4em; }
.post-content a { color: var(--color-link); }
.post-content strong { font-weight: 700; }
.post-content em { font-style: italic; }
.post-content blockquote {
  border-left: 4px solid var(--color-brand-blue);
  margin: 1.5em 0;
  padding: 0.5em 1em;
  color: #666;
}

/* Post category badges */
.post-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.category-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-brand-blue);
  border: 1px solid var(--color-brand-blue);
  border-radius: 3px;
  padding: 2px 8px;
}

.category-badge:hover {
  background: var(--color-brand-blue);
  color: white;
}

/* --- Blog Index / Post Cards --- */
.post-list {
  /* Single column list layout matching live site */
}

.post-card {
  margin-bottom: var(--section-gap);
  padding-bottom: 25px;
  border-bottom: 1px solid #e8e8e8;
}

.post-card:last-child {
  border-bottom: none;
}

.post-card-image {
  display: block;
  margin-bottom: 16px;
}

.post-card-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.post-card-body {
  padding: 0;
}

.post-card-meta {
  font-size: 14px;
  color: var(--color-text-body);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.post-card-title {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.post-card-title a {
  color: var(--color-text-heading);
}

.post-card-title a:hover {
  color: var(--color-brand-blue);
}

.post-card-excerpt {
  font-size: 14px;
  color: var(--color-text-body);
  margin-bottom: 14px;
  line-height: 1.6;
}

/* --- Sidebar --- */
.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar-widget {
  background: #f8f9fb;
  border: 1px solid #e8e8e8;
  padding: 20px;
  margin-bottom: 24px;
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text-heading);
  margin-bottom: 8px;
}

.widget-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.sidebar-nav ul li {
  border-bottom: 1px solid #e8e8e8;
}

.sidebar-nav ul li:last-child {
  border-bottom: none;
}

.sidebar-nav ul li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--color-text-nav);
  font-weight: 500;
}

.sidebar-nav ul li a:hover {
  color: var(--color-brand-blue);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #e8e8e8;
}

.pagination a,
.pagination .current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  font-size: 14px;
  border-radius: 3px;
  border: 1px solid #ddd;
}

.pagination a {
  color: var(--color-brand-blue);
  background: white;
}

.pagination a:hover {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: white;
}

.pagination .current {
  background: var(--color-brand-blue);
  border-color: var(--color-brand-blue);
  color: white;
  font-weight: 700;
}

.pagination .prev-next {
  font-size: 13px;
  font-weight: 600;
}

/* --- Homepage Hero + Products (3-column layout matching live site) --- */
.hero-products-section {
  background: var(--color-bg-navy);
  color: var(--color-text-white);
  padding: 50px 0 60px;
}

.hero-products-grid {
  display: grid;
  grid-template-columns: 5fr 2fr 2fr;
  gap: 30px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
  align-items: stretch;
}

.hero-col {
  /* grid auto-placement handles column position; no explicit grid-column needed */
}

.hero-tagline {
  font-family: var(--font-hero);
  font-size: 20px;
  line-height: 1.3;
  color: var(--color-text-white);
  margin-bottom: 24px;
}

.hero-tagline a {
  color: var(--color-brand-blue);
}

.hero-video {
  margin: 0;
}

.hero-video video {
  width: 100%;
  height: auto;
}

/* Req 5: flex column pushes button to bottom for vertical alignment */
.hero-product-col {
  color: var(--color-text-white);
  display: flex;
  flex-direction: column;
}

/* Req 2: heading containers — same fixed height, centered both axes */
.hero-product-heading--branded {
  font-family: var(--font-hero);
  font-style: italic;
  color: var(--color-brand-blue);
  font-size: 52px;
  line-height: 1;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin-bottom: 12px;
}

.hero-product-heading--branded a {
  color: inherit;
}

.hero-product-col .product-logo {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.hero-product-col .product-logo img {
  height: 45px;
  width: auto;
}

/* Req 3: subtitle — centered, fixed height for cross-column alignment */
.hero-product-subtitle {
  color: var(--color-text-white-muted);
  font-size: 16px;
  font-style: italic;
  text-align: center;
  margin-bottom: 12px;
}

/* Req 4: fixed min-height per bullet forces cross-column alignment */
.hero-product-col ul {
  list-style: disc;
  padding-left: 1.2em;
  margin-bottom: 16px;
}

.hero-product-col ul li {
  color: var(--color-text-white-muted);
  font-size: 13px;
  font-weight: 600;
  min-height: 40px;
  line-height: 1.5;
}

/* Req 5: button pushed to bottom of flex column */
.hero-product-col > p:last-child {
  margin-top: auto;
  text-align: center;
}

.btn-hero {
  display: block;
  max-width: 230px;
  padding: 10px 24px;
  background: var(--color-brand-blue);
  color: white;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.btn-hero:hover {
  opacity: 0.85;
  color: white;
}

/* Product logo (shared) */
.product-logo {
  margin-bottom: 20px;
}

.product-logo img {
  height: 60px;
  width: auto;
}

/* --- Homepage Mission + Innovations (side-by-side) --- */
.mission-innovations-section {
  background: var(--color-bg-page);
}

.mission-innovations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--container-max);
  margin: 0 auto;
}

.mission-col {
  padding: 60px 50px;
  display: flex;
  align-items: center;
}

.mission-text {
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;
  color: var(--color-text-body);
  text-align: center;
}

.innovations-col {
  padding: 60px 50px;
}

.innovations-col h2 {
  margin-bottom: 16px;
}

.innovations-col p {
  font-size: 14px;
  line-height: 1.7;
}

.innovations-col a {
  color: var(--color-brand-blue);
}

.innovations-cta {
  margin-top: 20px;
}

.innovations-cta a {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-brand-blue);
}

.featured-posts-section {
  padding: 60px 0;
  background: white;
}

.featured-posts-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--color-text-heading);
}

.featured-posts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 30px;
}

.articles-more {
  text-align: center;
  margin-top: 36px;
}

.articles-more .btn-primary {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  font-size: 14px;
}

.featured-posts-grid .post-card {
  margin-bottom: 0;
  border-bottom: none;
  border: 1px solid #e8e8e8;
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
}

.featured-posts-grid .post-card-image img {
  aspect-ratio: 16/9;
}

.featured-posts-grid .post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.featured-posts-grid .post-card-title {
  font-size: 20px;
  padding: 0 16px;
}

.featured-posts-grid .post-card-meta {
  padding: 12px 16px 0;
}

.featured-posts-grid .post-card-excerpt {
  padding: 0 16px;
  font-size: 13px;
  margin-top: auto;
}

/* --- Video responsive --- */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
}

.video-wrap video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-white { color: white; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Tablet landscape */
@media (max-width: 1100px) {
  .content-wrap { padding: 30px 20px; }
  .header-inner { padding: 0 20px; }
  .footer-inner { padding: 0 20px; }
}

/* Tablet */
@media (max-width: 900px) {
  .content-wrap {
    flex-direction: column;
  }

  .content-area {
    max-width: 100%;
  }

  .sidebar {
    width: 100%;
  }

  .footer-columns {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .post-title { font-size: 26px; }
  .post-card-title { font-size: 22px; }
}

/* Mobile nav hamburger */
@media (max-width: 980px) {
  .site-header { height: 60px; }
  :root { --header-height: 60px; }

  .site-logo img { height: 40px; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
  }

  .nav-toggle:checked ~ .nav-menu {
    display: flex;
  }

  /* Hamburger animation */
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(1) {
    transform: rotate(45deg) translate(8.5px, 8.5px);
  }
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked ~ .nav-hamburger span:nth-child(3) {
    transform: rotate(-45deg) translate(8.5px, -8.5px);
  }

  .nav-menu > li > a {
    padding: 12px 20px;
    line-height: 1.4;
    font-size: 16px;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Mobile dropdowns — always visible */
  .nav-menu .has-dropdown .dropdown {
    display: block;
    position: static;
    box-shadow: none;
    background: #f8f9fb;
    min-width: auto;
  }

  .nav-menu .dropdown li a {
    padding: 8px 36px;
    font-size: 14px;
  }

  /* Tablet layout adjustments (consolidated into main 980px block) */
  .product-content-layout {
    flex-direction: column;
  }

  .iwand-key-features-inline {
    flex: none;
    width: 100%;
  }

  .featured-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero product columns: center content when stacked */
  .hero-product-col {
    align-items: center;
  }

  .hero-product-col ul {
    align-self: center;
  }

  .hero-product-heading--branded {
    font-size: 48px;
    height: auto;
  }

  .hero-product-col .product-logo {
    height: auto;
  }

  .hero-product-col > p:last-child {
    text-align: center;
  }

  .btn-hero {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* Single-column posts grid for narrow tablets */
@media (max-width: 600px) {
  .featured-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .content-wrap { padding: 20px 16px; }
  .header-inner { padding: 0 16px; }
  .footer-inner { padding: 0 16px; }

  .footer-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .post-title { font-size: 22px; }
  .post-card-title { font-size: 18px; }

  /* Ensure touch targets — scoped to nav/interactive elements only, not inline prose links */
  .nav-menu > li > a, .nav-menu .dropdown li a,
  .sidebar-nav a, button {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-hamburger {
    min-height: 44px;
  }
  .pagination a, .pagination span {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-nav-bar {
    flex-direction: column;
    align-items: center;
    gap: 4px;
  }

  .footer-nav-bar a {
    border-right: none;
    padding: 6px 14px;
  }
}

/* ============================================================
   Nav dropdown chevron indicators
   ============================================================ */

.has-dropdown > a::after {
  content: '';
  display: inline-block;
  margin-left: 5px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  vertical-align: middle;
}

/* ============================================================
   Sidebar — email signup widget
   ============================================================ */

.search-placeholder {
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 4px 0;
}

.sidebar-signup {
  background: var(--color-brand-blue);
  padding: 20px;
  margin-bottom: 24px;
}

.sidebar-signup h3 {
  color: white;
  font-size: 16px;
  margin-bottom: 8px;
}

.sidebar-signup p {
  color: rgba(255,255,255,0.9);
  font-size: 13px;
  margin-bottom: 12px;
}

.sidebar-signup .signup-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-signup input[type="email"] {
  padding: 8px 10px;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-family: var(--font-primary);
}

.sidebar-signup button {
  padding: 8px 12px;
  background: var(--color-navy);
  color: white;
  border: none;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-primary);
  cursor: pointer;
}

.sidebar-signup button:hover {
  opacity: 0.85;
}

/* ============================================================
   Our People — team grid
   ============================================================ */

.team-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 50px 30px;
}

.team-page > h1 {
  margin-bottom: 12px;
  text-align: center;
}

.team-page > p {
  color: var(--color-text-body);
  margin-bottom: 50px;
  text-align: center;
}

.team-section-heading {
  font-size: 24px;
  color: var(--color-text-heading);
  margin: 40px 0 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e8e8e8;
}

@media (max-width: 480px) {
  .team-page { padding: 20px 16px; }
}

/* ============================================================
   Product pages (Disc, iWand)
   ============================================================ */

.product-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 30px;
}

.product-page .product-section:first-child {
  border-top: none;
}

.product-page-hero {
  background: var(--color-bg-navy);
  color: var(--color-text-white);
  text-align: center;
  padding: 30px 30px;
  height: 150px;
}

.product-page-hero img {
  height: 45px;
  width: auto;
  margin: 0 auto 10px;
}

.product-page-hero .product-hero-text-heading {
  margin-bottom: 8px;
  color: var(--color-text-white);
  font-family: var(--font-hero);
  font-style: italic;
  color: var(--color-brand-blue);
  font-size: 52px;
}

@media (max-width: 980px) {
  .product-page-hero { height: auto; }
}

@media (max-width: 480px) {
  .product-hero-text-heading { font-size: 28px; }
  .hero-product-heading--branded { font-size: 48px; }
}

.product-page-hero p {
  color: var(--color-text-white-muted);
  font-family: var(--font-hero);
  font-size: 20px;
  font-weight: 700;
  font-style: italic;
}

/* ============================================================
   Generic page hero bar (navy, centered) — non-product pages
   ============================================================ */

.page-hero {
  background: var(--color-bg-navy);
  color: var(--color-text-white);
  text-align: center;
  padding: 40px 30px;
}

.page-hero h1 {
  color: var(--color-brand-blue);
  font-family: var(--font-hero);
  font-style: italic;
  font-size: 52px;
  margin: 0;
}

.page-hero .page-hero-subtitle {
  color: var(--color-text-white-muted);
  font-family: var(--font-hero);
  font-style: italic;
  font-size: 20px;
  font-weight: 700;
  margin: 10px 0 0;
}

@media (max-width: 480px) {
  .page-hero { padding: 28px 16px; }
  .page-hero h1 { font-size: 28px; }
  .page-hero .page-hero-subtitle { font-size: 14px; }
}

.product-section {
  padding: 22px 0;
  border-top: 1px solid #e8e8e8;
}

.product-section h2 {
  margin-bottom: 16px;
  color: var(--color-text-heading);
}

.product-section p {
  margin-bottom: 1em;
}

.product-feature-list {
  list-style: disc;
  padding-left: 1.5em;
  margin-bottom: 16px;
}

.product-feature-list li {
  margin-bottom: 8px;
  font-size: 14px;
}

.product-disc-sizes {
  max-width: 500px;
  margin: 20px 0;
}

.product-video {
  max-width: 600px;
  margin: 20px auto;
}

.product-video video {
  width: 100%;
  height: auto;
}

.product-diagram {
  max-width: 600px;
  margin: 20px auto;
}

/* Two-column product content layout */
.product-content-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.product-content-text {
  flex: 1 1 55%;
  min-width: 0;
}

.product-content-media {
  flex: 1 1 45%;
  min-width: 0;
}

.product-content-layout--wide-text .product-content-text {
  flex: 1 1 70%;
}

.product-content-layout--wide-text .product-content-media {
  flex: 1 1 30%;
  max-width: 250px;
}

.product-content-layout--wide-text .product-video video {
  max-height: 400px;
  width: auto;
}

@media (max-width: 980px) {
  .product-content-layout--wide-text {
    flex-direction: row;
  }
  .product-content-layout--wide-text .product-content-text {
    flex: 1 1 60%;
  }
  .product-content-layout--wide-text .product-content-media {
    max-width: none;
    flex: 1 1 30%;
  }
  .product-content-layout--wide-text .product-video video {
    max-height: 500px;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .product-content-layout--wide-text {
    flex-direction: column;
  }
  .product-content-layout--wide-text .product-content-media {
    max-width: 400px;
    align-self: center;
  }
  .product-content-layout--wide-text .product-video video {
    max-height: 300px;
    width: auto;
    margin: 0 auto;
  }
}

.product-content-media .product-disc-sizes,
.product-content-media .product-video,
.product-content-media .product-diagram {
  max-width: 100%;
  margin: 0 0 20px;
}

.product-callout {
  background: var(--color-bg-navy);
  color: var(--color-text-white-muted);
  padding: 24px 32px;
  margin-bottom: 1em;
  font-style: italic;
}

.product-callout strong, .product-callout a {
  color: var(--color-brand-blue);
}

.product-cta {
  text-align: center;
  padding: 32px;
  background: var(--color-bg-navy);
  color: white;
  margin-top: 40px;
}

.product-cta h2 {
  color: white;
  margin-bottom: 12px;
}

.product-cta p {
  color: var(--color-text-white-muted);
  margin-bottom: 16px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 28px;
  background: var(--color-brand-blue);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}

.btn-primary:hover {
  opacity: 0.85;
}

/* Contact page */
.contact-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 30px;
}

.contact-page h1 {
  margin-bottom: 16px;
}

.contact-page > p {
  margin-bottom: 32px;
  font-size: 15px;
}

.contact-sketch {
  margin-top: 40px;
  text-align: center;
}

.contact-sketch img {
  max-width: 600px;
  height: auto;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .contact-page { padding: 20px 16px; }
}

/* iWand overview page */
.iwand-overview {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px 30px;
}

.iwand-product-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.iwand-product-link-card {
  background: var(--color-bg-navy);
  color: var(--color-text-white);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.iwand-product-link-card .btn-primary {
  margin-top: auto;
}

.iwand-product-link-card .iwand-card-logo {
  height: 40px;
  width: auto;
  margin: 0 auto 16px;
}

.iwand-product-link-card .iwand-card-photo {
  width: 100%;
  height: auto;
  margin: 0 auto 16px;
}

.iwand-product-link-card h3 {
  margin-bottom: 12px;
  color: var(--color-text-white);
}

.iwand-product-link-card p {
  font-size: 13px;
  margin-bottom: 16px;
  color: var(--color-text-white-muted);
}

.iwand-product-link-card a:not(.btn-primary) {
  color: var(--color-brand-blue);
}

@media (max-width: 980px) {
  .iwand-product-links { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .iwand-overview { padding: 20px 16px; }
}

/* ============================================================
   iWand overview — intro + Key Features side-by-side
   ============================================================ */

.iwand-overview .product-section:first-child {
  border-top: none;
}

.iwand-overview .product-section + .product-section {
  border-top: 2px solid #999;
}

.iwand-overview .product-content-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  font-weight: 600;
}

@media (max-width: 980px) {
  .iwand-overview .product-content-layout {
    grid-template-columns: 1fr;
  }
}

.iwand-key-features-inline {
  flex: 0 0 260px;
}

.key-features-label {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-heading);
  margin-bottom: 8px;
}

.key-features-items {
  font-size: 14px;
  line-height: 2;
  color: var(--color-text-body);
}

/* iwand-key-features-inline stacking is in the main 980px block above */

/* ============================================================
   Our People — 2-column grid layout (matches live Divi layout)
   ============================================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 60px 50px;
  margin-bottom: 50px;
}

.team-member {
  text-align: left;
}

.team-member-photo {
  margin-bottom: 16px;
}

.team-member-photo img {
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: cover;
  border-radius: 0;
  display: block;
  box-shadow: 0 0 15px rgba(64, 155, 217, 0.5);
}

.team-member-name {
  font-size: 20px;
  margin-bottom: 4px;
  color: var(--color-text-heading);
}

.team-member-title {
  color: var(--color-brand-blue);
  font-size: 13px;
  font-style: italic;
  margin-bottom: 12px;
}

.team-member-bio p {
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .team-member-photo img {
    max-width: 280px;
  }
}

/* ============================================================
   Contact — icon boxes + wave
   ============================================================ */

.contact-wave {
  height: 70px;
  background: var(--color-brand-blue);
  clip-path: ellipse(80% 100% at 50% 0%);
  margin: 24px 0 40px;
}

.contact-icons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-icons-grid { grid-template-columns: 1fr; }
}

.contact-icon-circle {
  width: 70px;
  height: 70px;
  background: var(--color-brand-blue);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon-circle svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.contact-icon-box h2 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--color-text-heading);
}

.contact-icon-box p,
.contact-icon-box address {
  font-size: 14px;
  line-height: 1.7;
}


/* --- Homepage responsive --- */
@media (max-width: 980px) {
  .hero-products-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mission-innovations-grid {
    grid-template-columns: 1fr;
  }
  .mission-col {
    padding: 40px 30px;
  }
  .innovations-col {
    padding: 40px 30px;
  }
}

/* ============================================================
   Homepage — Stay Updated signup section
   ============================================================ */

.homepage-signup-section {
  background: var(--color-bg-navy);
  padding: 60px 0;
}

.homepage-signup-inner {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
  padding: 0 30px;
}

.homepage-signup-inner h2 {
  color: var(--color-text-white);
  margin-bottom: 12px;
}

.homepage-signup-inner p {
  color: var(--color-text-white-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.homepage-signup-form {
  display: flex;
  gap: 0;
}

.homepage-signup-form input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: none;
  font-size: 14px;
  font-family: var(--font-primary);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  outline: none;
}

.homepage-signup-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.7);
}

.homepage-signup-form button {
  padding: 10px 20px;
  background: var(--color-navy);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
}

.homepage-signup-form button:hover {
  opacity: 0.85;
}

@media (max-width: 480px) {
  .homepage-signup-form {
    flex-direction: column;
  }
}

/* ============================================================
   Breadcrumb navigation
   ============================================================ */

.breadcrumb-nav {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 30px;
  font-size: 13px;
}

.breadcrumb-nav ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb-nav li {
  display: flex;
  align-items: center;
}

.breadcrumb-nav li + li::before {
  content: '>';
  margin: 0 8px;
  color: var(--color-text-muted, #999);
}

.breadcrumb-nav a {
  color: var(--color-brand-blue);
  text-decoration: none;
  font-size: 13px;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-nav span[aria-current="page"] {
  color: var(--color-text-body);
}

@media (max-width: 480px) {
  .breadcrumb-nav {
    padding: 10px 16px;
    font-size: 12px;
  }
}

/* ============================================================
   Solutions pages
   ============================================================ */

.solutions-page {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 30px;
}

.solutions-page > h1 {
  margin-bottom: 8px;
}

.solutions-page-subtitle {
  font-size: 16px;
  color: var(--color-text-muted, #999);
  font-style: italic;
  margin-bottom: 32px;
}

.solutions-section {
  padding: 28px 0;
  border-top: 1px solid #e8e8e8;
}

.solutions-section h2 {
  margin-bottom: 16px;
}

.solutions-section h3 {
  margin-top: 20px;
  margin-bottom: 8px;
}

.solutions-section p {
  margin-bottom: 1em;
}

.solutions-section ul,
.solutions-section ol {
  margin: 0 0 1em 1.5em;
}

.solutions-section ul {
  list-style: disc;
}

.solutions-section ol {
  list-style: decimal;
}

.solutions-section li {
  margin-bottom: 8px;
  font-size: 14px;
}

.solutions-section a {
  color: var(--color-brand-blue);
}

/* Condition cards grid (ophthalmologists page) */

.solutions-conditions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 20px 0;
}

.solutions-condition-card {
  background: #f8f9fb;
  border: 1px solid #e8e8e8;
  padding: 20px;
}

.solutions-condition-card h3 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--color-text-heading);
}

.solutions-condition-card p {
  font-size: 14px;
  margin-bottom: 0.8em;
}

.solutions-citation {
  font-size: 13px;
  color: var(--color-text-muted, #999);
}

@media (max-width: 600px) {
  .solutions-conditions-grid {
    grid-template-columns: 1fr;
  }
}

/* Workflow comparison cards (hospitals page) */

.solutions-workflow-comparison {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 20px 0;
}

.solutions-workflow-card {
  background: #f8f9fb;
  border: 1px solid #e8e8e8;
  padding: 20px;
}

.solutions-workflow-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-text-heading);
}

.solutions-workflow-card ul {
  list-style: disc;
  padding-left: 1.5em;
  margin: 0;
}

.solutions-workflow-card li {
  font-size: 14px;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .solutions-workflow-comparison {
    grid-template-columns: 1fr;
  }
}

/* Patient disclaimer */

.solutions-patient-disclaimer {
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14px;
}

.solutions-patient-disclaimer p {
  margin-bottom: 0;
}

/* ISI footer (shared across solutions and publications pages) */

.solutions-footer-isi,
.publications-footer-isi {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin: 40px 0 20px;
  font-size: 13px;
  color: var(--color-text-muted, #999);
  line-height: 1.6;
}

.solutions-footer-isi p,
.publications-footer-isi p {
  margin-bottom: 0.5em;
}

.solutions-footer-isi p:last-child,
.publications-footer-isi p:last-child {
  margin-bottom: 0;
}

/* ============================================================
   Publications page
   ============================================================ */

.publications-intro {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.7;
}

.publications-intro p {
  margin-bottom: 1em;
}

.publications-section {
  padding: 28px 0;
  border-top: 1px solid #e8e8e8;
}

.publications-section h2 {
  margin-bottom: 20px;
}

.publication-entry {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #f0f0f0;
}

.publication-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.publication-citation {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.publication-summary {
  font-size: 14px;
  color: var(--color-text-body);
  margin-bottom: 8px;
}

.publication-links {
  font-size: 14px;
  margin-bottom: 8px;
}

.publication-links a {
  color: var(--color-brand-blue);
}

.publication-disclosure {
  font-size: 13px;
  color: var(--color-text-muted, #999);
  margin-bottom: 0;
}

/* ============================================================
   Blog listing layout (index + category pages)
   ============================================================ */

.blog-listing-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 40px 30px;
}

/* ============================================================
   Blog post layout (single post page)
   ============================================================ */

.blog-post-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 40px 30px;
}

/* ============================================================
   Blog card grid (blog index + category pages)
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 30px;
}

.blog-grid .post-card {
  margin-bottom: 0;
  border-bottom: none;
  border: 1px solid #e8e8e8;
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.blog-grid .post-card-image img {
  aspect-ratio: 16/9;
  object-fit: cover;
  width: 100%;
}

.blog-grid .post-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-grid .post-card-title {
  font-size: 20px;
  padding: 0 16px;
  margin-bottom: 0;
  overflow-wrap: break-word;
}

.blog-grid .post-card-meta {
  padding: 12px 16px 0;
  margin-bottom: 0;
}

.blog-grid .post-card-excerpt {
  padding: 0 16px;
  font-size: 13px;
  margin-top: auto;
  overflow-wrap: break-word;
}

/* ============================================================
   Blog category filter tabs
   ============================================================ */

.blog-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.category-tab {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--color-brand-blue);
  color: var(--color-brand-blue);
  font-size: 13px;
  font-weight: 600;
  background: var(--color-bg-page);
  transition: background 0.2s, color 0.2s, opacity 0.2s;
}

.category-tab:hover {
  background: var(--color-brand-blue);
  color: white;
  opacity: 1; /* override global a:hover { opacity: 0.8 } */
}

.category-tab--active,
[data-active="News"] [data-cat="News"],
[data-active="Tumors"] [data-cat="Tumors"],
[data-active="Retina"] [data-cat="Retina"] {
  background: var(--color-brand-blue);
  color: white;
}

.category-tab--active:hover,
[data-active="News"] [data-cat="News"]:hover,
[data-active="Tumors"] [data-cat="Tumors"]:hover,
[data-active="Retina"] [data-cat="Retina"]:hover {
  opacity: 1; /* override global a:hover { opacity: 0.8 } for active tab */
}

/* ============================================================
   Blog grid responsive
   ============================================================ */

@media (max-width: 1100px) {
  .blog-listing-wrap {
    padding: 30px 20px;
  }
  .blog-post-wrap {
    padding: 30px 20px;
  }
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-listing-wrap {
    padding: 20px 16px;
  }
  .blog-post-wrap {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .blog-post-wrap {
    padding: 20px 16px;
  }
  .category-tab {
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* ============================================================
   Mailchimp signup forms — shared base styles
   ============================================================ */

/* Variant classes (.footer-signup-form, .blog-signup-form) must add display:flex */
.mailchimp-signup-form input[type="email"] {
  flex: 1;
  border: none;
  font-size: 14px;
  font-family: var(--font-primary);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  outline: none;
}

.mailchimp-signup-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.7);
}

.mailchimp-signup-form button {
  background: var(--color-brand-blue);
  color: white;
  border: none;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-primary);
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
}

.mailchimp-signup-form button:hover {
  opacity: 0.85;
}

/* ============================================================
   Footer — Signup section
   ============================================================ */

.footer-signup {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 24px 0 30px;
  text-align: center;
}

.footer-signup .footer-heading {
  margin-bottom: 8px;
}

.footer-signup p {
  color: var(--color-text-white-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.footer-signup-form {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 420px;
  margin: 0 auto;
}

.footer-signup-form input[type="email"] { padding: 10px 14px; }
.footer-signup-form button              { padding: 10px 20px; }

/* ============================================================
   Blog index — Compact signup bar
   ============================================================ */

.blog-signup-bar {
  background: var(--color-bg-navy);
  padding: 14px 20px;
  margin-bottom: 24px;
  border-radius: 4px;
}

.blog-signup-form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 0 auto;
}

.blog-signup-label {
  color: var(--color-text-white);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.blog-signup-form input[type="email"] { padding: 8px 12px; }
.blog-signup-form button              { padding: 8px 16px; }

/* ============================================================
   Signup feedback messages (shared)
   ============================================================ */

.signup-feedback {
  display: none;
  font-size: 14px;
  margin-top: 10px;
  text-align: center;
}

.signup-feedback--success {
  color: #4caf50;
}

.signup-feedback--error {
  color: #ff6b6b;
}

/* ============================================================
   Responsive — Signup forms
   ============================================================ */

@media (max-width: 480px) {
  .footer-signup-form,
  .blog-signup-form {
    flex-direction: column;
  }
  .footer-signup-form input[type="email"],
  .footer-signup-form button,
  .blog-signup-form input[type="email"],
  .blog-signup-form button {
    width: 100%;
  }
  .blog-signup-label {
    text-align: center;
  }
}
