/* --- Tokens (override in tenants/<slug>/theme.css) --- */
:root {
  --color-bg: #ffffff;
  --color-text-white: #ffffff;
  --color-text-black: #000000;
  --color-muted: #111111;
  --accent-color: #295cff;


  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, sans-serif;
  --font-heading: var(--font-body);

  --font-size-large: 3.25rem;
  --font-size-heading: 2.25rem;
  --font-size-medium: 1.5rem;
  --font-size-small: 1.1875rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --content-max: 72rem;
}

/* --- Reset-ish baseline --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

body.h1-accent {
  color: var(--accent-color);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 var(--space-md);
}

p {
  margin: 0 0 var(--space-md);
}

a {
  color: var(--color-text);
  text-decoration: none;
}


/* Link styled as button */
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 0.55rem 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: var(--radius-sm, 8px);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease;
}

a.btn-primary {
  background: var(--accent-color, #2563eb);
  color: #fff;
  border-color: color-mix(in srgb, var(--accent-color, #2563eb) 88%, #000);
}

a.btn-primary:hover {
  filter: brightness(1.06);
}

a.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
}

a.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Optional: row of CTAs in hero shell */
section.hero .wrapper-shell {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

section.hero .wrapper-shell > h1,
section.hero .wrapper-shell > span,
section.hero .wrapper-shell > a:not(.btn) {
  flex: 1 0 100%;
  width: 100%;
  box-sizing: border-box;
}

section.hero .wrapper-shell > a.btn {
  flex: 0 1 auto;
}


a:focus-visible,
button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

td,
th {
  padding: var(--space-sm) var(--space-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
  vertical-align: top;
}

ul,
ol {
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
}

/* --- Layout helpers your renderer output can use --- */
section {
  padding: var(--space-xl) var(--space-lg);
  max-width: var(--content-max);
  margin-inline: auto;
}

header {
  background: var(--color-bg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

header nav.menu {
  max-width: var(--content-max);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
}

.menu-logo-link,
.menu-logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.menu-logo-link {
  text-decoration: none;
}

.menu-logo {
  display: block;
  height: auto;
  max-height: 2.5rem;
  width: auto;
}

.menu-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  margin-left: auto;
  font-weight: 600;
  font-size: 1.1875rem;
}

.menu-title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

section.hero {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  max-width: none;
  width: 100%;
  margin-inline: 0;
  box-sizing: border-box;
  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Keeps text in the same “column” as other sections */
  padding-inline: max(
    var(--space-lg),
    calc((100vw - var(--content-max)) / 2)
  );
}

section.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7); /* darker: 0.6–0.7, lighter: 0.35–0.45 */
  z-index: 0;
  pointer-events: none;
}

.wrapper-shell {
  width: 50%;
  padding: var(--space-lg);

  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);

  color: var(--color-text-white);
}

section.hero h1 {
  margin: 0 0 0.35em;
  line-height: 5.25rem;
  font-size: 3.25rem;
}

section.hero h1 .h1-accent {
  color: var(--accent-color);
  display: block;
  font-weight: 800;
}


section.hero h1 + p,
section.hero h1 + span {
  display: block;
  margin: 0;
  font-size: var(--font-size-medium);
  opacity: 0.92;
  margin:0 0 0.35em
}

/* Mobile-first fixes for hero */
@media (max-width: 640px) {
  section.hero {
    padding-block: clamp(1.75rem, 8vw, 2.5rem);
    padding-inline: var(--space-md);
  }

  section.hero h1 {
    white-space: normal;           /* was forcing one long line */
    font-size: var(--font-size-large);
    line-height: 1.15;             /* drop the huge fixed line-height */
  }

  .wrapper-shell {
    width: 100%;                   /* not 45% */
    max-width: 100%;
    box-sizing: border-box;
  }

  section.hero .wrapper-shell > a.btn {
    width: 100%;                   /* full-width CTAs (optional) */
    justify-content: center;
  }
}

@media (max-width: 640px) {
  header nav.menu {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
  }

  .menu-logo-link,
  .menu-logo-wrap {
    justify-content: center;
  }

  @media (max-width: 640px) {
    header nav.menu {
      flex-direction: column;
      align-items: stretch;
      gap: var(--space-md);
    }
  
    .menu-links {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      margin-left: 0;
      width: 100%;
      gap: var(--space-sm);
      font-size: 1rem;
    }
  
    .menu-links > a {
      width: 100%;
      text-align: left;          /* or left + padding */
      padding: 0.65rem var(--space-md);
      border-radius: var(--radius-sm);
    }
  
    /* Phone / primary CTA full width */
    header nav.menu .menu-links > a.btn {
      width: 100%;
      justify-content: center;
    }
  }
}


section.logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: var(--space-lg);
  align-items: center;
  justify-items: center;
}

section.logos > h2,
section.logos > p {
  grid-column: 1 / -1;
  justify-self: start;
  text-align: left;
  margin: 0;
}

section.logos > img {
  width: 100%;
  max-width: 9rem;
  max-height: 3rem;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.85;
}

section.logos > img:hover {
  filter: none;
  opacity: 1;
}

@media (min-width: 768px) {
  section.logos {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-lg, 1.5rem);
    align-items: center;
    justify-items: center;
  }
  
  section.logos > img {
    width: 100%;
    max-width: 10rem;
    max-height: 3.5rem;
    object-fit: contain;
  }
}

/* gallery */
section.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl, 2rem);
  align-items: start;
}

section.gallery > h2:first-of-type {
  grid-column: 1 / -1;
  margin: 0 0 var(--space-lg);
  text-align: center;
  font-size: var(--font-size-heading);
}

@media (max-width: 768px) {
  section.gallery {
    grid-template-columns: 1fr;
  }
}

/* Each card: image on top, then text, then button */
section.gallery > section.gallery-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: 0; /* override generic section margin if needed */
  padding: 0; /* optional: tighten if base `section` adds padding */
}

section.gallery > section.gallery-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

section.gallery > section.gallery-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

section.gallery > section.gallery-card p {
  margin: 0;
  flex-grow: 1;
}

section.gallery > section.gallery-card > a.btn {
  align-self: flex-start;
}

/* services */
section.services {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

section.services > h2:first-of-type {
  margin: 0;
  text-align: center;
  font-size: var(--font-size-heading);
}

section.services > section.services-intro {
  max-width: 100%;
}

section.services > section.services-cards {
  padding: 0;
  margin: 0;
  /* keep your existing grid rules below */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

@media (max-width: 768px) {
  section.services > section.services-cards {
    grid-template-columns: 1fr;
  }
}

section.services > section.services-cards > section.services-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: 0;
  padding: 0;
}

section.services .services-card-image-link {
  display: block;
  text-decoration: none;
}

section.services .services-card-image-link img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

section.services .services-card h2 a {
  color: inherit;
  text-decoration: none;
}

section.services .services-card h2 a:hover {
  text-decoration: underline;
}

/*footer*/
section.footer {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-lg);
  align-items: start;
}

/* Remove or override this if you had it — it forces a vertical stack on mobile */
/* @media (max-width: 768px) {
  section.footer { grid-template-columns: 1fr; }
} */

@media (max-width: 768px) {
  section.footer {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
    font-size: 0.8rem;
  }
}

section.footer .footer-brand img {
  width: auto;
  max-width: auto;   /* try 5.5rem–8rem */
  max-height: 8rem;    /* cap height */
  object-fit: contain;
}

section.footer > section.footer-col {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--space-xs);
  min-width: 0;
}


/* splitFaq */
.split-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-xl);
  align-items: start;
}

.split-faq__media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.split-faq__content h2 {
  margin: 0 0 var(--space-sm);
}

.split-faq__content > p {
  margin: 0 0 var(--space-md);
}

/* image right */
.split-faq--flip .split-faq__media {
  order: 2;
}
.split-faq--flip .split-faq__content {
  order: 1;
}

@media (max-width: 768px) {
  .split-faq,
  .split-faq.split-faq--flip {
    grid-template-columns: 1fr;
  }
  .split-faq--flip .split-faq__media,
  .split-faq--flip .split-faq__content {
    order: unset;
  }
  /* optional: image first on mobile always */
  .split-faq--flip .split-faq__media {
    order: -1;
  }
}

/* FAQ */
.faq-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-sm);
  padding: 0 var(--space-md);
}

.faq-item-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  padding: var(--space-md) 0;
  list-style: none;
}
.faq-item-summary::-webkit-details-marker {
  display: none;
}

.faq-item-panel {
  padding: 0 0 var(--space-md);
}
.faq-item-panel p {
  margin: 0;
}








