/* =============================================================
   RESTORATION FAMILY REUNION - Styles
   Colors: Royal Blue, Gold, Cream, Forest Green
   ============================================================= */

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

:root {
  --blue: #1a365d;
  --blue-light: #2a4a7f;
  --gold: #d4a847;
  --gold-light: #e8c96a;
  --cream: #faf8f0;
  --green: #2d5016;
  --green-light: #4a7a2e;
  --white: #ffffff;
  --gray: #666666;
  --gray-light: #e2e0d8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
  background: var(--cream);
  line-height: 1.7;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; color: var(--blue); }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--gold); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- Navigation --- */
nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--blue);
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

nav .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 20px;
}

nav .logo {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 15px 0;
}

nav .nav-links {
  display: flex; list-style: none; gap: 2px;
}

nav .nav-links a {
  color: var(--cream);
  padding: 20px 9px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s, border-bottom 0.3s;
  display: block;
  border-bottom: 3px solid transparent;
}

nav .nav-links a:hover,
nav .nav-links a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 10px;
}

.hamburger span {
  width: 25px; height: 3px;
  background: var(--cream);
  border-radius: 3px;
  transition: 0.3s;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 50%, var(--green) 100%);
  color: var(--cream);
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '✝';
  position: absolute;
  font-size: 20rem;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--gold);
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero .theme {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-style: italic;
  color: var(--cream);
  margin-bottom: 8px;
  opacity: 0.95;
}

.hero .scripture {
  font-size: 0.95rem;
  opacity: 0.8;
  margin-bottom: 30px;
}

.hero .details {
  font-size: 1.2rem;
  margin-bottom: 35px;
  line-height: 2;
}

.hero .details strong { color: var(--gold-light); }

.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-gold {
  background: var(--gold);
  color: var(--blue);
}

.btn-gold:hover {
  background: var(--gold-light);
  color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212,168,71,0.4);
}

/* --- Section Styles --- */
section { padding: 80px 0; }

.section-title {
  text-align: center;
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
  margin-bottom: 50px;
}

.gold-divider {
  width: 80px; height: 3px;
  background: var(--gold);
  margin: 15px auto 20px;
  border-radius: 2px;
}

/* --- About Section --- */
.about { background: var(--white); }

.about-content {
  max-width: 750px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  color: #555;
}

.about-verse {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--blue);
  margin-top: 30px;
  padding: 25px;
  border-left: 4px solid var(--gold);
  background: var(--cream);
  text-align: left;
  border-radius: 0 8px 8px 0;
}

.about-verse cite {
  display: block;
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--gray);
  font-style: normal;
  font-family: 'Open Sans', sans-serif;
}

/* --- Schedule Section --- */
.schedule { background: var(--cream); }

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.day-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  border-top: 4px solid var(--gold);
  transition: transform 0.3s;
}

.day-card:hover { transform: translateY(-3px); }

.day-card h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.day-card .date {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.day-card ul {
  list-style: none;
  font-size: 0.92rem;
}

.day-card ul li {
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-light);
  display: flex;
  gap: 10px;
}

.day-card ul li:last-child { border-bottom: none; }

.day-card .time {
  font-weight: 700;
  color: var(--blue);
  min-width: 75px;
}

.day-card .day-theme {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.day-card .day-scripture {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 14px;
}

.day-card .day-note {
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
  font-style: italic;
  margin-top: 2px;
  margin-bottom: 4px;
}

/* --- Classes Section --- */
.classes { background: var(--white); }

.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.class-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.3s;
}

.class-card:hover { transform: translateY(-3px); }

.class-card .icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.class-card h3 { margin-bottom: 10px; font-size: 1.3rem; }

.class-card p { color: var(--gray); font-size: 0.95rem; }

/* --- Registration Section --- */
.registration {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-light) 100%);
  color: var(--cream);
}

.registration .section-title { color: var(--gold); }
.registration .section-subtitle { color: rgba(250,248,240,0.7); }

.reg-form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  color: #333;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.fee-info {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.fee-info strong { color: var(--blue); font-size: 1.1rem; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-family: 'Open Sans', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

/* Family members */
.family-section { margin: 25px 0; }

.family-section h3 {
  font-size: 1.1rem;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}

.family-member {
  display: grid;
  grid-template-columns: 1fr 80px auto 40px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.family-member .grade-cell select {
  padding: 10px 8px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  cursor: pointer;
  min-width: 120px;
}

.family-member .grade-cell select:focus {
  outline: none;
  border-color: var(--gold);
}

.family-member input {
  padding: 10px 12px;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
}

.family-member input:focus {
  outline: none;
  border-color: var(--gold);
}

.family-member .label-tag {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
}

.btn-remove {
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.btn-remove:hover { background: #c0392b; }

.btn-add {
  background: var(--green);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.3s;
  margin-top: 5px;
}

.btn-add:hover { background: var(--green-light); }

.children-count {
  background: var(--cream);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 10px;
  color: var(--blue);
  font-weight: 600;
}

/* Accommodation */
.radio-group { display: flex; gap: 20px; flex-wrap: wrap; }

.radio-option {
  flex: 1;
  min-width: 200px;
  padding: 15px 20px;
  border: 2px solid var(--gray-light);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.radio-option:hover { border-color: var(--gold); }

.radio-option input[type="radio"] { 
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.radio-option:has(input[type="radio"]:checked) {
  border-color: var(--gold);
  background: rgba(212,168,71,0.08);
}

.radio-option .radio-icon { font-size: 1.5rem; }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--blue);
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-submit:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212,168,71,0.4);
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success .checkmark { font-size: 4rem; margin-bottom: 15px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 10px; }
.form-success p { color: var(--gray); }

/* --- Location Section --- */
.location { background: var(--cream); }

.location-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.location-info h3 { font-size: 1.5rem; margin-bottom: 15px; }

.location-info p {
  margin-bottom: 12px;
  color: #555;
  font-size: 1.05rem;
}

.location-info .icon-text {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.location-info .icon-text span { font-size: 1.3rem; }

.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-height: 300px;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray);
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* --- Contact Section --- */
.contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 30px;
  background: var(--cream);
  border-radius: 12px;
}

.contact-card .icon { font-size: 2rem; margin-bottom: 10px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.contact-card p { color: var(--gray); }

/* --- Footer --- */
footer {
  background: var(--blue);
  color: var(--cream);
  text-align: center;
  padding: 30px 20px;
}

footer .footer-theme {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 10px;
}

footer p { font-size: 0.85rem; opacity: 0.7; }

/* --- Countdown Timer --- */
.countdown {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.countdown-box {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(212,168,71,0.3);
  border-radius: 12px;
  padding: 16px 12px;
  min-width: 80px;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}

.countdown-box:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.18);
}

.countdown-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}

.countdown-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(250,248,240,0.7);
  margin-top: 4px;
}

.countdown-reached {
  margin-bottom: 30px;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

/* --- Photo Gallery Section --- */
.gallery { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  aspect-ratio: 4/3;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  display: block;
}

.gallery-card:hover img {
  transform: scale(1.08);
  filter: brightness(0.75);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,54,93,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Gallery Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-overlay.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  font-weight: 300;
  transition: color 0.3s;
  z-index: 10001;
  background: none;
  border: none;
}

.lightbox-close:hover { color: var(--gold); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.lightbox-nav:hover { background: rgba(212,168,71,0.3); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* --- Travel Tips --- */
.travel-tips {
  margin-top: 40px;
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  border-left: 4px solid var(--gold);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.travel-tips h3 {
  font-size: 1.3rem;
  margin-bottom: 18px;
  color: var(--blue);
}

.travel-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.travel-tips li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.travel-tips .tip-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

/* --- FAQ Section --- */
.faq { background: var(--white); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-light);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-light);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue);
  text-align: left;
  gap: 15px;
  transition: color 0.3s, background 0.3s;
}

.faq-question:hover {
  color: var(--gold);
  background: rgba(212,168,71,0.04);
}

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  font-family: 'Open Sans', sans-serif;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 22px;
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 0 22px 20px;
}

.faq-answer p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--blue);
    flex-direction: column;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  nav .nav-links.open { display: flex; }

  nav .nav-links a {
    padding: 12px 20px;
    border-bottom: none;
  }

  .hero h1 { font-size: 2.2rem; }
  .hero .theme { font-size: 1.2rem; }
  .hero .details { font-size: 1rem; }

  .section-title { font-size: 1.8rem; }

  .form-row { grid-template-columns: 1fr; }
  .family-member { grid-template-columns: 1fr 70px auto 40px; }

  .location-content { grid-template-columns: 1fr; }

  .radio-group { flex-direction: column; }

  /* Countdown responsive */
  .countdown { gap: 10px; }
  .countdown-box { min-width: 60px; padding: 12px 8px; }
  .countdown-number { font-size: 1.6rem; }
  .countdown-label { font-size: 0.65rem; }

  /* Gallery responsive */
  .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }

  /* FAQ responsive */
  .faq-question { padding: 16px 18px; font-size: 0.95rem; }
  .faq-answer { padding: 0 18px; }

  /* Travel tips responsive */
  .travel-tips { padding: 20px; }
  .travel-tips ul { gap: 12px; }
}
