/* Copied from othmanriyadh-website/footer.css */
/* ==========================================================================
   OTHMAN RIYADH® — GLOBAL EDITORIAL FOOTER
   Official Design System & Brand Palette Integration
   Master Typography: Graphik Arabic & Graphik
   Master Palette: Solar Gold, Canvas Dark & Neutral Text Hierarchy
   ========================================================================== */

.site-editorial-footer {
  position: relative;
  width: 100%;
  background: var(--bg-canvas, #080811);
  color: var(--text-secondary, #a0aec0);
  font-family: var(--font-arabic-body, 'Graphik Arabic', 'Graphik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  padding: 0 0 40px;
  margin-top: auto;
  border-top: none;
  z-index: 20;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* English / LTR Typography Mode */
html[lang="en"] .site-editorial-footer,
html[dir="ltr"] .site-editorial-footer,
[dir="ltr"] .site-editorial-footer {
  font-family: var(--font-latin-body, 'Graphik', 'Graphik Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
}

/* Light Theme Support */
[data-theme="light"] .site-editorial-footer,
.light-mode .site-editorial-footer {
  background: #f8fafc;
  color: #334155;
}

/* Top Accent & Divider */
.editorial-footer-top-accent {
  position: relative;
  width: 100%;
  padding-top: 40px;
}

.footer-accent-container {
  position: relative;
  display: flex;
  align-items: center;
}

.editorial-footer-divider {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-subtle, rgba(165, 180, 252, 0.1));
  z-index: 1;
}

[data-theme="light"] .editorial-footer-divider,
.light-mode .editorial-footer-divider {
  background: rgba(0, 0, 0, 0.08);
}

/* Minimal Hollow Focal Ring Accent — Solar Gold Brand Signature */
.editorial-footer-ring {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full, 9999px);
  border: 1.5px solid var(--accent-gold, #f5c542);
  background: var(--bg-canvas, #080811);
  z-index: 2;
  margin-inline-start: 4px;
  box-shadow: 0 0 16px var(--accent-gold-glow, rgba(245, 197, 66, 0.28));
  transition: transform var(--transition-smooth, 0.35s ease), border-color var(--transition-fast, 0.2s ease), box-shadow var(--transition-fast, 0.2s ease);
}

.editorial-footer-ring:hover {
  transform: scale(1.1);
  border-color: var(--accent-gold-hover, #ffd666);
  box-shadow: 0 0 24px var(--accent-gold-glow, rgba(245, 197, 66, 0.38));
}

[data-theme="light"] .editorial-footer-ring,
.light-mode .editorial-footer-ring {
  background: #ffffff;
  border-color: #d4a017;
  box-shadow: 0 0 12px rgba(212, 160, 23, 0.2);
}

/* Main Content Area */
.editorial-footer-main {
  position: relative;
  padding-top: clamp(48px, 6vw, 72px);
}

/* 4-Column Grid */
.editorial-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1.4fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* Column 1: Brand */
.editorial-col.col-brand {
  display: flex;
  flex-direction: column;
}

.editorial-footer-logo-link {
  display: inline-block;
  text-decoration: none;
  width: fit-content;
  transition: opacity var(--transition-fast, 0.2s ease);
}

.editorial-footer-logo-link:hover {
  opacity: 0.85;
}

.editorial-footer-logo {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}

[data-theme="light"] .editorial-footer-logo,
.light-mode .editorial-footer-logo {
  filter: brightness(0.1);
}

.editorial-footer-bio {
  color: var(--text-secondary, #a0aec0);
  font-size: 0.88rem;
  line-height: var(--lh-normal, 1.7);
  max-width: 330px;
  margin: 18px 0 0 0;
  font-weight: 400;
}

.editorial-footer-bio .ar-text {
  font-family: var(--font-arabic-body, 'Graphik Arabic', 'Graphik', sans-serif);
  letter-spacing: normal;
}

.editorial-footer-bio .en-text {
  font-family: var(--font-latin-body, 'Graphik', 'Graphik Arabic', sans-serif);
  letter-spacing: 0.01em;
}

[data-theme="light"] .editorial-footer-bio,
.light-mode .editorial-footer-bio {
  color: #334155;
}

/* Section Labels (SITE, ELSEWHERE, DIRECT) */
.editorial-col-label {
  display: block;
  font-family: var(--font-latin-display, 'Graphik', 'Graphik Arabic', sans-serif);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.65);
  font-weight: 600;
  margin-bottom: clamp(16px, 2vw, 24px);
}

[data-theme="light"] .editorial-col-label,
.light-mode .editorial-col-label {
  color: #64748b;
}

/* Links Lists */
.editorial-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.editorial-footer-links li a {
  display: inline-block;
  color: var(--text-secondary, #a0aec0);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: var(--lh-snug, 1.45);
  transition: color var(--transition-fast, 0.2s cubic-bezier(0.16, 1, 0.3, 1)), transform var(--transition-fast, 0.2s ease);
}

.editorial-footer-links li a .ar-text {
  font-family: var(--font-arabic-body, 'Graphik Arabic', 'Graphik', sans-serif);
  letter-spacing: normal;
}

.editorial-footer-links li a .en-text {
  font-family: var(--font-latin-body, 'Graphik', 'Graphik Arabic', sans-serif);
}

.editorial-footer-links li a:hover,
.editorial-footer-links li a:focus-visible {
  color: var(--accent-gold, #f5c542);
  transform: translateX(3px);
}

html[dir="rtl"] .editorial-footer-links li a:hover,
html[dir="rtl"] .editorial-footer-links li a:focus-visible,
[dir="rtl"] .editorial-footer-links li a:hover,
[dir="rtl"] .editorial-footer-links li a:focus-visible {
  transform: translateX(-3px);
}

[data-theme="light"] .editorial-footer-links li a,
.light-mode .editorial-footer-links li a {
  color: #334155;
}

[data-theme="light"] .editorial-footer-links li a:hover,
[data-theme="light"] .editorial-footer-links li a:focus-visible,
.light-mode .editorial-footer-links li a:hover,
.light-mode .editorial-footer-links li a:focus-visible {
  color: #b7791f;
}

/* Column 4: Direct */
.editorial-direct-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.editorial-direct-primary {
  display: inline-block;
  color: var(--text-primary, #f8fafc);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast, 0.2s ease);
}

.editorial-direct-primary .ar-text {
  font-family: var(--font-arabic-body, 'Graphik Arabic', 'Graphik', sans-serif);
  letter-spacing: normal;
}

.editorial-direct-primary .en-text {
  font-family: var(--font-latin-body, 'Graphik', 'Graphik Arabic', sans-serif);
}

.editorial-direct-primary:hover {
  color: var(--accent-gold, #f5c542);
}

[data-theme="light"] .editorial-direct-primary,
.light-mode .editorial-direct-primary {
  color: #0f172a;
}

[data-theme="light"] .editorial-direct-primary:hover,
.light-mode .editorial-direct-primary:hover {
  color: #b7791f;
}

.editorial-direct-sub {
  display: inline-block;
  font-family: var(--font-latin-body, 'Graphik', 'Graphik Arabic', sans-serif);
  color: var(--text-secondary, #a0aec0);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast, 0.2s ease);
}

.editorial-direct-sub:hover {
  color: var(--accent-gold, #f5c542);
}

[data-theme="light"] .editorial-direct-sub,
.light-mode .editorial-direct-sub {
  color: #475569;
}

[data-theme="light"] .editorial-direct-sub:hover,
.light-mode .editorial-direct-sub:hover {
  color: #b7791f;
}

.editorial-direct-note {
  color: rgba(248, 250, 252, 0.62);
  font-size: 0.8rem;
  line-height: var(--lh-normal, 1.6);
  margin: 6px 0 0 0;
}

.editorial-direct-note .ar-text {
  font-family: var(--font-arabic-body, 'Graphik Arabic', 'Graphik', sans-serif);
  letter-spacing: normal;
}

.editorial-direct-note .en-text {
  font-family: var(--font-latin-body, 'Graphik', 'Graphik Arabic', sans-serif);
}

[data-theme="light"] .editorial-direct-note,
.light-mode .editorial-direct-note {
  color: #64748b;
}

/* Bottom Information Row */
.editorial-footer-bottom {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle, rgba(165, 180, 252, 0.1));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 0.72rem;
  color: rgba(248, 250, 252, 0.6);
}

[data-theme="light"] .editorial-footer-bottom,
.light-mode .editorial-footer-bottom {
  border-top-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

.editorial-bottom-left {
  font-family: var(--font-latin-body, 'Graphik', 'Graphik Arabic', sans-serif);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-bottom-center {
  text-align: center;
}

.editorial-bottom-center .ar-text {
  font-family: var(--font-arabic-body, 'Graphik Arabic', 'Graphik', sans-serif);
  font-size: 0.76rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: rgba(248, 250, 252, 0.62);
}

.editorial-bottom-center .en-text {
  font-family: var(--font-latin-display, 'Graphik', 'Graphik Arabic', sans-serif);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.62);
}

[data-theme="light"] .editorial-bottom-center .ar-text,
[data-theme="light"] .editorial-bottom-center .en-text,
.light-mode .editorial-bottom-center .ar-text,
.light-mode .editorial-bottom-center .en-text {
  color: #64748b;
}

.editorial-bottom-right {
  font-family: var(--font-latin-body, 'Graphik', 'Graphik Arabic', sans-serif);
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--text-secondary, #a0aec0);
  text-transform: uppercase;
}

[data-theme="light"] .editorial-bottom-right,
.light-mode .editorial-bottom-right {
  color: #334155;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .editorial-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .editorial-col.col-brand {
    grid-column: span 2;
  }
  .editorial-footer-bio {
    max-width: 480px;
  }
  .editorial-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}

/* Mobile (max-width: 600px) */
@media (max-width: 600px) {
  .editorial-footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .editorial-col.col-brand {
    grid-column: span 1;
  }
  .editorial-footer-bio {
    max-width: 100%;
  }
  .editorial-footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    align-items: center;
  }
}

/* Closing wordmark (idea from 21st.dev wordmark footers, built on the site's own tokens) */
.editorial-wordmark {
  margin-top: clamp(40px, 6vw, 72px);
  margin-bottom: -40px; /* sit on the floor line of the footer */
}

.editorial-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 clamp(10px, 1.6vw, 18px);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: rgba(248, 250, 252, 0.62);
}

.editorial-status time {
  font-variant-numeric: tabular-nums;
  color: var(--accent-gold, #f5c542);
}

.editorial-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-gold, #f5c542);
  box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.45);
  animation: wmPulse 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes wmPulse {
  0% { opacity: 1; transform: scale(1); }
  60% { opacity: 0.35; transform: scale(0.7); }
  100% { opacity: 1; transform: scale(1); }
}

.editorial-wordmark-line {
  display: flex;
  justify-content: center;
  /* Crop the bottom of the letters at the floor line */
  height: 0.74em;
  overflow: hidden;
  font-family: var(--font-latin-heading, 'Graphik', 'Graphik Arabic', sans-serif);
  font-size: clamp(2.6rem, 11.2vw, 13.5rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: -0.045em;
  white-space: nowrap;
  user-select: none;
}

.wm-letter {
  display: inline-block;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.16) 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translate3d(0, 105%, 0);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
}

.wm-space {
  display: inline-block;
  width: 0.3em;
}

.wm-letter,
.wm-space {
  flex-shrink: 0;
}

.editorial-wordmark.is-in .wm-letter {
  transform: translate3d(0, 0, 0);
}

[data-theme="light"] .wm-letter,
.light-mode .wm-letter {
  background-image: linear-gradient(180deg, rgba(8, 8, 17, 0.9) 0%, rgba(8, 8, 17, 0.12) 92%);
}

[data-theme="light"] .editorial-status,
.light-mode .editorial-status {
  color: #64748b;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .wm-letter {
    transform: none;
    transition: none;
  }
  .editorial-status-dot {
    animation: none;
  }
  .editorial-footer-ring,
  .editorial-footer-links li a,
  .editorial-direct-primary,
  .editorial-direct-sub {
    transition: none !important;
    transform: none !important;
  }
}


/* Contrast and size pass: footer text stays readable on the dark surface */
.site-editorial-footer .editorial-col-label {
  color: rgba(236, 233, 255, 0.78);
  font-size: 0.8rem;
}

.site-editorial-footer .editorial-footer-links li a,
.site-editorial-footer .editorial-direct-sub,
.site-editorial-footer .editorial-direct-note {
  color: rgba(236, 233, 255, 0.82);
}

.site-editorial-footer .editorial-direct-note,
.site-editorial-footer .editorial-bottom-center .ar-text {
  font-size: 0.88rem;
}

.site-editorial-footer .editorial-footer-links li a {
  font-size: 0.98rem;
  min-height: 32px;
}

.site-editorial-footer .editorial-bottom-center .ar-text,
.site-editorial-footer .editorial-bottom-center .en-text {
  color: rgba(236, 233, 255, 0.72);
}

