/* Cornerstone Community Church — cornerstonemiddlesbrough.info */
:root {
  --teal: #63B7B7;
  --teal-deep: #3E8E8E;
  --teal-ink: #2E7070;
  --navy: #1A2B3C;
  --navy-soft: #243a52;
  --cream: #FAF7F1;
  --white: #FFFFFF;
  --border: #E7E1D4;
  --text-muted: #5C6B7A;
  --font-display: 'Bitter', Georgia, serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --radius-card: 20px;
  --radius-btn: 14px;
  --shadow-sm: 0 1px 2px rgba(26, 43, 60, 0.05);
  --shadow-md: 0 4px 14px rgba(26, 43, 60, 0.07);
  --shadow-lg: 0 12px 32px rgba(26, 43, 60, 0.12);
  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--navy);
  background-color: var(--cream);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(99, 183, 183, 0.10), transparent 70%);
  background-repeat: no-repeat;
}

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

button {
  cursor: pointer;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

a {
  transition: background-color var(--transition), color var(--transition),
    border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

:focus-visible {
  outline: 3px solid var(--teal-deep);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.footer {
  text-align: center;
}

.footer a {
  color: var(--teal)
  text-decoration: none;
}

.footer a:hover {
  color: var(--teal deep)
  text-decoration: none;
}


.footer a:visited {
  color: var(--navy); 
  text-decoration: none;
}


/* Layout — a focused, modern column */
.page {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem) clamp(3rem, 8vw, 5.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

/* Notification banner */
.notice {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-card);
  padding: clamp(1rem, 2.5vw, 1.375rem) clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  animation: notice-in 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.notice::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--teal);
}

@keyframes notice-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notice.is-hidden {
  display: none;
}

.notice__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* stretch edge-to-edge over the card's padding so the whole banner is clickable */
  margin: calc(-1 * clamp(1rem, 2.5vw, 1.375rem)) calc(-1 * clamp(1.25rem, 3vw, 1.75rem));
  padding: clamp(1rem, 2.5vw, 1.375rem) clamp(3.5rem, 9vw, 4.25rem) clamp(1rem, 2.5vw, 1.375rem) clamp(1.25rem, 3vw, 1.75rem);
  color: inherit;
  text-decoration: none;
}

.notice__link:hover .notice__heading {
  text-decoration: none;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.notice__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  line-height: 1.3;
  color: var(--teal);
  margin-bottom: 0.125rem;
}

.notice__text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.88);
}

.notice__close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1rem);
  right: clamp(0.75rem, 2vw, 1rem);
  z-index: 1;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.25rem;
  line-height: 1;
  transition: background var(--transition), color var(--transition);
}

.notice__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* Header */
.masthead {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.masthead__logo {
  width: min(360px, 80%);
  height: auto;
}

/* Cards */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card--flush {
  padding: 0;
}

/* Accordions */
.accordion__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3.5vw, 2rem);
  text-align: left;
}

.accordion__head:hover .accordion__title {
  color: var(--teal-ink);
}

.accordion__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  line-height: 1.25;
  color: var(--teal-deep);
  transition: color var(--transition);
}

/* Plus / minus icon */
.plus {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(99, 183, 183, 0.14);
  transition: transform var(--transition), background var(--transition);
}

.plus::before,
.plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--teal-deep);
  transform: translate(-50%, -50%);
  border-radius: 2px;
  transition: transform var(--transition);
}

.plus::before {
  width: 11px;
  height: 2px;
}

.plus::after {
  width: 2px;
  height: 11px;
}

.accordion:hover .plus {
  background: rgba(99, 183, 183, 0.24);
}

.is-open .plus {
  background: var(--teal-deep);
}

.is-open .plus::before,
.is-open .plus::after {
  background-color: var(--white);
}

.is-open .plus::after {
  transform: translate(-50%, -50%) scaleY(0);
}

.accordion__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 340ms cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion__body[hidden] {
  display: none;
}

.accordion.is-open .accordion__body {
  grid-template-rows: 1fr;
}

.accordion__inner {
  overflow: hidden;
}

.accordion__inner p {
  font-size: 0.975rem;
  color: var(--navy);
  max-width: 68ch;
  padding: clamp(0.625rem, 2vw, 1rem) clamp(1.25rem, 3.5vw, 2rem) clamp(1.5rem, 3vw, 2rem);
}

.accordion__inner p + p {
  padding-top: 0.5rem;
}



/* Button stack */
.link-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0.75rem 2rem;
  background-color: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  background-color: var(--teal-deep);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn--navy {
  background-color: var(--navy);
  color: var(--teal);
}

.btn--navy:hover {
  background-color: var(--navy-soft);
  color: #8fd4d4;
}

.btn--muted {
  background-color: rgba(99, 183, 183, 0.35);
  color: var(--teal-ink);
  cursor: default;
  box-shadow: none;
}

.btn--muted:hover {
  background-color: rgba(99, 183, 183, 0.35);
  transform: none;
}

.btncard {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto 1.5rem auto;
  min-height: 58px;
  padding: 0.75rem 1.25rem;
  background-color: var(--teal);
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.975rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-sm);
}

/* Events embed */
.events__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  color: var(--teal-deep);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3.5vw, 2rem) 0.75rem;
}

/* Events embed — always keep consistent breathing room below the embed,
   no matter how tall the iframe content gets */
.card--flush.events {
  padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.events__frame {
  margin: 0 clamp(0.75rem, 2.5vw, 1.25rem);
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
}

.events__frame iframe {
  display: block;
  width: 100%;
  height: 330px;
  border: 0;
}



/* App badges */
.app-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  padding-top: 0.25rem;
}

.app-badge {
  display: inline-flex;
  border-radius: 10px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.app-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-badge img {
  height: 40px;
  width: auto;
}

/* Mobile */
@media (max-width: 640px) {
  .btn {
    min-height: 54px;
    font-size: 0.925rem;
  }

  .plus {
    width: 24px;
    height: 24px;
  }

  .plus::before {
    width: 10px;
  }

  .plus::after {
    height: 10px;
  }

  .events__frame iframe {
    height: 350px;
  }
}
