/* Abizvo Starter — the reference theme.
   Colour comes from the scheme a section chooses (.color-scheme-N sets
   --color-*), type and spacing from Theme settings (see layouts/theme.liquid). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: calc(1rem * var(--body-scale));
  line-height: var(--body-line-height);
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

.ab-scheme { background: var(--color-background); color: var(--color-text); }
.ab-scheme .muted { color: var(--color-muted); }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .75rem 1rem; border-radius: var(--input-radius);
  background: var(--color-button); color: var(--color-button-text); text-decoration: none; }
.skip-link:focus { top: 1rem; }

.page-width { width: 100%; max-width: calc(var(--page-width) + var(--page-gutter) * 2); margin-inline: auto; padding-inline: var(--page-gutter); }
.section { padding-block: calc(var(--section-spacing) / 2); }
.section--flush { padding-block: 0; }
@media (max-width: 749px) { .section { padding-block: calc(var(--section-spacing) / 3); } }

/* Type */
h1, h2, h3, h4, .h0, .h1, .h2, .h3, .h4 {
  font-family: var(--font-heading); font-weight: var(--heading-weight); letter-spacing: var(--heading-letter-spacing);
  line-height: 1.08; margin: 0 0 .5em; text-wrap: balance;
}
.h0 { font-size: calc(clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem) * var(--heading-scale)); line-height: 1.02; }
h1, .h1 { font-size: calc(clamp(2.25rem, 1.5rem + 3vw, 4rem) * var(--heading-scale)); }
h2, .h2 { font-size: calc(clamp(1.75rem, 1.3rem + 1.9vw, 2.75rem) * var(--heading-scale)); }
h3, .h3 { font-size: calc(clamp(1.25rem, 1.1rem + .6vw, 1.6rem) * var(--heading-scale)); }
h4, .h4 { font-size: calc(1.125rem * var(--heading-scale)); }
p { margin: 0 0 1em; }
.eyebrow { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted); margin-bottom: 1rem; }
.rte > :last-child { margin-bottom: 0; }
.rte a { color: var(--color-accent); text-underline-offset: .2em; }
.rte ul, .rte ol { padding-left: 1.25em; }
.rte blockquote { margin: 1.5em 0; padding-left: 1.25em; border-left: 3px solid var(--color-accent); font-family: var(--font-heading); font-size: 1.25em; }
.text-center { text-align: center; } .text-right { text-align: right; } .text-left { text-align: left; }
.measure { max-width: 42rem; }
.text-center .measure, .measure--center { margin-inline: auto; }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .8rem 1.6rem;
  border-radius: var(--button-radius); border: 1.5px solid var(--color-button); background: var(--color-button); color: var(--color-button-text);
  font: 500 .95rem/1 var(--font-body); text-transform: var(--button-transform); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -12px rgba(var(--color-text-rgb), .45); }
.button--secondary, .button-style--outline .button { background: transparent; color: var(--color-button); }
.button--secondary:hover, .button-style--outline .button:hover { background: var(--color-button); color: var(--color-button-text); }
.button--link { background: none; border-color: transparent; color: var(--color-text); padding-inline: 0; text-decoration: underline; text-underline-offset: .3em; min-height: auto; }
.button--link:hover { transform: none; box-shadow: none; color: var(--color-accent); }
.button-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.text-center .button-group { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .button, .card, .media img { transition: none !important; } .button:hover { transform: none; } }

/* Media */
.media { position: relative; overflow: hidden; border-radius: var(--media-radius); background: rgba(var(--color-text-rgb), .06); }
.media img, .media svg, .media video, .media iframe { width: 100%; height: 100%; object-fit: cover; }
.media--portrait { aspect-ratio: 4 / 5; } .media--square { aspect-ratio: 1; } .media--landscape { aspect-ratio: 3 / 2; } .media--wide { aspect-ratio: 16 / 9; }
.media--natural img { height: auto; }
.has-hover-effects .media img { transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.has-hover-effects a:hover .media img, .has-hover-effects .card:hover .media img { transform: scale(1.03); }
.ab-placeholder { width: 100%; height: 100%; color: var(--color-text); }

/* Grids */
.grid { display: grid; gap: var(--grid-gap); grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); }
@media (max-width: 989px) { .grid { grid-template-columns: repeat(min(var(--columns, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 749px) { .grid { grid-template-columns: repeat(var(--columns-mobile, 1), minmax(0, 1fr)); } }
.section-heading { margin-bottom: clamp(2rem, 4vw, 3.5rem); }

/* Cards */
.card { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: var(--card-radius);
  border: var(--card-border-width) solid var(--color-border); background: var(--color-background); box-shadow: var(--card-shadow);
  transition: transform .3s ease, box-shadow .3s ease; }
.card--plain { padding: 0; border: 0; box-shadow: none; background: transparent; }
.has-hover-effects .card:not(.card--plain):hover { transform: translateY(-3px); }
.card > .media { margin: -1.5rem -1.5rem .25rem; border-radius: var(--card-radius) var(--card-radius) 0 0; }
.card--plain > .media { margin: 0 0 .25rem; border-radius: var(--media-radius); }
.card h3 { margin-bottom: .25rem; }
.card .icon { width: 2.25rem; height: 2.25rem; color: var(--color-accent); }

/* Header */
.announcement { font-size: .875rem; text-align: center; padding: .6rem var(--page-gutter); }
.announcement a { text-underline-offset: .2em; }
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--color-border); }
.site-header--sticky { position: sticky; top: 0; }
.site-header--transparent:not(.is-scrolled) { background: transparent; border-color: transparent; }
.site-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 4.5rem; }
.site-header__logo { font-family: var(--font-heading); font-weight: var(--heading-weight); font-size: 1.35rem; text-decoration: none; letter-spacing: var(--heading-letter-spacing); }
.site-header__logo img { width: var(--logo-width); height: auto; }
.site-header__nav { margin-left: auto; }
.site-header__nav ul { display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-header__nav a { text-decoration: none; font-size: .95rem; padding-block: .5rem; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s ease; }
.site-header__nav a:hover, .site-header__nav a[aria-current="page"] { background-size: 100% 1px; }
.site-header__menu { display: none; margin-left: auto; }
.site-header__menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.site-header__menu summary::-webkit-details-marker { display: none; }
.site-header__drawer { position: absolute; left: 0; right: 0; top: 100%; padding: 1rem var(--page-gutter) 2rem; border-bottom: 1px solid var(--color-border); }
.site-header__drawer ul { list-style: none; margin: 0; padding: 0; }
.site-header__drawer a { display: block; padding: .85rem 0; font-size: 1.25rem; font-family: var(--font-heading); text-decoration: none; border-bottom: 1px solid var(--color-border); }
@media (max-width: 989px) {
  .site-header__nav, .site-header__cta { display: none; }
  .site-header__menu { display: block; }
}

/* Hero */
.hero { position: relative; display: grid; overflow: hidden; }
.hero--full { min-height: 100svh; } .hero--large { min-height: 82svh; } .hero--medium { min-height: 60svh; } .hero--small { min-height: 42svh; } .hero--adapt { min-height: 0; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media svg { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, var(--overlay, 0)); }
.hero__content { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: var(--hero-v, center); padding-block: clamp(4rem, 10vw, 8rem); }
.hero--has-media .hero__content { color: #fff; }
.hero--has-media .hero__content .button:not(.button--secondary) { background: #fff; color: #111; border-color: #fff; }
.hero--has-media .hero__content .button--secondary { color: #fff; border-color: #fff; }
.hero__content .measure { max-width: 48rem; }
.hero__content.text-center { align-items: center; }
.hero__content.text-right { align-items: flex-end; }
.hero--split { grid-template-columns: 1fr 1fr; align-items: center; }
.hero--split .hero__media { position: relative; height: 100%; min-height: 60svh; }
.hero--split .hero__media::after { display: none; }
.hero--split .hero__content { color: inherit; padding-inline: clamp(1.5rem, 5vw, 5rem); }
@media (max-width: 749px) { .hero--split { grid-template-columns: 1fr; } .hero--split .hero__media { min-height: 50svh; order: -1; } }

/* Image with text */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__media { order: 2; }
@media (max-width: 749px) { .split { grid-template-columns: 1fr; } .split--reverse .split__media, .split--mobile-text-first .split__media { order: 2; } }

/* Testimonials */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 1.25rem; font-family: var(--font-heading); font-size: 1.35rem; line-height: 1.35; }
.quote figcaption { font-size: .9rem; color: var(--color-muted); }
.quote--large blockquote { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem); }

/* FAQ */
.faq { border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; list-style: none; font-family: var(--font-heading); font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.5rem; line-height: 1; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .rte { padding-bottom: 1.25rem; color: var(--color-muted); }

/* Stats */
.stat__value { font-family: var(--font-heading); font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4rem); line-height: 1; color: var(--color-accent); }
.stat__label { margin-top: .5rem; color: var(--color-muted); }

/* Logos */
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(2rem, 5vw, 4rem); }
.logos img { height: 2.25rem; width: auto; filter: grayscale(1); opacity: .7; transition: opacity .2s; }
.logos img:hover { opacity: 1; }

/* Gallery */
.gallery-grid { columns: var(--columns, 3) 16rem; column-gap: var(--grid-gap); }
.gallery-grid > * { break-inside: avoid; margin-bottom: var(--grid-gap); }
.gallery-grid--grid { columns: auto; display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); gap: var(--grid-gap); }
.gallery-grid--grid > * { margin: 0; }
@media (max-width: 749px) { .gallery-grid--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gallery-item { display: block; }
.gallery-item figcaption { margin-top: .5rem; font-size: .875rem; color: var(--color-muted); }
.gallery-gate { max-width: 28rem; margin-inline: auto; text-align: center; }

/* Video */
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--media-radius); overflow: hidden; background: #000; }
.video-frame iframe, .video-frame video { width: 100%; height: 100%; border: 0; }

/* Forms */
.form { display: grid; gap: 1rem; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 749px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field label { font-size: .875rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: .85rem 1rem; border-radius: var(--input-radius); border: 1px solid var(--color-border);
  background: var(--color-background); color: var(--color-text); font: inherit;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 1px; border-color: transparent; }
.form__notice { padding: 1rem 1.25rem; border-radius: var(--input-radius); background: rgba(var(--color-accent-rgb), .1); }
.form__notice--error { background: rgba(200, 30, 30, .1); }
.newsletter { display: flex; gap: .5rem; max-width: 28rem; }
.text-center .newsletter { margin-inline: auto; }
.newsletter input { flex: 1; }

/* Footer */
.site-footer { padding-block: clamp(3rem, 6vw, 5rem) 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2.5rem; }
@media (max-width: 749px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { text-decoration: none; color: var(--color-muted); }
.site-footer a:hover { color: var(--color-text); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); font-size: .875rem; color: var(--color-muted); }
.social { display: flex; gap: .75rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.social a { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--color-border); color: var(--color-text); font-size: .75rem; font-weight: 600; }

/* 404 */
.not-found { text-align: center; padding-block: clamp(4rem, 12vw, 10rem); }

/* Motion levels */
.no-scroll-motion [data-ab-anim] { opacity: 1 !important; transform: none !important; clip-path: none !important; }

.sample-caption { position: absolute; z-index: 1; bottom: .75rem; left: .75rem; max-width: calc(100% - 1.5rem); padding: .35rem .6rem; background: #fff; color: #222; font-size: .65rem; line-height: 1.4; }
.split__media .media, .block-image .media { position: relative; }
