/* ===================================================================
   WORD WEEKEND · GATE MINISTRIES BLOUBERG
   Photo-driven hero · clean content · warm gold accents
   =================================================================== */

:root {
  /* Whites & warms */
  --white:         #ffffff;
  --cream:         #fdfaf3;
  --cream-mid:     #f7f0e2;
  --border-light:  #ece4d3;
  --border:        #d5c9b4;

  /* Text scale */
  --text-strongest:#1a140c;
  --text-strong:   #2d251a;
  --text-body:     #524736;
  --text-muted:    #8a7f6c;
  --text-faint:    #b0a693;

  /* Accent — warm gold */
  --accent:        #c8965a;
  --accent-dark:   #a97240;
  --accent-hover:  #d6a26a;
  --accent-soft:   #f5ead6;

  /* Feedback */
  --error:         #b53a3a;
  --error-bg:      #fdf3f3;
  --error-border:  #f3cfcf;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow {
  max-width: 560px;
}


/* ===================================================================
   HERO
   =================================================================== */

.hero {
  position: relative;
  height: clamp(460px, 68vh, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

/*
   To add a real hero photo:
   Save any beautiful worship / prayer / Bible / church photo as
   `hero.jpg` in the same folder as index.html. It will drop right in.
   Recommended: at least 1600×900 pixels, landscape.
   If no hero.jpg is present, the warm gradient fallback is shown.
*/
.hero-media {
  position: absolute;
  inset: 0;
  background-color: #1a120c;
  background-image:
    url('hero.jpg'),
    radial-gradient(ellipse at 50% 40%, rgba(200, 140, 70, 0.35) 0%, transparent 60%),
    linear-gradient(135deg, #4a3220 0%, #2a1b10 55%, #14100b 100%);
  background-size: cover, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
}

/* Warm film-grain / atmosphere over the hero */
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' seed='5'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.9 0 0 0 0 0.75 0 0 0 0.4 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dark overlay for text legibility */
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.7) 100%),
    radial-gradient(ellipse at center, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
  max-width: 820px;
  animation: fade-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: var(--white);
  margin-bottom: 2.25rem;
  opacity: 0.95;
}
.hero-logo svg { width: 100%; height: 100%; }
.hero-logo-img {
  width: auto;
  height: 110px;
  max-width: 200px;
  object-fit: contain;
}

.hero-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 1rem;
  padding-left: 0.38em; /* optically balance the letter-spacing */
}

.hero-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 8.5vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0 0 1.25rem;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
}

.hero-date {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: clamp(0.85rem, 1.6vw, 1.05rem);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  padding-left: 0.28em;
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-scroll:hover { color: var(--white); }
.hero-scroll svg {
  width: 22px;
  height: 22px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

@media (max-width: 640px) {
  .hero { height: clamp(400px, 75vh, 520px); }
  .hero-logo { width: 50px; height: 50px; margin-bottom: 1.75rem; }
  .hero-logo-img { width: auto; height: 90px; }
}


/* ===================================================================
   EVENT DETAILS
   =================================================================== */

.details {
  background: var(--cream);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

.detail-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.9rem;
}

.detail-value {
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-strong);
  margin: 0;
  line-height: 1.6;
}

.sessions {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sessions li {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-light);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
}
.sessions li:last-child { border-bottom: none; }
.session-day {
  font-weight: 700;
  color: var(--text-strongest);
}
.session-name {
  color: var(--text-body);
  font-weight: 400;
}
.session-time {
  font-weight: 600;
  color: var(--accent-dark);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .details { padding: 2.75rem 0; }
  .details-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .sessions li {
    grid-template-columns: 90px 1fr auto;
    gap: 0.75rem;
    font-size: 0.95rem;
  }
}


/* ===================================================================
   REGISTRATION
   =================================================================== */

.registration {
  background: var(--white);
  padding: 5rem 0 4.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 1.25rem;
}
.section-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.9rem;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  color: var(--text-strongest);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.section-intro {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.75;
  margin: 0 auto 2.5rem;
  max-width: 34rem;
}
.section-intro strong {
  color: var(--text-strong);
  font-weight: 600;
}

/* === Form === */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field--full { grid-column: 1 / -1; }

.field-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.field input {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-strongest);
  background: var(--cream);
  border: 1.5px solid var(--border-light);
  border-radius: 6px;
  padding: 0.95rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: var(--text-faint); }

.field input:hover {
  border-color: var(--border);
}
.field input:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 150, 90, 0.18);
}

/* Submit button (warm gold, prominent) */
.btn-submit {
  position: relative;
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--white);
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1.15rem 1.5rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 18px rgba(200, 150, 90, 0.32);
}
.btn-submit:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(200, 150, 90, 0.42);
}
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled {
  cursor: wait;
  opacity: 0.78;
}
.btn-submit:disabled .btn-label { visibility: hidden; }
.btn-submit:disabled .btn-spinner { display: block; }

.btn-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid var(--white);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-note {
  margin: 1rem 0 0;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
}

.form-error {
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  padding: 0.85rem 1rem;
  border-radius: 6px;
  margin: 0 0 1.25rem;
  text-align: center;
  line-height: 1.5;
}

/* === Success view === */
.success { text-align: center; }
.success-mark {
  display: inline-flex;
  width: 68px;
  height: 68px;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: bloom 0.65s 0.15s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}
@keyframes bloom {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
#success-view .section-title span {
  color: var(--accent-dark);
  text-transform: none;
  letter-spacing: 0;
  padding-left: 0.1em;
}
.success-verse {
  margin: 2.5rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  font-family: 'Poppins', sans-serif;
  font-style: italic;
  font-weight: 300;
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 30rem;
  line-height: 1.75;
}
.success-verse span {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .registration { padding: 3.5rem 0 3rem; }
  .form-grid { grid-template-columns: 1fr; gap: 1rem; }
}


/* ===================================================================
   FOOTER
   =================================================================== */

.site-footer {
  background: var(--cream-mid);
  padding: 3.5rem 0 3rem;
  border-top: 1px solid var(--border-light);
}

.footer-content {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.footer-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 0.75rem;
}
.footer-name {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-strongest);
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}
.footer-contact {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-body);
  margin-bottom: 2rem;
}
.footer-contact a {
  color: var(--text-body);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.footer-contact a:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
}
.footer-dot {
  margin: 0 0.6rem;
  color: var(--text-faint);
}
.footer-divider {
  width: 44px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 1.75rem;
}
.footer-website {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.footer-website:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 480px) {
  .footer-contact a { display: block; margin: 0.25rem 0; }
  .footer-dot { display: none; }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html { scroll-behavior: auto; }
}
