/* ==========================================================================
   EL RANCHO SAGRADO - Restaurant Coming Soon Stylesheet
   Premium Moody Dark Mexican Restaurant Theme
   ========================================================================== */

:root {
  /* --- Colors --- */
  --bg-dark: #070504;
  --accent-red: #d33c29; /* Heritage Terracotta Red */
  --accent-red-hover: #b82f1f;
  --text-white: #ffffff;
  --text-cream: #e6ded6; /* Soft warm cream */
  --text-muted: #9c9187; /* Sandy gray */
  --border-light: rgba(255, 255, 255, 0.15);

  /* --- Transitions --- */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- Base Setup --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Outfit', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Full-screen Moody Food Background --- */
.background-cover {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/food-bg.png');
  background-size: cover;
  background-position: center;
  z-index: 1;
  transform: scale(1.02); /* Prevents edge gaps and adds a subtle parallax feel */
  filter: contrast(1.05) brightness(0.95);
}

/* Cinematic Dark Vignette Overlay to ensure text readability */
.vignette-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, 
    rgba(7, 5, 4, 0.45) 0%, 
    rgba(7, 5, 4, 0.88) 85%, 
    rgba(7, 5, 4, 0.95) 100%);
  z-index: 2;
}

/* --- Page Layout --- */
.page-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem;
  z-index: 3;
  max-width: 1300px;
  margin: 0 auto;
}

/* --- Site Header --- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.location-text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-cream);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.location-text i {
  color: var(--accent-red);
  margin-right: 0.4rem;
}

.header-socials {
  display: flex;
  gap: 1.5rem;
}

.social-link {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  color: var(--text-white);
  transform: translateY(-2px);
}

/* --- Centered Hero Content --- */
.main-content {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.coming-soon-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 800px;
  width: 100%;
}

/* --- Dynamic White Logo --- */
.restaurant-logo-wrapper {
  margin-bottom: 1.5rem;
  transition: var(--transition-smooth);
}

.restaurant-logo-img {
  width: 320px;
  max-width: 85%;
  height: auto;
  /* Converts transparent red logo into white dynamically */
  filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.6));
}

.coming-soon-hero:hover .restaurant-logo-wrapper {
  transform: scale(1.02);
}

/* --- Restaurant Slogan (Playfair Display Italic) --- */
.restaurant-slogan {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.45rem);
  color: var(--text-cream);
  letter-spacing: 0.01em;
  line-height: 1.6;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  max-width: 600px;
}

/* --- COMING SOON Heading (Cinzel Bold) --- */
.main-title {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: var(--text-white);
  letter-spacing: 0.12em;
  line-height: 1.1;
  margin-bottom: 3rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

/* --- Signup Form Details (Luxury Square Corners) --- */
.invitation-box {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
}

.invite-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
}

@media (min-width: 580px) {
  .invite-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.input-wrapper {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
  transition: var(--transition-fast);
}

.email-input {
  width: 100%;
  padding: 1.1rem 1rem 1.1rem 2.8rem;
  background: rgba(7, 5, 4, 0.65);
  border: 1px solid var(--border-light);
  border-radius: 4px; /* Classic sharp corners */
  color: var(--text-white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.email-input::placeholder {
  color: rgba(156, 145, 135, 0.5);
}

.email-input:focus {
  outline: none;
  background: rgba(7, 5, 4, 0.8);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.email-input:focus ~ .input-icon {
  color: var(--text-white);
}

/* Red Terracotta Submit Button */
.submit-btn {
  padding: 1.1rem 2.2rem;
  background: var(--accent-red);
  border: none;
  border-radius: 4px; /* Matches input corners */
  color: var(--text-white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(211, 60, 41, 0.35);
}

.submit-btn:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 6px 20px rgba(211, 60, 41, 0.5);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: var(--transition-fast);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* --- Validation Error states --- */
.email-input.invalid {
  border-color: var(--accent-red);
  box-shadow: 0 0 10px rgba(211, 60, 41, 0.2);
}

/* --- Notifications --- */
.notification-container {
  margin-top: 1.25rem;
  border-radius: 4px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(39, 110, 57, 0.15);
  border: 1px solid rgba(39, 110, 57, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.notification-container.show {
  max-height: 65px;
  opacity: 1;
  padding: 1rem;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.success-icon {
  color: #4cd964;
  font-size: 1.1rem;
}

.notification-message {
  font-size: 0.9rem;
  color: #e0f2e5;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- Footer Styling --- */
.site-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 600px) {
  .page-wrapper {
    padding: 1.5rem;
  }
  
  .site-header {
    flex-direction: column;
    gap: 0.85rem;
  }
  
  .main-content {
    padding: 2rem 0;
  }
  
  .restaurant-logo-img {
    width: 240px;
  }
  
  .main-title {
    margin-bottom: 2.25rem;
  }
  
  .email-input, .submit-btn {
    font-size: 0.85rem;
    padding: 0.95rem 1.5rem;
  }
}
