/* ============================================================
   Language Dropdown
   ============================================================ */

.lang-dropdown {
  position: relative;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 4px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #222525;
  transition: opacity 200ms ease;
  white-space: nowrap;
}

.lang-dropdown-btn:hover {
  opacity: 0.7;
}

.lang-dropdown-btn:focus-visible {
  outline: 2px solid #09406d;
  outline-offset: 2px;
}

.lang-chevron {
  transition: transform 200ms ease;
  flex-shrink: 0;
}

.lang-dropdown-btn[aria-expanded="true"] .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 150px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(9, 64, 109, 0.13), 0 1px 4px rgba(0, 0, 0, 0.06);
  z-index: 1000;
}

.lang-dropdown-btn[aria-expanded="true"] + .lang-dropdown-menu {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #222525;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: background 150ms ease, color 150ms ease;
}

.lang-option:hover {
  background: rgba(9, 64, 109, 0.07);
  color: #09406d;
  text-decoration: none;
}

.lang-option.lang-active {
  color: #09406d;
  font-weight: 700;
}

.lang-option img {
  flex-shrink: 0;
  border-radius: 2px;
}

/* Keep nav links vertically centered alongside the dropdown */
.nav-links {
  align-items: center;
}

/* Mobile/tablet: shown before hamburger, hidden on desktop */
.lang-switcher-mobile {
  margin-left: 16px;
  margin-right: 4px;
}

@media screen and (min-width: 992px) {
  .lang-switcher-mobile {
    display: none;
  }
}

@media screen and (max-width: 991px) {
  /* Hide dropdown from inside hamburger — it's already visible in the top bar */
  .nav-links .lang-dropdown {
    display: none;
  }

  .lang-dropdown-menu {
    right: 0;
    left: auto;
  }
}


/* ============================================================
   Contact Form
   ============================================================ */

.contact-form {
  max-width: 660px;
  margin: 48px auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}

.form-group label {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #222525;
}

.form-input {
  padding: 12px 16px;
  border: 1.5px solid rgba(34, 37, 37, 0.2);
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #222525;
  background: #fff;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: rgba(34, 37, 37, 0.4);
}

.form-input:focus {
  border-color: #09406d;
  box-shadow: 0 0 0 3px rgba(9, 64, 109, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-consent-group {
  margin-bottom: 22px;
}

.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(34, 37, 37, 0.85);
  cursor: pointer;
}

.form-consent-checkbox {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: #09406d;
  cursor: pointer;
}

.form-consent-label a {
  color: #09406d;
  text-decoration: underline;
}

.form-submit {
  margin-top: 4px;
}

.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-feedback {
  padding: 14px 18px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  margin-bottom: 16px;
  display: none;
}

.form-feedback.form-success {
  background: #edfaf1;
  border: 1px solid #4caf50;
  color: #2e7d32;
}

.form-feedback.form-error {
  background: #fdecea;
  border: 1px solid #e53935;
  color: #b71c1c;
}

@media screen and (max-width: 767px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}


/* ============================================================
   Footer email link
   ============================================================ */

.footer-email a {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 150ms ease;
}

.footer-email a:hover {
  opacity: 1;
  text-decoration: none;
}


/* ============================================================
   Footer legal links (Cookies / Privacy)
   ============================================================ */

.footer-legal-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-legal-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  color: rgba(34, 37, 37, 0.55);
  text-decoration: none;
  cursor: pointer;
  transition: color 150ms ease;
}

.footer-legal-link:hover {
  color: #09406d;
  text-decoration: underline;
}

/* Keep the legal links clear of the fixed back-to-top button (48px, 24px offset from viewport corner) */
.footer {
  padding-bottom: 96px;
}


/* ============================================================
   Blog — listing page
   ============================================================ */

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

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(9, 64, 109, 0.07), 0 1px 2px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  transition: transform 220ms cubic-bezier(.25,.46,.45,.94), box-shadow 220ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(9, 64, 109, 0.13), 0 2px 6px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
}

.blog-card:focus-visible {
  outline: 2px solid #09406d;
  outline-offset: 3px;
}

.blog-card-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: #dce8f0;
}

.blog-card-img-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.blog-card:hover .blog-card-img-wrap img {
  transform: scale(1.04);
}

.blog-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 28px 28px;
}

.blog-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(9, 64, 109, 0.09);
  color: #09406d;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border-radius: 20px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.blog-card-title {
  font-family: 'Zilla Slab', serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.35;
  color: #1a1e1e;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}

.blog-card-excerpt {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(34, 37, 37, 0.7);
  flex: 1;
  margin: 0 0 18px;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: rgba(34, 37, 37, 0.5);
}

.blog-card-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

@media screen and (max-width: 991px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 767px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }
}


/* ============================================================
   Blog — article page
   ============================================================ */

.article-hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 28, 50, 0.88) 0%,
    rgba(6, 28, 50, 0.55) 45%,
    rgba(6, 28, 50, 0.18) 100%
  );
}

.article-hero-content {
  position: relative;
  z-index: 1;
  padding: 56px 0 52px;
  color: #fff;
  max-width: 780px;
}

.article-hero-content .subheading {
  color: rgba(255,255,255,0.65);
  margin-bottom: 14px;
}

.article-hero-content h1 {
  color: #fff;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}

.article-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.article-hero-tag {
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.25);
}

.article-hero-sep {
  opacity: 0.4;
}

.article-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.article-body {
  font-family: 'DM Sans', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: #2a2e2e;
}

.article-lead {
  font-size: 20px;
  line-height: 1.6;
  color: #1a1e1e;
  font-weight: 500;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(9, 64, 109, 0.12);
}

.article-body h2 {
  font-family: 'Zilla Slab', serif;
  font-size: 26px;
  font-weight: 500;
  color: #09406d;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 48px 0 16px;
}

.article-body h3 {
  font-family: 'Zilla Slab', serif;
  font-size: 19px;
  font-weight: 500;
  color: #1a1e1e;
  margin: 28px 0 10px;
}

.article-body p {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin: 0 0 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  font-weight: 700;
  color: #1a1e1e;
}

.article-callout {
  background: rgba(9, 64, 109, 0.06);
  border-left: 4px solid #09406d;
  border-radius: 0 10px 10px 0;
  padding: 24px 28px;
  margin: 36px 0;
}

.article-callout h3 {
  font-family: 'Zilla Slab', serif;
  font-size: 17px;
  font-weight: 500;
  color: #09406d;
  margin: 0 0 12px;
}

.article-callout ul {
  margin: 0;
  padding-left: 20px;
}

.article-callout li {
  color: #2a2e2e;
  font-size: 15px;
  margin-bottom: 6px;
}

.article-cta-box {
  background: #09406d;
  border-radius: 14px;
  padding: 40px 44px;
  margin-top: 56px;
  text-align: center;
  color: #fff;
}

.article-cta-box h2 {
  font-family: 'Zilla Slab', serif;
  font-size: 24px;
  font-weight: 500;
  color: #fff;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.article-cta-box p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin: 0 0 24px;
  line-height: 1.6;
}

.article-cta-box .button {
  background: #fff;
  color: #09406d;
  font-weight: 700;
}

.article-cta-box .button:hover {
  opacity: 0.9;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #09406d;
  text-decoration: none;
  margin-bottom: 40px;
  opacity: 0.8;
  transition: opacity 150ms ease;
}

.blog-back-link:hover {
  opacity: 1;
  text-decoration: none;
}

@media screen and (max-width: 767px) {
  .article-hero {
    min-height: 360px;
  }
  .article-hero-content h1 {
    font-size: 28px;
  }
  .article-wrap {
    padding: 40px 20px 60px;
  }
  .article-body {
    font-size: 16px;
  }
  .article-lead {
    font-size: 17px;
  }
  .article-cta-box {
    padding: 28px 24px;
  }
}


/* ============================================================
   Model cards — subtitle max-width
   ============================================================ */

.card-body-large .card-desc {
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
  color: #4a5568;
  line-height: 1.6;
}


/* ============================================================
   Setting up — two images stacked left, all steps right
   ============================================================ */

.setup-images {
  display: flex;
  flex-direction: column;
}

.setup-image-gap {
  margin-top: 24px;
}

/* ============================================================
   How to use it — redesigned tabs
   ============================================================ */

.how-panel .video-lightbox-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
}

.how-panel .video-lightbox-wrapper .thumbnail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.how-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.how-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 100px;
  border: 1.5px solid rgba(9, 64, 109, 0.25);
  background: transparent;
  color: #09406d;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.how-tab:hover,
.how-tab.how-tab-active {
  background: #09406d;
  color: #fff;
  border-color: #09406d;
}

.how-panel {
  display: none;
}

.how-panel.how-panel-active {
  display: block;
}

.how-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.how-text .subheading {
  margin-bottom: 8px;
}

.how-text h3 {
  margin-bottom: 14px;
}

.how-desc {
  font-size: 15px;
  line-height: 1.7;
  color: #4a5568;
  margin-bottom: 24px;
}

@media screen and (max-width: 767px) {
  .how-panel-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   RC setup section — sticky video
   ============================================================ */

.rc-steps-row {
  align-items: flex-start !important;
}

.rc-video-sticky {
  position: sticky;
  top: 80px;
}

@media screen and (max-width: 991px) {
  .rc-video-sticky {
    position: static;
  }
}

/* ============================================================
   Setting up — step list (circle → text → line, all viewports)
   ============================================================ */

.icon-list.icon-list-vertical {
  grid-row-gap: 0 !important;
}

.icon-list.icon-list-vertical li.row.row-no-wrap.vertical.center {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 8px;
  margin-bottom: 0 !important;
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(9, 64, 109, 0.1);
}

/* Blue brand circle */
.icon-list.icon-list-vertical .circle.list-circle.bg-white {
  background-color: #09406d !important;
  border-color: transparent;
  flex-shrink: 0;
  margin-right: 0;
  margin-bottom: 0 !important;
}

.icon-list.icon-list-vertical .circle.list-circle.bg-white .circle-number {
  color: #fff;
}

/* Step text */
.icon-list.icon-list-vertical li > div {
  font-size: 15px;
  line-height: 1.6;
  color: #2d3748;
}

@media screen and (max-width: 767px) {
  .setup-image-gap {
    margin-top: 16px;
  }
}

/* Contact page: top-align the three info columns */
.contact-info-grid.grid-thirds {
  align-items: start;
}

/* ── Scroll Reveal ─────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
