:root {
  --navy: #1e2b4c;
  --silver: #888e91;
  --silvery-gray: #d4d8db;
  --charcoal: #63686b;
  --light-gray: #f5f6f7;
}

/* Base */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, var(--silvery-gray), var(--silver), #b0b4b7);
  color: var(--navy);
}
.container { max-width: 900px; margin: auto; padding: 20px; }

/* Header */
.header-card { position: relative; text-align: center; padding-top: 120px; }
/* Language selector lives in the header controls row (not absolutely positioned) */
.lang-select { position: static; }
header img.logo { max-height: 140px; }
header h1 { margin: 15px 0 10px; font-size: 32px; color: var(--navy); }
header h2 { margin: 10px 0; font-size: 22px; font-weight: bold; color: var(--charcoal); line-height: 1.2; }

/* Language selector */
select {
  padding: 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--navy);
  font-size: 1rem;
  background: #fff;
  color: var(--navy);
}

/* Cards */
.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: 20px 0;
}

/* Solutions */
.solution-list { max-width: 700px; margin: 20px auto; text-align: left; }
.solution-item { display: flex; align-items: flex-start; margin: 15px 0; gap: 20px; }
.solution-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  filter: brightness(1.15) contrast(1.05);
  transition: filter 0.3s ease;
}
.solution-item img:hover { filter: brightness(1.3) contrast(1.1); }
.solution-content { flex: 1; }
.solution-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.solution-header h3 { margin: 0; font-size: 1.1rem; }
.badge { background-color: #e0a800; color: #fff; font-size: 11px; font-weight: bold; padding: 3px 7px; border-radius: 6px; margin-left: 10px; }

/* Footer */
.brand-footer { margin-top: 20px; text-align: center; font-size: 14px; color: #333; }
.brand-footer .cta-button { margin-bottom: 15px; display: inline-block; }

/* Hero Banner */
/* Badges */
.badges { display: flex; justify-content: center; gap: 15px; margin: 20px 0; }
.badges img { max-height: 180px; max-width: 100%; height: auto; width: auto; margin: 5px auto; display: block; }

/* Responsive */
@media (max-width: 600px) {
  header img.logo { max-height: 100px; }
  header h1 { font-size: 24px; }
  header h2 { font-size: 18px; line-height: 1.3; }
  .solution-item { flex-direction: column; align-items: center; text-align: center; }
  .solution-item img { margin-bottom: 10px; }
}


/* Senolytic-specific image styling */
.hero-img {
  max-width: 100%;
  height: auto;
  max-height: 320px;
  margin: 10px auto;
  display: block;
}

.product-img {
  max-width: 400px;
  height: auto;
  margin: 20px auto;
  display: block;
}


/* === Global CTA Button Update === */
.cta-button {
  padding: 14px 32px;   /* larger button */
  font-size: 1rem;      /* slightly larger text */
  border-radius: 8px;   /* smoother shape */
}

/* === Global Solution Icon Brightness === */
.solution-item img {
  filter: brightness(1.2) contrast(1.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}
.solution-item img:hover {
  filter: brightness(1.3) contrast(1.15);
}


/* === Global CTA Button Styling === */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  margin: 8px 0;
  background-color: var(--navy);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}
.cta-button:hover {
  background-color: #2c3f6b;
}
.cta-button.primary {
  background-color: var(--navy);
}
.cta-button.secondary {
  background-color: var(--charcoal);
}


/* === Migrated Inline Styles === */

/* From index.html */
/* Solution icons remain bright + circular */
  .solution-item { display: flex; align-items: flex-start; margin: 15px 0; gap: 12px; }
  .solution-item img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border: 2px solid #fff;
    filter: brightness(1.2) contrast(1.1);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  }
  .solution-item img:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    filter: brightness(1.3) contrast(1.15);
  }
  .badge {
    background-color: #e0a800;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 3px 7px;
    border-radius: 6px;
    margin-left: 10px;
  }

/* From senolytics.html */
.hero-img {
      max-width: 100%;
      height: auto;
      max-height: 340px; /* slightly smaller hero image */
      margin: 10px auto 6px auto; /* reduced whitespace */
      display: block;
      border-radius: 12px;
    }

      display: inline-block;
      padding: 12px 24px;
      margin: 12px auto 0 auto;
      background-color: var(--navy);
      color: #fff;
      font-weight: bold;
      text-decoration: none;
      border-radius: 6px;
      transition: background-color 0.3s ease;
    }
    .cta { text-align: center; }

    .suggested-card img,
    .suggested-img {
      max-width: 220px;
      height: auto;
      display: block;
      margin: 10px auto;
    }

    .research-layout {
      display: flex;
      align-items: flex-start;
      gap: 20px;
    }
    .research-layout img,
    .research-img {
      max-width: 140px;
      height: auto;
      flex-shrink: 0;
    }
    .research-text { flex: 1; }

    .card { padding: 18px 20px; } /* reduced padding */

    .benefits { list-style: none; padding-left: 0; margin: 0; }
    .benefits li {
      background: #f9fafc;
      border-left: 4px solid var(--navy);
      padding: 10px 12px;
      margin-bottom: 8px;
      border-radius: 6px;
      line-height: 1.4;
    }
    .benefits li::before {
      content: "✔️ ";
      margin-right: 6px;
    }
    .benefits li strong {
      color: var(--navy);
    }

    table.supplement-facts {
      width: 100%;
      border-collapse: collapse;
      margin-top: 8px;
    }
    table.supplement-facts th,
    table.supplement-facts td {
      border: 1px solid #ccc;
      padding: 8px 12px;
      text-align: left;
    }
    table.supplement-facts th { background-color: #f0f0f0; }

    .brand-promise-footer {
      text-align: center;
      font-size: 14px;
      margin-top: 20px; /* reduced spacing */
      color: #333;
    }

    footer { display: none; }

    @media (max-width: 600px) {
      .hero-img { max-height: 260px; }
      .research-layout { flex-direction: column; align-items: center; }
      .research-text { margin-top: 10px; }
    }


/* === Tighter Layout Improvements for Web + Mobile === */
@media (max-width: 600px) {
  /* 1. Reduce card + container padding */
  .card { padding: 12px 14px; }
  .container { padding: 12px; }

  /* 2. Limit hero image height on small screens */
  .hero-img {
    max-height: 220px;
    object-fit: contain;
  }

  /* 3. Tighten lists and spacing */
  .benefits li { margin-bottom: 6px; padding: 8px 10px; }
  .research-layout { gap: 12px; }
}


/* === CTA and Footer Tightening === */
.cta-button {
  margin: 12px auto;
  display: inline-block;
}

@media (max-width: 600px) {
  .badges { margin: 12px 0; }
  .brand-footer { margin-top: 12px; font-size: 13px; }
}


/* === Index Page Solution Alignment & Mobile Scaling Fixes === */

/* Desktop/Web: Keep titles + buttons inline, uniform size */
.solution-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;   /* prevent wrapping */
}
.solution-header h3 {
  margin: 0;
  white-space: nowrap;
}
.solution-header .cta-button {
  flex-shrink: 0;
  min-width: 110px;
  font-size: 0.9rem;
  padding: 8px 16px;
}

/* Mobile: Slimmer buttons + smaller hero image */
@media (max-width: 600px) {
  .cta-button {
    font-size: 0.85rem;
    padding: 6px 14px;
  }
  }


/* === Solution Header Right-Aligned Buttons (Desktop/Web) === */
.solution-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}

.solution-header h3 {
  margin: 0;
  flex: 1;
}

.solution-header .cta-button {
  flex-shrink: 0;
  min-width: 110px;
  text-align: center;
}


/* === Mobile Refinements: Hero Image & Buttons === */
@media (max-width: 600px) {
  /* Hero image smaller and proportional */
  /* Slimmer buttons on mobile */
  .cta-button {
    font-size: 0.8rem;
    padding: 5px 12px;
    min-width: auto;
  }
}


/* === Mobile Refinements: Research Card & Hero Banner Crop === */
@media (max-width: 600px) {
  /* Research card image smaller */
  .research-img {
    max-width: 100px;
    height: auto;
  }

  /* Hero image shows from the top */
  .hero-img {
    object-position: top;
  }
}


/* --- Purchase panels on product pages --- */
.purchase-panel {
  margin: 14px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.purchase-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.purchase-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.purchase-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
}

.purchase-price-sub {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-left: 4px;
}

.qty-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.product-qty {
  width: 70px;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid var(--charcoal);
}

.purchase-button {
  min-width: 150px;
  text-align: center;
  padding-inline: 18px;
}

.small-text {
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Header cart pill */
.cart-link {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--navy);
  background: #fff;
  color: var(--navy);
  font-size: 0.85rem;
  cursor: pointer;
}

.cart-link .cart-count {
  font-weight: 700;
}

/* Checkout layout & cart items */
.checkout-panel h3 {
  margin-top: 0;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr);
  gap: 20px;
  margin: 16px 0;
}

.checkout-col label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.checkout-col input,
.checkout-col textarea {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--charcoal);
  box-sizing: border-box;
}

.checkout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.cart-items {
  border-radius: 8px;
  border: 1px solid #e2e7f0;
  background: #f9fbff;
  padding: 8px 10px;
  max-height: 260px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #e2e7f0;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-main {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--charcoal);
}

.cart-item-right {
  text-align: right;
  white-space: nowrap;
}

.cart-item-line-total {
  font-weight: 600;
  font-size: 0.95rem;
}

.cart-remove {
  margin-top: 4px;
  padding: 2px 8px;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  cursor: pointer;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-weight: 600;
}

.cart-total-amount {
  font-size: 1rem;
}

/* Mobile refinements */
@media (max-width: 768px) {
  .purchase-row {
    flex-direction: column;
  }

  .purchase-info {
    justify-content: center;
  }

  .checkout-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-link {
    position: static;
    margin-bottom: 8px;
  }
}



/* Cart quantity +/- controls */
.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.cart-qty-btn {
  border: 1px solid #c5cedf;
  background: #ffffff;
  border-radius: 4px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  cursor: pointer;
}

.cart-qty-btn:hover {
  background: #eef2ff;
}

.cart-qty-value {
  min-width: 20px;
  text-align: center;
  font-weight: 500;
}

.cart-item-price-each {
  font-size: 0.85rem;
  color: #4b5563;
  margin-top: 2px;
}


#cart-message {
  margin-top: 8px;
  font-size: 0.85rem;
}

#cart-message.error {
  color: #b91c1c;
}

#cart-message.success {
  color: #166534;
}

.breadcrumb {
  margin-bottom: 16px;
}

.breadcrumb .text-link {
  font-size: 0.9rem;
  text-decoration: underline;
  cursor: pointer;
}


.hero-breadcrumb {
  margin-bottom: 1rem;
}

.hero-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  text-decoration: none;
}

.hero-back-link::before {
  content: "←";
}

.hero-back-link:hover {
  text-decoration: underline;
}


/* =========================================================
   Header corner controls (Cart + Language)
   - Consistent size/shape across pages
   - Positioned in top corners, slightly above logo
   ========================================================= */

.header-card { position: relative; }

/* Preferred layout: pages that include a .top-controls wrapper */


/* Base shared styling */
.cart-link,
.lang-select{
  height: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  border-radius: 10px;
  border: 1px solid rgba(30, 43, 60, 0.18);
  background: rgba(255, 255, 255, 0.92);
  color: #1e2b4c;
  box-shadow: 0 6px 18px rgba(30, 43, 60, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Button normalization */
button.cart-link{
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

/* Select normalization */
.lang-select{
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 30px; /* room for chevron */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231e2b4c' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
}

/* Hover/active */
.cart-link:hover,
.lang-select:hover{
  background: rgba(245, 247, 250, 0.96);
  border-color: rgba(30, 43, 60, 0.28);
}
.cart-link:active,
.lang-select:active{
  transform: translateY(1px);
}

/* Focus */
.cart-link:focus,
.lang-select:focus{
  outline: none;
  box-shadow: 0 0 0 2px rgba(30, 43, 76, 0.14), 0 6px 18px rgba(30, 43, 60, 0.08);
}

/* Fallback for pages that don't have .top-controls */
.header-card > .cart-link.open-cart{
  position: absolute;
  top: 12px;
  left: 12px;
}
.header-card > .lang-select{
  position: absolute;
  top: 12px;
  right: 12px;
}

/* Mobile sizing */
@media (max-width: 560px){
  .header-card .top-controls{ top: 10px; left: 10px; right: 10px; }
  .cart-link, .lang-select{
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: 10px;
  }
  .lang-select{
    padding-right: 28px;
    background-position: right 9px center;
  }
}

/* =========================================================
   Mobile hero header alignment fixes (Home + Senolytics)
   - Keep cart + language aligned horizontally inside .top-controls
   - Add breathing room between top controls and logo on mobile
   ========================================================= */

/* FIX: keep cart + language aligned inside .top-controls */
.header-card .top-controls .cart-link,
.header-card .top-controls .lang-select{
  position: static !important;   /* override older absolute rules */
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0;
}

/* FIX: add space between top controls and logo on mobile */
@media (max-width: 600px){
  .header-card { padding-top: 36px; }   /* was ~120px */
  header img.logo { margin-top: 0px; }  /* extra separation */
}

/* =========================================================
   Solutions list alignment improvements
   - Keep "Learn More" buttons aligned
   - Prevent wrapping from creating uneven layouts
   ========================================================= */

.solution-header{
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 12px;
}

.solution-header h3{
  line-height: 1.25;
}

.solution-header .cta-button{
  align-self: start;
  justify-self: end;
  white-space: nowrap;
}

/* Mobile: stack button below title for a clean, consistent card rhythm */
@media (max-width: 600px){
  .solution-header{
    grid-template-columns: 1fr;
    row-gap: 8px;
  }
  .solution-header .cta-button{
    justify-self: start;
  }
}

/* =========================================================
   Solutions list layout improvements
   Goal:
   - Icon + title on one line
   - Description below
   - CTA button below description
   ========================================================= */

/* Each solution item should stack cleanly */
.solution-item{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Header row: icon + title inline */
.solution-header{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.solution-icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.solution-header h3{
  margin: 0;
  line-height: 1.25;
}

/* Description line */
.solution-item p{
  margin: 0;
}

/* Button row below description */
.solution-item .cta-button{
  align-self: flex-start;
  white-space: nowrap;
}

/* FIX: tighten top-controls spacing on mobile */
@media (max-width: 600px){
  .top-controls{ top: 12px; }     /* was 15px */
  .top-controls{ gap: 10px; }     /* was 12px */
}

/* =========================================================
   Solutions list (Home) – refactored markup support
   Markup per .solution-item:
     .solution-header: [img.solution-icon] [h3] [a.cta-button]
     p (description) below
   ========================================================= */

.solution-list{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.solution-item{
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.solution-header{
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.solution-icon{
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 10px;
  flex: 0 0 auto;
}

.solution-header h3{
  margin: 0;
  line-height: 1.25;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0; /* allows text to truncate instead of pushing CTA down */
}

/* Keep CTA on the same line */
.solution-header .cta-button{
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Description aligned with title start */
.solution-item > p{
  margin: 0;
  padding-left: 60px; /* icon (48) + gap (12) */
  text-align: left;
}

.cta-button.disabled{
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}

/* If you hit very small devices, allow header to wrap gracefully */
@media (max-width: 360px){
  .solution-header{ flex-wrap: wrap; }
  .solution-header .cta-button{ margin-left: 60px; }
}

/* =========================================================
   Option A – Mobile-safe solution header layout
   Button drops under title (not description)
   ========================================================= */

@media (max-width: 600px){

  /* Allow header to wrap cleanly on mobile */
  .solution-header{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 6px;
  }

  /* Icon stays fixed on the left */
  .solution-icon{
    flex: 0 0 48px;
  }

  /* Title stays next to icon on first line */
  .solution-header h3{
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  /* Button moves to second line, aligned with title */
  .solution-header .cta-button{
    flex: 0 0 auto;
    margin-left: 60px; /* icon (48px) + gap (12px) */
    white-space: nowrap;
  }

  /* Description stays left-aligned under title */
  .solution-item > p{
    padding-left: 60px;
    text-align: left;
  }
}

/* =========================================================
   Option A – Mobile-safe solution header layout (tightened)
   Button closer to title, aligned with title (not centered)
   ========================================================= */

@media (max-width: 600px){

  .solution-header{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 2px; /* tighter vertical spacing */
  }

  .solution-icon{
    flex: 0 0 48px;
  }

  .solution-header h3{
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }

  /* Button directly under title, close + left-aligned */
  .solution-header .cta-button{
    flex: 0 0 auto;
    margin-left: 60px; /* align with title start */
    margin-top: 0;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .solution-item > p{
    padding-left: 60px;
    text-align: left;
    margin-top: 2px;
  }
}

/* =========================================================
   Coming Soon + Notify Me (Solutions)
   ========================================================= */

.solution-item .notify-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  margin-left: 60px; /* align with title start (icon 48 + gap 12) */
}

@media (min-width: 601px){
  .solution-item .notify-link{
    margin-left: 60px; /* keep aligned on desktop too */
  }
}

/* =========================================================
   Notify modal
   ========================================================= */

.notify-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.notify-modal.is-open{ display: flex; }

.notify-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.notify-dialog{
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: #111;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.notify-dialog h3{
  margin: 0 0 6px 0;
}

.notify-dialog p{
  margin: 0 0 14px 0;
}

.notify-form{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.notify-form input[type="email"]{
  flex: 1 1 240px;
  min-width: 220px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.2);
}

.notify-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

.notify-close{
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.notify-status{
  margin-top: 10px;
  font-weight: 600;
}


/* =========================================================
   Contact modal (mirrors Notify modal)
   ========================================================= */

.contact-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 9999;
}

.contact-modal.is-open{ display: flex; }

.contact-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.contact-dialog{
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #fff;
  color: #111;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,.35);
}

.contact-dialog h3{ margin: 0 0 6px 0; }
.contact-dialog p{ margin: 0 0 14px 0; }

.contact-form{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input[type="email"],
.contact-form textarea{
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.2);
  font-family: inherit;
  font-size: 14px;
}

.contact-form textarea{
  min-height: 120px;
  resize: vertical;
}

.contact-close{
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.contact-status{
  margin-top: 6px;
  font-weight: 600;
}



/* --- Twig International tweaks: hero sizing + one-page anchors --- */
@media (min-width: 900px){
  }
.section{
  scroll-margin-top: 120px;
}



/* --- Polish: sticky nav, section tiles, card grids --- */
html { scroll-behavior: smooth; }

.sticky-nav{
  position: sticky;
  top: 10px;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 16px;
}

.section-tile-wrap{
  margin: 12px 0 6px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.section-tile{
  width: 100%;
  height: auto;
  display: block;
}

@media (min-width: 900px){
  .section-tile-wrap{
    float: right;
    width: min(340px, 38%);
    margin: 0 0 14px 18px;
  }
  .section::after{content:"";display:block;clear:both;}
}

.mini-card-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 10px;
}
.mini-card{
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,.9);
}
.mini-card h4{
  margin: 0 0 6px;
  font-size: 1rem;
}
.mini-card p{
  margin: 0;
  color: var(--muted);
}

@media (max-width: 720px){
  .mini-card-grid{ grid-template-columns: 1fr; }
  .sticky-nav{ top: 0; }
}



/* --- Header controls: contact CTA + language selector on right --- */
.nav-controls{
  display:flex;
  justify-content:flex-end;
  align-items:center;
  gap:12px;
  margin-top:10px;
}
.nav-controls .top-controls{
  margin:0;
}
.contact-cta{
  text-decoration:none;
  background: var(--accent);
  color:#fff;
  padding:8px 12px;
  border-radius:12px;
  font-weight:700;
  border:1px solid rgba(0,0,0,0);
}
.contact-cta:hover{
  filter: brightness(0.95);
}
@media (max-width: 720px){
  .nav-controls{justify-content:space-between;}
  .contact-cta{padding:8px 10px;}
}



/* --- Diagrams --- */
.section-diagram-wrap{
  margin: 12px 0 10px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}
.section-diagram{
  width: 100%;
  height: auto;
  display: block;
}
@media (min-width: 900px){
  .section-diagram-wrap{
    margin-top: 14px;
  }
}



}

}




/* =========================================================
   TWIG website – section imagery consistency + header controls
   (Scoped to the core site pages)
   ========================================================= */

/* Consistent vertical rhythm between sections */
.content-card .section {
  padding: 4rem 0;
}

/* Header controls row: Contact on the left, language on the right */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-card .nav-controls .top-controls {
  position: static;
  inset: auto;
  left: auto;
  right: auto;
  top: auto;
  display: flex;
  justify-content: flex-end;
  pointer-events: auto;
  margin-left: auto;
}

/* Section thumbnail standard (used across: Aspira, Where We Work, Contact, etc.) */
.content-card .section-image {
  max-width: 460px;
  width: 100%;
  height: auto;
  margin: 2rem auto;
  display: block;
  border-radius: 12px;
  filter: saturate(0.9);
}

/* Tile / concept images (What We Do, Partners, Teaching) */
.content-card .section-tile-wrap img,
.content-card img.section-tile {
  max-width: 340px;
  width: 100%;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  border-radius: 12px;
  filter: saturate(0.9);
}

/* Diagrams: supportive, not dominant */
.content-card .section-diagram-wrap img,
.content-card img.section-diagram {
  max-width: 600px;
  width: 100%;
  height: auto;
  margin: 1.5rem auto;
  display: block;
  opacity: 0.95;
}

/* Reduce padding on small screens */
@media (max-width: 700px) {
  .content-card .section {
    padding: 3rem 0;
  }
}

/* Language selector placement: upper-right corner of header */
.header-card { position: relative; }
.header-card .top-controls{
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  z-index: 10;
}


/* Smaller language selector */
.lang-select{
  height: 30px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  border-radius: 10px;
}

/* Hero banner: show top of image, crop bottom instead */
.hero-banner{
  margin-top: 20px;
  width: 100%;
  height: 480px;
  max-height: 480px;
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}
.hero-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 700px){
  .hero-banner{
    height: 300px;
    max-height: 300px;
  }
}


/* --- Aspira design tighten pass: reduce whitespace + thumbnail size --- */

/* Reduce overall vertical padding on main container */
.main-container{
  padding: 28px 20px;
}

/* Tighten header spacing */
.header-card{
  padding: 18px 20px;
}
.header-card h1{
  margin: 0 0 8px 0;
}
.header-card p{
  margin: 0;
}

/* Tighten section card spacing */
.section{
  padding: 18px 20px;
  margin: 14px 0;
}
.section h2{
  margin: 0 0 10px 0;
}
.section p{
  margin: 0 0 10px 0;
}

/* Make thumbnails smaller and consistent */
.section-image{
  width: 100%;
  max-width: 520px;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin: 10px 0 12px 0;
  display: block;
}

/* If any tiles remain, keep them compact */
.section-tile{
  width: 100%;
  max-width: 520px;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  margin: 10px 0 12px 0;
  display: block;
}

/* Reduce gaps in lists */
.section ul{
  margin: 8px 0 0 18px;
}
.section li{
  margin: 4px 0;
}

/* Slightly tighten CTA / footer spacing if present */
.footer{
  padding: 16px 20px;
  margin-top: 16px;
}



/* --- Aspira tighten v2: hero crop, tighter spacing, language top-right, contact image --- */

/* Language selector: force top-right in the header card */
header .card{ position: relative; }
header .card .top-controls{
  position: absolute;
  top: 12px;
  right: 12px;
  left: auto;
  z-index: 50;
}

/* Hero banner: shorter height; crop from bottom (keep top visible) */
.hero-banner{
  height: 240px;
  max-height: 240px;
  overflow: hidden;
  border-radius: 12px;
}
.hero-banner img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center; /* keep top, crop bottom */
}

/* Even tighter overall whitespace */
.main-container{ padding: 20px 16px; }
.section{ padding: 14px 16px; margin: 10px 0; }
.section h2{ margin: 0 0 8px 0; }
.section p{ margin: 0 0 8px 0; }

/* Thumbnails smaller */
.section-image, .section-tile{
  max-width: 440px;
  max-height: 200px;
  margin: 8px 0 10px 0;
}

/* Contact image: much smaller and DO NOT crop top */
#contact img.section-image,
#contact img.section-tile{
  max-width: 260px;
  max-height: 120px;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 8px 0 0 0;
}

/* Mobile tweaks */
@media (max-width: 700px){
  .hero-banner{ height: 190px; max-height: 190px; }
  header .card .top-controls{ top: 10px; right: 10px; }
}



/* --- Aspira tighten v3: reduce whitespace further + contact image medium --- */

/* Overall page: tighter gutters */
.main-container{
  padding: 14px 12px;
}

/* Cards/sections: tighter vertical rhythm */
.section{
  padding: 10px 12px;
  margin: 8px 0;
}
.section h2{
  margin: 0 0 6px 0;
}
.section p{
  margin: 0 0 6px 0;
  line-height: 1.35;
}

/* Reduce extra spacing in grids/rows if present */
.grid, .row, .columns{
  gap: 10px;
}

/* Thumbnails: slightly smaller but not tiny */
.section-image, .section-tile{
  max-width: 420px;
  max-height: 190px;
  margin: 6px 0 8px 0;
}

/* Header: tighten spacing */
header .card{
  padding: 14px 14px;
}
header .card h1{
  margin: 0 0 6px 0;
}
header .card p{
  margin: 0;
  line-height: 1.35;
}

/* Contact: medium thumbnail, no top-crop */
#contact img.section-image,
#contact img.section-tile{
  max-width: 360px;
  max-height: 170px;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
  margin: 6px 0 0 0;
}

/* Lists tighter */
.section ul{
  margin: 6px 0 0 16px;
}
.section li{
  margin: 3px 0;
  line-height: 1.35;
}

/* Mobile: even tighter */
@media (max-width: 700px){
  .main-container{ padding: 12px 10px; }
  .section{ padding: 10px 10px; margin: 8px 0; }
  .section-image, .section-tile{ max-width: 100%; max-height: 170px; }
  #contact img.section-image, #contact img.section-tile{ max-width: 100%; max-height: 200px; }
}



/* --- Aspira tighten v4: reduce inter-section gaps + force language top-right --- */

/* Reduce whitespace between sections (desktop + mobile) */
.section{
  margin: 6px 0 !important;
}
.section + .section{
  margin-top: 6px !important;
}

/* Header language control: force top-right corner */
.header-card{ position: relative !important; }
.header-card .nav-controls{ position: static !important; }
.header-card .nav-controls .top-controls{
  position: absolute !important;
  top: 12px !important;
  right: 12px !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 999 !important;
}

/* Keep the contact CTA from colliding with the absolute language selector */
.header-card .nav-controls{
  padding-right: 170px; /* reserve room for language dropdown */
}

@media (max-width: 700px){
  .section{ margin: 6px 0 !important; }
  .header-card .nav-controls{ padding-right: 0; }
  .header-card .nav-controls .top-controls{
    top: 10px !important;
    right: 10px !important;
  }
}



/* --- Aspira tighten v5: tighter section internals, uniform images, crop from bottom (keep heads) --- */

/* Tighten section internals (desktop + mobile) */
.section{
  padding: 10px 12px !important;
}
.section h2{
  margin: 0 0 6px 0 !important;
}
.section p{
  margin: 0 0 6px 0 !important;
  line-height: 1.32 !important;
}
.section ul{
  margin-top: 6px !important;
}

/* Uniform image sizing across ALL sections (including Contact) */
.section-image, .section-tile{
  width: 100% !important;
  max-width: 420px !important;
  max-height: 190px !important;
  height: auto !important;
  object-fit: cover !important;
  object-position: top center !important; /* keep top visible, crop bottom */
  margin: 6px 0 8px 0 !important;
  display: block !important;
}

/* Ensure hero keeps top and crops bottom */
.hero-banner{
  overflow: hidden !important;
}
.hero-banner img{
  object-fit: cover !important;
  object-position: top center !important; /* keep top, crop bottom */
}

/* Remove any special-case Contact image overrides from earlier passes */
#contact img.section-image,
#contact img.section-tile{
  max-width: 420px !important;
  max-height: 190px !important;
  object-fit: cover !important;
  object-position: top center !important;
}

/* Mobile: tighter cards + images */
@media (max-width: 700px){
  .section{ padding: 10px 10px !important; }
  .section-image, .section-tile{ max-width: 100% !important; max-height: 170px !important; }
  #contact img.section-image, #contact img.section-tile{ max-width: 100% !important; max-height: 170px !important; }
}



/* --- Aspira tighten v6: bullets, What We Do spacing, contact cleanup --- */

/* The Problem: reduce bullet indentation */
#problem ul{
  margin-left: 14px !important;
  padding-left: 10px !important;
}
#problem li{
  margin-left: 0 !important;
}

/* What We Do: tighter vertical spacing (desktop focused) */
#what-we-do{
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}
#what-we-do p{
  margin-bottom: 6px !important;
}
#what-we-do ul{
  margin-top: 4px !important;
}

/* Desktop-specific tightening for What We Do */
@media (min-width: 900px){
  #what-we-do{
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
}



/* --- Aspira tighten v7: Selected Experience bullets + What We Do 2-column desktop --- */

/* Selected Experience Leads: indent bullets slightly */
#experience ul{
  margin-left: 22px !important;
  padding-left: 14px !important;
}
#experience li{
  margin-left: 0 !important;
}

/* What We Do: two columns on desktop */
@media (min-width: 900px){
  #what-we-do .content,
  #what-we-do .section-content{
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 10px;
    align-items: start;
  }
}



/* --- Aspira tighten v8: hero gap, What We Do tighter, experience bullets less indent --- */

/* 1) Reduce gap between hero text and hero image */
.header-card h2.hero-subtitle{ margin-bottom: 6px !important; }
.header-card .nav-controls{ margin-bottom: 4px !important; }
.header-card .hero-banner{ margin-top: 6px !important; }

/* 2) What We Do: tighter on both desktop + mobile */
#what-we-do{
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
#what-we-do p{ margin-bottom: 4px !important; line-height: 1.3 !important; }
#what-we-do ul{ margin-top: 4px !important; }
#what-we-do li{ margin: 3px 0 !important; }

@media (min-width: 900px){
  #what-we-do{
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }
}

/* 3) Selected Experience: indent bullets LESS */
#experience ul{
  margin-left: 16px !important;
  padding-left: 8px !important;
}



/* --- Aspira tighten v9: fixes that visibly apply (hero gap, What We Do grid, Selected experience indent) --- */

/* 1) HERO: reduce the whitespace between the last header line and the hero image */
.header-card{
  padding-bottom: 10px !important;
}
.header-card .nav-controls{
  margin-bottom: 2px !important;
}
.header-card .hero-banner{
  margin-top: 2px !important;
}

/* 2) WHAT WE DO: tighten spacing + enforce 2-column layout on desktop using the real markup (.mini-card-grid) */
#what-we-do{
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
#what-we-do .mini-card-grid{
  gap: 10px !important;           /* reduce card spacing */
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}
#what-we-do .mini-card{
  padding: 10px 12px !important;  /* less internal padding */
}
#what-we-do .mini-card h4{
  margin: 0 0 6px 0 !important;
}
#what-we-do .mini-card p{
  margin: 0 !important;
  line-height: 1.32 !important;
}

/* Remove unused/empty wrappers that create vertical whitespace */
#what-we-do .section-tile-wrap,
#what-we-do .section-diagram-wrap{
  display: none !important;
}

/* Two columns on desktop (cards become two per row = multiple rows) */
@media (min-width: 900px){
  #what-we-do .mini-card-grid{
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    column-gap: 18px !important;
    row-gap: 10px !important;
  }
}

/* Mobile: even tighter rhythm */
@media (max-width: 700px){
  #what-we-do .mini-card-grid{ gap: 8px !important; }
  #what-we-do .mini-card{ padding: 10px 10px !important; }
}

/* 3) Selected experience (under the Selected experience heading inside Where We Work): indent bullets LESS */
#where-we-work h3 + ul,
#where-we-work h3 + .selected-experience-wrap .experience-list{
  margin-left: 14px !important;
  padding-left: 8px !important;
}


/* Accessibility: hide content visually but keep it readable for screen readers and crawlers */
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;}



/* --- Selected Experience + client logos layout (desktop side, mobile below) --- */

.selected-experience-wrap{
  display: flex;
  flex-direction: column; /* mobile: image below bullets */
  gap: 12px;
  margin-top: 6px;
}
.selected-experience-wrap .experience-list{
  margin-top: 0 !important;
}
.selected-experience-wrap .client-logos{
  width: 100%;
  height: auto;
  max-width: 480px;
}
@media (min-width: 900px){
  .selected-experience-wrap{
    flex-direction: row; /* desktop: image to the side */
    align-items: flex-start;
    gap: 24px;
  }
  .selected-experience-wrap .experience-list{
    flex: 1 1 auto;
  }
  .selected-experience-wrap .client-logos{
    flex: 0 0 320px0px;
    margin-top: 2px;
  }
}

.logo-spacer{height:1em;}



@media (min-width: 992px) {
  .selected-experience-wrap .client-logos {
    max-height: 180px;
    height: 180px;
    width: auto;
  }
}


@media (min-width: 992px) {
  .selected-experience-wrap .client-logos {
    margin-right: 24px;
  }
}
