/* LIBELAMEDIA — brand tokens: black / white / yellow, Lato typeface (matches live site + embeds) */
:root {
  --black: #000000;
  --near-black: #111111;
  --white: #ffffff;
  --yellow: #ffff00;
  --gray-text: #444444;
  --gray-line: #e2e2e2;
  --gray-bg: #f7f7f7;
  --max-width: 1200px;
  --font: 'Lato', Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--near-black);
  background: var(--white);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--black);
}

.brand-mark img { height: 20px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--black);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: var(--yellow);
}

.lang-switch {
  border: 1.5px solid var(--black) !important;
  border-radius: 999px;
  padding: 4px 12px !important;
  font-size: 13px !important;
}

.lang-switch:hover,
.lang-switch:focus-visible {
  background: var(--black);
  color: var(--white);
  border-color: var(--black) !important;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 78vh;
  min-height: 460px;
  max-height: 760px;
  overflow: hidden;
}

.hero iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The hero video already shows the LIBELA MEDIA wordmark + tagline visually.
   This H1 carries the same copy for SEO/screen readers without duplicating it on screen. */
.hero h1 {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Stat grid ---------- */
.stats-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.stat h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 12px;
}

.stat p {
  margin: 0;
  color: var(--gray-text);
  font-size: 15px;
}

.stat strong { color: var(--black); }

.stat-source {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  color: #8a8a8a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.stat-source:hover,
.stat-source:focus-visible {
  color: var(--near-black);
}

/* ---------- Intro ---------- */
.intro-section {
  background: var(--black);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}

.intro-logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 24px;
}

.intro-logo iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.intro-section h2 {
  color: var(--white);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  max-width: 820px;
  margin: 0 auto 24px;
  line-height: 1.4;
}

.intro-section h2 .accent {
  display: inline-block;
  color: var(--yellow);
  font-weight: 900;
  font-size: 1.15em;
  margin-top: 8px;
}

.intro-section .intro-lead {
  color: var(--white);
  font-weight: 900;
  font-size: 22px;
  max-width: 640px;
  margin: 0 auto 8px;
}

.intro-section .intro-sub {
  color: var(--gray-line);
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Retailer strip ---------- */
.retailers-section {
  padding: 40px 0 72px;
}

.retailers-section .eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-bottom: 32px;
}

.retailers-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
}

.retailers-grid img {
  height: 34px;
  width: auto;
}

/* ---------- Services intro band ---------- */
.services-intro-band {
  background: var(--black);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}

.services-intro-band h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  max-width: 760px;
  margin: 0 auto 8px;
}

.services-intro-band h2 .accent { color: var(--yellow); }

.services-intro-band .section-sub {
  color: var(--gray-line);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Services ---------- */
.services-section {
  padding: 40px 0;
}

.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--gray-line);
}

.service-block:first-of-type { border-top: none; }

.service-block.reverse .service-media { order: 2; }
.service-block.reverse .service-copy { order: 1; }

.service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--white);
}

.service-media.tall { aspect-ratio: 3 / 4; }
.service-media.square { aspect-ratio: 1 / 1; }

.service-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.service-copy h3 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  margin: 0 0 16px;
}

.service-copy p {
  color: var(--gray-text);
  font-size: 16px;
  margin: 0 0 24px;
}

.btn-demo {
  display: inline-block;
  border: 2px solid var(--black);
  color: var(--black);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-demo:hover,
.btn-demo:focus-visible {
  background: var(--black);
  color: var(--yellow);
}

/* ---------- Demos hub ---------- */
.demos-section {
  padding: 72px 0 88px;
}

.demos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
}

.demo-card {
  border: 1px solid var(--gray-line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.demo-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.demo-card-media {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.demo-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.demo-card:hover .demo-card-media img {
  transform: scale(1.04);
}

.demo-card-body {
  padding: 28px 28px 32px;
}

.demo-card-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin: 0 0 8px;
}

.demo-card-body h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 12px;
}

.demo-card-body p {
  color: var(--gray-text);
  font-size: 15px;
  margin: 0 0 24px;
}

.btn-view-demo {
  display: inline-block;
  background: var(--black);
  border: 2px solid var(--black);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-view-demo:hover,
.btn-view-demo:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

/* ---------- Demo promo band ---------- */
.demo-promo {
  background: var(--gray-bg);
  padding: 72px 0;
}

.demo-promo .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.demo-promo-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
}

.demo-promo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.demo-promo-media:hover img { transform: scale(1.04); }

.demo-promo-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--yellow);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
}

.demo-promo-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin: 0 0 8px;
}

.demo-promo-copy h3 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 900;
  margin: 0 0 16px;
}

.demo-promo-copy p {
  color: var(--gray-text);
  font-size: 16px;
  margin: 0 0 28px;
}

/* ---------- Why us ---------- */
.why-section {
  background: var(--black);
  color: var(--white);
  padding: 88px 0;
  text-align: center;
}

.why-section h2 {
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
  margin: 0 0 40px;
}

.why-section p {
  max-width: 640px;
  margin: 0 auto 16px;
  font-size: 17px;
}

.why-section strong { color: var(--white); }
.why-section .accent { color: var(--yellow); }

.about-tag {
  margin-top: 64px;
}

.about-tag .eyebrow {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--gray-line);
  margin-bottom: 20px;
}

.about-tag p {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 700;
  line-height: 1.3;
  max-width: 760px;
}

/* ---------- About us ---------- */
.about-section {
  padding: 88px 0;
}

.about-person {
  margin-bottom: 48px;
}

.about-person img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: 50% 15%;
  border-radius: 50%;
  margin-bottom: 28px;
}

.about-person h3 {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 4px;
}

.about-person .role {
  color: var(--gray-text);
  font-weight: 700;
  margin: 0 0 20px;
}

.about-bio p {
  color: var(--gray-text);
  font-size: 16px;
  margin: 0 0 16px;
  max-width: 760px;
}

.about-location {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 56px;
}

.about-location img {
  border-radius: 16px;
  width: 100%;
  height: auto;
}

.about-location h3 {
  font-size: 22px;
  font-weight: 900;
  margin: 0 0 8px;
}

.about-location p {
  color: var(--gray-text);
}

/* ---------- Next steps ---------- */
.next-steps-section {
  background: var(--gray-bg);
  padding: 88px 0;
}

.next-steps-section h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 56px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  border-top: 4px solid var(--yellow);
}

.step-card .step-number {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 12px;
}

.step-card p {
  color: var(--gray-text);
  font-size: 15px;
  margin: 0;
}

/* ---------- FAQ ---------- */
.faq-section {
  padding: 40px 0 88px;
}

.faq-section h2 {
  text-align: center;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 12px;
}

.faq-section .section-sub {
  text-align: center;
  color: var(--gray-text);
  max-width: 560px;
  margin: 0 auto 48px;
}

.faq-item {
  padding: 28px 0;
  border-top: 1px solid var(--gray-line);
  max-width: 820px;
  margin: 0 auto;
}

.faq-item:first-of-type { border-top: none; }

.faq-item h3 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 10px;
}

.faq-item p {
  color: var(--gray-text);
  font-size: 15px;
  margin: 0;
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--black);
  color: var(--white);
  padding: 88px 0;
  text-align: center;
}

.contact-section .eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

.contact-section h2 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  margin: 0 0 12px;
}

.contact-section .lead {
  color: var(--gray-line);
  margin: 0 0 40px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid var(--white);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.contact-links a:hover,
.contact-links a:focus-visible {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--black);
}

.contact-address {
  color: var(--gray-line);
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--gray-line);
  padding: 40px 0;
  border-top: 1px solid #222;
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.footer-brand img { height: 22px; width: auto; }

.social-links {
  display: flex;
  gap: 18px;
}

.social-links a {
  color: var(--white);
  text-decoration: none;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
  transition: fill 0.15s ease;
}

.social-links a:hover svg,
.social-links a:focus-visible svg {
  fill: var(--yellow);
}

.footer-copy {
  font-size: 13px;
  color: #888;
  width: 100%;
  text-align: center;
  margin-top: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block,
  .about-location,
  .demo-promo .wrap {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .service-block.reverse .service-media,
  .service-block.reverse .service-copy {
    order: initial;
  }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .site-header .wrap {
    flex-direction: column;
    height: auto;
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 8px;
  }
  .main-nav ul { gap: 18px; }
  .main-nav a { font-size: 13px; }
  .stats-grid { grid-template-columns: 1fr; }
  .about-person img { width: 160px; height: 160px; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}
