/* Old Mission Santa Inés - Custom Styles */
/* Design Philosophy: Warm Minimalism meets Spanish Colonial Revival */

/* ============================================
   CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================ */
:root {
  --mission-white: #F2F2F2;
  --franciscan-brown: #46372F;
  --terracotta-clay: #B16446;
  --sage-green: #73806E;
  --sandstone: #D9CBBF;
  --deep-charcoal: #1D1814;
  
  /* Spacing */
  --section-padding: clamp(3rem, 8vw, 6rem);
  --section-spacing-sm: 4rem;
  --section-spacing-md: 6rem;
  --section-spacing-lg: 8rem;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   BASE STYLES
   ============================================ */
html {
  scroll-behavior: smooth;
}

::selection {
  background-color: var(--terracotta-clay);
  color: white;
}

/* ============================================
   TYPOGRAPHY ENHANCEMENTS
   ============================================ */
.text-balance {
  text-wrap: balance;
}

.drop-cap::first-letter {
  float: left;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 4rem;
  line-height: 0.8;
  padding-right: 0.5rem;
  color: var(--terracotta-clay);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
  position: relative;
  transition: var(--transition-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--terracotta-clay);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile menu animation */
.mobile-menu {
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(29, 24, 20, 0.3) 0%,
    rgba(29, 24, 20, 0.5) 50%,
    rgba(29, 24, 20, 0.7) 100%
  );
}

.hero-text-shadow {
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background-color: var(--terracotta-clay);
  color: white;
  padding: 0.875rem 2rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  transition: var(--transition-smooth);
  border: 2px solid var(--terracotta-clay);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--terracotta-clay);
}

.btn-outline {
  background-color: transparent;
  color: white;
  padding: 0.875rem 2rem;
  font-weight: 600;
  letter-spacing: 0.025em;
  border: 2px solid white;
  transition: var(--transition-smooth);
}

.btn-outline:hover {
  background-color: white;
  color: var(--franciscan-brown);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background-color: white;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  transform: translateY(-4px);
}

.card-image {
  aspect-ratio: 16/10;
  object-fit: cover;
  width: 100%;
}

/* ============================================
   SECTION DIVIDERS
   ============================================ */
.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--sandstone),
    var(--terracotta-clay),
    var(--sandstone),
    transparent
  );
}

/* Decorative cross divider */
.cross-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cross-divider::before,
.cross-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--sandstone);
}

/* ============================================
   QUICK LINKS BAR
   ============================================ */
.quick-links-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  transition: var(--transition-smooth);
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.quick-link:not(:last-child) {
  border-right: 1px solid var(--sandstone);
}

.quick-link:hover {
  background-color: rgba(217, 203, 191, 0.3);
  border-bottom-color: var(--terracotta-clay);
}

.quick-link i {
  font-size: 1.5rem;
  color: var(--terracotta-clay);
}

/* ============================================
   MESSAGE SECTION
   ============================================ */
.pastor-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--sandstone);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.blockquote-script {
  font-family: 'Pinyon Script', cursive;
  font-size: 2rem;
  color: var(--sage-green);
}

/* ============================================
   FOOTER
   ============================================ */
footer a {
  transition: var(--transition-smooth);
}

footer a:hover {
  color: var(--terracotta-clay);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Image golden hour filter */
.golden-hour {
  filter: sepia(10%) saturate(110%) brightness(105%);
}

/* Linocut icon style */
.icon-linocut {
  filter: drop-shadow(1px 1px 0 var(--franciscan-brown));
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }
  
  .quick-link {
    padding: 1rem 0.5rem;
  }
  
  .quick-link span {
    font-size: 0.75rem;
  }
}

/* ============================================
   MASS SCHEDULE STYLES
   ============================================ */
.mass-time {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sandstone);
}

.mass-time:last-child {
  border-bottom: none;
}

.livestream-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--terracotta-clay);
  background-color: rgba(177, 100, 70, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

/* ============================================
   EVENTS SECTION
   ============================================ */
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background-color: var(--terracotta-clay);
  color: white;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.event-date .month {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.event-date .day {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

/* ============================================
   TOUR INFO STYLES
   ============================================ */
.tour-card {
  background: linear-gradient(135deg, white 0%, var(--mission-white) 100%);
  border-left: 4px solid var(--terracotta-clay);
}

.price-tag {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--terracotta-clay);
}

/* ============================================
   TIMELINE STYLES
   ============================================ */
.timeline-item {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--sandstone);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0;
  width: 10px;
  height: 10px;
  background-color: var(--terracotta-clay);
  border-radius: 50%;
}

/* ============================================
   FORM STYLES
   ============================================ */
input, textarea, select {
  border: 1px solid var(--sandstone);
  background-color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  transition: var(--transition-smooth);
  font-family: inherit;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--terracotta-clay);
  box-shadow: 0 0 0 3px rgba(177, 100, 70, 0.1);
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--sandstone) 25%,
    var(--mission-white) 50%,
    var(--sandstone) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
}
