/* =============================================
   Hub Page — CSS
   ============================================= */
:root {
  --clay: #b07d62;
  --clay-dark: #8f6249;
  --clay-light: #e8d3c5;
  --sage: #8fb0a0;
  --sage-light: #d6e8e1;
  --bg: #faf8f5;
  --white: #ffffff;
  --text-dark: #1a1a1a;
  --text-mid: #4a4a4a;
  --text-light: #888;
  --border: #e8e2db;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
}

/* ---- Hero ---- */
.hero {
  background: #2d2520;
  background-image: radial-gradient(ellipse at 30% 50%, rgba(176,125,98,0.18) 0%, transparent 60%),
                    radial-gradient(ellipse at 70% 50%, rgba(143,176,160,0.12) 0%, transparent 60%);
  padding: clamp(48px, 8vw, 80px) 24px clamp(40px, 6vw, 64px);
  text-align: center;
}

.hero-eyebrow {
  font-size: clamp(0.7rem, 1.5vw, 0.8rem);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay-light);
  margin-bottom: 16px;
}

.hero-names {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-date {
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

/* ---- Main ---- */
.hub-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ---- Section ---- */
.hub-section {
  margin-bottom: 56px;
}

.hub-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 32px;
}

/* ---- Store Grid ---- */
.store-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.store-tile {
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  min-height: 140px;
}

.store-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--clay-light);
}

.store-tile img {
  width: 80%;
  height: auto;
  display: block;
  object-fit: contain;
}

.store-tile-text {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.3;
}

.store-tile-mec {
  flex-direction: column;
  gap: 8px;
}

.mec-logo-mark {
  font-size: 2rem;
  line-height: 1;
}

.mec-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

/* ---- Honeymoon Fund ---- */
.hf-wrapper {
  display: flex;
  justify-content: center;
}

.hf-card {
  background: var(--white);
  border-radius: 20px;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 40px 48px;
  text-align: center;
  max-width: 480px;
  width: 100%;
}

.hf-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
  line-height: 1;
}

.hf-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.hf-description {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 20px;
}

.hf-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-top: 4px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), opacity var(--transition);
  white-space: nowrap;
}

.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary { background: var(--clay); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--clay-dark); }

/* ---- Contribution Modal ---- */
.hf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,15,12,0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.hf-modal-overlay[hidden] { display: none; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.hf-modal {
  background: var(--white);
  border-radius: 20px;
  padding: 36px 32px;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
  max-height: 90vh;
  overflow-y: auto;
}

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

.hf-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: none;
  background: rgba(0,0,0,0.07);
  color: var(--text-mid);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.hf-modal-close:hover { background: rgba(0,0,0,0.14); }

.hf-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.hf-modal-desc {
  font-size: 0.88rem;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* Form */
.hf-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-mid);
}

.form-field input {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-dark);
  transition: border-color 0.15s;
  width: 100%;
}

.form-field input:focus {
  outline: none;
  border-color: var(--clay);
}

.form-error {
  font-size: 0.82rem;
  color: #c0392b;
  background: #fdf0ee;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
}

.form-error.visible { display: block; }

/* Thank you */
.hf-thankyou {
  text-align: center;
  padding: 16px 0;
}

.hf-thankyou .ty-icon { font-size: 3rem; margin-bottom: 14px; }

.hf-thankyou h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.hf-thankyou p { font-size: 0.9rem; color: var(--text-mid); }

/* ---- Footer ---- */
.site-footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 0.85rem;
  color: var(--text-light);
  border-top: 1px solid var(--border);
}

.admin-login-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.15s;
}

.admin-login-link:hover { opacity: 1; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .store-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .hf-card {
    padding: 32px 24px;
  }

  .hf-modal {
    padding: 28px 22px;
  }
}
