@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&display=swap');

/* ── Variables ── */
:root {
  --cream: #faf7f2;
  --warm-white: #fff9f2;
  --ink: #2c2416;
  --bark: #7a5c3a;
  --moss: #5a7a52;
  --gold: #c9943a;
  --blush: #e8d5c0;
  --shadow: rgba(44, 36, 22, 0.1);
}

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

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.7;
}

/* ── Nav ── */
nav {
  background: var(--warm-white);
  border-bottom: 1px solid var(--blush);
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px var(--shadow);
}

.nav-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--bark);
  text-decoration: none;
  letter-spacing: 0.02em;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--bark); font-weight: 700; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #e8d5c0 0%, #d4b896 50%, #c9a87a 100%);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::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.08'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-content { position: relative; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1rem;
  animation: fadeUp 0.8s ease both;
}

.hero p {
  font-size: 1.1rem;
  color: var(--bark);
  max-width: 480px;
  margin: 0 auto 2rem;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-img {
  width: min(420px, 90%);
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.2);
  margin-top: 2rem;
  animation: fadeUp 0.8s 0.3s ease both;
  border: 6px solid white;
}

/* ── Page header (inner pages) ── */
.page-header {
  background: var(--blush);
  padding: 3rem 2rem;
  text-align: center;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--bark);
}

/* ── Sections ── */
section { padding: 4rem 2rem; max-width: 860px; margin: 0 auto; }

section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--bark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin-top: 0.4rem;
  border-radius: 2px;
}

/* ── About cards ── */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.family-card {
  background: var(--warm-white);
  border-radius: 6px;
  padding: 1.5rem 1rem;
  text-align: center;
  border: 1px solid var(--blush);
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.family-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.family-card .avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--blush);
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--gold);
  overflow: hidden;
}

.family-card .avatar img { width: 100%; height: 100%; object-fit: cover; }

.family-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--bark);
  margin-bottom: 0.3rem;
}

.family-card p { font-size: 0.85rem; color: #6b5a47; }

/* ── Photo gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--blush);
  box-shadow: 0 4px 16px var(--shadow);
  border: 4px solid white;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px var(--shadow);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--bark); font-size: 0.85rem;
  gap: 0.5rem;
}

.gallery-placeholder span { font-size: 2rem; }

/* ── Blog ── */
.blog-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 2rem; }

.blog-post {
  background: var(--warm-white);
  border-radius: 6px;
  padding: 2rem;
  border: 1px solid var(--blush);
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform 0.2s;
}

.blog-post:hover { transform: translateY(-2px); }

.blog-post .date {
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-post h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--bark);
  margin-bottom: 0.75rem;
}

.blog-post p { color: #5a4a38; font-size: 0.95rem; }

.blog-post .read-more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--moss);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
}

.blog-post .read-more:hover { color: var(--gold); }

/* ── Footer ── */
footer {
  background: var(--ink);
  color: var(--blush);
  text-align: center;
  padding: 2.5rem;
  font-size: 0.85rem;
  margin-top: 4rem;
}

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

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }
}
