/* =============================================
   Rouse Family Reunion — Main Stylesheet
   ============================================= */

:root {
  --color-primary:    #2c5f2e;   /* deep forest green */
  --color-accent:     #97bc62;   /* light green */
  --color-warm:       #f4a261;   /* warm orange */
  --color-bg:         #faf7f2;   /* warm off-white */
  --color-text:       #2d2d2d;
  --color-muted:      #666;
  --color-white:      #ffffff;
  --font-heading:     'Georgia', serif;
  --font-body:        'Segoe UI', Arial, sans-serif;
  --radius:           8px;
  --shadow:           0 4px 16px rgba(0,0,0,0.10);
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

/* ---- Header / Hero ---- */
header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #3d7a40 100%);
  color: var(--color-white);
  padding: 60px 40px 50px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  text-align: center;
  flex: 1 1 auto;
}

/* ---- Portrait frame in hero ---- */
.hero-portrait {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-portrait img {
  width: 180px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  border: 5px solid rgba(255,255,255,0.85);
  box-shadow:
    0 0 0 2px rgba(255,255,255,0.3),
    0 8px 28px rgba(0,0,0,0.45),
    inset 0 0 0 1px rgba(0,0,0,0.08);
  display: block;
}

.hero-portrait figcaption {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 10px;
}

header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400;
  opacity: 0.9;
  margin-top: 8px;
}

.countdown-banner {
  display: inline-block;
  background: var(--color-warm);
  color: var(--color-white);
  border-radius: 30px;
  padding: 10px 28px;
  margin-top: 24px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ---- Navigation ---- */
nav {
  background: var(--color-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
}

nav ul li a {
  display: block;
  padding: 16px 22px;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ---- Main content ---- */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  border-top: 4px solid var(--color-accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}

.card-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.card h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

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

/* ---- Section headings ---- */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 32px;
}

.divider {
  border: none;
  border-top: 2px solid var(--color-accent);
  width: 60px;
  margin: 12px auto 24px;
  opacity: 0.6;
}

/* ---- Location / Map section ---- */
.location-block {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.location-details {
  flex: 1 1 220px;
}

.location-details h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.location-details address {
  font-style: normal;
  color: var(--color-muted);
  line-height: 1.8;
  margin-bottom: 18px;
}

.map-link {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 11px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s;
}

.map-link:hover {
  background: var(--color-accent);
}

.map-embed {
  flex: 2 1 320px;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.map-embed iframe {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* ---- Footer ---- */
footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.88rem;
}

footer a {
  color: var(--color-accent);
  text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 28px;
  }
  .hero-portrait img {
    width: 140px;
    height: 170px;
  }
  .location-block {
    padding: 24px 18px;
  }
  nav ul li a {
    padding: 14px 14px;
    font-size: 0.88rem;
  }
}
