/**
 * Shared components: buttons, cards, section labels.
 */

/* ===== Buttons ===== */
.ewby-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 17px;
  padding: 17px 28px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.ewby-btn:hover {
  transform: translateY(-1px);
}

.ewby-btn:active {
  transform: translateY(0);
}

.ewby-btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--color-glow) 0 0 30px;
}

.ewby-btn--primary:hover {
  color: var(--color-white);
  box-shadow: var(--color-glow) 0 0 40px;
}

.ewby-btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-weight: 600;
}

.ewby-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.ewby-btn--white {
  background: var(--color-white);
  color: var(--color-primary-dark);
  font-weight: 800;
}

.ewby-btn--white:hover {
  color: var(--color-primary-dark);
  box-shadow: rgba(255, 255, 255, 0.3) 0 0 20px;
}

.ewby-btn--sm {
  font-size: 14px;
  padding: 12px 20px;
}

/* ===== Section Label ===== */
.ewby-section-label {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  color: var(--color-primary);
  display: block;
  margin-bottom: var(--space-sm);
}

/* ===== Cards ===== */
.ewby-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.ewby-card--accent {
  background: var(--color-card-accent);
  border-color: rgba(47, 123, 255, 0.3);
}

/* ===== Icons (Phosphor) ===== */
.ewby-icon {
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
  flex-shrink: 0;
}

/* ===== Badge/Pill ===== */
.ewby-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(47, 123, 255, 0.4);
  background: rgba(47, 123, 255, 0.08);
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: rgb(159, 192, 255);
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.ewby-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: var(--color-primary) 0 0 8px;
}

/* ===== Location Pills ===== */
.ewby-pill {
  display: inline-block;
  border: 1px solid var(--color-border-light);
  padding: 8px 15px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  color: var(--color-text-body);
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease;
}

.ewby-pill:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-text);
}

.ewby-pill--active {
  background: rgba(47, 123, 255, 0.14);
  border-color: rgba(47, 123, 255, 0.4);
  font-weight: 600;
  color: rgb(159, 192, 255);
}

.ewby-pill--active:hover {
  background: rgba(47, 123, 255, 0.22);
  color: rgb(159, 192, 255);
}

/* ===== Stats ===== */
.ewby-stat__number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-4xl);
  color: var(--color-white);
}

.ewby-stat__accent {
  color: var(--color-primary);
}

.ewby-stat__label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* ===== Stars ===== */
.ewby-stars {
  color: var(--color-primary);
  font-size: 15px;
  letter-spacing: 2px;
}

/* ===== Header ===== */
.ewby-header {
  border-bottom: 1px solid var(--color-border);
}

.ewby-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.ewby-header__brand {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: var(--color-text);
}

.ewby-header__logo {
  display: flex;
  align-items: center;
  color: var(--color-primary);
  filter: drop-shadow(0 0 10px rgba(47, 123, 255, 0.45));
}

.ewby-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ewby-header__brand-top {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.365em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-right: -0.365em;
}

.ewby-header__brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 3px;
}

.ewby-header__nav {
  display: flex;
  align-items: center;
}

.ewby-header__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-base);
  font-weight: 500;
}

.ewby-header__menu li a {
  color: var(--color-text-body);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ewby-header__menu li a:hover {
  color: var(--color-text);
}

/* Dropdowns */
.ewby-header__menu > li {
  position: relative;
}

.ewby-header__menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  opacity: 0.55;
}

.ewby-header__menu > li.menu-item-has-children::after {
  content: "";
  position: absolute;
  left: -20px;
  right: -20px;
  top: 100%;
  height: 20px;
}

.ewby-header__menu .sub-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translate(-50%, 8px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 430px;
  padding: 10px;
  margin: 0;
  list-style: none;
  background: var(--color-card);
  border: 1px solid var(--color-border-light);
  border-radius: 14px;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.55),
    0 0 30px rgba(47, 123, 255, 0.08);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
  z-index: 1200;
}

.ewby-header__menu > li:hover > .sub-menu,
.ewby-header__menu > li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.ewby-header__menu .sub-menu li {
  min-width: 0;
}

.ewby-header__menu .sub-menu li a {
  display: block;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13.5px;
  line-height: 1.3;
}

.ewby-header__menu .sub-menu li a:hover {
  background: rgba(47, 123, 255, 0.13);
  color: var(--color-text);
}

.ewby-header__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ewby-header__phone {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-text);
  text-decoration: none;
}

.ewby-header__phone:hover {
  color: var(--color-primary);
}

.ewby-header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
}

.ewby-header__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* Mobile header */
@media (max-width: 1024px) {
  .ewby-header__nav {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 1000;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  .ewby-header__nav--open {
    display: flex;
  }

  .ewby-header__menu {
    flex-direction: column;
    gap: 2rem;
    font-size: 1.5rem;
  }

  .ewby-header__menu .sub-menu {
    display: none;
  }

  .ewby-header__menu > li.menu-item-has-children > a::after {
    display: none;
  }

  .ewby-header__actions {
    display: none;
  }

  .ewby-header__toggle {
    display: flex;
  }
}

/* ===== Footer ===== */
.ewby-footer {
  margin-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  background:
    radial-gradient(ellipse 620px 190px at 18% 0%, rgba(47, 123, 255, 0.07), transparent 70%);
}

.ewby-footer__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-3xl) var(--container-padding) 44px;
}

.ewby-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 0.9fr 0.8fr 1.1fr;
  gap: 34px;
}

.ewby-footer__brand {
  padding-right: 1rem;
}

.ewby-footer__logo-row {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 16px;
  text-decoration: none;
}

.ewby-footer__logo-icon {
  display: flex;
  align-items: center;
  color: var(--color-primary);
}

.ewby-footer__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.ewby-footer__brand-top {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-right: -0.35em;
}

.ewby-footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-top: 3px;
}

.ewby-footer__tagline {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0 0 12px;
  max-width: 250px;
}

.ewby-footer__creds {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  color: var(--color-text-dim);
  margin-bottom: 22px;
  max-width: 250px;
  line-height: 1.7;
}

.ewby-footer__cta {
  font-size: 13px;
  padding: 11px 18px;
}

.ewby-footer__col-heading {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  text-transform: uppercase;
  display: block;
  margin-bottom: 14px;
}

.ewby-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: var(--text-base);
  color: var(--color-text-body);
}

.ewby-footer__links--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 16px;
  row-gap: 9px;
}

.ewby-footer__links--split li {
  min-width: 0;
}

.ewby-footer__links a {
  color: var(--color-text-body);
  text-decoration: none;
  transition: color 0.15s ease;
}

.ewby-footer__links a:hover {
  color: var(--color-primary);
}

.ewby-footer__bottom {
  padding: 20px 0 0;
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--color-text-dim);
}

.ewby-footer__bottom a {
  color: var(--color-text-dim);
}

.ewby-footer__bottom a:hover {
  color: var(--color-text-body);
}

/* Responsive footer */
@media (max-width: 1024px) {
  .ewby-footer__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .ewby-footer__brand {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }
}

@media (max-width: 768px) {
  .ewby-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .ewby-footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .ewby-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* ===== 404 Page ===== */
.ewby-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--space-3xl) var(--container-padding);
}

.ewby-404__inner {
  max-width: 520px;
}

.ewby-404__heading {
  font-size: var(--text-5xl);
  margin-bottom: var(--space-md);
}

.ewby-404__text {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.ewby-404__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Ghost button (used on gradient CTA sections site-wide) */
.ewby-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
  font-weight: 600;
  font-size: 17px;
  padding: 17px 30px;
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: background 0.2s ease;
}

.ewby-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.22);
  color: var(--color-white);
}

/* ===== FAQ (shared component: block + CPT templates) ===== */
.ewby-faq {
  padding: 12px var(--container-padding) var(--space-3xl);
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
}

.ewby-faq__sidebar {
  position: sticky;
  top: 2rem;
  align-self: start;
}

.ewby-faq__heading {
  font-size: 2.5rem;
  line-height: 1.05;
  margin: var(--space-sm) 0 var(--space-md);
}

.ewby-faq__subtext {
  font-size: var(--text-md);
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0 0 22px;
  max-width: 280px;
}

.ewby-faq__list {
  display: flex;
  flex-direction: column;
}

.ewby-faq__item {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 22px 0;
}

.ewby-faq__item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ewby-faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  list-style: none;
  gap: 1rem;
}

.ewby-faq__question::-webkit-details-marker {
  display: none;
}

.ewby-faq__question span:first-child {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.ewby-faq__toggle {
  color: var(--color-primary);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(47, 123, 255, 0.3));
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}

.ewby-faq__item[open] .ewby-faq__toggle {
  filter: drop-shadow(0 0 12px rgba(47, 123, 255, 0.8))
    drop-shadow(0 0 4px rgba(47, 123, 255, 0.5));
  transform: scale(1.2);
}

.ewby-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  overflow: hidden;
}

.ewby-faq__item[open] .ewby-faq__answer {
  grid-template-rows: 1fr;
}

.ewby-faq__answer-inner {
  overflow: hidden;
}

.ewby-faq__answer p {
  font-size: 14.5px;
  color: var(--color-text-muted);
  margin: 0;
  line-height: 1.55;
  max-width: 640px;
  padding-top: 8px;
}

@media (max-width: 768px) {
  .ewby-faq {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .ewby-faq__sidebar {
    position: static;
  }
}

