/* MeeruAI static shell — header / footer / demo dialog
 * Replaces the layout Astra used to provide. Loaded after custom-style.css so it
 * inherits the design tokens (--accent, --fg, --bg, etc.) but overrides any
 * Astra-specific selectors that no longer apply.
 */

/* Ribbon + header stick together at the top of the viewport */
.site-sticky-top {
  position: sticky;
  top: 0;
  z-index: 50;
}

/* -------- Announcement ribbon (above header) -------- */
.site-announcement-ribbon {
  background-color: #f16922;
  color: #000;
  width: 100%;
}

.site-announcement-ribbon_inner {
  padding: 9px 24px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 0.25em;
  row-gap: 0.2em;
  font-size: clamp(13px, 2.45vw, 15px);
  font-weight: 500;
  line-height: 1.45;
}

.site-announcement-ribbon_text {
  color: inherit;
}

.site-announcement-ribbon_link {
  color: inherit;
  text-underline-offset: 2px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

.site-announcement-ribbon_link:hover {
  opacity: 0.88;
}

.site-announcement-ribbon_link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

button.site-announcement-ribbon_link {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* Whole-ribbon click target: turns the inner row into a full-width button
 * while preserving the existing look. Paired with markup change in each page. */
.site-announcement-ribbon_btn {
  width: 100%;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s ease;
}

.site-announcement-ribbon_btn:hover {
  opacity: 0.92;
}

.site-announcement-ribbon_btn:focus-visible {
  outline: 2px solid #000;
  outline-offset: -2px;
}

.site-announcement-ribbon_btn .site-announcement-ribbon_link {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-announcement-ribbon_inner {
    padding: 10px 16px;
  }
}

/* -------- Header -------- */
.site-header {
  background: rgba(253, 253, 252, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.site-header .header-logo img {
  display: block;
  height: 28px;
  width: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}

.site-nav a:hover { color: var(--accent); }

.site-header .header_cta_info { flex-shrink: 0; }

@media (max-width: 900px) {
  .site-header_inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .site-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .site-nav ul { gap: 18px; }
  .site-nav a { font-size: 14px; }
}

/* -------- Footer -------- */
.site-footer {
  background: #fff;
  color: #000;
  border-top: 1px solid var(--border);
  margin-top: 15px;
}

.site-footer h5,
.site-footer .widget_heading { color: #000; font-weight: 600; margin-bottom: 16px; }
.site-footer p, .site-footer a { color: #000; }
.site-footer a:hover { color: var(--accent); }

.footer-widgets-sec { padding: 64px 24px 40px; }

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 48px;
  align-items: start;
}

.footer-logo img { height: 25px; width: auto; margin-bottom: 16px; }

.footer_certify_list ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.footer_certify_list li {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px;
  border-radius: 8px;
}

.footer_certify_list img {
  height: 50px;
  width: auto;
  display: block;
  filter: brightness(0.95);
}

.social_media ul {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social_media_box {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  /* background: var(--accent); */
  background: color-mix(in oklab, var(--accent) 8%, transparent);;
  color: #fff;
  transition: background .2s ease, transform .2s ease;
  border: 1px solid color-mix(in oklab, var(--accent) 25%, transparent);;
}

/* .social_media_box:hover { background: var(--accent); transform: translateY(-2px); } */

.footer-copyright-sec {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 24px;
}

.footer_bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.footer_bottom p { margin: 0; color: #000; }
.footer_terms a { margin: 0 6px; }
footer .footer-widgets .footer-widget .social_media ul li a svg {
  color: #f86e42;
}


/* -------- Demo dialog -------- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 20, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.dialog-backdrop.open { display: flex; }

.dialog-backdrop .dialog {
  background: var(--card);
  color: var(--fg);
  border-radius: 16px;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.dialog-backdrop .x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.05);
  font-size: 18px;
  color: var(--fg);
  cursor: pointer;
  border: 0;
}

.dialog-backdrop .x:hover { background: rgba(0,0,0,0.1); }

.dialog-backdrop h3 { margin: 0 0 8px; font-size: 22px; }
.dialog-backdrop .desc { color: var(--muted); margin-bottom: 20px; font-size: 14px; }

.demo-form p { margin: 0 0 14px; }

.demo-form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}

.demo-form input,
.demo-form textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.demo-form input:focus,
.demo-form textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(248, 110, 66, 0.15);
}

.demo-form .actions { margin-top: 20px; }
.demo-form .form-status { font-size: 13px; color: var(--muted); }

/* -------- Skip link / a11y -------- */
.site-main:focus { outline: 0; }
