/* Archangel Michael Coptic Orthodox Church — Melbourne, FL
   Palette from original site: cream #F4F2EC, burgundy #79253D,
   charcoal #272724, gold #C1B48A */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/playfair-regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  src: url("/assets/fonts/playfair-bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400;
  src: url("/assets/fonts/playfair-italic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 700;
  src: url("/assets/fonts/playfair-bolditalic.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Futura LT Book";
  font-style: normal;
  font-weight: 400;
  src: url("/assets/fonts/futura-book.woff2") format("woff2");
  font-display: swap;
}

:root {
  --cream: #f4f2ec;
  --cream-dark: #e7e2d2;
  --burgundy: #79253d;
  --burgundy-dark: #511929;
  --charcoal: #272724;
  --gold: #c1b48a;
  --gold-dark: #90804d;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Futura LT Book", "Century Gothic", Futura, "Trebuchet MS", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--cream);
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

a { overflow-wrap: anywhere; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--burgundy); }
a:hover { color: var(--burgundy-dark); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.25; color: var(--charcoal); }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--burgundy); color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--cream-dark);
  text-align: center;
  padding: 1.25rem 1rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  text-decoration: none;
  color: var(--charcoal);
  max-width: 100%;
}
.brand-text { min-width: 0; }
.brand img { width: 56px; height: 56px; flex: none; }
.brand-text { text-align: left; }
.brand-text .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.2;
  display: block;
}
.brand-text .tagline {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: block;
  margin-top: .25rem;
}

/* ---------- Nav ---------- */
.nav-toggle { display: none; }
.nav-toggle-label, .nav-overlay, .nav-close { display: none; }
.site-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.75rem;
  padding: 1rem 0 1.1rem;
}
.site-nav a {
  display: block;
  padding: .35rem 0;
  text-decoration: none;
  color: var(--charcoal);
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--burgundy); }
.site-nav a[aria-current="page"] {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

/* Mobile: hamburger opens a drawer from the right */
@media (max-width: 760px) {
  .site-header {
    position: relative;
    text-align: left;
    padding: .9rem 4.25rem .9rem 1rem;
  }
  .brand img { width: 44px; height: 44px; }
  .brand-text .name { font-size: 1.05rem; }
  .brand-text .tagline { font-size: .66rem; letter-spacing: .08em; }

  .nav-toggle-label {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    right: .75rem;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle-label .bars { width: 24px; }
  .nav-toggle-label .bars span {
    display: block;
    height: 2px;
    background: var(--burgundy);
    margin: 5px 0;
    border-radius: 1px;
    transition: transform .25s ease, opacity .2s ease;
  }
  .nav-toggle:checked ~ .nav-toggle-label .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-toggle-label .bars span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-toggle-label .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(39, 39, 36, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 90;
    cursor: pointer;
  }
  .nav-toggle:checked ~ .nav-overlay { opacity: 1; visibility: visible; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(80vw, 300px);
    background: var(--cream);
    z-index: 95;
    transform: translateX(102%);
    transition: transform .28s ease;
    box-shadow: -14px 0 34px rgba(0, 0, 0, .22);
    padding: 4rem 1.5rem 1.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav-toggle:checked ~ .site-nav { transform: translateX(0); }

  .nav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: .6rem;
    right: .7rem;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    line-height: 1;
    color: var(--burgundy);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .site-nav li { border-bottom: 1px solid var(--cream-dark); }
  .site-nav li:first-child { border-top: 1px solid var(--cream-dark); }
  .site-nav a {
    padding: .95rem .25rem;
    font-size: 1rem;
    border-bottom: none;
  }
  .site-nav a[aria-current="page"] {
    color: var(--burgundy);
    border-left: 3px solid var(--gold);
    padding-left: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav, .nav-overlay, .nav-toggle-label .bars span { transition: none; }
}

/* ---------- Motion (disabled automatically for reduced-motion users) ---------- */
@media (prefers-reduced-motion: no-preference) {
  @keyframes page-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  body { animation: page-fade .45s ease both; }

  @keyframes hero-zoom {
    from { transform: scale(1.06); }
    to { transform: none; }
  }
  .hero { overflow: hidden; }
  .hero img { animation: hero-zoom 6s ease-out both; }

  @keyframes rise-in {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
  }
  .hero-overlay h1 { animation: rise-in .8s ease-out .15s both; }
  .hero-overlay .verse { animation: rise-in .8s ease-out .4s both; }

  /* Scroll reveal (classes applied by /assets/js/site.js) */
  .will-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .will-reveal.revealed { opacity: 1; transform: none; }

  .card {
    transition: transform .25s ease, box-shadow .25s ease,
                opacity .6s ease;
  }
  .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(39, 39, 36, .12);
  }

  .btn { transition: background .15s ease, transform .15s ease, box-shadow .2s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(81, 25, 41, .25); }
  .btn:active { transform: none; }

  .site-nav a, .social a { transition: color .15s ease, background .15s ease, border-color .15s ease; }
  .two-col img { transition: transform .4s ease, box-shadow .4s ease; }
  .two-col img:hover { transform: scale(1.015); box-shadow: 0 14px 36px rgba(39, 39, 36, .24); }
}

:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--charcoal); }
.hero img { width: 100%; max-height: 520px; object-fit: cover; opacity: .85; }
.hero-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 1.5rem;
  background: linear-gradient(rgba(39, 39, 36, .25), rgba(39, 39, 36, .55));
}
.hero-overlay h1 {
  color: #fff;
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  max-width: 20ch;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.hero-overlay .verse {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(.95rem, 2.5vw, 1.25rem);
  margin-top: 1rem;
  max-width: 45ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 3rem 1.25rem; }
.section.alt { background: #fff; }
.section-inner { max-width: 820px; margin: 0 auto; }
.section h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin-bottom: 1.25rem; }
.section h2 { font-size: clamp(1.35rem, 3.2vw, 1.9rem); margin-bottom: 1rem; }
.section h1::after, .section h2::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin-top: .6rem;
}
.section.center { text-align: center; }
.section.center h1::after, .section.center h2::after { margin-left: auto; margin-right: auto; }
.section p { margin-bottom: 1rem; }
.section p:last-child { margin-bottom: 0; }

.lede { font-size: 1.125rem; }

.two-col {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; }
}
.two-col img { border-radius: 4px; box-shadow: 0 10px 30px rgba(39, 39, 36, .18); }

/* ---------- Cards / info blocks ---------- */
.card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card ul { padding-left: 1.2rem; margin-bottom: 0; }
.card li { margin-bottom: .4rem; }

.schedule { list-style: none; padding: 0; margin: 0; }
.schedule li {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--cream-dark);
}
.schedule li:last-child { border-bottom: none; }
.schedule .day {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--burgundy);
}
@media (max-width: 480px) {
  .schedule li { grid-template-columns: 6em 1fr; gap: .75rem; }
}

.notice {
  background: #fff;
  border-left: 4px solid var(--burgundy);
  padding: 1.1rem 1.25rem;
  border-radius: 0 4px 4px 0;
  margin-bottom: 1.5rem;
}

.btn {
  display: inline-block;
  background: var(--burgundy);
  color: #fff;
  text-decoration: none;
  padding: .8rem 1.6rem;
  border-radius: 3px;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background .15s ease;
}
.btn:hover { background: var(--burgundy-dark); color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--burgundy);
  border: 1px solid var(--burgundy);
}
.btn.ghost:hover { background: var(--burgundy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* ---------- Contact list ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: .9rem; padding-left: 1.6rem; position: relative; }
.contact-list .ico {
  position: absolute; left: 0; top: .35em;
  width: 1em; height: 1em; fill: var(--gold-dark);
}
address { font-style: normal; }

/* ---------- Video embed ---------- */
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--charcoal);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(39, 39, 36, .2);
}
.video-frame iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--cream);
  text-align: center;
  padding: 2.5rem 1.25rem 2rem;
  margin-top: 3rem;
}
.site-footer .connect {
  font-family: var(--serif);
  letter-spacing: .18em;
  text-transform: uppercase;
  font-size: .95rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.social a {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--gold-dark);
  border-radius: 50%;
  transition: background .15s ease;
}
.social a:hover { background: var(--burgundy); }
.social svg { width: 20px; height: 20px; fill: var(--cream); }
.site-footer address, .site-footer p { font-size: .95rem; margin-bottom: .35rem; }
.site-footer a { color: var(--cream); }
.site-footer .fineprint {
  margin-top: 1.5rem;
  font-size: .8rem;
  color: #9a9a92;
}
