/* ===================================================
   ST GILES ON THE HEATH – GLOBAL STYLESHEET
   Unified church, shop, parish, index, timeline, etc.
======================================================*/

/* -----------------------------------
   ROOT & BASE
--------------------------------------*/
:root {
  --sg-primary: #A8C5A0;
  --sg-primary-dark: #7A8F75;
  --sg-accent: #EBDDC8;
  --sg-bg: #FAF9F7;
  --sg-bg-alt: #fdfdfb;
  --sg-text: #333333;
  --sg-muted: #777777;
  --sg-border: #DDDDDD;
  --sg-shadow-soft: 0 4px 12px rgba(0,0,0,0.08);
  --sg-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  background-color: var(--sg-bg);
  color: var(--sg-text);
  line-height: 1.6;
  font-size: 16px;
}

/* -----------------------------------
   GLOBAL IMAGES – OPTION A
--------------------------------------*/
/* Default: natural scaling for everything (news, tiles, sponsors, content) */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Make article/content images safe & responsive */
.section img,
.section-text img,
.article-thumbnail {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-text img[width],
.section-text img[height] {
  width: 100% !important;
  height: auto !important;
}

/* Only these should behave like "cover" images */
.church-hero img,
.church-image-large img,
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Protect critical tiles / logos from cover overrides */

.sponsor-card img {
  object-fit: contain;
}

/* -----------------------------------
   LINKS & HEADINGS
--------------------------------------*/
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  text-align: center;
  color: var(--sg-text);
}

/* Container helper */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -----------------------------------
   TOP BAR
--------------------------------------*/
.top-bar {
  background: #f3f3f3;
  font-size: 0.8rem;
  border-bottom: 1px solid var(--sg-border);
}

.top-bar .container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.top-bar a::after {
  content: " |";
}

.top-bar a:last-child::after {
  content: "";
}

/* -----------------------------------
   SITE HEADER
--------------------------------------*/
.site-header {
  background: #ffffff;
  padding: 1rem 0;
  border-bottom: 1px solid var(--sg-border);
}

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

.site-title {
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  flex: 1;
  font-family: 'Playfair Display', serif;
  text-align: center;
  line-height: 1.4;
}

.site-title strong {
  display: block;
  font-weight: 700;
  font-size: 1.2em;
  margin-top: 0.3em;
}

/* Search */
.search-bar {
  display: flex;
  max-width: 500px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.search-bar input {
  padding: 0.75rem;
  font-size: 1rem;
  flex: 1;
  border: none;
  outline: none;
}

.search-bar button {
  padding: 0 1.1rem;
  font-size: 1.2rem;
  background: var(--sg-primary);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}

.search-bar button:hover {
  background: var(--sg-primary-dark);
}

/* Mobile hamburger */
.menu-toggle {
  display: none;
  font-size: 2rem;
  margin-top: 0.5rem;
  cursor: pointer;
}

/* -----------------------------------
   MAIN NAVIGATION
--------------------------------------*/
.accordion-nav {
  background: #ffffff;
  border-top: 1px solid #eee;
  border-bottom: 2px solid #c8d6c3;
}

.accordion-nav .container {
  display: flex;
  justify-content: center;
}

.menu-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
  padding: 0.9rem 0;
  margin: 0;
  width: 80%;
  max-width: 1000px;
}

.menu-list > li {
  position: relative;
}

.menu-list a,
.accordion-toggle {
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2b2b2b;
  cursor: pointer;
  padding: 0.5rem 0;
  white-space: nowrap;
  transition: color 0.25s ease, opacity 0.25s ease;
}

.menu-list a:hover,
.accordion-toggle:hover {
  color: var(--sg-primary-dark);
  opacity: 0.8;
}

/* Desktop dropdown (if used) */
.accordion-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  padding: 0.5rem 0;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  z-index: 200;
  display: none;
}

.accordion-content li a {
  display: block;
  padding: 0.75rem 1rem;
  text-transform: none;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
}

.accordion-content li a:hover {
  background: #f2f7f1;
  color: #2a5d2a;
}

.accordion-item.open .accordion-content {
  display: block;
}

/* -----------------------------------
   HERO SECTIONS
--------------------------------------*/
.hero {
  position: relative;
  max-height: 480px;
  overflow: hidden;
}

.hero img {
  display: block;
}

/* Church-style hero */
.church-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
}

.church-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 20, 0.35);
}

.church-hero-title {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* -----------------------------------
   GENERIC SECTION STRUCTURE
--------------------------------------*/
.section {
  padding: 3rem 1.5rem;
  text-align: center;
  background-color: var(--sg-bg);
}

.section-label {
  color: var(--sg-primary-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.section-subtitle {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #444;
  max-width: 800px;
  margin: 0.5rem auto 0;
}

/* Church intro variant */
.church-intro {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

/* -----------------------------------
   CHURCH CARDS (image-led)
--------------------------------------*/
.church-wrapper {
  max-width: 1100px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.church-card {
  background: #ffffff;
  border-radius: var(--sg-radius);
  overflow: hidden;
  box-shadow: var(--sg-shadow-soft);
  margin-bottom: 3rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.church-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* Large image container */
.church-image-large {
  width: 100%;
  height: 360px;
  overflow: hidden;
  position: relative;
}

.church-image-large img {
  transition: transform 4s ease;
}

.church-card:hover .church-image-large img {
  transform: scale(1.05);
}

/* Card text */
.church-card-content {
  padding: 2rem;
}

.church-card-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}

.church-card-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
}

/* -----------------------------------
   SCROLL REVEAL
--------------------------------------*/
.hidden {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------------
   FORM / CONTACT
--------------------------------------*/
.form-wrapper {
  max-width: 700px;
  margin: 0 auto 3rem;
  padding: 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.contact-form label {
  display: block;
  font-weight: bold;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
  font-size: 1rem;
  font-family: 'Source Sans Pro', sans-serif;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form button {
  margin-top: 2rem;
  background: var(--sg-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-form button:hover {
  background: #93B893;
}

.contact-form .note {
  font-size: 0.9rem;
  color: #777;
  margin-top: 1rem;
}

/* Success / Error Messages */
.form-success {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background: #e4f4e1;
  color: #2e5b33;
  border: 1px solid #b7d9b3;
  font-size: 1rem;
}

.form-error {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  background: #fbeaea;
  color: #8c2d2d;
  border: 1px solid #e0a1a1;
  font-size: 1rem;
}

/* -----------------------------------
   LOCAL GROUPS / FEATURE CARDS
--------------------------------------*/
.groups-section {
  background: #FAF9F7;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Feature-style card */
.group-feature {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* Top image */
.group-feature img {
  object-fit: cover;
}

/* Banner caption */
.group-caption {
  background-color: #A8C5A0;
  color: white;
  font-style: italic;
  padding: 0.75rem;
  font-size: 1rem;
  text-align: center;
}

/* Text content */
.group-info {
  padding: 2rem 1.5rem;
  text-align: center;
}

.group-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: #777;
  margin-bottom: 0.5rem;
}

.group-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #333;
}

.group-info p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 1.5rem;
}

/* Button */
.group-button {
  display: inline-block;
  background: #A8C5A0;
  color: white;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.group-button:hover {
  background: #93B893;
}

/* -----------------------------------
   INFO CARD / PUB / SHOP
--------------------------------------*/
.hall-booking {
  background: #EBDDC8;
  padding: 3rem 1.5rem;
  text-align: center;
}

.booking-card {
  background: white;
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.booking-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 1rem;
}

.booking-card p {
  font-size: 1rem;
  margin: 0.5rem 0;
  color: #444;
}

.booking-card a {
  color: #A8C5A0;
  text-decoration: underline;
}

/* -----------------------------------
   OPENING HOURS BLOCK (reusable)
--------------------------------------*/
.opening-hours-section {
  background: var(--sg-accent);
  padding: 3rem 1.5rem;
  text-align: center;
}

.opening-hours-card {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  padding: 2.25rem 2rem;
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow-soft);
}

.opening-hours-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

/* Grid layout */
.hours-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  background: #fafafa;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border: 1px solid #eee;
}

.hours-row span:first-child {
  font-weight: 600;
  color: var(--sg-primary-dark);
}

.hours-row .closed {
  color: #b54d4d;
  font-weight: 700;
}

.hours-contact p {
  font-size: 1rem;
  margin-bottom: 0.6rem;
  color: #444;
}

.hours-contact .primary-button {
  margin-top: 1rem;
}

/* Mobile */
@media (max-width: 600px) {
  .hours-row {
    flex-direction: column;
    text-align: left;
    gap: 0.3rem;
  }
}

/* -----------------------------------
   HISTORY SECTION & TIMELINE
--------------------------------------*/
.history-section {
  padding: 3rem 1.5rem;
  background: var(--sg-bg-alt);
  max-width: 1100px;
  margin: 0 auto;
}

.history-section .section-subtitle {
  margin-bottom: 2.5rem;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 3px solid var(--sg-primary);
}

.timeline-entry {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  opacity: 1;
  align-items: flex-start;
}

.timeline-marker {
  width: 15px;
  height: 15px;
  background: #6D8B63;
  border: 3px solid var(--sg-bg-alt);
  border-radius: 50%;
  position: absolute;
  left: -2.3rem;
  margin-top: 5px;
  box-shadow: 0 0 0 3px var(--sg-primary);
}

/* Illustration blocks */
.timeline-illustration {
  width: 160px;
  height: 120px;
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.map-illustration {
  background: linear-gradient(135deg, #d9d2b6, #ece7cf);
  border: 2px dashed #8b7e64;
}
.map-illustration::after {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(0,0,0,0.15);
  transform: rotate(1deg);
}

.church-illustration {
  background: #d9e3da;
  border-bottom: 6px solid #4f674d;
}
.church-illustration::after {
  content: "";
  position: absolute;
  width: 65px;
  height: 65px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #4f674d;
  clip-path: polygon(50% 0%, 10% 100%, 90% 100%);
}

.victorian-illustration {
  background: repeating-linear-gradient(
    45deg,
    #f5eed9,
    #f5eed9 10px,
    #ebe2c4 10px,
    #ebe2c4 20px
  );
  border-left: 6px solid #b89d63;
}

.ww2-illustration {
  background: #d8d8d8;
}
.ww2-illustration::after {
  content: "";
  position: absolute;
  inset: 20px;
  background: #444;
  transform: rotate(-2deg);
}

.modern-illustration {
  background: linear-gradient(135deg, #c3d5c0, #e7f1e5);
}
.modern-illustration::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 45px;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #6D8B63;
  border-radius: 4px;
}

.timeline-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.timeline-text p {
  color: #444;
}

/* -----------------------------------
   TIMELINE ANIMATIONS
--------------------------------------*/
@keyframes floating {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.animate-float { animation: floating 4s ease-in-out infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.animate-bounce { animation: bounce 3s ease-in-out infinite; }

@keyframes sway {
  0% { transform: rotate(-1deg); }
  50% { transform: rotate(1deg); }
  100% { transform: rotate(-1deg); }
}
.animate-sway { animation: sway 5s ease-in-out infinite; }

@keyframes shake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
.animate-shake { animation: shake 0.8s ease-in-out infinite; }

/* -----------------------------------
   HAMLETS SECTION
--------------------------------------*/
.hamlets-section {
  background: #f6f7f4;
  padding: 3rem 1.5rem;
}

.hamlet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.hamlet-card {
  background: #fff;
  border-left: 5px solid #A8C5A0;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.25s ease;
}
.hamlet-card:hover {
  transform: translateY(-3px);
}
.hamlet-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
}

/* -----------------------------------
   NEXT MEETING + MINUTES/AGENDA
--------------------------------------*/
.next-meeting-section {
  background: #f3efe7;
  padding: 3rem 1.5rem;
}

.next-meeting-card {
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 10px;
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  text-align: center;
}

.next-meeting-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
}

.next-meeting-card p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

/* Primary Button */
.primary-button {
  display: inline-block;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  background: #A8C5A0;
  color: #fff;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.primary-button:hover {
  background: #93B893;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Accordion */
.accordion {
  max-width: 900px;
  margin: 2rem auto 0;
}

.accordion-item {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  background: #fff;
}

.accordion-toggle {
  width: 100%;
  border: none;
  background: #A8C5A0;
  color: #fff;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.accordion-toggle::after {
  content: '▾';
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s ease;
}

/* rotate arrow when open/active */
.accordion-item.open .accordion-toggle::after,
.accordion-item.active .accordion-toggle::after {
  transform: translateY(-50%) rotate(180deg);
}

.accordion-content {
  padding: 1rem 1.25rem;
  background: #f9f9f9;
}

/* Meeting row layout */
.meeting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e1e1e1;
  flex-wrap: wrap;
}

.meeting-date {
  font-weight: 600;
  color: #333;
  min-width: 160px;
}

.meeting-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meeting-button {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: #A8C5A0;
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.1s ease;
}

.meeting-button:hover {
  background: #93B893;
  transform: translateY(-1px);
}

/* -----------------------------------
   COUNCILLOR CARDS
--------------------------------------*/
.council-card-grid {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
}

.council-card {
  background: #ffffff;
  border-radius: 8px;
  border-left: 6px solid #A8C5A0;
  padding: 1.7rem 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.council-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

.council-card h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 0.5rem;
  color: #333;
}

.council-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.council-card p {
  margin: 0.25rem 0;
  font-size: 0.98rem;
  color: #444;
}

.council-card ul {
  margin: 0.25rem 0;
  padding-left: 1.2rem;
}

.council-card a {
  color: #7e9d78;
  text-decoration: underline;
}

/* -----------------------------------
   DOCUMENT / POLICY LIST
--------------------------------------*/
.doc-list {
  list-style: none;
  padding: 1.5rem 0 3rem;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.doc-list li {
  margin: 0.7rem 0;
}

.doc-list a {
  color: #7e9d78;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
}

.doc-list a:hover {
  text-decoration: underline;
}

/* -----------------------------------
   INDEX: USEFUL INFO TILES
--------------------------------------*/
.info-overview {
  background: #EBDDC8;
  padding: 3rem 1.5rem;
  text-align: center;
}

.info-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #555;
  margin-bottom: 0.5rem;
}

.info-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.info-description {
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #444;
  font-size: 1.1rem;
}

.info-tiles {
  width: 70%;
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.info-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
}

.info-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* restore correct behaviour */
  display: block;
}


.info-tile:hover {
  transform: scale(1.01);
}

.tile-label {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(123, 146, 115, 0.9);
  color: white;
  font-size: 1.5rem;
  padding: 1rem;
  text-align: center;
}

/* Narrow screens */
@media (max-width: 767px) {
  .info-tiles {
    width: 90%;
    grid-template-columns: 1fr;
  }

  .tile-label {
    font-size: 1.1rem;
    padding: 0.75rem;
  }
}

/* -----------------------------------
   SPONSOR SECTION
--------------------------------------*/
.sponsor-section {
  background: #EBDDC8;
  padding: 4rem 2rem;
  text-align: center;
}

.sponsor-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #555;
  margin-bottom: 0.5rem;
}

.sponsor-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: 'Playfair Display', serif;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 1rem;
  justify-items: center;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.sponsor-card {
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 0.75rem;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 160px;
}

.sponsor-card img {
  max-height: 100%;
  max-width: 100%;
}

/* -----------------------------------
   GALLERY GRID
--------------------------------------*/
.gallery-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.gallery-grid img {
  border-radius: 6px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  object-fit: cover;
}

.gallery-grid img:hover {
  transform: scale(1.02);
}

/* -----------------------------------
   NEWSLETTER
--------------------------------------*/
.newsletter-section {
  background-color: #EBDDC8;
  padding: 3rem 1.5rem;
  text-align: center;
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.newsletter-form input[type="email"] {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.newsletter-form button {
  background-color: #A8C5A0;
  color: white;
  font-size: 1rem;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background-color: #93B893;
}

.newsletter-success {
  color: green;
  margin-top: 1rem;
  font-weight: bold;
}

/* -----------------------------------
   FOOTER
--------------------------------------*/
.footer {
  background: #D8CFC4;
  color: #333;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer a {
  color: #333;
  text-decoration: none;
  margin: 0 0.5rem;
}

.footer a:hover {
  text-decoration: underline;
}

/* -----------------------------------
   RESPONSIVE TWEAKS
--------------------------------------*/
@media (max-width: 767px) {
  .site-header .container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .site-title {
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
  }

  .menu-toggle {
    display: block;
  }

  .accordion-nav.hidden {
    display: none;
  }

  .menu-list {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .menu-list > li {
    border-bottom: 1px solid #eee;
  }

  .accordion-content {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0;
    background: #fafafa;
  }

  .church-hero-title {
    font-size: 2.1rem;
    left: 1.5rem;
    right: 1.5rem;
  }

  .timeline-entry {
    flex-direction: column;
  }

  .timeline-illustration {
    width: 100%;
    max-width: 260px;
  }

  .meeting-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .meeting-date {
    min-width: auto;
  }

  .info-tiles {
    width: 90%;
    grid-template-columns: 1fr;
  }
}
