/* East Midlands History & Heritage - Custom Styles */

:root {
  --deep-navy: #1a2744;
  --heritage-teal: #2a6e6e;
  --warm-gold: #c9952b;
  --light-gold: #f0dca4;
  --parchment: #faf6ed;
  --soft-cream: #f5f0e3;
  --charcoal: #2d2d2d;
  --muted-text: #5c5c5c;
  --border-light: #e0d8c8;
  --white: #ffffff;
}

body {
  font-family: 'Source Sans 3', Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background-color: var(--parchment);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--deep-navy);
  font-weight: 700;
}

a {
  color: var(--heritage-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Top bar */
.top-stripe {
  background: var(--deep-navy);
  padding: 6px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.5px;
}

.top-stripe span {
  display: inline-block;
}

/* Site header */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--warm-gold);
  padding: 0;
}

.site-header .brand-area {
  padding: 18px 0 14px;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-logo-link:hover {
  text-decoration: none;
}

.site-logo-link svg {
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--deep-navy);
  line-height: 1.2;
  margin: 0;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.85rem;
  color: var(--muted-text);
  margin-top: 2px;
  letter-spacing: 0.3px;
}

/* Navigation */
.main-nav {
  background: var(--heritage-teal);
}

.main-nav .navbar-nav .nav-link {
  color: rgba(255,255,255,0.9);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 12px 18px;
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s;
}

.main-nav .navbar-nav .nav-link:hover,
.main-nav .navbar-nav .nav-link.active-page {
  background: rgba(0,0,0,0.15);
  color: #fff;
}

.main-nav .navbar-toggler {
  border-color: rgba(255,255,255,0.4);
  padding: 4px 10px;
}

.main-nav .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero section */
.hero-banner {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--heritage-teal) 100%);
  color: #fff;
  padding: 50px 0 45px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-banner h1 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 15px;
}

.hero-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 640px;
}

/* Content area */
.page-content {
  padding: 45px 0 55px;
}

.page-content h2 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--light-gold);
}

.page-content h3 {
  font-size: 1.25rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

/* Intro text box */
.intro-block {
  background: var(--white);
  border-left: 4px solid var(--warm-gold);
  padding: 24px 28px;
  margin-bottom: 35px;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.intro-block p {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.intro-block p:last-child {
  margin-bottom: 0;
}

/* Region map section */
.region-overview {
  background: var(--white);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 35px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.county-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.county-tag {
  background: var(--soft-cream);
  border: 1px solid var(--border-light);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--deep-navy);
  font-weight: 500;
}

/* News/blogroll section */
.latest-updates {
  padding: 50px 0;
  background: var(--soft-cream);
}

.latest-updates h2 {
  text-align: center;
  margin-bottom: 35px;
}

.update-card {
  background: var(--white);
  border-radius: 6px;
  padding: 26px;
  margin-bottom: 22px;
  border: 1px solid var(--border-light);
  transition: box-shadow 0.2s ease;
}

.update-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.update-card .update-date {
  font-size: 0.82rem;
  color: var(--muted-text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.update-card h3 {
  font-size: 1.15rem;
  margin-top: 0;
  margin-bottom: 10px;
}

.update-card h3 a {
  color: var(--deep-navy);
}

.update-card h3 a:hover {
  color: var(--heritage-teal);
}

.update-card .excerpt {
  color: var(--muted-text);
  font-size: 0.95rem;
  line-height: 1.65;
}

.update-card .excerpt a {
  color: var(--heritage-teal);
  font-weight: 500;
}

.read-on {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heritage-teal);
}

.read-on:hover {
  color: var(--warm-gold);
}

/* Site footer */
.site-footer {
  background: var(--deep-navy);
  color: rgba(255,255,255,0.75);
  padding: 40px 0 0;
}

.site-footer h4 {
  color: var(--light-gold);
  font-size: 1rem;
  margin-bottom: 18px;
  font-family: 'Source Sans 3', Arial, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.site-footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--light-gold);
  text-decoration: none;
}

.footer-links li {
  margin-bottom: 7px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0;
  margin-top: 30px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

/* Cookie notice */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--charcoal);
  color: rgba(255,255,255,0.9);
  padding: 14px 20px;
  z-index: 9999;
  font-size: 0.88rem;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
}

.cookie-bar.visible {
  display: flex;
}

.cookie-bar p {
  margin: 0;
}

.cookie-bar a {
  color: var(--light-gold);
  text-decoration: underline;
}

.btn-accept-cookies {
  background: var(--heritage-teal);
  color: #fff;
  border: none;
  padding: 7px 22px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  font-weight: 500;
}

.btn-accept-cookies:hover {
  background: #237a7a;
}

/* General page heading */
.page-heading {
  background: linear-gradient(135deg, var(--deep-navy) 0%, var(--heritage-teal) 100%);
  color: #fff;
  padding: 35px 0 30px;
}

.page-heading h1 {
  color: #fff;
  margin: 0;
  font-size: 2rem;
}

/* Magazine issues list */
.issue-list-item {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 14px;
  transition: box-shadow 0.2s;
}

.issue-list-item:hover {
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
}

.issue-list-item a {
  font-weight: 600;
  font-size: 1.02rem;
}

.issue-list-item .issue-date {
  font-size: 0.84rem;
  color: var(--muted-text);
}

/* Links page */
.links-county {
  margin-bottom: 30px;
}

.links-county h3 {
  color: var(--heritage-teal);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.link-entry {
  margin-bottom: 14px;
  padding-left: 12px;
}

.link-entry a {
  font-weight: 600;
}

.link-entry p {
  margin: 3px 0 0;
  font-size: 0.92rem;
  color: var(--muted-text);
}

/* 404 page */
.error-section {
  text-align: center;
  padding: 80px 0;
}

.error-section h1 {
  font-size: 4rem;
  color: var(--heritage-teal);
}

/* Responsive */
@media (max-width: 767px) {
  .hero-banner {
    padding: 35px 0 30px;
  }

  .hero-banner h1 {
    font-size: 1.8rem;
  }

  .brand-title {
    font-size: 1.3rem;
  }

  .page-content {
    padding: 30px 0 40px;
  }

  .intro-block {
    padding: 18px 20px;
  }

  .county-tags {
    gap: 6px;
  }
}

@media (max-width: 575px) {
  .main-nav .navbar-nav .nav-link {
    padding: 10px 15px;
  }

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

  .update-card {
    padding: 18px;
  }
}
