/* =========================
   style.css — Steeped Traditions
   Complete branded stylesheet
   ========================= */

/* -------------------------
   0) Fonts (local files)
   - Put Velista.otf and Junicode.ttf in /fonts/
   ------------------------- */
@font-face {
  font-family: "Velista";
  src: url("fonts/Velista.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JunicodeCustom";
  src: url("fonts/Junicode.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* -------------------------
   1) CSS variables (brand colors)
   ------------------------- */
:root{
  --cream: #EAD7D1;     /* page + header background */
  --deep-green: #1E2D24;/* main text color */
  --maroon: #6D2E46;    /* primary buttons */
  --lime: #AFC010;      /* button text color */
  --olive: #767522;     /* accent / hover / borders */
  --text-light: #f6f4f3;/* for subtle light text on dark backgrounds if needed */
  --max-width: 1080px;
  --radius: 8px;
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.08);
}

/* -------------------------
   2) Global / Reset
   ------------------------- */
* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: "JunicodeCustom", Georgia, serif;
  background: var(--cream);
  color: var(--deep-green);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.5;
}

/* layout container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 18px;
}

/* links */
a { color: var(--deep-green); text-decoration: none; }
a:focus { outline: 3px dashed rgba(118,117,34,0.25); outline-offset: 4px; }

/* small utilities */
.hidden-visually {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}

/* -------------------------
   3) Header & Nav (brand)
   ------------------------- */
.site-header {
  background: var(--cream); /* header matches page background */
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(118,117,34,0.12); /* subtle olive line */
}

.brand-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 18px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* logo */
.logo-link { display: inline-block; }
.logo-img { width: 120px; height: auto; display:block; }

/* brand text block */
.brand-title {
  flex: 1 1 360px;
  min-width: 220px;
}
.site-name {
  margin: 0;
  font-family: "Velista", serif;
  font-size: 1.35rem;
  color: var(--deep-green);
  letter-spacing: 0.02em;
}
.site-tag {
  margin: 4px 0 0;
  color: rgba(30,45,36,0.9); /* slightly muted deep green */
  font-style: italic;
  font-size: 0.95rem;
}

/* nav */
.nav {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav a {
  color: var(--deep-green);
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 700;
  transition: background .18s ease, transform .12s ease, color .18s ease;
}
.nav a[aria-current="page"],
.nav a:hover {
  background: rgba(118,117,34,0.12); /* olive translucent */
  color: var(--maroon);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

/* -------------------------
   4) Hero (background video/gif + overlay)
   ------------------------- */
.hero {
  position: relative;
  width: 100%;
  height: 74vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 18px;
}

/* video/gif background — put <video class="hero-video"> in HTML */
.hero-video,
.hero-gif-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

/* soft darken layer so text reads well */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.18));
  z-index: 0.5;
}

/* overlay content */
.hero-overlay {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 20px;
  max-width: 980px;
}

/* hero title */
.hero-overlay h1 {
  margin: 0 0 8px;
  font-family: "Velista", serif;
  color:  #EAD7D1;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1.02;
  text-shadow: 0 10px 30px rgba(255,255,255,0.02);
}

/* tagline */
.hero-overlay .tagline {
  margin: 0 0 20px;
  font-family: "JunicodeCustom", serif;
  color:  #EAD7D1;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

/* CTA button (maroon bg + lime text) */
.hero-overlay .btn,
a.btn {
  display: inline-block;
  background: var(--maroon);
  color: #EAD7D1;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(109,46,70,0.12);
  transition: transform .12s ease, background .18s ease, color .12s ease;
}
.hero-overlay .btn:hover,
a.btn:hover {
  background: var(--olive);
  color: var(--cream);
  transform: translateY(-3px);
}

/* -------------------------
   5) Main page content
   ------------------------- */
main { padding: 8px 0 36px; }

/* page titles */
.page-title { font-family: "Velista", serif; font-size: 2rem; margin-top: 18px; color: var(--deep-green); }
.page-subtitle { color: rgba(30,45,36,0.9); margin-bottom: 12px; }

/* paragraphs, lists */
p, li { color: var(--deep-green); font-size: 1rem; }

/* cards / figure blocks */
.figure, .media-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(118,117,34,0.05);
  color: var(--deep-green);
}

/* -------------------------
   6) Gallery — grid + artwork hover overlay (slide up + fade)
   ------------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 18px;
}

/* each artwork block */
.artwork {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #ddd;
  min-height: 200px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* image fills block */
.artwork img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}


/* on hover — reveal overlay & zoom image slightly */
.artwork:hover img { transform: scale(1.06); }
.artwork:hover .overlay {
  bottom: 0;
  opacity: 1;
}

/* caption inside overlay */
.artwork .overlay p {
  margin: 0;
  line-height: 1.3;
  font-size: 0.98rem;
}

/* figcaption fallback for non-overlay versions */
figcaption, .fig-caption {
  color: rgba(30,45,36,0.9);
  font-size: 0.95rem;
  text-align: center;
  margin-top: 8px;
}

/* -------------------------
   7) AV section (audio + video cards)
   ------------------------- */
.av .media-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  margin-top: 16px;
}
.media-card {
  background: #fff;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(118,117,34,0.04);
  color: var(--deep-green);
}
.media-card video, .media-card audio {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  margin-top: 8px;
}

/* caption under media */
.caption { color: rgba(30,45,36,0.8); font-size: 0.95rem; margin-top: 8px; }

/* -------------------------
   8) Footer
   ------------------------- */
.site-footer {
  padding: 26px 0 48px;
  text-align: center;
  color: var(--deep-green);
  border-top: 1px solid rgba(118,117,34,0.08);
  background: transparent;
}

/* -------------------------
   9) Buttons, small UI controls
   ------------------------- */
button, .btn-mini, a.btn-mini {
  background: var(--maroon);
  color: var(--lime);
  border: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
button:hover, .btn-mini:hover {
  background: var(--olive);
  color: var(--cream);
}

/* focus states for accessibility */
button:focus, a:focus {
  outline: 3px dashed rgba(175,192,16,0.25);
  outline-offset: 4px;
}

/* -------------------------
   10) Responsive breakpoints
   ------------------------- */
@media (min-width: 880px) {
  .hero { height: 78vh; min-height: 520px; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .av .media-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .brand-inner { flex-wrap: wrap; gap: 10px; align-items: center; }
  .logo-img { width: 92px; }
  .brand-title { text-align: center; flex-basis: 100%; order: 2; }
  .nav { order: 3; width: 100%; justify-content: center; }
  .hero { height: 66vh; min-height: 360px; }
  .hero-overlay h1 { font-size: 1.6rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
}

/* small tweaks for very small screens */
@media (max-width: 420px) {
  .hero { height: 58vh; min-height: 320px; }
  .hero-overlay .tagline { font-size: 0.98rem; }
  .brand-inner { padding: 10px; }
  .site-name { font-size: 1.15rem; }
}

/* ==== Ceremony Page Image Resize Fix ==== */

.ceremony-section img,
.ceremony img,
.ceremony-card img {
    width: 100%;
    max-width: 380px;   /* adjust this number as needed */
    height: auto;
    display: block;
    margin: 0 auto 16px; /* centers image */
    border-radius: 8px; 
    object-fit: cover;
}

/* Optional: center text too */
.ceremony-section,
.ceremony-card {
    text-align: center;
}
