/* Via Caronport — site styles
   Faithful port of the original Wix design system:
   maroon text on white, cream + dusty-rose section bands. */

:root {
  --maroon: #891021;
  --maroon-bright: #B7152C;
  --maroon-rose: #972F3E;
  --cream: #F4F4EC;
  --rose: #DEC3C2;
  --placeholder: #D91934;
  --error: #FF4040;
  --heading: "Raleway", sans-serif;
  --body: "Nunito Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem; /* ≈17px */
  line-height: 1.75;
  color: var(--maroon);
  background: #FFFFFF;
}

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

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 400;
  line-height: 1.25;
  color: var(--maroon);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

a { color: var(--maroon); }
a:hover { color: var(--maroon-bright); }

strong { font-weight: 700; }

.wrap {
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

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

.hidden { display: none !important; }

/* ---------------------------------------------------------------- Buttons */
.button {
  display: inline-block;
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.9375rem; /* 15px */
  line-height: 1.4;
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 100px;
  background-color: var(--maroon);
  padding: 0.6rem 2.1rem;
  cursor: pointer;
  box-shadow: 1.93px 2.3px 8px 0 rgba(0, 0, 0, 0.45);
  transition: background-color 0.4s ease;
}
.button:hover { color: #fff; background-color: rgba(137, 16, 33, 0.6); }

.pill-maroon {
  background-color: var(--maroon);
  border-radius: 100px;
}
.pill-maroon:hover { background-color: rgba(137, 16, 33, 0.6); }

.square-rose {
  background-color: var(--rose);
  border-radius: 0;
}
.square-rose:hover { background-color: rgba(222, 195, 194, 0.6); }

.pill-rose {
  background-color: var(--rose);
  border-radius: 100px;
}
.pill-rose:hover { background-color: rgba(222, 195, 194, 0.6); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin: 1.75rem 0;
}

/* ----------------------------------------------------------------- Header */
.site-header {
  background: var(--cream);
  position: relative;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}
.brand { display: inline-block; line-height: 0; }
.brand img { width: 180px; height: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--maroon);
  border-radius: 0;
  font: 400 0.9rem var(--body);
  color: var(--maroon);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--maroon);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  transition: color 0.4s ease;
}
.site-nav a:hover { color: var(--maroon-bright); }

.has-sub { position: relative; }
.sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 11rem;
  background: var(--cream);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.35rem 0 !important;
  display: none !important;
  flex-direction: column;
  align-items: stretch;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub { display: flex !important; }
.sub a { padding: 0.45rem 1rem; font-size: 1rem; }

/* ------------------------------------------------------------------- Hero */
.hero { position: relative; }
.hero-img {
  width: 100%;
  height: clamp(320px, 60vh, 500px);
  object-fit: cover;
}
.hero h1 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 35px 1.25rem 0;
  text-align: center;
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.0625rem); /* up to 65px */
  color: var(--maroon);
}

/* ---------------------------------------------------------- Service times */
.service-times {
  background: var(--cream);
  text-align: center;
  padding-block: 3rem;
}
.service-line {
  font-weight: 700;
  font-size: 1.25rem; /* 20px */
  margin-bottom: 0.5rem;
}
.service-address { font-size: 1.125rem; /* 18px */ }
.service-times .btn-row { margin-bottom: 0; }

/* -------------------------------------------------------------- Who we are */
.who-we-are {
  background: var(--rose);
  text-align: center;
  padding-top: 3.5rem;
}
.section-heading {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem); /* up to 40px */
  color: var(--maroon);
  margin-bottom: 1rem;
}
.who-we-are p { font-size: 1.125rem; /* 18px */ }
.who-we-are a { text-decoration: underline; }
.who-we-are .btn-row a { text-decoration: none; }
.who-we-are .btn-row { margin-bottom: 0; padding-bottom: 3.5rem; }
.photo-strip img {
  width: 100%;
  height: clamp(300px, 55vh, 525px);
  object-fit: cover;
}

/* --------------------------------------------------------------- Calendar */
.calendar-section {
  background: #FFFFFF;
  text-align: center;
  padding-block: 3.5rem;
}
.calendar-heading {
  font-family: var(--body);
  font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 2.5rem); /* up to 40px */
  letter-spacing: 0.2em;
  color: var(--maroon);
  text-align: center;
  margin-bottom: 1.5rem;
}
.calendar-section .btn-row { margin-bottom: 0; }
.embed-frame {
  background: #fff;
  border: 0;
  width: 100%;
  max-width: 980px;
  height: 541px;
  margin: 0 auto;
  display: block;
}

/* ----------------------------------------------------------- Home contact */
.home-contact {
  background: var(--rose);
  padding: 3.5rem 1.25rem;
}
.contact-panel {
  background: #FFFFFF;
  max-width: 980px;
  margin-inline: auto;
  padding: 3rem 1.5rem 0;
  text-align: center;
}
.contact-heading {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(1.75rem, 4.5vw, 2.5rem); /* up to 40px */
  color: var(--maroon-rose);
  text-align: center;
  margin-bottom: 1.5rem;
}
.map-embed {
  width: 100%;
  height: 350px;
  border: 0;
  display: block;
  margin-top: 2.5rem;
  /* Warm down Google's green default toward the tan look of the old embed. */
  filter: saturate(0.35) sepia(0.22) brightness(1.04);
}
.prose .map-embed { margin-bottom: 2.5rem; }

/* ------------------------------------------------------- Page head + prose */
.page-head {
  background: #FFFFFF;
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) 1.25rem 0;
}
.page-title {
  font-family: var(--heading);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 2.5rem); /* up to 40px */
  color: var(--maroon);
  margin: 0;
}
.page-title.title-rose {
  color: var(--rose);
  text-transform: uppercase;
}
.page-head .lede {
  font-family: var(--body);
  font-weight: 300;
  color: var(--maroon);
  margin: 0.75rem auto 0;
  max-width: 40rem;
}

.page-body { padding-block: clamp(2rem, 5vw, 3.5rem); }
.prose {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
}
.prose h2 { margin-top: 1.75em; }
.prose h2:first-child { margin-top: 0; }
.prose figure { margin: 0 0 2rem; }
.prose figure img { width: 100%; }
.prose a { text-decoration: underline; }
.prose .btn-row a { text-decoration: none; }
.prose .address { font-size: 1.0625rem; }
.align-left { text-align: left; }

.text-small p { font-size: 0.9375rem; /* 15px */ }
.footnote { font-size: 0.8125rem; /* 13px */ }

/* Creeds (beliefs page) */
.creed { text-align: left; }
.creed h2 {
  font-family: var(--heading);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--maroon);
}
.creed p { font-size: 1.2rem; /* ≈19px */ }

/* Document links (care and safety page) */
.doc-text p { font-size: 1.2rem; }
.doc-link {
  font-family: var(--heading);
  font-size: 1.375rem; /* 22px */
  color: var(--maroon);
  text-decoration: underline;
}

/* Quote band (about page) */
.quote-band {
  background: var(--rose);
  padding: 2.5rem 1.75rem;
  margin: 2.5rem 0;
  text-align: center;
}
.quote-mark {
  display: block;
  font-family: var(--heading);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--maroon);
  margin: 0.5rem auto 1rem;
}
.quote-band blockquote {
  font-family: var(--heading);
  font-size: 1.375rem; /* 22px */
  line-height: 1.5;
  color: var(--maroon);
  margin: 0 0 1.25rem;
}
.quote-band a {
  font-style: italic;
  color: var(--maroon);
  text-decoration: underline;
}

/* ----------------------------------------------------------------- Clergy */
.clergy-section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.clergy-group { margin-bottom: 3rem; text-align: center; }
.clergy-group > h2 {
  font-family: var(--heading);
  font-weight: 400;
  font-size: 1.75rem; /* 28px */
  color: var(--maroon);
  text-align: center;
}
.clergy-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 1.5rem;
}
.clergy-card { margin: 0; width: 200px; text-align: center; }
.clergy-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
}
.clergy-card figcaption { margin-top: 0.75rem; }
.clergy-card strong {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.9375rem; /* 15px */
  color: var(--maroon);
  display: block;
}
.clergy-card span { font-size: 0.9375rem; color: var(--maroon); }

/* ------------------------------------------------------------ Contact form */
.contact-form {
  max-width: 640px;
  margin-inline: auto;
  text-align: left;
}
.contact-form label {
  display: block;
  font-family: var(--body);
  font-weight: 400;
  font-size: 0.9375rem; /* 15px */
  color: var(--maroon);
  margin: 1.2rem 0 0.2rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1rem;
  color: var(--maroon);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--maroon);
  border-radius: 0;
  padding: 0.4rem 0.1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--placeholder);
  opacity: 1;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-bottom: 2px solid var(--maroon);
}
.contact-form input:user-invalid,
.contact-form textarea:user-invalid {
  border-bottom-color: var(--error);
}
.form-submit {
  display: block;
  width: 100%;
  margin-top: 1.75rem;
  background-color: var(--maroon);
  color: #fff;
  border: 0;
  border-radius: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.125rem; /* 18px */
  padding: 0.7rem 1rem;
  cursor: pointer;
  box-shadow: none;
  transition: background-color 0.4s ease;
}
.form-submit:hover { background-color: rgba(137, 16, 33, 0.6); }
.form-success {
  display: none;
  color: var(--maroon);
  text-align: center;
  padding: 1rem 0 0;
  margin: 0;
}

/* ----------------------------------------------------------------- Footer */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid #eee;
  margin-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding-block: 2rem;
}
.footer-social {
  grid-column: 2;
  text-align: center;
}
.footer-social img { width: 24px; height: 24px; margin: 0 auto 0.5rem; }
.footer-copyright {
  font-family: var(--body);
  font-weight: 300;
  font-size: 0.875rem; /* 14px */
  color: var(--maroon);
  margin: 0;
}
.footer-diocese {
  grid-column: 3;
  justify-self: end;
  text-align: center;
}
.footer-diocese img { width: 230px; height: auto; margin: 0 auto 0.35rem; }
.footer-diocese p { margin: 0; font-size: 0.85rem; }
.footer-diocese a { color: var(--maroon); }

/* ------------------------------------------------------------- Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; width: 100%; }
  body.nav-open .site-nav { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-block: 0.5rem; }
  .site-nav a { padding: 0.7rem 0.5rem; border-bottom: 1px solid rgba(137, 16, 33, 0.15); }
  .sub {
    position: static;
    display: flex !important;
    box-shadow: none;
    background: transparent;
    padding: 0 !important;
  }
  .sub a { padding-left: 1.5rem; }

  .footer-inner { grid-template-columns: 1fr; }
  .footer-social { grid-column: 1; }
  .footer-diocese { grid-column: 1; justify-self: center; }

  .embed-frame { height: 541px; }
  .contact-panel { padding-inline: 1.25rem; }
}
