/*
  styles.css
  Mobile-first, accessible, high-contrast styles for Dodger Stadium suite guest contact menu
*/

:root {
  --dodger-blue: #005a9c;
  --dodger-blue-light: #1e88e5;
  --dodger-blue-dark: #003a6c;
  --dodger-silver: #a5acaf;
  --button-text: #fff;
  --error-bg: #fff3cd;
  --error-text: #856404;
  --font-main: 'Segoe UI', Arial, sans-serif;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  color: #222;
  min-height: 100vh;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  background-image: url('https://raw.githubusercontent.com/losangelesdodgers/assets/refs/heads/master/Suite%20Contact%20Menu%20Site%20Background%202608x2608%20Opt%202.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 12rem 1rem 4rem;
  box-sizing: border-box;
  background: none;
  position: relative;
  z-index: 2;
}

.page-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, 
    rgba(255,255,255,0.92) 0%, 
    rgba(255,255,255,0.75) 20%, 
    rgba(255,255,255,0.45) 50%, 
    rgba(255,255,255,0.15) 75%, 
    rgba(255,255,255,0) 100%);
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}

.logo {
  width: clamp(250px, 45vw, 350px);
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
  pointer-events: auto;
}

#page-title {
  display: none;
}

.contacts-list {
  width: 90%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.contact-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--dodger-blue) 0%, var(--dodger-blue-dark) 100%);
  color: var(--button-text);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

/* Phone icon on the right */
.contact-btn::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-17 0-.55.45-1 1-1h3.5c.55 0 1 .45 1 1 0 1.25.2 2.45.57 3.57.11.35.03.74-.25 1.02l-2.2 2.2z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.9;
}

.contact-btn:focus {
  box-shadow: 0 0 0 3px rgba(30,136,229,0.5), 0 4px 20px rgba(0,0,0,0.25);
}

.contact-btn:hover {
  background: linear-gradient(135deg, var(--dodger-blue-light) 0%, var(--dodger-blue) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.contact-btn:active {
  background: linear-gradient(135deg, var(--dodger-blue-dark) 0%, #002850 100%);
  transform: translateY(0);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.error-message {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--error-bg);
  color: var(--error-text);
  border-radius: 0.5rem;
  font-size: 1rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 500px) {
  #page-title {
    font-size: 2.75rem;
    margin-bottom: 2.5rem;
  }
  .contact-btn {
    font-size: 1.2rem;
    padding: 1.25rem 3.5rem 1.25rem 1.5rem;
  }
  .contact-btn::after {
    width: 1.4rem;
    height: 1.4rem;
    right: 1.25rem;
  }
}

/* Mobile: full background coverage and centered content */
@media (max-width: 600px) {
  body {
    background: none;
  }

  body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: url('https://raw.githubusercontent.com/losangelesdodgers/assets/refs/heads/master/Suite%20Contact%20Menu%20Site%20Background%202608x2608%20Opt%202.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    pointer-events: none;
  }

  main {
    justify-content: center;
    min-height: 100svh;
    padding: 10rem 1rem 3rem;
    width: 100%;
  }

  .page-header {
    height: 45%;
  }

  .logo {
    width: clamp(200px, 55vw, 300px);
  }

  .contacts-list {
    width: 92%;
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-btn {
    padding: 1.15rem 2.5rem 1.15rem 1rem;
    font-size: 1.05rem;
    min-height: 56px;
  }

  .contact-btn::after {
    width: 1.1rem;
    height: 1.1rem;
    right: 0.9rem;
  }
}
