/* ========================================
   MOBILE-FIRST RESPONSIVE DESIGN
   Base styles are for mobile devices
   Media queries use min-width for larger screens
   ======================================== */

/* ========================================
   RESET & BASE STYLES
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ========================================
   SKIP TO CONTENT LINK (WCAG AAA)
   ======================================== */

.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000000;
  color: #ffffff;
  padding: 12px 20px;
  text-decoration: none;
  font-weight: bold;
  z-index: 100;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
}

.skip-to-content:focus {
  top: 0;
}

/* ========================================
   SCREEN READER ONLY (SR-ONLY)
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   BODY & LAYOUT - MOBILE FIRST
   ======================================== */

body {
  font-family: "Lato", sans-serif;
  background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  font-size: 16px;
  line-height: 1.5;
}

/* ========================================
   BUSINESS CARD - MOBILE FIRST
   ======================================== */

.business-card {
  background: #ffffff;
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.business-card:hover {
  transform: translateY(-3px);
}

/* ========================================
   CARD HEADER - MOBILE FIRST
   ======================================== */

.card-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  padding: 30px 20px;
  text-align: center;
  color: #ffffff;
}

.card-header h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.card-header h2 {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.95;
  letter-spacing: 1.5px;
  line-height: 1.4;
}

/* ========================================
   CARD BODY - MOBILE FIRST
   ======================================== */

.card-body {
  padding: 24px 20px;
}

/* ========================================
   INFO ITEMS - MOBILE FIRST
   WCAG AAA: Enhanced contrast, touch targets 44x44
   ======================================== */

.info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 16px;
  background: #f0f0f0;
  border-radius: 10px;
  transition: all 0.3s ease;
  min-height: 44px;
}

.info-item:hover {
  background: #e0e0e0;
}

/* Clickable info items - WCAG 2.5.5 AAA (min 44x44px) */
.info-item-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 16px;
  background: #f0f0f0;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-height: 68px; /* 44px + 2*12px padding minimum for content */
  min-width: 44px;
  width: 100%;
}

.info-item-link:hover {
  background: #e0e0e0;
}

.info-item-link:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 3px;
}

.info-item i,
.info-item-link i {
  font-size: 22px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #000000;
  margin-bottom: 8px;
}

.info-item .label {
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 4px;
  font-size: 14px;
  display: block;
}

.info-item .value,
.info-item-link .label,
.info-item-link .value {
  color: #000000;
  font-weight: 400;
  word-break: break-word;
}

.info-item-link .label {
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 4px;
  font-size: 14px;
  display: block;
}

/* Subtle underline for WCAG AAA link identification */
.info-item-link .value {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0.3);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: text-decoration-color 0.3s ease;
}

.info-item-link:hover .value,
.info-item-link:focus .value {
  text-decoration-color: rgba(0, 0, 0, 0.7);
  text-decoration-thickness: 2px;
}

.info-item a {
  color: #000000;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.info-item a:hover {
  color: #000000;
  text-decoration: underline;
  font-weight: 600;
}

/* ========================================
   ADDRESS BLOCK
   ======================================== */

.address-block {
  display: block;
  margin-top: 5px;
}

/* ========================================
   SOCIAL LINKS - MOBILE FIRST
   WCAG AAA: 44x44 touch targets, high contrast
   ======================================== */

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #d0d0d0;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 56px; /* 44px minimum + extra for better UX */
  height: 56px;
  min-width: 44px; /* WCAG 2.5.5 AAA minimum */
  min-height: 44px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  color: #ffffff;
  border-radius: 50%;
  font-size: 24px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 16px rgba(26, 26, 26, 0.4);
}

/* ========================================
   FOCUS STYLES - WCAG AAA
   High contrast, 3px outline
   ======================================== */

a:focus-visible,
button:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 3px;
}

.social-links a:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 3px;
}

/* ========================================
   TABLET & DESKTOP STYLES
   MIN-WIDTH: 601px (Mobile-First approach)
   ======================================== */

@media (min-width: 601px) {
  body {
    padding: 20px;
  }

  .card-header {
    padding: 40px 30px;
  }

  .card-header h1 {
    font-size: 32px;
    margin-bottom: 10px;
    letter-spacing: 1px;
  }

  .card-header h2 {
    font-size: 18px;
    letter-spacing: 2px;
  }

  .card-body {
    padding: 40px 30px;
  }

  .info-item,
  .info-item-link {
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    min-height: 44px; /* WCAG 2.5.5 AAA on desktop too */
  }

  .info-item:hover,
  .info-item-link:hover {
    transform: translateX(5px);
  }

  .info-item i,
  .info-item-link i {
    font-size: 20px;
    width: 40px;
    height: auto;
    margin-right: 15px;
    margin-bottom: 0;
  }

  .info-item .label,
  .info-item-link .label {
    margin-right: 10px;
    margin-bottom: 0;
    min-width: 60px;
    display: inline;
  }

  .social-links {
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
  }

  .business-card {
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  }

  .business-card:hover {
    transform: translateY(-5px);
  }

  .social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(26, 26, 26, 0.5);
  }
}

/* ========================================
   LARGE DESKTOP STYLES
   MIN-WIDTH: 1024px
   ======================================== */

@media (min-width: 1024px) {
  .business-card {
    max-width: 600px;
  }
}

/* ========================================
   ACCESSIBILITY PREFERENCES
   ======================================== */

/* Reduced Motion (WCAG 2.2) */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .business-card:hover {
    transform: none;
  }

  .info-item:hover,
  .info-item-link:hover {
    transform: none;
  }

  .social-links a:hover {
    transform: none;
  }

  /* Instant underline changes (no transition) */
  .info-item-link .value {
    transition: none;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .business-card {
    border: 3px solid #000000;
  }

  .info-item,
  .info-item-link {
    border: 2px solid #000000;
  }

  /* More visible underline in high contrast */
  .info-item-link .value {
    text-decoration-color: #000000;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
  }

  .info-item-link:hover .value,
  .info-item-link:focus .value {
    text-decoration-thickness: 3px;
    font-weight: 700;
  }

  .card-header {
    background: #000000;
  }

  .social-links a {
    background: #000000;
    border: 2px solid #ffffff;
  }

  /* Enhance focus indicators in high contrast */
  a:focus-visible,
  button:focus-visible,
  .social-links a:focus-visible,
  .info-item-link:focus-visible {
    outline: 4px solid #000000;
    outline-offset: 4px;
  }
}

/* ========================================
   DARK MODE
   WCAG AAA compliant dark theme
   ======================================== */

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  }

  .business-card {
    background: #1a1a1a;
    color: #ffffff;
  }

  .card-header {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%);
  }

  .info-item,
  .info-item-link {
    background: #2a2a2a;
    color: #ffffff;
  }

  .info-item:hover,
  .info-item-link:hover {
    background: #3a3a3a;
  }

  .info-item .label,
  .info-item-link .label {
    color: #e0e0e0;
  }

  .info-item .value,
  .info-item-link .value {
    color: #ffffff;
  }

  /* Subtle underline in dark mode */
  .info-item-link .value {
    text-decoration-color: rgba(255, 255, 255, 0.4);
  }

  .info-item-link:hover .value,
  .info-item-link:focus .value {
    text-decoration-color: rgba(255, 255, 255, 0.8);
  }

  .info-item i,
  .info-item-link i {
    color: #ffffff;
  }

  .info-item a {
    color: #ffffff;
  }

  .info-item a:hover {
    color: #ffffff;
  }

  .social-links {
    border-top-color: #3a3a3a;
  }

  .social-links a {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
  }

  /* Focus visible in dark mode */
  a:focus-visible,
  button:focus-visible,
  .social-links a:focus-visible,
  .info-item-link:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
  }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
  body {
    background: white;
    padding: 0;
  }

  .business-card {
    box-shadow: none;
    max-width: 100%;
  }

  .skip-to-content {
    display: none;
  }

  .social-links a {
    break-inside: avoid;
  }

  a[href^="http"]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}
