/* ================================
   BASTIAN UNION CHURCH THEME
   Colors inspired by Virginia's natural beauty:
   - Forest Green: #2d5016 (primary)
   - Mountain Blue: #4a6741 (secondary) 
   - Autumn Gold: #d4af37 (accent)
   - Stone Gray: #8b7d6b (neutral)
   - Warm Cream: #f5f3f0 (background)
   - Deep Earth: #3e2723 (text)
   ================================ */

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Source Sans Pro", "Segoe UI", Tahoma, Geneva, Verdana,
    sans-serif;
  line-height: 1.6;
  color: #3e2723;
  background-color: #2d5016;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  color: #2d5016;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  color: #2d5016;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #d4af37;
  text-decoration: underline;
}

/* Layout Containers */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Single-Screen Landing Layout */
.landing {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  background: url("../assets/images/building.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  /* Safe area padding for all edges */
  padding: max(2rem, env(safe-area-inset-top))
    max(2rem, env(safe-area-inset-right)) max(2rem, env(safe-area-inset-bottom))
    max(2rem, env(safe-area-inset-left));
}

.landing-container {
  display: grid;
  grid-template-columns: 1fr minmax(400px, max-content);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

/* Left column: Branding */
.landing-primary {
  color: white;
  background: rgba(45, 80, 22, 0.659);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.landing-primary h1 {
  color: white;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.landing-primary .tagline {
  font-size: 1.3rem;
  color: white;
  margin-bottom: 1.5rem;
}

.landing-primary .citation {
  white-space: nowrap;
}

.landing-primary .cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Right column: Info cards */
.landing-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(45, 80, 22, 0.659);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.info-section + .info-section {
  border-top: 1px solid #d4af37;
  padding-top: 1.5rem;
}

.info-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  border-bottom: none;
  padding-bottom: 0;
}

/* Service times list */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  color: white;
}

.service-item i {
  color: #d4af37;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.service-name {
  flex: 1;
}

.service-time {
  text-align: right;
}

/* Contact list */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #d4af37;
  text-decoration: none;
}

.contact-link i {
  color: #d4af37;
  width: 20px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}

.btn-facebook {
  background: rgba(24, 119, 242, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-facebook:hover {
  background: rgba(24, 119, 242, 1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

.btn-youtube {
  background: rgba(255, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-youtube:hover {
  background: rgba(255, 0, 0, 1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
  text-decoration: none;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  /* Landing mobile styles */
  .landing {
    padding: max(1.5rem, env(safe-area-inset-top))
      max(1.5rem, env(safe-area-inset-right))
      max(1.5rem, env(safe-area-inset-bottom))
      max(1.5rem, env(safe-area-inset-left));
    align-items: flex-start;
  }

  .landing-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .landing-primary {
    text-align: center;
  }

  .landing-primary .cta-buttons {
    justify-content: center;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .landing {
    padding: max(1rem, env(safe-area-inset-top))
      max(1rem, env(safe-area-inset-right))
      max(1rem, env(safe-area-inset-bottom))
      max(1rem, env(safe-area-inset-left));
  }

  .landing-container {
    gap: 1.5rem;
  }

  .landing-primary {
    padding: 1.5rem;
  }

  .landing-primary h1 {
    font-size: 1.85rem;
  }

  .landing-primary .tagline {
    font-size: 1.05rem;
  }

  .landing-info {
    padding: 1.5rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
  }

  .contact-link {
    word-break: break-word;
  }
}

/* Very small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
  .landing-primary h1 {
    font-size: 1.65rem;
  }

  .landing-primary .tagline {
    font-size: 1rem;
  }

  .btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .info-section h2 {
    font-size: 1.1rem;
  }
}

/* Print Styles */
@media print {
  .cta-buttons,
  .btn {
    display: none;
  }

  .landing {
    min-height: auto;
    padding: 2rem 0;
    background: none;
  }

  .landing-primary,
  .landing-info {
    background: white;
    backdrop-filter: none;
    border: 1px solid #ccc;
  }

  .landing-primary h1,
  .landing-primary .tagline {
    color: black;
    text-shadow: none;
  }

  .info-section h2,
  .service-item,
  .contact-link {
    color: black;
  }

  body {
    font-size: 12pt;
    line-height: 1.4;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .landing {
    background: #2d5016;
  }
}

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

  .landing {
    background-attachment: scroll;
  }
}
