/* ============================================================
   Pukkunnel Family Website — v2 Stylesheet
   Modern HTML5/CSS rewrite, responsive
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #2e3538;
  --surface:   #3a4f2a;
  --green:     #4c6337;
  --green-mid: #3d5029;
  --text:      #e2e8da;
  --text-muted:#b0bca6;
  --heading:   #ffffff;
  --accent:    #8ec16a;
  --border:    #5a7a40;
  --link-foot: #7ab5f5;
  --radius:    6px;
  --shadow:    0 2px 8px rgba(0,0,0,0.4);
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  min-height: 100vh;
}

/* ---- Outer wrapper ---- */
.site-wrapper {
  max-width: 960px;
  margin: 0 auto;
  background-color: var(--surface);
  border-left: 6px solid var(--green);
  border-right: 6px solid var(--green);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- Header / Banner ---- */
.site-header {
  border-top: 6px solid var(--green);
  background-color: var(--green-mid);
  text-align: center;
}

.site-header .banner {
  display: block;
  width: 100%;
  max-width: 757px;
  height: auto;
  margin: 0 auto;
}

/* ---- Navigation ---- */
.site-nav {
  background-color: var(--green);
  border-bottom: 3px solid var(--border);
}

.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
}

.site-nav ul li a {
  display: block;
  padding: 10px 20px;
  color: #fff;
  text-decoration: none;
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-right: 1px solid var(--border);
  transition: background-color 0.2s, color 0.2s;
}

.site-nav ul li:first-child a {
  border-left: 1px solid var(--border);
}

.site-nav ul li a:hover,
.site-nav ul li a.active {
  background-color: var(--accent);
  color: #1a2a10;
}

/* ---- Content wrapper (sidebar + main) ---- */
.content-wrapper {
  display: flex;
  flex: 1;
  gap: 0;
}

/* ---- Sidebar ---- */
.sidebar {
  width: 200px;
  flex-shrink: 0;
  background-color: var(--green-mid);
  border-right: 2px solid var(--border);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.priest-card {
  text-align: center;
}

.priest-card img {
  display: block;
  width: 100%;
  max-width: 167px;
  height: auto;
  margin: 0 auto 8px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.priest-card h3 {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: bold;
  color: var(--heading);
  margin-bottom: 6px;
  line-height: 1.4;
}

.priest-card p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Main content area ---- */
.main-content {
  flex: 1;
  padding: 24px 28px;
  min-width: 0;
}

.section-banner {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
}

.main-content h2 {
  font-family: Verdana, Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.main-content p {
  font-size: 0.875rem;
  color: var(--text);
  margin-bottom: 14px;
  text-align: justify;
}

.main-content a {
  color: var(--accent);
  text-decoration: underline;
}

.main-content a:hover {
  color: #ffffff;
}

/* ---- Footer ---- */
.site-footer {
  background-color: var(--green-mid);
  border-top: 3px solid var(--border);
  padding: 16px 24px;
  text-align: center;
}

.footer-nav {
  margin-bottom: 8px;
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.8rem;
}

.footer-nav a {
  color: var(--link-foot);
  text-decoration: none;
  font-weight: bold;
  margin: 0 6px;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-nav .sep {
  color: var(--text-muted);
}

.copyright {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================================================
   Responsive — mobile
   ============================================================ */
@media (max-width: 680px) {
  .site-wrapper {
    border-left: none;
    border-right: none;
  }

  .site-nav ul li a {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .content-wrapper {
    flex-direction: column;
  }

  .sidebar {
    order: 2;
    width: 100%;
    border-right: none;
    border-top: 2px solid var(--border);
    border-bottom: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 16px;
  }

  .priest-card {
    width: 140px;
  }

  .main-content {
    order: 1;
    padding: 16px;
  }
}

/* ============================================================
   Photo Album
   ============================================================ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.photo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.photo-item a {
  display: block;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.photo-item a:hover {
  border-color: var(--accent);
  transform: scale(1.03);
}

.photo-item img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.photo-item .caption {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.3;
}

/* ============================================================
   Links page
   ============================================================ */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.link-list li {
  background-color: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
}

.link-list li .link-label {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: bold;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.link-list li a {
  font-size: 0.875rem;
  color: var(--accent);
  word-break: break-all;
}

.link-list li a:hover {
  color: #fff;
}

/* ============================================================
   Contact page
   ============================================================ */
.contact-block {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-info {
  flex: 1;
  min-width: 220px;
}

.contact-info p {
  margin-bottom: 10px;
}

.contact-info a {
  color: var(--accent);
}

.contact-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background-color: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 180px;
  text-align: center;
}

.contact-person img {
  width: 151px;
  height: auto;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.contact-person h3 {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--heading);
}

.contact-person p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================================
   Priests page
   ============================================================ */
.priests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  margin-top: 8px;
}

.priest-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background-color: rgba(0,0,0,0.2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
}

.priest-entry img {
  width: 100%;
  max-width: 140px;
  height: 160px;
  object-fit: cover;
  object-position: top;
  border: 2px solid var(--border);
  border-radius: var(--radius);
}

.priest-entry h3 {
  font-family: Verdana, Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: bold;
  color: var(--heading);
  line-height: 1.4;
}

.priest-entry p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0;
  text-align: center;
}

.priest-entry .role,
.priest-card .role {
  font-size: 0.7rem;
  color: var(--accent);
  font-style: italic;
}
