/* RemoteDesk Header + Footer — WordPress bundle (matches Next.js site) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700&display=swap');

:root {
  --rd-primary: #00e05c;
  --rd-primary-dark: #00b349;
  --rd-page: #f9f9f8;
  --rd-black: #000000;
  --rd-max-width: 80rem;
  --rd-font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --rd-font-heading: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --rd-header-height: 4rem;
}

@media (min-width: 768px) {
  :root {
    --rd-header-height: 5rem;
  }
}

/* Isolate from Lexend / theme styles */
.rd-site-header {
  display: block;
  font-family: var(--rd-font-sans);
  box-sizing: border-box;
  isolation: isolate;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  max-width: 100vw !important;
  z-index: 99999 !important;
  min-height: var(--rd-header-height);
  border-bottom: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-font-smoothing: antialiased;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  clear: both;
  overflow: visible !important;
  transform: none !important;
  line-height: normal !important;
}

.rd-site-footer {
  font-family: var(--rd-font-sans);
  box-sizing: border-box;
}

.rd-site-header *,
.rd-site-footer *,
.rd-site-header *::before,
.rd-site-footer *::after {
  box-sizing: border-box;
}

.rd-site-header a,
.rd-site-header button {
  font-family: inherit;
  line-height: normal;
}

.rd-site-header ul,
.rd-site-header ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rd-site-header img {
  max-width: none;
  border: none;
  vertical-align: top;
}

.rd-site-header h3,
.rd-site-header h4,
.rd-site-header p {
  margin: 0;
  padding: 0;
  font-weight: inherit;
}

.rd-page-container {
  width: 100%;
  max-width: var(--rd-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 2.5vw, 2rem);
  padding-right: clamp(1rem, 2.5vw, 2rem);
}

/* Offset main content — body overflow must stay visible or fixed header gets clipped */
html {
  scroll-padding-top: var(--rd-header-height);
}

body.rd-has-fixed-header {
  overflow: visible !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

body.rd-has-fixed-header.panel,
body.rd-has-fixed-header.uni-body {
  overflow: visible !important;
}

body.rd-has-fixed-header .main-area {
  padding-top: var(--rd-header-height) !important;
  overflow-x: clip;
  position: relative;
  z-index: 1;
}

body.admin-bar .rd-site-header {
  top: 32px;
}

body.admin-bar .main-area {
  padding-top: calc(var(--rd-header-height) + 32px) !important;
}

@media (max-width: 782px) {
  body.admin-bar .rd-site-header {
    top: 46px;
  }

  body.admin-bar .main-area {
    padding-top: calc(var(--rd-header-height) + 46px) !important;
  }
}

/* ========== HEADER STACK (bar + mega menu) ========== */
.rd-header-stack {
  position: relative;
  width: 100%;
}

/* ========== HEADER BAR ========== */
.rd-header-bar {
  width: 100% !important;
  max-width: 100% !important;
  position: relative !important;
  z-index: 2 !important;
  background: inherit !important;
  min-height: var(--rd-header-height) !important;
  height: var(--rd-header-height) !important;
  overflow: visible !important;
  border-bottom: 1px solid #f3f4f6 !important;
}

.rd-header-bar .rd-page-container {
  position: relative !important;
  z-index: 2 !important;
  height: 100% !important;
}

.rd-site-header nav {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.rd-header-inner {
  display: flex !important;
  height: var(--rd-header-height) !important;
  min-height: var(--rd-header-height) !important;
  max-height: var(--rd-header-height) !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
}

.rd-header-logo {
  display: flex !important;
  align-items: center !important;
  align-self: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  text-decoration: none !important;
}

.rd-header-logo img {
  height: 2rem !important;
  width: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  border: none !important;
}

@media (min-width: 768px) {
  .rd-header-logo img {
    height: 2.5rem !important;
  }
}

.rd-header-nav {
  display: none !important;
  align-items: stretch !important;
  align-self: stretch !important;
  gap: 0.25rem !important;
  flex: 1 1 auto !important;
  justify-content: center !important;
  min-width: 0 !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 1024px) {
  .rd-header-nav {
    display: flex !important;
  }
}

.rd-nav-item {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
  align-self: stretch !important;
  height: 100% !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rd-nav-trigger-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rd-nav-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0.75rem !important;
  font-family: var(--rd-font-sans) !important;
  font-size: clamp(0.875rem, 0.84rem + 0.08vw, 0.9375rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #1f2937 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  transition: color 0.2s ease !important;
}

.rd-nav-trigger:hover,
.rd-nav-item.is-open .rd-nav-trigger {
  color: var(--rd-primary) !important;
  background: transparent !important;
}

.rd-nav-trigger svg {
  width: 1rem !important;
  height: 1rem !important;
  margin: 0 0 0 0.25rem !important;
  padding: 0 !important;
  color: #9ca3af !important;
  flex-shrink: 0 !important;
  transition: color 0.2s ease !important;
}

.rd-nav-item.is-open .rd-nav-trigger svg,
.rd-nav-trigger:hover svg {
  color: var(--rd-primary) !important;
}

.rd-nav-underline {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: var(--rd-primary) !important;
  transform: scaleX(0) !important;
  transform-origin: left center !important;
  transition: transform 0.2s ease !important;
  pointer-events: none !important;
}

.rd-nav-item.is-open .rd-nav-underline {
  transform: scaleX(1) !important;
}

.rd-nav-link {
  display: flex !important;
  align-items: center !important;
  align-self: stretch !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 0.75rem !important;
  font-family: var(--rd-font-sans) !important;
  font-size: clamp(0.875rem, 0.84rem + 0.08vw, 0.9375rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #1f2937 !important;
  background: transparent !important;
  border: none !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}

.rd-nav-link:hover {
  color: var(--rd-primary) !important;
}

.rd-header-cta {
  display: none !important;
  align-self: center !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (min-width: 1024px) {
  .rd-header-cta {
    display: block !important;
  }
}

.rd-btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: var(--rd-primary);
  padding: 0.625rem 1.5rem;
  font-family: var(--rd-font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgb(0 224 92 / 0.2);
  transition: background 0.3s, box-shadow 0.3s;
}

.rd-btn-primary-sm:hover {
  background: var(--rd-primary-dark);
  color: #fff;
}

.rd-mobile-toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 0.5rem !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: #1f2937 !important;
  cursor: pointer !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

@media (min-width: 1024px) {
  .rd-mobile-toggle {
    display: none !important;
  }
}

.rd-mobile-toggle svg {
  width: 1.5rem !important;
  height: 1.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* GeneratePress / WP theme — stop global button & nav rules bleeding into header */
body.generatepress .rd-site-header button.rd-nav-trigger,
body.generatepress .rd-site-header button.rd-mobile-toggle,
body .rd-site-header .rd-header-nav button,
body .rd-site-header .rd-header-nav a.rd-nav-link {
  min-height: 0 !important;
  max-height: none !important;
  vertical-align: baseline !important;
  float: none !important;
}

body.generatepress .rd-site-header .rd-header-nav,
body.generatepress .rd-site-header .rd-header-inner,
body .rd-site-header .rd-header-nav,
body .rd-site-header .rd-header-inner {
  line-height: 1.25 !important;
}

body.generatepress .rd-site-header a.rd-header-logo,
body .rd-site-header a.rd-header-logo {
  line-height: 0 !important;
}

/* Mega menu — flush under header bar + hover bridge */
.rd-mega-flyout {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 100% !important;
  margin-top: -1px !important;
  width: 100%;
  max-width: 100vw;
  z-index: 1;
  pointer-events: none !important;
  transform: none !important;
}

.rd-mega-flyout.is-open .rd-mega-panel.is-active .rd-mega-shell {
  position: relative;
  pointer-events: none !important;
}

.rd-mega-flyout.is-open .rd-mega-panel.is-active .rd-mega-shell::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 0.75rem;
  pointer-events: auto;
  z-index: 2;
}

.rd-mega-flyout.is-open .rd-mega-panel.is-active .rd-mega-box {
  position: relative;
  pointer-events: auto !important;
}

/* Panel bridge: nav trigger → mega box */
.rd-mega-flyout.is-open .rd-mega-panel.is-active .rd-mega-box::before {
  content: '';
  position: absolute;
  top: -0.75rem;
  left: 0;
  right: 0;
  height: 0.75rem;
  pointer-events: auto;
}

.rd-mega-panel {
  display: none;
  width: 100%;
  max-width: 100vw;
  background: transparent;
}

.rd-mega-panel.is-active {
  display: block;
  animation: rd-mega-enter 0.22s ease forwards;
}

@keyframes rd-mega-enter {
  from {
    opacity: 0;
    transform: translateY(0);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.rd-mega-panel[hidden] {
  display: none !important;
}

.rd-mega-panel.is-active[hidden] {
  display: block !important;
}

.rd-mega-shell {
  padding: 0 0 1.25rem;
  width: 100%;
}

.rd-mega-box {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgb(229 231 235 / 0.8);
  background: #fff;
  box-shadow: 0 28px 70px -20px rgb(0 0 0 / 0.18);
  width: 100%;
}

.rd-mega-grid {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.rd-mega-grid--single {
  grid-template-columns: 1fr !important;
}

@media (min-width: 1024px) {
  .rd-mega-grid:not(.rd-mega-grid--single) {
    grid-template-columns: 1fr 300px;
  }
}

@media (min-width: 1280px) {
  .rd-mega-grid:not(.rd-mega-grid--single) {
    grid-template-columns: 1fr 340px;
  }
}

.rd-mega-box--full .rd-mega-main {
  border-radius: 1rem;
}

/* Two-column mega menu (Solutions, Industries) */
.rd-mega-box--two-col {
  background: var(--rd-page);
}

.rd-mega-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .rd-mega-two-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.rd-mega-col {
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .rd-mega-col {
    padding: 2rem;
  }

  .rd-mega-col + .rd-mega-col {
    border-left: 1px solid rgb(229 231 235 / 0.8);
  }
}

.rd-mega-col-head {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgb(229 231 235 / 0.7);
}

.rd-mega-col-head h4 {
  margin: 0;
  font-family: var(--rd-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #000;
}

.rd-mega-col-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rd-mega-compact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rd-mega-compact-link:hover {
  background: #fff;
  border-color: rgb(229 231 235 / 0.8);
  color: var(--rd-primary);
}

.rd-mega-compact-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: #9ca3af;
  transition: color 0.2s, transform 0.2s;
}

.rd-mega-compact-link:hover svg {
  color: var(--rd-primary);
  transform: translateX(2px);
}

.rd-mega-col-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgb(229 231 235 / 0.7);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--rd-primary);
  text-decoration: none;
}

.rd-mega-col-explore svg {
  width: 1rem;
  height: 1rem;
}

.rd-mega-main {
  background: var(--rd-page);
  padding: 1.5rem;
}

@media (min-width: 768px) {
  .rd-mega-main {
    padding: 2rem;
  }
}

.rd-mega-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgb(229 231 235 / 0.7);
}

.rd-mega-intro h3 {
  margin: 0 0 0.5rem;
  font-family: var(--rd-font-heading);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  color: #000;
}

.rd-mega-intro p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
}

.rd-mega-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  width: 100%;
}

@media (min-width: 640px) {
  .rd-mega-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .rd-mega-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rd-mega-link {
  display: block;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s;
  width: 100%;
  max-width: 100%;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}

.rd-mega-link:hover {
  background: #fff;
  border-color: rgb(229 231 235 / 0.8);
}

.rd-mega-link-title {
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #111827;
  white-space: normal !important;
}

.rd-mega-link:hover .rd-mega-link-title {
  color: var(--rd-primary);
}

.rd-mega-link-desc {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: #6b7280;
  white-space: normal !important;
}

.rd-mega-explore {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--rd-primary);
  text-decoration: none;
}

.rd-mega-featured {
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-top: 1px solid rgb(229 231 235 / 0.8);
  background: #fff;
}

@media (min-width: 1024px) {
  .rd-mega-featured {
    border-top: none;
    border-left: 1px solid rgb(229 231 235 / 0.8);
  }
}

.rd-mega-eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rd-primary);
}

.rd-mega-featured h4 {
  margin: 0 0 0.5rem;
  font-family: var(--rd-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: #000;
}

.rd-mega-featured p {
  margin: 0 0 1.25rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #4b5563;
}

.rd-mega-featured .rd-btn-primary-sm {
  width: 100%;
}

.rd-mega-featured-card {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(229 231 235 / 0.8);
  background: var(--rd-page);
}

.rd-mega-featured-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
}

.rd-mega-featured-icon {
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgb(0 224 92 / 0.15);
  color: var(--rd-primary);
}

.rd-mega-featured-icon svg {
  width: 1rem;
  height: 1rem;
}

.rd-mega-featured-bars {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rd-mega-featured-bars span {
  display: block;
  height: 0.5rem;
  border-radius: 9999px;
  background: rgb(229 231 235 / 0.9);
}

.rd-mega-featured-bars span:first-child {
  width: 85%;
}

.rd-mega-featured-bars span:last-child {
  width: 60%;
}

/* Mobile menu */
.rd-mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  max-width: 100vw;
  max-height: calc(100vh - var(--rd-header-height));
  overflow-y: auto;
  overflow-x: hidden;
  border-top: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 20px 40px rgb(0 0 0 / 0.1);
  z-index: 99998;
}

.rd-mobile-menu.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .rd-mobile-menu {
    display: none !important;
  }
}

.rd-mobile-menu-inner {
  padding: 1.5rem 1rem;
}

.rd-mobile-section {
  margin-bottom: 1.5rem;
}

.rd-mobile-section h4 {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f3f4f6;
  font-family: var(--rd-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
}

.rd-mobile-section h4 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
  text-decoration: none;
}

.rd-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-left: 0.5rem;
}

.rd-mobile-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
  text-decoration: none;
}

.rd-mobile-links a:hover {
  color: var(--rd-primary);
}

.rd-mobile-cta {
  padding-top: 1.5rem;
  border-top: 1px solid #f3f4f6;
}

.rd-mobile-cta .rd-btn-primary-sm {
  display: block;
  width: 100%;
  text-align: center;
}

/* ========== FOOTER ========== */
.rd-site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid #1f2937;
  background: #0a0a0a;
  color: #fff;
  padding: 0;
}

.rd-footer-glow-1,
.rd-footer-glow-2 {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}

.rd-footer-glow-1 {
  top: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: rgb(0 224 92 / 0.2);
}

.rd-footer-glow-2 {
  bottom: 0;
  left: -10%;
  width: 40%;
  height: 40%;
  background: rgb(224 231 255 / 0.1);
  filter: blur(100px);
}

.rd-footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 640px) {
  .rd-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rd-footer-grid {
    grid-template-columns: repeat(7, 1fr);
  }
}

.rd-footer-brand {
  grid-column: span 1;
}

@media (min-width: 640px) {
  .rd-footer-brand {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .rd-footer-brand {
    grid-column: span 2;
  }
}

.rd-footer-logo-wrap {
  display: inline-block;
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  backdrop-filter: blur(4px);
}

.rd-footer-logo-wrap img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.rd-footer-tagline {
  max-width: 20rem;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #9ca3af;
}

.rd-footer-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.rd-footer-social a {
  display: flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.05);
  color: #d1d5db;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.rd-footer-social a:hover {
  border-color: rgb(0 224 92 / 0.4);
  background: var(--rd-primary);
  color: #fff;
}

.rd-footer-col h4 {
  margin: 0 0 1rem;
  font-family: var(--rd-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.rd-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rd-footer-col li {
  margin-bottom: 0.625rem;
}

.rd-footer-col a {
  position: relative;
  font-size: 0.8125rem;
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}

.rd-footer-col a:hover {
  color: var(--rd-primary);
}

/* Footer subscribe (inside brand column) */
.rd-footer-subscribe {
  max-width: 20rem;
}

.rd-footer-subscribe-title {
  margin: 0 0 0.5rem;
  font-family: var(--rd-font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}

.rd-footer-subscribe-desc {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #6b7280;
}

.rd-footer-subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .rd-footer-subscribe-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

.rd-footer-subscribe-form input[type='email'] {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.15);
  background: rgb(255 255 255 / 0.05);
  color: #fff;
  font-family: var(--rd-font-sans);
  font-size: 0.875rem;
}

.rd-footer-subscribe-form input[type='email']::placeholder {
  color: #6b7280;
}

.rd-footer-subscribe-form input[type='email']:focus {
  outline: none;
  border-color: var(--rd-primary);
  box-shadow: 0 0 0 2px rgb(0 224 92 / 0.2);
}

.rd-footer-subscribe-form button {
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}

.rd-footer-subscribe-message {
  flex-basis: 100%;
  margin: 0;
  font-size: 0.75rem;
}

.rd-footer-subscribe-message.is-success {
  color: var(--rd-primary);
}

.rd-footer-subscribe-message.is-error {
  color: #f87171;
}

.rd-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rd-footer-bottom-wrap {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgb(255 255 255 / 0.1);
}

.rd-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
}

@media (min-width: 768px) {
  .rd-footer-bottom {
    flex-direction: row;
  }
}

.rd-footer-copy {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
}

.rd-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.rd-footer-legal a {
  font-size: 0.75rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.rd-footer-legal a:hover {
  color: var(--rd-primary);
}

/* Theme compatibility: fixed header spacing + hide legacy Lexend header */
body.rd-has-fixed-header .uc-header,
body.rd-has-fixed-header .tg-header__area,
body.rd-has-fixed-header .elementor-3611 {
  display: none !important;
}

body.rd-has-fixed-header .blog__area,
body.rd-has-fixed-header .blog-details-area,
body.rd-has-fixed-header .tg-page-area {
  padding-top: 2rem;
}

@media (min-width: 1024px) {
  body.rd-has-fixed-header .blog__area,
  body.rd-has-fixed-header .blog-details-area,
  body.rd-has-fixed-header .tg-page-area {
    padding-top: 2.5rem;
  }
}
