/* Temple Bar Cultural Trust - Modern Rebuild with Original Colour Palette */

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

:root {
  /* Original palette */
  --color-bg: #C1D9F5;
  --color-accent: #B5111C;
  --color-accent-hover: #D25C4E;
  --color-nav-active: #EC7870;
  --color-text: #5E6A6A;
  --color-text-mid: #5B6B6B;
  --color-text-light: #728080;
  --color-heading: #4F6888;
  --color-white: #FFFFFF;
  --color-grey-light: #F3F3F3;
  --color-grey-mid: #E4E4E4;
  --color-grey-border: #CCCCCC;
  --color-input-border: #A8B2B2;
  --color-muted: #BCC4C4;
  --color-sidebar-border: #C4D1D1;
  --color-dark-text: #999999;

  --font-main: Tahoma, Verdana, Arial, Helvetica, sans-serif;
  --max-width: 960px;
  --radius: 4px;
  --shadow: 0 1px 4px rgba(0,0,0,0.1);
  --transition: 0.2s ease;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
}

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

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === Top Bar === */
.top-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-grey-border);
  padding: 6px 0;
  font-size: 0.78rem;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  gap: 0;
}

.top-bar a {
  color: var(--color-accent);
  padding: 2px 11px;
  border-left: 1px solid var(--color-grey-border);
  transition: color var(--transition);
}

.top-bar a:first-child {
  border-left: none;
}

.top-bar a:hover {
  color: var(--color-nav-active);
  text-decoration: none;
}

/* === Header === */
.site-header {
  background: var(--color-heading);
  background: linear-gradient(180deg, #6a8db5 0%, var(--color-heading) 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 1.5rem;
}

.site-logo {
  color: var(--color-white);
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

.site-logo span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
}

.site-logo a {
  color: inherit;
}

.site-logo a:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* === Navigation === */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 0;
}

.main-nav a {
  color: var(--color-white);
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: normal;
  transition: color var(--transition);
  white-space: nowrap;
  border-left: 1px solid var(--color-nav-active);
}

.main-nav li:first-child a {
  border-left: none;
}

.main-nav a:hover {
  color: var(--color-nav-active);
  text-decoration: none;
}

.main-nav a.active {
  color: var(--color-nav-active);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* === Hero === */
.hero {
  background: var(--color-heading);
  background: linear-gradient(135deg, #6a8db5 0%, var(--color-heading) 50%, #3a5a7a 100%);
  color: var(--color-white);
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.hero .btn {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition);
}

.hero .btn:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
}

/* === Section === */
.section {
  padding: 2.5rem 0;
}

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

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
}

.section-subtitle {
  color: var(--color-text-light);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* === Card Grid === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-white);
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.section-alt .card {
  background: var(--color-grey-light);
  border-color: var(--color-grey-mid);
}

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

.card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem;
}

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: var(--color-heading);
}

.card-body p {
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
}

.card-tag {
  display: inline-block;
  background: var(--color-bg);
  color: var(--color-heading);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* === Two Column Layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.two-col-text h2 {
  font-size: 1.4rem;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.two-col-text p {
  margin-bottom: 0.75rem;
  color: var(--color-text);
  line-height: 1.7;
}

.two-col-img {
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius);
}

/* === News List === */
.news-list {
  max-width: 650px;
}

.news-item {
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-grey-border);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: 0.75rem;
  color: var(--color-text-light);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-item h3 {
  font-size: 0.95rem;
  color: var(--color-heading);
  margin: 0.2rem 0;
}

.news-item h3 a {
  color: var(--color-heading);
}

.news-item h3 a:hover {
  color: var(--color-accent);
}

.news-item p {
  font-size: 0.85rem;
  color: var(--color-text);
}

/* === Page Content === */
.page-content {
  background: var(--color-white);
  border: 1px solid var(--color-grey-border);
  border-radius: var(--radius);
  padding: 2rem;
  margin: 1rem 0;
}

.page-content h1 {
  font-size: 1.5rem;
  color: var(--color-heading);
  margin-bottom: 1.25rem;
}

.page-content h2 {
  font-size: 1.15rem;
  color: var(--color-heading);
  margin: 1.5rem 0 0.5rem;
}

.page-content p {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.page-content ul, .page-content ol {
  margin: 0.75rem 0 0.75rem 1.5rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

/* === Info Box === */
.info-box {
  background: var(--color-grey-light);
  border-left: 3px solid var(--color-accent);
  padding: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0;
}

.info-box p {
  margin-bottom: 0.35rem;
}

.info-box strong {
  color: var(--color-heading);
}

/* === Footer === */
.site-footer {
  background: var(--color-heading);
  color: rgba(255,255,255,0.7);
  padding: 2.5rem 0 1.25rem;
  margin-top: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-nav-active);
  display: inline-block;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.3rem;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
}

.footer-col a:hover {
  color: var(--color-nav-active);
  text-decoration: none;
}

.footer-col p {
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.78rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--color-heading);
    padding: 0.75rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  }

  .main-nav.open ul {
    display: flex;
  }

  .main-nav a {
    padding: 0.6rem 0.75rem;
    border-left: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .hero {
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .section {
    padding: 1.75rem 0;
  }

  .top-bar .container {
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.72rem;
  }

  .top-bar a {
    padding: 2px 8px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-content {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
