/* ── Reset & Base ───────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold:   #f5a623;
  --orange: #e8751a;
  --dark:   #1a1a2e;
  --light:  #fdf6ec;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.6;
}

a { color: var(--gold); }

/* ── Hero ──────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    url('https://images.unsplash.com/photo-1495616811223-4d98c6e9c869?w=1400&q=80')
    center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 26, 46, .35) 0%,
    rgba(26, 26, 46, .70) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding: 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.tagline {
  font-size: 1.25rem;
  opacity: .85;
  margin-top: .5rem;
}

/* Sunrise info card */
.sunrise-card {
  margin-top: 2rem;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(245, 166, 35, .25);
  border-radius: 16px;
  display: inline-block;
  font-size: .95rem;
}

.sunrise-card .sun-times {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.sunrise-card .sun-times span {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sunrise-card .sun-times .label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .6;
}

.sunrise-card .sun-times .time {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.loading { opacity: .6; }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  opacity: .5;
  animation: bounce 2s infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* ── Gallery Section ───────────────────── */
.gallery-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.gallery-section h2,
.about-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(245,166,35,.15);
}

.card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.card figcaption {
  padding: .75rem 1rem;
  font-size: .9rem;
  opacity: .8;
  text-align: center;
}

/* ── Guestbook Section ─────────────────── */
.guestbook-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  text-align: center;
}

.guestbook-intro {
  opacity: .6;
  margin-bottom: 1.5rem;
}

.guestbook-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 2rem;
}

.guestbook-form input,
.guestbook-form textarea {
  padding: .75rem 1rem;
  border: 1px solid rgba(245,166,35,.25);
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  color: var(--light);
  font-family: inherit;
  font-size: .95rem;
  resize: vertical;
}

.guestbook-form input::placeholder,
.guestbook-form textarea::placeholder {
  color: rgba(253,246,236,.35);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(245,166,35,.15);
}

.guestbook-form button {
  padding: .75rem 2rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gold), var(--orange));
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity .2s;
}

.guestbook-form button:hover { opacity: .85; }
.guestbook-form button:disabled { opacity: .5; cursor: not-allowed; }

.photo-upload {
  text-align: left;
}

.photo-label {
  font-size: .85rem;
  opacity: .6;
  display: block;
  margin-bottom: .4rem;
}

.photo-upload input[type="file"] {
  font-size: .85rem;
  color: var(--light);
}

.photo-preview {
  margin-top: .5rem;
  font-size: .85rem;
  color: var(--gold);
}

.guestbook-entries { text-align: left; }

.gb-entry {
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
  background: rgba(255,255,255,.05);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
}

.gb-entry .gb-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: .4rem;
}

.gb-entry .gb-name {
  font-weight: 700;
  color: var(--gold);
}

.gb-entry .gb-date {
  font-size: .8rem;
  opacity: .4;
}

.gb-entry .gb-msg {
  opacity: .8;
  line-height: 1.5;
}

.gb-entry .gb-labels {
  margin-top: .4rem;
  font-size: .85rem;
  color: var(--gold);
  opacity: .7;
}

/* ── About Section ─────────────────────── */
.about-section {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
  text-align: center;
}

.about-section p { margin-bottom: 1rem; opacity: .85; }
.credit { font-size: .85rem; opacity: .5; }

/* ── Footer ────────────────────────────── */
footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: .85rem;
  opacity: .4;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ── Responsive ────────────────────────── */
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .sunrise-card .sun-times { gap: 1rem; }
}
