:root {
  --lightblue: #0f78d9;
  --gold: #f2c14e;
  --navy: #0b1c2c;
  --light: #f5f7fa;
  --dark: #1a1a1a;
  --green: #0f78d9; /* brand accent used for links/checks */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background-color: white;
  line-height: 1.7;
}

.body--locked {
  overflow: hidden;
}

/* Improve focus visibility for keyboard users */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

a {
  color: var(--green);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.hero {
  min-height: 70vh;
  background: linear-gradient(rgba(167, 184, 193, 0.8), rgba(102, 118, 162, 0.8)),
    url('../images/ardmorebackground.jpg') center / cover;
  color: white;
  display: flex;
  flex-direction: column;
}

.hero--subpage {
  min-height: 70vh;
  justify-content: flex-start;
}

/* Skip link for quick navigation on mobile */
.skip-link {
  position: absolute;
  left: 5vw;
  top: 0.5rem;
  background: #fff;
  color: #000;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
}

.nav__brand {
  display: block;
  height: 48px;   /* change to the height you want */
  width: auto;    /* keeps aspect ratio */
  object-fit: contain;
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.hero__content {
  padding: 6rem 5vw 4rem;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero__content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero__content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.section {
  padding: 4rem 5vw;
  background-color: white;
}

.section--alt {
  background-color: var(--light);
}

.section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section__center {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.gallery-lede {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  margin: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 15px 30px rgba(11, 28, 44, 0.08);
  overflow: hidden;
  border: 1px solid rgba(11, 28, 44, 0.08);
  display: flex;
  flex-direction: column;
}

.gallery-card__media {
  border: 0;
  background: none;
  padding: 0;
  margin: 0;
  display: block;
  line-height: 0;
  cursor: zoom-in;
}

.gallery-card__media:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.gallery-card__media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  padding: 1rem 1.25rem 1.5rem;
}

.gallery-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.gallery-card p {
  margin: 0;
  color: rgba(11, 28, 44, 0.8);
  font-size: 0.95rem;
}

.gallery-highlights {
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.gallery-highlight {
  border: 1px solid rgba(11, 28, 44, 0.08);
  border-radius: 10px;
  padding: 1.25rem;
  background: rgba(15, 120, 217, 0.08);
}

.gallery-highlight h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(11, 28, 44, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 999;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  max-width: min(960px, 90vw);
  width: 100%;
  margin: 0;
  text-align: center;
  color: white;
}

.lightbox__figure img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.4);
}

.lightbox__figure figcaption {
  margin-top: 0.75rem;
  font-size: 1rem;
}

.lightbox__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(242, 193, 78, 0.95);
  color: var(--navy);
}

.section__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 2.4rem);
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--navy);
}

.card {
  background: white;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(11, 28, 44, 0.1);
}

.card h3 {
  margin-top: 0;
  font-family: var(--font-heading);
  color: var(--lightblue);
}

#pillars .pillars__text {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 0;
}

#pillars .pillars__text span {
  display: block;
}

#pillars .section__grid {
  grid-template-columns: 1fr;
}

#pillars .pillars__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(11, 28, 44, 0.15);
  margin-top: 0.2rem;
}

.card__note {
  font-size: 0.95rem;
  color: var(--dark);
  margin-top: 1.5rem;
}

.list {
  padding-left: 1.5rem;
}

.list--check {
  list-style: none;
  padding-left: 0;
}

.list--check li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
}

.list--check li::before {
  content: '✔';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 700;
}

.news {
  display: grid;
  gap: 1.5rem;
}

.news__item {
  background: white;
  border-left: 4px solid var(--green);
  padding: 1.5rem;
  box-shadow: 0 16px 30px rgba(11, 28, 44, 0.08);
}

.news__item h3 {
  margin-top: 0;
  font-family: var(--font-heading);
}

.news__grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: flex-start;
}

.news__grid blockquote {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  max-height: none;
  overflow: visible;
}

.news__grid .fb-embed {
  max-width: 540px;
  width: 100%;
  margin: 0 auto;
  min-height: 400px; /* reduce CLS while loading */
}

@media (max-width: 1024px) {
  .news__grid {
    flex-direction: column;
    align-items: center;
  }

}

.form {
  display: grid;
  gap: 0.75rem;
  background: white;
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(11, 28, 44, 0.1);
}

.form label {
  font-weight: 600;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(11, 28, 44, 0.2);
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
}

.form__note {
  font-size: 0.85rem;
  color: rgba(11, 28, 44, 0.7);
  margin: 0;
}

.footer {
  background: var(--navy);
  color: white;
  padding: 1.5rem 5vw;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__top {
  color: var(--gold);
  font-weight: 600;
}

.contact__grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.contact__info {
  flex: 1 1 60%;
}

.contact__images {
  flex: 0 0 320px; /* width of the image column on desktop */
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__images img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* stack on smaller screens */
@media (max-width: 860px) {
  .contact__grid {
    flex-direction: column;
  }
  .contact__images {
    flex-basis: auto;
    width: 100%;
  }
  .nav__toggle {
    display: inline-block;
  }

  .nav__links {
    position: absolute;
    top: 68px;
    right: 5vw;
    background: rgba(11, 28, 44, 0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    border-radius: 12px;
    gap: 1rem;
    display: none;
  }

  .nav__links--open {
    display: flex;
  }

  .section__grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .gallery-card__media img {
    height: 180px;
  }

  .hero__content {
    padding: 4rem 5vw;
  }
}

@media (min-width: 861px) {
  .section__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .nav__brand { height: 64px; }
}

@media (min-width: 1200px) {
  .nav__brand { height: 128px; }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
