/**
 * AroundManchester.com - Layout Stylesheet
 * Header, footer, grid, containers, and navigation styles
 * 
 * @charset UTF-8
 * @author AroundManchester.com Development Team
 * @version 1.0
 */

@charset "UTF-8";

/* ===== CONTAINER UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ===== SITE HEADER BLOCK ===== */
.site-header {
  background: var(--bg-section-light, #e9edf5);
  padding: 8px 16px;
  border-bottom: 1px solid rgba(42, 74, 145, 0.18);
  position: relative;
}

.site-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #4a6bb5, #3a5a95, #2a4a85, #3a5a95, #4a6bb5);
  background-size: 200% 100%;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.site-header__branding {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

/* === HIGH CONTRAST TOGGLE BUTTON === */
.high-contrast-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(74, 107, 181, 0.1);
  border: 2px solid var(--color-primary, #4a6bb5);
  border-radius: var(--radius-full, 50%);
  cursor: pointer;
  transition: var(--transition-base, all 0.3s ease);
  flex-shrink: 0;
  order: -1;
}

.high-contrast-toggle:hover {
  background: rgba(74, 107, 181, 0.2);
  transform: scale(1.05);
}

.high-contrast-toggle:focus {
  outline: 2px solid var(--color-primary, #4a6bb5);
  outline-offset: 2px;
}

.high-contrast-toggle__icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-primary, #4a6bb5);
  transition: var(--transition-fast, all 0.2s ease);
}

.high-contrast-toggle--active {
  background: var(--color-primary, #4a6bb5);
  border-color: var(--color-primary, #4a6bb5);
}

.high-contrast-toggle--active .high-contrast-toggle__icon {
  color: var(--color-white, #ffffff);
}

.high-contrast-toggle--active:hover {
  background: var(--color-secondary, #3a5a95);
  border-color: var(--color-secondary, #3a5a95);
}

/* E-ink device indicator */
.high-contrast-toggle--eink-detected {
  animation: eink-pulse 2s ease-in-out infinite;
}

@keyframes eink-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 107, 181, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(74, 107, 181, 0); }
}

/* High contrast mode toggle styling */
.high-contrast .high-contrast-toggle {
  background: #ffffff;
  border: 3px solid #000000;
}

.high-contrast .high-contrast-toggle__icon {
  color: #000000 !important;
}

.high-contrast .high-contrast-toggle:hover {
  background: #f0f0f0;
}

.high-contrast .high-contrast-toggle:hover .high-contrast-toggle__icon {
  color: #000000 !important;
}

.high-contrast .high-contrast-toggle:focus {
  outline: 3px solid #000000;
  outline-offset: 2px;
}

.high-contrast .high-contrast-toggle:focus .high-contrast-toggle__icon {
  color: #000000 !important;
}

.high-contrast .high-contrast-toggle--active {
  background: #000000;
  border-color: #000000;
}

.high-contrast .high-contrast-toggle--active .high-contrast-toggle__icon {
  color: #ffffff !important;
}

.high-contrast .high-contrast-toggle--active:hover {
  background: #333333;
  border-color: #000000;
}

.high-contrast .high-contrast-toggle--active:hover .high-contrast-toggle__icon {
  color: #ffffff !important;
}

.high-contrast .high-contrast-toggle--active:focus {
  background: #000000;
  border-color: #000000;
  outline: 3px solid #000000;
  outline-offset: 2px;
}

.high-contrast .high-contrast-toggle--active:focus .high-contrast-toggle__icon {
  color: #ffffff !important;
}

.site-header__brand-text-container {
  flex: 1;
  min-width: 0;
}

.site-header__brand-text {
  font-size: 2.4rem;
  line-height: 1;
  margin: 0;
  color: #2a4a91;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  letter-spacing: -1px;
  background: linear-gradient(135deg, #2c3e50, #34495e, #4a6bb5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.site-header__brand-subtitle {
  font-size: 0.8rem;
  color: #496fb7;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

/* brand-domain is deprecated - element should be removed from HTML */
.site-header__brand-domain {
  display: none;
}

/* Enhanced Brand circle with logo */
.site-header__brand-circle {
  width: 68px;
  height: 68px;
  background-image: url('https://www.aroundmanchester.com/resources/AroundManchesterLoGo001.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  border-radius: 50%;
  border: 4px solid #3f61a8;
  box-shadow: 0 10px 24px rgba(66, 96, 170, 0.3) inset, 0 2px 16px rgba(66, 96, 170, 0.2);
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__brand-circle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(74, 107, 181, 0.4);
}

.site-header__breadcrumb {
  margin-bottom: 5px;
  font-size: 1.2rem;
  color: #495057;
  font-weight: 500;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  border-left: 4px solid #4a6bb5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.site-header__description {
  font-size: 0.9rem;
  color: #495057;
  max-width: 900px;
  line-height: 1.3;
  padding: 2px 12px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(74, 107, 181, 0.15);
  margin: 2px auto 0;
  text-align: center;
}

.site-header__description > p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.24;
}

/* ===== PAGE INTRO (relocated description after hero) ===== */
.page-intro {
  font-size: 0.95rem;
  color: #495057;
  max-width: 900px;
  line-height: 1.5;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(74, 107, 181, 0.12);
  margin: 0 auto 24px;
  text-align: center;
}

.page-intro > p {
  margin: 0;
}

/* ===== BREADCRUMB NAVIGATION ===== */
.breadcrumb-nav {
  background: #eef2f7;
  border-top: 1px solid rgba(66, 96, 170, 0.2);
  border-bottom: 1px solid rgba(66, 96, 170, 0.2);
  padding: 10px 12px;
}

.breadcrumb-nav a {
  color: #4a6bb5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-nav a:hover {
  color: #3a5a95;
  text-decoration: underline;
}

.breadcrumb-nav__separator {
  margin: 0 6px;
  color: #6b7a90;
  font-weight: bold;
}

.breadcrumb-nav__current {
  color: #333;
  font-weight: 600;
}

/* ===== SITE FOOTER ===== */
.site-footer {
  background: #131a27;
  color: #cfd7e6;
  padding: 30px 12px 18px;
}

.site-footer__content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.site-footer__links {
  margin-top: 15px;
  margin-bottom: 10px;
}

.site-footer__link {
  color: #cfd7e6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.site-footer__link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__separator {
  margin: 0 10px;
  color: #cfd7e6;
}

/* === FOOTER GRID LAYOUT === */
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  max-width: 800px;
  margin: 20px auto;
  text-align: left;
}

.site-footer__column {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-footer__column-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.site-footer__column a {
  color: #7cb3f0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  padding: 2px 0;
}

.site-footer__column a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 15px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer__copyright-text {
  margin-top: 20px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.site-footer__copyright-text small {
  display: block;
  line-height: 1.6;
  font-size: 0.75rem;
}

/* ===== GRID LAYOUTS ===== */
.business-grid,
.district-listings__grid {
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

/* ===== BUSINESS DIRECTORY LISTS ===== */
.business-directory__lists {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 12px;
}

.business-directory__lists h3 {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.business-directory__list {
  max-width: 700px;
  margin: 0 auto 16px;
  padding: 0;
  background: #fff;
  border: 1px solid #dfe6f3;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.business-directory__list-header {
  padding: 10px 12px;
  background: #eef2f7;
  border-bottom: 1px solid #dfe6f3;
  color: #2a4a91;
  font-weight: 800;
}

.business-directory__list li {
  padding: 10px 12px;
  border-top: 1px solid #eef2f7;
}

.business-directory__list li a {
  color: #2a4a91;
  text-decoration: none;
}

/* ===== REGION HEADER SECTION ===== */
.region-header {
  background: linear-gradient(135deg, #b8b8b8, #c8c8c8);
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #aaa;
}

.region-header__title {
  margin: 0 0 6px 0;
  font-size: 2.5rem;
  color: #333;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.region-header__description {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 25px;
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.region-header__stats {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.region-stat {
  background: #f6f8fb;
  border: 1px solid #dfe6f3;
  border-radius: 10px;
  padding: 8px 12px;
  text-align: center;
}

.region-stat__number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #2a4a91;
  margin-bottom: 5px;
}

.region-stat__label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== MOBILE RESPONSIVE - HEADER/FOOTER/LAYOUT ===== */
@media (max-width: 768px) {
  .site-header {
    padding: 8px 15px;
  }

  .site-header__branding {
    gap: 12px;
  }

  .site-header__brand-text {
    font-size: 1.5rem;
  }

  .site-header__brand-subtitle {
    font-size: 0.65rem;
  }

  .site-header__brand-circle {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-width: 3px;
  }

  /* High contrast toggle - tablet */
  .high-contrast-toggle {
    width: 40px;
    height: 40px;
    min-width: 40px;
  }

  .high-contrast-toggle__icon {
    font-size: 1.3rem;
  }

  /* Header description - tablet */
  .site-header__description {
    font-size: 0.85rem;
    padding: 5px 12px;
    margin: 5px auto 0;
  }
}

@media (max-width: 480px) {
  .site-header__branding {
    gap: 10px;
  }

  .site-header__brand-text {
    font-size: 1.25rem;
  }

  .site-header__brand-subtitle {
    font-size: 0.6rem;
    margin-top: 4px;
  }

  .site-header__brand-circle {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-width: 2px;
  }

  /* High contrast toggle - mobile */
  .high-contrast-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .high-contrast-toggle__icon {
    font-size: 1.1rem;
  }

  /* Header description - mobile */
  .site-header__description {
    font-size: 0.8rem;
    padding: 4px 10px;
    line-height: 1.3;
    margin: 4px auto 0;
    border-radius: 6px;
  }
}

@media (max-width: 400px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}
