/* Shared site chrome — header, footer, inner pages */

:root {
  --rc-ink: #0b1220;
  --rc-ink-soft: #1e293b;
  --rc-slate: #475569;
  --rc-line: rgba(148, 163, 184, 0.35);
  --rc-surface: #f8fafc;
  --rc-card: #ffffff;
  --rc-radius: 14px;
  --rc-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.rc-page,
body.rc-homepage {
  font-family: "Inter", "Cairo", system-ui, sans-serif;
  letter-spacing: -0.01em;
}

body.rc-page .line,
body.rc-homepage .line,
.rc-footer .line {
  padding-left: clamp(1.25rem, 3.5vw, 2rem);
  padding-right: clamp(1.25rem, 3.5vw, 2rem);
  box-sizing: border-box;
}

/* Inner pages: solid nav from load */
body.rc-page nav.rc-site-nav,
body.rc-page nav.rc-site-nav.fixed,
body.rc-page nav.sticky.fixed {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.26) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06) !important;
}

body.rc-page nav.rc-site-nav .logo {
  padding: 2px 0;
  background: transparent;
  box-shadow: none;
}

body.rc-page main.page-main,
body.rc-page main[role="main"] {
  margin-top: 0 !important;
}

body.rc-page.header-condensed main.page-main,
body.rc-page.header-condensed main[role="main"] {
  margin-top: 0 !important;
}

/* Footer */
.rc-footer.site-footer,
.rc-footer.homepage-footer {
  position: relative;
  background: #050810;
  color: rgba(203, 213, 225, 0.88);
  border-top: none;
  margin-top: 0 !important;
  overflow: visible;
}

.rc-footer .rc-footer-arrow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  bottom: auto;
  display: block;
  pointer-events: none;
  transform: translateY(calc(-100% + 1px));
  z-index: 2;
}

.rc-footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: 1.75rem 2rem;
  padding: 2.5rem 0 1.75rem;
}

.rc-footer .line {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.rc-footer-brand {
  margin-top: 0;
}

.rc-footer-col {
  margin-top: 0;
}

.rc-footer-logo {
  display: block;
  width: min(160px, 42vw);
  height: auto;
  margin: 0 0 0.75rem;
  border-radius: 6px;
}

.rc-footer-desc {
  margin: 0;
  max-width: 22rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: rgba(148, 163, 184, 0.95);
}

.rc-footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.85);
}

.rc-footer-col a,
.rc-footer-col p {
  display: block;
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.9);
  text-decoration: none;
  transition: color 0.25s ease;
}

.rc-footer-col a:hover {
  color: #f8fafc;
}

.rc-footer-address {
  display: block;
  margin: 0 0 0.55rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: rgba(203, 213, 225, 0.9) !important;
  text-decoration: none;
  transition: color 0.25s ease;
}

.rc-footer-address:hover {
  color: #f8fafc !important;
  text-decoration: underline;
}

.rc-footer-hours {
  color: rgba(148, 163, 184, 0.95) !important;
}

.rc-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.85rem 0 1rem;
  text-align: center;
}

.rc-footer-bar .line {
  padding-top: 0;
  padding-bottom: 0;
}

.rc-footer-bar p {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(148, 163, 184, 0.75);
}

/* Hide legacy footers if any remain */
.simple-footer {
  display: none !important;
}

/* Shared reveal animation */
.reveal-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--rc-ease), transform 0.7s var(--rc-ease);
}

.reveal-up.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Dark theme */
[data-theme="dark"] body.rc-page {
  background: var(--theme-bg, #0f172a);
  color: var(--theme-text, #e2e8f0);
}

[data-theme="dark"] body.rc-page nav.rc-site-nav {
  background: rgba(15, 23, 42, 0.95) !important;
  border-bottom-color: rgba(51, 65, 85, 0.6) !important;
}

[data-theme="dark"] body.rc-page nav.rc-site-nav .top-nav ul li > a {
  color: var(--theme-text, #e2e8f0) !important;
}

[data-theme="dark"] footer.rc-footer {
  background: #020617 !important;
  border-top-color: rgba(51, 65, 85, 0.45) !important;
}

@media (max-width: 900px) {
  .rc-footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .rc-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .rc-footer-inner {
    grid-template-columns: 1fr;
  }
}
