/*
Theme Name: Bodi.me child
Template: generatepress
Version: 1.0.1
*/
/*
 ============================================================
 CONTENTS
 ============================================================
 1. Custom properties — colour palette
 2. Global resets and base styles
 3. Header navigation row width
 4. FAQ accordion component
 5. Tab items styling
 6. Size-Me technical features table
 7. 3D scanner page
 8. Linking archive cards accessibly
 ============================================================
*/

/* ============================================================
   1. Custom properties — colour palette
   ============================================================ */

:root {
  --bm-green:      #1bbc9b;
  --bm-green-mid:  #17a185;
  --bm-green-deep: #0a473b;
  --bm-ink:        #141414;
  --bm-snow:       #fafafa;
  --bm-dark-blue:   #34495d;  

  --bm-dark:    #0a473b;
  --bm-surface: #F6F9F8;
  --bm-line:    #EDFAF7;
  --bm-muted:   #4a5b57;
  --bm-grey:    #d6d6d6; /* light grey frame (2026-10-16) */

  --bm-space-section: clamp(2rem, 5vw, 4.5rem);
  --bm-maxw:       1220px;
  --bm-maxw-tight: 880px;
}

/* ============================================================
 2. Global resets and base styles
   ============================================================ */
html {
  font-size: 112.5%; /* 18px, and still respects the visitor's browser text size */
}

body {
  background: var(--bm-snow);
  color: var(--bm-ink);
  font-size: 1rem; /* was 18px */
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
}

/* focus mode default: light surfaces */
:focus-visible {
  outline: 2px solid var(--bm-green-deep);
  outline-offset: 2px;
}

/* focus mode dark contexts: footer and dark CTA sections */
.bm-dark :focus-visible {
  outline-color: var(--bm-green);
}

/* remove the legacy glow some browsers add alongside the outline */
:focus:not(:focus-visible) { outline: none; }

/* give the outline room on tightly-boxed controls so it isn't clipped */
.bm-btn:focus-visible { outline-offset: 3px; }

/* ==========================================================================
   3. Header navigation row width
   ========================================================================== */

/* GP wraps the Float Right primary nav in its own .grid-container, which is
   always capped by the site global Container Width (1200px), independent of
   the Header "Inner Header Width: Full" Customizer setting -- there is no
   Customizer control that frees the nav row on its own. Once the nav links
   were sized up to accessible 18px/700/uppercase (see Typography Manager),
   the nav plus the Login / Book a Demo actions no longer fit inside 1200px
   and wrapped. This scoped override frees just this row; Container Width
   still governs page body content everywhere else. */
.main-navigation.sub-menu-right .inside-navigation.grid-container {
  max-width: none;
}

/* Header row constrained (2026-10-16): Inner Header Width is set to
   Contained in the Customizer, which caps it at Container Width (1200px).
   The logo, 7 nav items (0.9rem) and Book a Demo need about 1292px on one
   row; the header is widened to 1360px to leave about 70px between the logo
   and the nav (2026-10-19). Mobile Menu Breakpoint is 1380px to match. Page body content still uses Container Width. */
.site-header .inside-header.grid-container,
#sticky-navigation .inside-navigation.grid-container {
  max-width: 1360px;
  margin-left: auto;
  margin-right: auto;}

/* Current menu item (2026-10-21): bold text in brand green, no background
   (Lara's request; colours set in Customizer > Colors > Primary Navigation). */
.main-navigation .main-nav ul li[class*="current-menu-"] > a {
  font-weight: 700;}

/* ==========================================================
 *    Accessibility: visually-hidden utility
 *    Used to expose static final values to screen readers next
 *    to JS-driven animated content (e.g. bm-countup numbers).
 *    ========================================================== */
.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;
}
}

/* ============================================================
 *    4. FAQ accordion component
 *    Semantic accordion: h3-wrapped trigger buttons, section panels.
 *    State lives in aria-expanded / hidden, not in CSS - see the
 *    accordion markup and script in the FAQ section of the Home page.
 *    ============================================================ */

.accordion-item {
	  border-bottom: 1px solid var(--bm-line);
}

.accordion-heading {
	  margin: 0;
}

.accordion-trigger {
	  display: flex;
	  align-items: center;
	  justify-content: space-between;
	  gap: 16px;
	  width: 100%;
	  padding: 20px 4px;
	  background: none;
	  border: 0;
	  text-align: left;
	  font-size: 1rem;
	  font-weight: 600;
	  color: var(--bm-ink);
	  cursor: pointer;
}
.accordion-trigger:hover,
.accordion-trigger:focus {
	  background: none;
}

.accordion-chevron {
	  flex-shrink: 0;
	  width: 10px;
	  height: 10px;
	  border-right: 2px solid var(--bm-green);
	  border-bottom: 2px solid var(--bm-green);
	  transform: rotate(45deg);
	  transition: transform 0.2s;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron {
	  transform: rotate(-135deg);
}

.accordion-trigger:focus-visible {
	  outline: 2px solid var(--bm-green-deep);
	  outline-offset: 2px;
}

.accordion-panel {
	  padding: 0 4px 20px;
	  color: var(--bm-muted);
	  line-height: 1.7;
}

.accordion-panel p {
	  margin: 0;
}

/* ============================================================
 *    5. Tab items styling 

 *    ============================================================ */

a.tab-item {
  text-decoration: none !important;
  box-shadow: none !important;
}

.tab-item:hover,
.tab-item:focus-visible {
  background-color: var(--bm-green-deep);
}
.tab-item:hover .tab-item-label,
.tab-item:focus-visible .tab-item-label {
  color: var(--bm-surface);
}


/* ============================================================
 *    6. Size-Me technical features table

 *    ============================================================ */

.tf-legend {
  display: flex;
  justify-content: left;
  flex-wrap: wrap;
  gap: 24px;
  margin: 0 0 24px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--bm-dark-blue);
}

.tf-scroll {
  overflow-x: auto;
  border: 1px solid var(--bm-line);
  border-radius: 14px;
  background: var(--bm-snow);
}
.tf-scroll:focus-visible {
  outline: 2px solid var(--bm-green-deep);
  outline-offset: 2px;
}

.tf-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Josefin Sans', sans-serif;
}
.tf-table th,
.tf-table td {
  padding: 14px 20px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--bm-line);
}
.tf-table tbody tr:first-child th,
.tf-table tbody tr:first-child td {
  border-top: 0;
}
.tf-table tbody tr:nth-child(even) th,
.tf-table tbody tr:nth-child(even) td {
  background: var(--bm-surface);
}
.tf-table th[scope="row"] {
  min-width: 200px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bm-dark-blue);
}
.tf-status {
  width: 60px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
}
.tf-table td:last-child {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bm-muted);
}

.tf-yes { color: var(--bm-green-deep); }
.tf-opt { color: var(--bm-muted); }
.tf-no  { color: #c0505a; /* no red token in the palette, see note */ }

/* ==========================================================================
 * 6b. Tech features table on Size-me page: stack each row on mobile 
   ========================================================================== */

@media (max-width: 767px) {
  .tf-scroll {
    overflow-x: visible;
  }
  .tf-table,
  .tf-table tbody {
    display: block;
  }
  .tf-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "feature status" "details details";
    column-gap: 16px;
    row-gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--bm-line);
  }
  .tf-table tbody tr:first-child {
    border-top: 0;
  }
  .tf-table tbody tr:nth-child(even) {
    background: var(--bm-surface);
  }
  .tf-table tbody th,
  .tf-table tbody td {
    display: block;
    width: auto;
    min-width: 0;
    padding: 0;
    border-top: 0;
  }
  .tf-table tbody th {
    grid-area: feature;
  }
  .tf-table tbody .tf-status {
    grid-area: status;
  }
  .tf-table tbody td:last-child {
    grid-area: details;
  }
}

/* ============================================================
 *    7. 3D scanner page

 *    ============================================================ */

/*3D scanner: technical data and outputs*/

.td-list {
  margin: 20px 0 0;
  border: 1px solid var(--bm-line);
  border-radius: 10px;
  border: 1px solid var(--bm-green-mid);
  overflow: hidden;
  background: var(--bm-snow);
}
.td-row {
  display: grid;
  grid-template-columns: minmax(160px, 240px) 1fr;
  gap: 4px 24px;
  padding: 14px 18px;
  font-family: 'Josefin Sans', sans-serif;
}
.td-row + .td-row {
  border-top: 1px solid var(--bm-green-mid);
}
.td-row:nth-child(even) {
  background: var(--bm-surface);
}
.td-list dt {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bm-dark-blue);
}
.td-list dd {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bm-muted);
}

@media (max-width: 30em) {
  .td-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 3D scanner: personalised for every client programme */
.pc-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--bm-green-mid);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bm-snow);
}
.pc-list li {
  padding: 14px 18px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--bm-muted);
}
.pc-list li + li {
  border-top: 1px solid var(--bm-green-mid);
}
.pc-list li:nth-child(even) {
  background: var(--bm-surface);
}

/* ==========================================================================
   8. Linking archive cards accessibly
   ========================================================================== */

.stretched-link a::after {
  content: "";
  position: absolute;
  inset: 0;
}

