/* St Mary's Campaign 2023 - Custom Styles */

:root {
  --pri: #2D4F5F;
  --pri-dk: #1A2F3A;
  --sec: #C49A3C;
  --sec-lt: #D4B05C;
  --bg: #FDFBF7;
  --bg-alt: #F0EBE1;
  --stone: #E8E0D2;
  --txt: #333940;
  --txt-lt: #6B7B8D;
  --white: #FFFFFF;
}

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  color: var(--txt);
  background: var(--bg);
  line-height: 1.72;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--pri);
  font-weight: 600;
}

h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 1.2rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.8rem; }

a { color: var(--sec); transition: color 0.2s; }
a:hover { color: var(--pri); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: auto; }
.skip:focus { left: 10px; top: 10px; z-index: 9999; background: var(--sec); color: var(--white); padding: 8px 16px; }

/* Top nav */
.topbar {
  background: var(--pri-dk);
  border-bottom: 3px solid var(--sec);
  padding: 0;
}

.topbar .navbar-brand {
  padding: 10px 0;
}

.topbar .navbar-brand img {
  height: 52px;
  width: auto;
}

.topbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 18px 14px !important;
  transition: color 0.2s, background 0.2s;
}

.topbar .nav-link:hover,
.topbar .nav-link.active {
  color: var(--sec) !important;
  background: rgba(255,255,255,0.05);
}

.topbar .navbar-toggler {
  border-color: rgba(255,255,255,0.3);
  padding: 6px 10px;
}

.topbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28196,154,60,1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero section */
.hro {
  background: linear-gradient(135deg, var(--pri-dk) 0%, var(--pri) 100%);
  color: var(--white);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hro::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80"><rect fill="none"/><path d="M40 0v80M0 40h80" stroke="rgba(196,154,60,0.06)" stroke-width="1"/></svg>');
  pointer-events: none;
}

.hro h1 {
  color: var(--white);
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hro p {
  font-size: 1.15rem;
  line-height: 1.8;
  opacity: 0.92;
  max-width: 680px;
}

.hro .accent {
  color: var(--sec);
}

/* Buttons */
.btn-gld {
  background: var(--sec);
  color: var(--white);
  border: none;
  padding: 12px 32px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 3px;
  transition: background 0.25s, transform 0.15s;
}

.btn-gld:hover {
  background: var(--sec-lt);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-out {
  border: 2px solid var(--sec);
  color: var(--sec);
  background: transparent;
  padding: 10px 28px;
  font-weight: 600;
  border-radius: 3px;
  transition: all 0.25s;
}

.btn-out:hover {
  background: var(--sec);
  color: var(--white);
}

/* Section spacing */
.seg {
  padding: 5rem 0;
}

.seg-alt {
  background: var(--bg-alt);
}

.seg-stone {
  background: var(--stone);
}

/* Section headers */
.seg-hd {
  text-align: center;
  margin-bottom: 3rem;
}

.seg-hd h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 14px;
}

.seg-hd h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--sec);
}

.seg-hd p {
  color: var(--txt-lt);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 1rem auto 0;
}

/* Info cards */
.icard {
  background: var(--white);
  border-radius: 6px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border-top: 3px solid var(--sec);
  transition: transform 0.2s, box-shadow 0.2s;
}

.icard:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.icard .ic {
  width: 48px;
  height: 48px;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.icard .ic svg {
  width: 24px;
  height: 24px;
  fill: var(--sec);
}

.icard h3 {
  font-size: 1.25rem;
}

/* Quote block */
.qtb {
  background: var(--white);
  border-left: 4px solid var(--sec);
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.qtb p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--pri);
  margin-bottom: 0.8rem;
}

.qtb cite {
  font-style: normal;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.9rem;
  color: var(--sec);
  font-weight: 600;
}

/* Supporters / trust logos area */
.trst {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.trst-item {
  background: var(--white);
  padding: 1.2rem 2rem;
  border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  font-weight: 600;
  color: var(--pri);
  font-size: 0.95rem;
}

/* Stats row */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  text-align: center;
}

.stat-item {
  flex: 1;
  min-width: 160px;
}

.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--sec);
  line-height: 1;
}

.stat-lbl {
  color: var(--txt-lt);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* CTA banner */
.cta-band {
  background: var(--pri);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-band p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* Footer */
.ftr {
  background: var(--pri-dk);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 0;
}

.ftr h5 {
  color: var(--sec);
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}

.ftr a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.2s;
}

.ftr a:hover {
  color: var(--sec);
}

.ftr ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ftr ul li {
  margin-bottom: 0.6rem;
}

.ftr-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 2.5rem;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* Cookie bar */
.ck-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--pri-dk);
  color: var(--white);
  padding: 14px 0;
  z-index: 9990;
  transform: translateY(-100%);
  transition: transform 0.35s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.ck-bar.show {
  transform: translateY(0);
}

.ck-bar p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ck-bar a {
  color: var(--sec);
}

.ck-accept {
  background: var(--sec);
  color: var(--white);
  border: none;
  padding: 7px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

.ck-decline {
  background: transparent;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 6px 18px;
  font-size: 0.85rem;
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}

/* Responsive tweaks */
@media (max-width: 991px) {
  .topbar .nav-link { padding: 10px 14px !important; }
  .hro { padding: 3.5rem 0 3rem; }
  .hro h1 { font-size: 2.2rem; }
  .seg { padding: 3.5rem 0; }
}

@media (max-width: 575px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .hro { padding: 2.5rem 0 2rem; }
  .hro h1 { font-size: 1.85rem; }
  .qtb { padding: 1.5rem; }
  .stat-num { font-size: 2.2rem; }
}
