/* =========================================================
   Perfect English Language Center — Memorial Site
   Shared stylesheet for all pages
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root{
  --gold:        #c9a24b;
  --gold-light:  #e3c784;
  --ivory:       #f3ecdf;

  /* Homepage (solemn) palette */
  --home-bg:      #161512;
  --home-bg-alt:  #201e1a;
  --home-border:  rgba(201,162,75,0.35);
  --home-text:    #f3ecdf;
  --home-muted:   #bdb6a6;

  /* Inner-page (warmer, livelier) palette */
  --inner-bg:        #fbf9f4;
  --inner-bg-alt:    #ffffff;
  --inner-primary:   #2f6690;
  --inner-primary-dk:#1f4a68;
  --inner-text:      #2b2b28;
  --inner-muted:     #6b6a63;
  --inner-border:    #e6e0d2;

  /* Archive notice (same on every inner page, regardless of page palette) */
  --archive-bg:   #1f1d19;
  --archive-text: var(--ivory);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; }
.container{ max-width: 980px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3{ font-family:'Playfair Display', Georgia, serif; font-weight:600; line-height:1.25; margin: 0 0 .5em; }
.eyebrow{
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header{
  background: var(--home-bg);
  color: var(--ivory);
  border-bottom: 1px solid var(--home-border);
}
.site-header .header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}
.site-header .logo-block{ display:flex; align-items:center; gap:12px; }
.site-header .logo-block img{ height: 48px; width:auto; }
.site-header .brand-name{
  font-family:'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light);
}
.memorial-line{
  font-size: .82rem;
  color: var(--home-muted);
  letter-spacing: .03em;
}
.memorial-line strong{ color: var(--gold-light); font-weight:600; }

.lang-switch{
  display:flex;
  align-items:center;
  gap:10px;
}
.lang-switch a{ display:block; line-height:0; opacity:.6; transition:opacity .2s ease; }
.lang-switch a:hover,
.lang-switch a.current{ opacity:1; }
.lang-switch img{
  width:26px; height:18px; object-fit:cover;
  border-radius:3px; border:1px solid var(--home-border);
}

.site-nav ul{
  list-style:none;
  display:flex;
  gap: 26px;
  margin:0; padding:0;
  flex-wrap: wrap;
}
.site-nav a{
  text-decoration:none;
  font-weight:600;
  font-size:.95rem;
  color: var(--ivory);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover,
.site-nav a[aria-current="page"]{
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ---------- Archive notice banner (About / Programs / Gallery / Guestbook) ---------- */
.archive-notice{
  background: var(--archive-bg);
  color: var(--archive-text);
  border-bottom: 1px solid var(--home-border);
}
.archive-notice .container{
  padding-top: 18px;
  padding-bottom: 18px;
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.archive-notice .icon{
  font-size: 1.3rem;
  line-height:1;
  margin-top:2px;
}
.archive-notice p{
  margin:0;
  font-size: .98rem;
  color: var(--ivory);
}
.archive-notice strong{ color: var(--gold-light); }

/* ---------- Homepage ---------- */
body.memorial-home{ background: var(--home-bg); color: var(--home-text); }
.banner-photo{
  width:100%;
  max-height: 80vh;
  object-fit: contain;   /* never crop the baked-in title/date text in the image */
  background: var(--home-bg); /* blends with any letterboxing since the photo's own background matches */
  display:block;
}
.hero-title{
  text-align:center;
  padding: 46px 24px 8px;
}
.hero-title h1{
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  color: var(--ivory);
  margin-bottom: .25em;
}
.hero-title .role{
  color: var(--gold-light);
  font-family:'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
}
.hero-title .dates{
  color: var(--home-muted);
  font-size:.95rem;
  margin-top:6px;
}

.memorial-article{ padding: 10px 24px 70px; }
.memorial-article .lede{
  font-family:'Lora', Georgia, serif;
  font-size: 1.15rem;
  color: var(--ivory);
  text-align:center;
  max-width: 760px;
  margin: 0 auto 2.4em;
}
.memorial-article section{ max-width: 740px; margin: 0 auto 2.6em; }
.memorial-article h2{
  color: var(--gold-light);
  font-size: 1.35rem;
  border-bottom: 1px solid var(--home-border);
  padding-bottom: .4em;
}
.memorial-article p{ color: var(--home-text); }
.memorial-article p + p{ margin-top: 1em; }

.faun-callout{
  max-width: 740px;
  margin: 0 auto 2.8em;
  border: 1px solid var(--home-border);
  background: var(--home-bg-alt);
  border-radius: 10px;
  padding: 28px 32px;
  text-align:center;
}
.faun-callout h2{ margin-top:0; border:none; padding:0; }
.faun-callout .btn-gold{
  display:inline-block;
  margin-top: 14px;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  color: var(--gold-light) !important;
  text-decoration:none;
  font-weight:700;
  letter-spacing:.03em;
  transition: background .2s ease, color .2s ease;
}
.faun-callout .btn-gold:hover{ background: var(--gold); color: var(--home-bg) !important; }

.status-note{
  max-width:740px;
  margin: 0 auto 2.6em;
  padding: 20px 24px;
  border-left: 3px solid var(--gold);
  background: rgba(201,162,75,.06);
  color: var(--home-muted);
  font-size: .97rem;
}

/* ---------- Inner pages ---------- */
body.memorial-inner{ background: var(--inner-bg); color: var(--inner-text); }
.page-hero{ padding: 44px 24px 10px; text-align:center; }
.page-hero h1{ color: var(--inner-primary-dk); font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.page-hero .sub{ color: var(--inner-muted); font-family:'Lora', Georgia, serif; font-style:italic; }

.inner-content{ padding: 8px 24px 70px; }
.inner-content section{ max-width: 760px; margin: 0 auto 2.4em; }
.inner-content h2{ color: var(--inner-primary-dk); font-size:1.3rem; }
.inner-content p{ margin:0 0 1em; }

.bio-grid{
  display:grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items:start;
  max-width: 760px;
  margin: 0 auto 2.4em;
}
.bio-grid img{ border-radius:10px; border:1px solid var(--inner-border); }
@media (max-width: 640px){
  .bio-grid{ grid-template-columns: 1fr; }
  .bio-grid img{ max-width: 260px; margin: 0 auto; }
}

.inner-content p.pull-quote{
  font-family:'Lora', Georgia, serif;
  font-style:italic;
  font-size:1.15rem;
  color: var(--inner-primary-dk);
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 20px;
  max-width:720px;
  margin: 0 auto 2.4em;
}

.course-list{ list-style:none; margin:0; padding:0; display:grid; gap:16px; }
.course-list li{
  background: var(--inner-bg-alt);
  border: 1px solid var(--inner-border);
  border-radius: 10px;
  padding: 16px 20px;
}
.course-list strong{ color: var(--inner-primary-dk); }

.testimonial-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(230px,1fr));
  gap: 20px;
  max-width: 780px;
  margin: 0 auto 1em;
}
.testimonial-card{
  background: var(--inner-bg-alt);
  border: 1px solid var(--inner-border);
  border-radius: 10px;
  padding: 18px;
}
.testimonial-card .who{
  display:flex; align-items:center; gap:10px; margin-bottom:8px;
}
.testimonial-card img{ width:42px; height:42px; border-radius:50%; object-fit:cover; }
.testimonial-card .who strong{ font-size:.92rem; }
.testimonial-card p{ font-size:.92rem; color: var(--inner-muted); margin:0; }
.stars{ color: var(--gold); letter-spacing:2px; font-size:.85rem; }

.gallery-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}
.gallery-grid img{ border-radius:8px; border:1px solid var(--inner-border); aspect-ratio: 4/3; object-fit:cover; }

/* ---------- Guestbook ---------- */
.guestbook-entry{
  background: var(--inner-bg-alt);
  border:1px solid var(--inner-border);
  border-radius:10px;
  padding:18px 20px;
  margin-bottom:16px;
}
.guestbook-entry .meta{ font-size:.82rem; color:var(--inner-muted); margin-bottom:6px; }
.guestbook-form label{ display:block; font-weight:700; margin:14px 0 6px; font-size:.92rem; }
.guestbook-form input[type=text],
.guestbook-form input[type=email],
.guestbook-form textarea,
.guestbook-form input[type=file]{
  width:100%; padding:11px 12px; border:1px solid var(--inner-border);
  border-radius:8px; font: inherit; background:#fff;
}
.guestbook-form textarea{ min-height:120px; resize:vertical; }
.guestbook-form .hint{ font-size:.8rem; color:var(--inner-muted); margin-top:4px; }
.btn-primary{
  display:inline-block; margin-top:18px; padding:12px 28px; border:none; border-radius:999px;
  background: var(--inner-primary); color:#fff; font-weight:700; font-size:.98rem; cursor:pointer;
  text-decoration:none;
}
.btn-primary:hover{ background: var(--inner-primary-dk); }
.form-note{
  font-size:.85rem; color: var(--inner-muted); background:#fff;
  border:1px solid var(--inner-border); border-radius:8px; padding:12px 14px; margin-bottom:18px;
}

/* ---------- Footer ---------- */
.site-footer{
  background: var(--home-bg);
  color: var(--home-muted);
  text-align:center;
  padding: 28px 24px;
  font-size:.86rem;
}
.site-footer .memorial-line{ margin-bottom:8px; font-size:.9rem; }
.site-footer a{ color: var(--gold-light); text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; }
.site-footer a.credit-plain{ color: inherit; }
.site-footer a.credit-plain:hover{ text-decoration:underline; }

@media (max-width: 680px){
  .site-header .header-inner{ flex-direction:column; align-items:flex-start; gap:8px; }
  .site-nav ul{ gap:16px; }
  .lang-switch{ gap:8px; margin-top:-2px; }
  .lang-switch img{ width:22px; height:15px; }
}
