/* ============================================================
   Foxfire Arts — shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --sage: #74785f;        /* sidebar — sampled from your screenshot */
  --sage-dark: #62654f;
  --topbar-bg: #c8cdb7;    /* header — sampled lighter than the sidebar */
  --cream: #f2efe2;
  --cream-bright: #fbf3df;
  --page-bg: #ffffff;      /* matched to your screenshot's white content panel */
  --ink: #1e2c20;
  --muted: #4c584e;
  --gold: #be6e3c;
  --gold-wash: rgba(190, 110, 60, 0.32);
  --lang-group-bg: rgba(255, 255, 255, 0.35);
  --lang-active-bg: #fdfbf6;
  --lang-active-text: #2b2a22;
  --lang-inactive-text: #6b6a5c;
  --sidebar-width: 200px;
  --shell-max-width: 1360px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Work Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
  overflow-y: scroll;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
}

.site-shell {
  max-width: var(--shell-max-width);
  margin: 0 auto;
  background: var(--page-bg);
}

a { color: inherit; }

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--topbar-bg);
  padding: 18px 32px;
}

.logo-img {
  display: block;
  height: 52px;
  width: auto;
}

.footer-logo-img {
  display: block;
  height: 28px;
  width: auto;
}

.lang-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--lang-group-bg);
  border-radius: 10px;
  padding: 4px;
}

.lang-pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: 44px;
  border-radius: 6px;
  background: var(--lang-active-bg);
  transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.lang-switch a {
  position: relative;
  z-index: 1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--lang-inactive-text);
  padding: 8px 16px;
  border-radius: 6px;
  transition: color 0.18s ease;
}

.lang-switch a.pill-target {
  color: var(--lang-active-text);
}

/* ---------- Layout ---------- */
.layout {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 88px - 90px);
}

.sidebar {
  background: var(--sage);
  width: var(--sidebar-width);
  flex-shrink: 0;
}

.sidebar-inner {
  position: sticky;
  top: 0;
  padding: 20px 0;
}

.nav-link {
  display: block;
  margin: 2px 10px;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--cream);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-link.sub {
  margin-left: 22px;
  font-weight: 500;
  font-size: 14px;
}

.nav-link:hover,
.nav-link.selected {
  background-color: #a28c59;
  color: var(--cream-bright);
}

.content {
  flex: 1;
  padding: 56px 48px;
}

.content-home {
  padding-top: 130px;
}

/* ---------- Hero (home page) ---------- */
.hero {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
}

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

.hero-text h1 {
  font-family: var(--font-body);
  font-size: 42px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  line-height: 1.15;
  margin: 0 0 18px;
  color: #3d4a35;
}

.hero-intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto;
  line-height: 1.6;
}

.hero-intro .intro-line2 {
  display: block;
  margin-top: 46px;
}

.hero-tagline {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  margin: 0 0 18px;
}

.hero-image {
  flex: 1 1 360px;
  position: relative;
  aspect-ratio: 6 / 7;
  min-height: 400px;
  border-radius: 4px;
  overflow: hidden;
  background-image: url('../images/hero-painting.jpg');
  background-size: 120%;
  background-position: 32% 86%;
}

.firefly {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px 2px rgba(219,142,50,0.8);
  animation: drift 6s ease-in-out infinite;
}

@keyframes drift {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.5; }
  50% { transform: translateY(-14px) translateX(8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .firefly { animation: none; }
}

/* ---------- Section heading ---------- */
.page-heading {
  font-family: var(--font-body);
  font-size: 30px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin: 0 0 8px;
  color: #3d4a35;
}

.page-subheading {
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 36px;
  max-width: 60ch;
}

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.placeholder-tile {
  aspect-ratio: 4 / 5;
  border: 1.5px dashed var(--sage);
  border-radius: 6px;
  background: rgba(136, 139, 108, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.placeholder-tile svg { opacity: 0.5; }

/* ---------- Story list (image + text per painting) — Layout A ---------- */
.story-list {
  display: flex;
  flex-direction: column;
  max-width: 940px;
}

.story-item {
  display: flex;
  gap: 32px;
  align-items: stretch;
  padding: 34px 0;
}

.story-item:first-child { padding-top: 0; }

/* Placeholder version (dashed box + icon), used until a real photo is added */
.story-image {
  flex: 2 1 0;
  aspect-ratio: 3 / 2;
  border: 1.5px dashed var(--sage);
  border-radius: 6px;
  background: rgba(136, 139, 108, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.story-image svg { opacity: 0.5; }

/* Real-photo version — drop an <img class="story-photo"> in place of .story-image */
.story-photo {
  flex: 2 1 0;
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.story-text { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }

.story-text h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #3d4a35;
  margin: 0 0 10px;
}

.story-text p {
  color: var(--ink);
  line-height: 1.65;
  margin: 0;
  font-size: 14.5px;
}

.story-separator {
  border: none;
  border-top: 1px solid rgba(136, 139, 108, 0.32);
  margin: 0;
}

@media (max-width: 640px) {
  .story-item { flex-direction: column; }
  .story-image, .story-photo { flex: 0 0 auto; width: 100%; max-width: 420px; aspect-ratio: 3 / 2; }
}

.tile-caption {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Bio page ---------- */
.bio-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.bio-portrait {
  width: 220px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px dashed var(--sage);
  background: rgba(136, 139, 108, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  flex-shrink: 0;
}

.bio-text { flex: 1 1 320px; line-height: 1.7; color: var(--ink); }
.bio-text p { margin: 0 0 16px; }

.bio-quote {
  margin: 28px 0 16px;
  padding: 18px 0 18px 22px;
  border-left: 3px solid var(--gold);
}

.bio-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 6px;
}

.bio-quote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---------- Forms ---------- */
.form-field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  border: 1.5px solid rgba(136, 139, 108, 0.4);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

/* honeypot field — hidden from real visitors, left for bots to fill in */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.btn:hover { background: #c67a24; }

.note-box {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 6px;
  background: rgba(136, 139, 108, 0.08);
  color: var(--muted);
  font-size: 13px;
  max-width: 60ch;
}

/* ---------- Donate ---------- */
.donate-card {
  max-width: 440px;
  border: 1.5px solid rgba(136, 139, 108, 0.3);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
}

.donate-card p { color: var(--muted); line-height: 1.6; margin: 0 0 24px; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  padding: 24px;
  border-top: 1px solid rgba(116, 120, 95, 0.25);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 10px;
  }
  .nav-link { flex: 1 1 auto; text-align: center; padding: 10px 8px; }
  .nav-link.sub { padding-left: 8px; }
  .content { padding: 32px 20px; }
  .hero-text h1 { font-size: 38px; }
}

/* ============================================================
   Gallery layout options (for comparison — see gallery-layouts.html)
   All three keep a uniform placeholder box size regardless of the
   eventual image's real shape (object-fit: cover on real photos),
   and roughly a 2/3 image : 1/3 text split.
   ============================================================ */

.layout-demo-section { margin-bottom: 64px; }

.layout-demo-heading {
  font-family: var(--font-display);
  font-size: 20px;
  color: #3d4a35;
  margin: 0 0 4px;
}

.layout-demo-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 28px;
  max-width: 60ch;
}

/* Shared placeholder look */
.ph-image {
  border: 1.5px dashed var(--sage);
  border-radius: 6px;
  background: rgba(136, 139, 108, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.ph-image svg { opacity: 0.5; }

/* --- Layout A: side-by-side, image ~2/3, text ~1/3 --- */
.layoutA-list { display: flex; flex-direction: column; max-width: 940px; }
.layoutA-item { display: flex; gap: 32px; align-items: stretch; padding: 34px 0; }
.layoutA-item:first-child { padding-top: 0; }
.layoutA-item .layoutA-photo {
  flex: 2 1 0;
  aspect-ratio: 3 / 2;
  width: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.layoutA-text { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
.layoutA-text h3 { font-family: var(--font-display); font-size: 20px; color: #3d4a35; margin: 0 0 10px; }
.layoutA-text p { color: var(--ink); line-height: 1.65; margin: 0; font-size: 14.5px; }
.layoutA-sep { border: none; border-top: 1px solid rgba(136, 139, 108, 0.32); margin: 0; }

/* --- Layout B: stacked cards, image on top (larger), text below --- */
.layoutB-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}
.layoutB-card {
  border: 1px solid rgba(136, 139, 108, 0.28);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.layoutB-card .ph-image { aspect-ratio: 4 / 3; border: none; border-bottom: 1.5px dashed var(--sage); border-radius: 0; }
.layoutB-text { padding: 16px 18px 20px; }
.layoutB-text h3 { font-family: var(--font-display); font-size: 17px; color: #3d4a35; margin: 0 0 6px; }
.layoutB-text p { color: var(--ink); line-height: 1.55; margin: 0; font-size: 13.5px; }

/* --- Layout C: alternating zigzag, same 2:1 ratio, sides swap --- */
.layoutC-list { display: flex; flex-direction: column; max-width: 860px; }
.layoutC-item { display: flex; gap: 28px; align-items: stretch; padding: 28px 0; }
.layoutC-item:first-child { padding-top: 0; }
.layoutC-item.reverse { flex-direction: row-reverse; }
.layoutC-item .ph-image { flex: 2 1 0; aspect-ratio: 3 / 2; }
.layoutC-text { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; }
.layoutC-text h3 { font-family: var(--font-display); font-size: 19px; color: #3d4a35; margin: 0 0 8px; }
.layoutC-text p { color: var(--ink); line-height: 1.6; margin: 0; font-size: 14px; }
.layoutC-sep { border: none; border-top: 1px solid rgba(136, 139, 108, 0.32); margin: 0; }

@media (max-width: 640px) {
  .layoutA-item, .layoutC-item, .layoutC-item.reverse { flex-direction: column; }
}
