/* ALA Design System - Layout Styles */

/* ===== SKIP LINK (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  background: var(--navy);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 0.8rem;
}

.top-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 7px 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.top-bar a {
  color: var(--teal-light);
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar a:hover {
  color: white;
}

.top-bar-right {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

/* ===== HEADER ===== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-xs);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-height);
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-link img {
  height: 46px;
  width: auto;
}

/* Header CTA actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Mobile responsive adjustments */
@media (max-width: 960px) {
  .header-inner {
    flex-wrap: wrap;
  }
}

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 44px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 28px;
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* Footer brand section */
.footer-brand h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
}

/* Footer columns */
.footer-col h4 {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.86rem;
  padding: 3px 0;
  transition: all 0.2s;
}

.footer-col a:hover {
  color: var(--teal-light);
}

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--teal-light);
}

/* ===== MAIN CONTENT WRAPPER ===== */
main {
  min-height: 60vh;
}

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 60px 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-mid);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fadeUp 0.6s ease-out;
}

/* Scroll reveal (can be enhanced with JS) */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
