/* Casa Nueva Montessori - Simple Brochure Site */

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  font-family: 'Fredoka', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2d2d2d;
}

/* Accessibility: visually hidden but available to screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Hero section with background image */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  /* Fallback color while image loads */
  background-color: #4a7c59;
  /* Background image - replace photo.jpeg with clean version without text overlay */
  background-image: url('photo.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* Dark overlay for text readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
}

/* Content container */
.content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.82);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Main heading */
h1 {
  font-size: clamp(2.1rem, 6vw, 3rem);
  font-weight: 600;
  color: #4a7c59;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

/* Tagline description */
.tagline {
  font-size: 1.3rem;
  color: #444;
  margin: 0 0 1.5rem 0;
}

/* Hours */
.hours {
  font-size: 1.2rem;
  margin: 0 0 1.5rem 0;
  padding: 0.75rem;
  background: #f0f7f0;
  border-radius: 0.5rem;
}

/* Contact section */
.contact {
  margin: 0 0 1.5rem 0;
}

.contact p {
  margin: 0.5rem 0;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #2d6a4f;
  text-decoration: none;
  font-size: 1.25rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
  background: #4a7c59;
  color: white;
  outline: none;
}

.contact-link:focus {
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.4);
}

/* License footer */
.license {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  color: #666;
}

.license small {
  font-size: 1rem;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .hero {
    padding: 1rem;
    background-attachment: scroll; /* Better performance on mobile */
  }

  .content {
    padding: 1.5rem;
  }

  .contact-link {
    font-size: 0.95rem;
    word-break: break-word;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .contact-link {
    transition: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .content {
    background: white;
    border: 2px solid black;
  }

  .contact-link:hover,
  .contact-link:focus {
    background: black;
    color: white;
  }
}
