/* Mutual Contact Page Styles */

/* ============================================
   CSS Custom Properties - Color Palette
   WCAG AA Compliant Contrast Ratios
   ============================================ */
:root {
  /* Primary colors */
  --primary-color: #2c3e50;      /* Dark blue-gray for text - 12.63:1 contrast on white */
  --secondary-color: #1e6ba8;    /* Blue for links - 4.52:1 contrast on white (WCAG AA compliant) */
  --background: #ffffff;         /* White background */
  --accent: #c0392b;            /* Red accent for logo - 5.03:1 contrast on white (WCAG AA compliant) */
  --text-muted: #5a6c7d;        /* Gray for secondary text - 5.74:1 contrast on white */
  
  /* Interactive states */
  --link-hover: #155a8a;        /* Darker blue for hover - 5.89:1 contrast on white (WCAG AA compliant) */
  --focus-outline: #1e6ba8;     /* Blue for focus indicators */
}

/* ============================================
   Global Reset and Base Styles
   ============================================ */

/* Apply box-sizing globally */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default margins */
* {
  margin: 0;
  padding: 0;
}

/* Base typography with system font stack */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
               'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary-color);
  background-color: var(--background);
}

/* ============================================
   Consistent Spacing
   Using a consistent spacing scale: 0.5rem, 1rem, 1.5rem, 2rem, 2.5rem, 3rem, 3.5rem, 4rem
   ============================================ */

/* Add consistent spacing for common elements */
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

/* Ensure images are responsive by default */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Mobile-First Responsive Layout
   ============================================ */

/* Main container - mobile base styles */
main {
  /* Flexbox for vertical layout and centering */
  display: flex;
  flex-direction: column;
  align-items: center;
  
  /* Max-width container for content */
  max-width: 1200px;
  margin: 0 auto;
  
  /* Padding using relative units */
  padding: 1.5rem 1rem;
  
  /* Full width on mobile */
  width: 100%;
}

/* Header section - mobile styles */
header {
  /* Flexbox for vertical layout */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  
  /* Spacing using relative units */
  margin-bottom: 2rem;
  width: 100%;
}

/* Logo - responsive sizing */
header img {
  /* Responsive with max-width */
  max-width: 100%;
  height: auto;
  
  /* Size constraints for mobile */
  width: 120px;
  margin-bottom: 1.5rem;
  
  /* Smooth transition for size changes */
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Logo hover effect for subtle interactivity */
header img:hover {
  transform: scale(1.05);
}

/* Main heading - relative font size */
h1 {
  /* Relative font size for scalability */
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 0;
}

/* Contact info section - mobile styles */
.contact-info {
  /* Full width on mobile */
  width: 100%;
  
  /* Centered content */
  text-align: center;
  
  /* Spacing using relative units */
  margin-bottom: 2rem;
}

/* Section heading - relative font size */
.contact-info h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

/* Address element - reset default styles */
address {
  font-style: normal;
}

/* Contact info lines - mobile styles */
.address-line,
.phone-line,
.email-line {
  /* Flexbox for icon and text alignment */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Spacing using relative units */
  margin-bottom: 1rem;
  
  /* Relative font size */
  font-size: 1rem;
  line-height: 1.6;
}

/* Icons - spacing */
.icon {
  /* Spacing using relative units */
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Footer - mobile styles */
footer {
  /* Full width on mobile */
  width: 100%;
  
  /* Centered content */
  text-align: center;
  
  /* Spacing using relative units */
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

/* Footer text - relative font size */
footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0;
}
/* ============================================
   Link Styles - Interactive Elements
   Requirements: 6.2, 7.2, 4.4
   ============================================ */

/* Base link styles */
a {
  /* Distinct blue color for links */
  color: var(--secondary-color);
  
  /* Remove default underline, add on hover/focus */
  text-decoration: none;
  
  /* Pointer cursor to indicate clickability */
  cursor: pointer;
  
  /* Smooth transitions for better UX */
  transition: color 0.3s ease, text-decoration 0.2s ease, outline 0.2s ease, transform 0.2s ease;
  
  /* Ensure links are keyboard focusable */
  position: relative;
}

/* Link hover state - visual feedback */
a:hover {
  /* Darker blue on hover */
  color: var(--link-hover);
  
  /* Add underline on hover */
  text-decoration: underline;
  
  /* Subtle lift effect */
  transform: translateY(-1px);
}

/* Link focus state - keyboard navigation accessibility */
a:focus {
  /* Darker blue on focus */
  color: var(--link-hover);
  
  /* Visible outline with sufficient contrast (3:1 minimum) */
  outline: 2px solid var(--focus-outline);
  outline-offset: 2px;
  
  /* Add underline on focus */
  text-decoration: underline;
}

/* Link active state - when being clicked */
a:active {
  /* Slightly darker color for active state */
  color: var(--primary-color);
  
  /* Keep underline */
  text-decoration: underline;
  
  /* Slight press effect */
  transform: translateY(0);
}

/* Visited link state - maintain consistent styling */
a:visited {
  /* Keep same color as unvisited for consistency */
  color: var(--secondary-color);
}

/* ============================================
   Tablet Media Query (min-width: 768px)
   Requirements: 3.2
   ============================================ */

@media (min-width: 768px) {
  /* Main container - optimized spacing for tablet */
  main {
    padding: 2.5rem 2rem;
  }
  
  /* Header section - increased spacing */
  header {
    margin-bottom: 3rem;
  }
  
  /* Logo - larger size for tablet */
  header img {
    width: 150px;
    margin-bottom: 2rem;
  }
  
  /* Main heading - larger font size */
  h1 {
    font-size: 1.875rem;
  }
  
  /* Contact info section - increased spacing */
  .contact-info {
    margin-bottom: 3rem;
  }
  
  /* Section heading - larger font size */
  .contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  /* Contact info lines - larger font size */
  .address-line,
  .phone-line,
  .email-line {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
  }
  
  /* Icons - larger size */
  .icon {
    margin-right: 0.75rem;
    font-size: 1.4rem;
  }
  
  /* Footer - increased spacing */
  footer {
    padding-top: 3rem;
    margin-top: 3rem;
  }
  
  /* Footer text - slightly larger */
  footer p {
    font-size: 1rem;
  }
}

/* ============================================
   Desktop Media Query (min-width: 1024px)
   Requirements: 3.3
   ============================================ */

@media (min-width: 1024px) {
  /* Main container - maximum spacing for desktop */
  main {
    padding: 3.5rem 3rem;
  }
  
  /* Header section - maximum spacing */
  header {
    margin-bottom: 4rem;
  }
  
  /* Logo - largest size for desktop */
  header img {
    width: 180px;
    margin-bottom: 2.5rem;
  }
  
  /* Main heading - largest font size */
  h1 {
    font-size: 2.25rem;
  }
  
  /* Contact info section - maximum spacing */
  .contact-info {
    margin-bottom: 4rem;
  }
  
  /* Section heading - largest font size */
  .contact-info h2 {
    font-size: 1.75rem;
    margin-bottom: 2.5rem;
  }
  
  /* Contact info lines - largest font size */
  .address-line,
  .phone-line,
  .email-line {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }
  
  /* Icons - largest size */
  .icon {
    margin-right: 1rem;
    font-size: 1.6rem;
  }
  
  /* Footer - maximum spacing */
  footer {
    padding-top: 4rem;
    margin-top: 4rem;
  }
  
  /* Footer text - larger */
  footer p {
    font-size: 1.125rem;
  }
}
