/* ====================
 * FOOTER STYLES — 2026 Modern Redesign
 * Mobile-first, dark-theme, fluid spacing
 * ==================== */

/* ── Footer Shell ─────────────────────────────── */
.site-footer {
  --footer-bg:          #0f172a; /* Slate-900 */
  --footer-bg-card:     rgba(255, 255, 255, 0.045);
  --footer-border:      rgba(255, 255, 255, 0.08);
  --footer-border-card: rgba(255, 255, 255, 0.12);
  --footer-text-hi:     #f1f5f9; /* Slate-100 */
  --footer-text-mid:    #94a3b8; /* Slate-400 */
  --footer-text-lo:     #475569; /* Slate-600 */
  --footer-accent:      #60a5fa; /* Blue-400 */
  --footer-accent-glow: rgba(96, 165, 250, 0.18);
  --footer-radius:      1.25rem;
  --footer-px:          clamp(1rem, 5vw, 2rem);
  --footer-pt:          clamp(3rem, 8vw, 5rem);
  --footer-pb:          clamp(1.5rem, 4vw, 2.5rem);

  background: var(--footer-bg);
  color: var(--footer-text-mid);
  position: relative;
  overflow: hidden;
}

/* Subtle top-edge gradient divider */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(96, 165, 250, 0.4) 30%,
    rgba(167, 139, 250, 0.4) 70%,
    transparent 100%
  );
  pointer-events: none;
}

/* Background noise texture for depth */
.site-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(96, 165, 250, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 90% 80%, rgba(167, 139, 250, 0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.footer-main,
.footer-bottom {
  position: relative;
  z-index: 1;
}

/* ── Main Content Area ────────────────────────── */
.footer-main {
  padding: var(--footer-pt) 0 clamp(2rem, 6vw, 3.5rem);
}

.footer-main .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--footer-px);
}

/* ── Footer Grid ──────────────────────────────── */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 3rem);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 280px 1fr;
    gap: clamp(2.5rem, 6vw, 4rem);
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 300px 1fr;
    gap: clamp(3rem, 6vw, 5rem);
  }
}

/* ── About Dory Card ──────────────────────────── */
.footer-about {
  display: flex;
  flex-direction: column;
  gap: clamp(0.875rem, 2vw, 1.125rem);
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--footer-bg-card);
  border: 1px solid var(--footer-border-card);
  border-radius: var(--footer-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
}

.footer-about:hover {
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.1), 0 20px 40px rgba(0, 0, 0, 0.3);
}

.footer-about h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--footer-text-hi);
  margin: 0;
  letter-spacing: -0.025em;
  line-height: var(--line-height-snug);
}

.footer-about p {
  font-size: var(--text-sm);
  line-height: var(--line-height-relaxed);
  color: var(--footer-text-mid);
  margin: 0;
}

.footer-about-image {
  margin: 0;
}

.footer-about-image img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.2), 0 8px 24px rgba(0, 0, 0, 0.4);
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition-slow);
}

.footer-about-image img:hover {
  transform: scale(1.08) rotate(4deg);
  box-shadow: 0 0 0 2px var(--footer-accent), 0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ── Footer Meta (stats inside About card) ────── */
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: clamp(0.875rem, 2vw, 1rem);
  border-top: 1px solid var(--footer-border);
}

.footer-meta p {
  font-size: 0.8125rem;
  color: var(--footer-text-mid);
  margin: 0;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.footer-meta a {
  color: var(--footer-accent);
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer-meta a:hover,
.footer-meta a:focus {
  color: #93c5fd;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Navigation Columns ───────────────────────── */
.footer-navigation {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 3vw, 2rem);
  align-content: start;
}

@media (min-width: 600px) {
  .footer-navigation {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

.footer-nav-section {
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1rem);
}

/* Section heading with gradient accent line */
.footer-nav-section h4 {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--footer-text-lo);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 clamp(0.25rem, 1vw, 0.5rem);
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--footer-border);
  position: relative;
}

.footer-nav-section h4::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 2rem;
  height: 1px;
  background: var(--footer-accent);
  opacity: 0.7;
  transition: width var(--transition-slow);
}

.footer-nav-section:hover h4::after {
  width: 3.5rem;
}

/* ── Nav List ─────────────────────────────────── */
.footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav-list li {
  margin: 0;
}

.footer-nav-list a {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  color: var(--footer-text-mid);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  line-height: 1.5;
  padding: 0.1875rem 0;
}

.footer-nav-list a:hover,
.footer-nav-list a:focus-visible {
  color: var(--footer-text-hi);
  transform: translateX(4px);
  outline: none;
}

.footer-count {
  font-size: 0.75rem;
  color: var(--footer-text-lo);
  font-weight: 500;
  margin-left: 0.3125rem;
  font-feature-settings: 'tnum';
  letter-spacing: 0.01em;
}

/* ── Fixed Pages Group ────────────────────────── */
.footer-nav-section--fixed-pages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-fixed-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.footer-fixed-group-title {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-text-lo);
}

.footer-nav-list--compact {
  gap: 0.375rem;
}

.footer-secondary-link {
  color: var(--footer-accent) !important;
  font-weight: 600;
  font-size: 0.75rem !important;
  opacity: 0.9;
  margin-top: 0.25rem;
}

.footer-secondary-link:hover {
  opacity: 1;
}

/* ── Footer Bottom Bar ────────────────────────── */
.footer-bottom {
  padding: clamp(1rem, 3vw, 1.5rem) 0;
  border-top: 1px solid var(--footer-border);
}

.footer-bottom .container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--footer-px);
}

.footer-bottom-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

@media (min-width: 600px) {
  .footer-bottom-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    gap: 1.5rem;
  }
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--footer-text-lo);
  margin: 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* ── Legal Links ──────────────────────────────── */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.125rem 0.75rem;
  align-items: center;
  justify-content: center;
}

@media (min-width: 600px) {
  .footer-legal {
    justify-content: flex-start;
  }
}

.footer-legal a {
  font-size: 0.75rem;
  color: var(--footer-text-lo);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.25rem 0;
}

.footer-legal a:hover,
.footer-legal a:focus {
  color: var(--footer-text-mid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dot separator between legal links */
.footer-legal a + a::before {
  content: '·';
  display: inline-block;
  margin-right: 0.75rem;
  color: var(--footer-text-lo);
  pointer-events: none;
}

/* ── Social Links ─────────────────────────────── */
.footer-social {
  display: flex;
  gap: 0.625rem;
  align-items: center;
  flex-shrink: 0;
}

/* Instagram pill button */
.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(
    135deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  border: none;
  border-radius: var(--radius-full);
  transition: transform var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(220, 39, 67, 0.25);
  white-space: nowrap;
}

.footer-instagram:hover,
.footer-instagram:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 39, 67, 0.38);
  color: #fff;
  opacity: 0.95;
  outline: none;
}

.footer-instagram svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* RSS icon button */
.footer-rss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--footer-text-lo);
  background: var(--footer-bg-card);
  border: 1px solid var(--footer-border);
  border-radius: var(--radius-lg);
  transition: color var(--transition-base), border-color var(--transition-base),
    background var(--transition-base), transform var(--transition-base);
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.footer-rss:hover,
.footer-rss:focus-visible {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.4);
  background: rgba(251, 146, 60, 0.1);
  transform: translateY(-2px);
  outline: none;
}

.footer-rss svg {
  width: 18px;
  height: 18px;
}

