/* The Golden Saints — minimal, responsive styles */
:root {
  --bg: #fffdf7;
  --text: #2a2a2a;
  --muted: #5d5d5d;
  --brand: #b8860b; /* dark goldenrod */
  --brand-2: #8b5e00;
  --surface: #ffffff;
  --ring: rgba(184, 134, 11, 0.35);
  --border: #e9e1cf;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; color: var(--brand-2); letter-spacing: 0.2px; }
.nav a { margin-left: 18px; color: var(--text); }
.nav a.active { color: var(--brand-2); font-weight: 600; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 36px; align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 3px 0; }
.btn { display: inline-block; border: 1px solid var(--brand); color: var(--brand-2); padding: 10px 14px; border-radius: 10px; background: #fff8e1; transition: transform .05s ease-in; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand-2); }

.hero { padding: 48px 0 24px; background: linear-gradient(180deg, #fff8e6 0%, rgba(255,248,230,0) 60%); }
.grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
.hero-text h1 { font-size: 40px; line-height: 1.1; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 18px; }
.cta { margin-top: 14px; }
.cta .btn + .btn { margin-left: 10px; }
.badges { display: flex; gap: 12px; padding: 0; margin: 16px 0 0; list-style: none; }
.badges li { background: #fff; border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-size: 14px; color: var(--muted); }
.hero-media img { border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }

.features { padding: 28px 0 16px; }
.cols-3 { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.features article { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.features h3 { margin: 0 0 6px; }

.highlight { padding: 24px 0 42px; text-align: center; }

.site-footer { border-top: 1px solid var(--border); margin-top: 30px; }
.site-footer .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; font-size: 14px; color: var(--muted); }
.site-footer nav a { margin-left: 16px; color: var(--muted); }

.page-hero { padding: 36px 0 12px; background: linear-gradient(180deg, #fff8e6 0%, rgba(255,248,230,0) 70%); }
.content { padding: 16px 0; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: start; }
.rounded { border-radius: 14px; border: 1px solid var(--border); }

.steps { counter-reset: step; padding-left: 0; }
.steps li { list-style: none; margin: 10px 0; position: relative; padding-left: 38px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; }

details { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
details summary { cursor: pointer; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minMax(220px, 1fr)); gap: 18px; padding: 14px 0 40px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .06s ease-in, box-shadow .2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(0,0,0,0.08); }
.card img { aspect-ratio: 4/3; object-fit: cover; }
.card h3 { margin: 10px; color: var(--text); }

.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 26px 0 40px; }
.profile-media img { border-radius: 16px; border: 1px solid var(--border); }
.facts { padding-left: 0; list-style: none; }
.facts li { margin: 8px 0; }

.form { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
label { display: block; font-weight: 600; font-size: 14px; color: var(--muted); }
input, select, textarea { width: 100%; margin-top: 6px; padding: 10px 12px; border-radius: 10px; border: 1px solid #d8cfb8; background: #fff; color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: none; box-shadow: 0 0 0 4px var(--ring); border-color: var(--brand); }
.actions { display: flex; gap: 10px; align-items: center; margin-top: 8px; }
.status { margin-top: 10px; color: var(--muted); }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minMax(180px, 1fr)); gap: 14px; padding: 10px 0 6px; }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); object-fit: cover; aspect-ratio: 4/3; }

/* Blog helpers */
.blog-photo { width: 100%; height: auto; }

/* Lightbox */
body.lb-open { overflow: hidden; }
.lightbox { position: fixed; inset: 0; display: none; z-index: 1000; }
.lightbox.open { display: block; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: 80px 1fr 80px; grid-template-rows: 80px 1fr 80px; align-items: center; justify-items: center; }
.lightbox-figure { grid-column: 2; grid-row: 2; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: 10px; box-shadow: 0 12px 30px rgba(0,0,0,0.25); }
.lightbox-close { position: absolute; top: 18px; right: 18px; background: rgba(0,0,0,0.55); color: #fff; border: none; font-size: 26px; line-height: 1; width: 40px; height: 40px; border-radius: 999px; cursor: pointer; }
.lightbox-prev, .lightbox-next { background: rgba(0,0,0,0.45); color: #fff; border: none; width: 44px; height: 44px; border-radius: 999px; font-size: 24px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-next { grid-column: 3; grid-row: 2; }
.lightbox-prev:hover, .lightbox-next:hover, .lightbox-close:hover { background: rgba(0,0,0,0.65); }

/* Announcement banner */
.announcement { background: #fff3cd; border-bottom: 1px solid var(--border); }
.announcement .wrap { display: flex; align-items: center; gap: 10px; padding: 10px 20px; }
.announcement .tag { display: inline-block; background: var(--brand); color: #fff; font-weight: 600; border-radius: 999px; padding: 4px 10px; font-size: 12px; letter-spacing: 0.2px; }
.announcement .announcement-link { color: var(--brand-2); font-weight: 600; }
.announcement .announcement-link:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .grid, .grid-2, .profile { grid-template-columns: 1fr; }
  .cols-3 { grid-template-columns: 1fr; }
  .site-footer .wrap { flex-direction: column; gap: 6px; height: auto; padding: 16px 0; }
  .nav a { margin-left: 12px; }
}

/* Mobile-first nav and typography tweaks */
@media (max-width: 800px) {
  .site-header .wrap { position: relative; }
  .menu-toggle { display: inline-flex; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--border); display: none; flex-direction: column; padding: 10px 20px 14px; z-index: 30; }
  body.nav-open .nav { display: flex; }
  .nav a { margin: 0; padding: 10px 0; }
  .nav .btn { width: 100%; text-align: center; margin-top: 6px; }
  .hero-text h1 { font-size: 32px; }
}

@media (max-width: 600px) {
  .hero-text h1 { font-size: 28px; }
  .lightbox-inner { grid-template-columns: 40px 1fr 40px; grid-template-rows: 56px 1fr 56px; }
  .lightbox-img { max-width: 94vw; max-height: 80vh; }
  .lightbox-close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 22px; }
  /* Make blog photos smaller and centered on mobile */
  .blog-photo { max-width: 70%; margin-left: auto; margin-right: auto; }
}

@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .cards { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
