/* ============================================================
   Claregalway Community Centre — Main Stylesheet
   ============================================================ */

/* --- Variables --- */
:root {
  --green-dark:   #1a4731;
  --green:        #2d6a47;
  --green-light:  #4a8c63;
  --teal:         #70c4b4;
  --orange:       #e07c54;
  --yellow:       #e0c454;
  --bg:           #f5f8f6;
  --card:         #ffffff;
  --text:         #1a2920;
  --text-mid:     #4d5e55;
  --border:       #dde9e3;
  --shadow:       0 2px 12px rgba(26,71,49,0.10);
  --shadow-hover: 0 6px 24px rgba(26,71,49,0.16);
  --radius:       10px;
  --nav-h:        72px;
  --container:    1180px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Container --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 50px;
  width: 50px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
}
.nav-logo-text strong {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
}
.nav-logo-text span {
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active {
  background: rgba(112,196,180,0.18);
  color: var(--teal);
}
.nav-book-btn {
  background: var(--orange) !important;
  color: #fff !important;
  border-radius: 6px;
  padding: 0.5rem 1.1rem !important;
}
.nav-book-btn:hover { background: #c96540 !important; }

/* Hamburger */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle-label span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 820px) {
  .nav-toggle-label { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--green-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 1.5rem 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }
  .nav-toggle:checked ~ .nav-links { max-height: 400px; }
  .nav-links a { padding: 0.75rem 0.5rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-book-btn { margin-top: 0.5rem; border-radius: 6px !important; text-align: center; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  filter: brightness(0.55);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,71,49,0.7) 0%, rgba(26,71,49,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 660px;
  padding: 3rem 0;
}
.hero-tag {
  display: inline-block;
  background: var(--teal);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}
.hero-content h1 { color: #fff; margin-bottom: 1rem; }
.hero-content p {
  color: rgba(255,255,255,0.88);
  font-size: 1.15rem;
  margin-bottom: 2rem;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: #c96540; color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; transform: translateY(-1px); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 4rem 0; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.5rem;
}
.section-title { margin-bottom: 0.75rem; }
.section-intro { color: var(--text-mid); max-width: 600px; margin-bottom: 2.5rem; font-size: 1.05rem; }
.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }
.section-header.centered .section-intro { margin-left: auto; margin-right: auto; }

/* ============================================================
   ABOUT STRIP (HOME)
   ============================================================ */
.about-strip {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-grid img {
  border-radius: var(--radius);
  width: 100%;
  height: 380px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-stats { display: flex; gap: 2rem; margin-top: 1.5rem; flex-wrap: wrap; }
.stat { text-align: center; min-width: 80px; }
.stat-num { font-family: 'Montserrat', Arial, sans-serif; font-size: 2rem; font-weight: 800; color: var(--green); }
.stat-label { font-size: 0.78rem; color: var(--text-mid); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid img { height: 260px; }
}

/* ============================================================
   FACILITIES CARDS
   ============================================================ */
.facilities-section { background: var(--bg); }
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.facility-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  border: 1px solid var(--border);
}
.facility-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.facility-card-img { width: 100%; height: 200px; object-fit: cover; }
.facility-card-body { padding: 1.4rem; }
.facility-tag {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.tag-teal  { background: rgba(112,196,180,0.18); color: #1a6455; }
.tag-orange { background: rgba(224,124,84,0.15); color: #a0451e; }
.tag-yellow { background: rgba(224,196,84,0.18); color: #7a6010; }
.tag-green  { background: rgba(45,106,71,0.12); color: var(--green-dark); }
.facility-card h3 { margin-bottom: 0.5rem; }
.facility-card p { color: var(--text-mid); font-size: 0.92rem; }
.facility-card-footer { padding: 0 1.4rem 1.4rem; }
.facility-icon { font-size: 2rem; margin-bottom: 0.75rem; }

/* Facilities detail page */
.facilities-detail { background: var(--card); }
.facility-detail-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}
.facility-detail-block:last-child { border-bottom: none; }
.facility-detail-block.reverse { direction: rtl; }
.facility-detail-block.reverse > * { direction: ltr; }
.facility-detail-block img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.facility-amenities { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.amenity-chip {
  background: rgba(45,106,71,0.09);
  color: var(--green-dark);
  border: 1px solid rgba(45,106,71,0.18);
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
}
@media (max-width: 720px) {
  .facility-detail-block { grid-template-columns: 1fr; direction: ltr !important; }
  .facility-detail-block img { height: 220px; }
}

/* ============================================================
   COMMUNITY GROUPS
   ============================================================ */
.groups-section { background: var(--green-dark); }
.groups-section .section-label { color: var(--teal); }
.groups-section .section-title { color: #fff; }
.groups-section .section-intro { color: rgba(255,255,255,0.75); }
.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.group-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.group-card:hover {
  background: rgba(112,196,180,0.15);
  border-color: var(--teal);
  transform: translateY(-2px);
  color: inherit;
}
.group-card-name { font-weight: 700; color: #fff; font-size: 0.95rem; line-height: 1.3; }
.group-card-link { color: var(--teal); font-size: 0.78rem; font-weight: 600; }
.group-card:hover .group-card-link { color: #a0ede1; }

/* Full groups page grid */
.groups-page-section { background: var(--bg); }
.groups-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.group-detail-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.group-detail-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.group-detail-card h3 { font-size: 1.05rem; color: var(--text); }
.group-detail-card p { color: var(--text-mid); font-size: 0.88rem; flex: 1; }
.group-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
  margin-top: auto;
}
.group-link-btn svg { width: 14px; height: 14px; }
.group-link-btn:hover { color: var(--green-dark); }

/* ============================================================
   BOOKING / SCHEDULE PAGE
   ============================================================ */
.booking-page { background: var(--bg); }
.booking-intro { background: var(--card); border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.legend-item { display: flex; align-items: center; gap: 0.5rem; }
.legend-dot {
  width: 16px; height: 16px;
  border-radius: 4px;
  flex-shrink: 0;
}
.legend-label { font-size: 0.88rem; font-weight: 600; color: var(--text-mid); }
.calendar-section { padding: 2.5rem 0; }
.calendar-wrapper {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--border);
}
.responsive-calendar {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
}
.responsive-calendar iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.booking-form-section {
  background: var(--green-dark);
  padding: 3rem 0;
}
.booking-form-section .section-title { color: #fff; }
.booking-form-section .section-intro { color: rgba(255,255,255,0.75); }
.booking-form-section .section-label { color: var(--teal); }
.form-wrapper {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.responsive-form {
  position: relative;
  padding-bottom: 160%;
  height: 0;
  overflow: hidden;
}
.responsive-form iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.conditions-panel {
  background: #fff;
  border-radius: var(--radius);
  border-left: 6px solid var(--orange);
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.conditions-icon { font-size: 1.8rem; flex-shrink: 0; }
.conditions-text strong { display: block; color: var(--text); margin-bottom: 0.2rem; font-size: 1rem; }
.conditions-text p { color: var(--text-mid); font-size: 0.9rem; margin: 0; }
.conditions-panel .btn { flex-shrink: 0; margin-left: auto; }

/* ============================================================
   CONTACT / MAP STRIP
   ============================================================ */
.contact-strip { background: var(--card); border-top: 1px solid var(--border); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-details { display: flex; flex-direction: column; gap: 1.25rem; margin: 1.5rem 0; }
.contact-item { display: flex; gap: 0.75rem; align-items: flex-start; }
.contact-item-icon {
  width: 40px; height: 40px;
  background: rgba(45,106,71,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.contact-item-text strong { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mid); margin-bottom: 0.2rem; }
.contact-item-text a, .contact-item-text span { color: var(--text); font-size: 0.95rem; }
.contact-item-text a:hover { color: var(--green); }
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-top: 1.5rem;
}
.map-wrapper iframe { display: block; width: 100%; height: 280px; border: none; }
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE HEROES (inner pages)
   ============================================================ */
.page-hero {
  background: var(--green-dark);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../resources/images/DJI_0062-scaled.webp') center/cover no-repeat;
  opacity: 0.12;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero .section-label { color: var(--teal); }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 0.5rem; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 560px; font-size: 1.05rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--teal) 0%, #4aaa99 100%);
  padding: 3rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--green-dark); margin-bottom: 0.75rem; }
.cta-band p { color: rgba(26,71,49,0.8); margin-bottom: 1.75rem; font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #0f2d1e;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-logo { display: flex; align-items: center; gap: 0.75rem; }
.footer-logo img {
  height: 42px; width: 42px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-logo strong { color: #fff; font-family: 'Montserrat', Arial, sans-serif; font-size: 0.95rem; }
.footer-tagline { font-size: 0.88rem; line-height: 1.6; }
.footer-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}
.footer-social a:hover { background: var(--teal); color: var(--green-dark); }
.footer-col h4 { color: #fff; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--teal); }
.footer-col address { font-style: normal; font-size: 0.88rem; line-height: 1.8; }
.footer-col address a { color: rgba(255,255,255,0.65); }
.footer-col address a:hover { color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--teal); }
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
