/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #1a5276;
  --primary-dark: #0e3a55;
  --accent: #27ae60;
  --accent-hover: #1e8449;
  --bg: #f7f9fc;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-muted: #5d6d7e;
  --border: #e0e6ed;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --header-height: 56px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
  line-height: 1.3;
}

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

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

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

/* ===== Top Header (Small) ===== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-dark);
  color: #fff;
  height: var(--header-height);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: background var(--transition);
}

.hamburger:hover,
.hamburger:focus {
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.hamburger .line {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger animation when open */
.hamburger.active .line:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .line:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.site-brand {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.logo-link {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.logo-link:hover {
  color: #a8e6cf;
}

.tagline {
  font-size: 0.7rem;
  opacity: 0.85;
  letter-spacing: 0.03em;
}

.header-right {
  font-size: 0.8rem;
  opacity: 0.9;
}

.location {
  display: none;
}

@media (min-width: 600px) {
  .location {
    display: inline;
  }
}

/* ===== Dropdown Menu ===== */
.dropdown-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 280px;
  max-width: 85vw;
  height: calc(100vh - var(--header-height));
  background: #fff;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.12);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  overflow-y: auto;
}

.dropdown-menu.open {
  transform: translateX(0);
}

.dropdown-menu ul {
  list-style: none;
  padding: 1rem 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.9rem 1.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  border-left: 4px solid transparent;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.dropdown-menu li a:hover,
.dropdown-menu li a.active {
  background: #eaf4fb;
  border-left-color: var(--primary);
  color: var(--primary);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.menu-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== Large Banner ===== */
.hero-banner {
  background: linear-gradient(135deg, #0e3a55 0%, #1a5276 40%, #1e8449 100%);
  color: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 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.05'%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");
  opacity: 0.6;
}

.banner-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.hero-banner h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.banner-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 600;
  opacity: 0.95;
  margin-bottom: 0.4rem;
}

.banner-desc {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  width: 100%;
}

.page-section {
  display: none;
  animation: fadeIn 0.35s ease;
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  margin-bottom: 2rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.lead {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ===== Cards & Grids ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.card.featured {
  border-top: 4px solid var(--accent);
}

.card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Blog Feed */
.blog-feed {
  margin-top: 1rem;
}

.feed-title {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
  color: var(--primary-dark);
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.post-preview {
  background: var(--card-bg);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.post-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.post-preview h4 {
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.post-preview p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Events */
.events-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.event-card {
  display: flex;
  gap: 1.25rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  align-items: flex-start;
}

.event-date {
  flex-shrink: 0;
  width: 60px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.6rem 0.4rem;
}

.event-date .day {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.event-date .month {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.event-details h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--primary-dark);
}

.event-location {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.event-details p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Tips */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.tip-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
}

.tip-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  color: var(--primary-dark);
}

.tip-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Products */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-image {
  height: 140px;
  background: linear-gradient(135deg, #d5e8f5, #a8d5c2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.95rem;
}

.product-card h3 {
  font-size: 1.1rem;
  margin: 1rem 1rem 0.4rem;
  color: var(--primary-dark);
}

.product-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0 1rem 1rem;
}

.product-card .btn-secondary {
  margin-bottom: 1.25rem;
}

/* Jobs */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.job-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.job-card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.job-meta {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.job-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* News */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
}

.news-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.news-card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Spotlight */
.spotlight-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

@media (min-width: 700px) {
  .spotlight-feature {
    grid-template-columns: 280px 1fr;
  }
}

.placeholder-large {
  min-height: 200px;
  background: linear-gradient(135deg, #1a5276, #27ae60);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 1.1rem;
}

.spotlight-content {
  padding: 1.5rem;
}

.spotlight-content h3 {
  font-size: 1.35rem;
  color: var(--primary-dark);
  margin-bottom: 0.3rem;
}

.spotlight-tag {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.spotlight-content p {
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.past-spotlights {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.past-spotlights h4 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}

.past-spotlights ul {
  list-style: none;
}

.past-spotlights li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.past-spotlights li:last-child {
  border-bottom: none;
}

/* Gavins */
.gavins-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Buttons */
.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--primary-dark);
  color: #d5e8f5;
  padding: 2.5rem 1.25rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1.5fr;
    text-align: left;
  }
}

.footer-brand strong {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  color: #fff;
  display: block;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.85rem;
  opacity: 0.85;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

@media (min-width: 700px) {
  .footer-links {
    justify-content: flex-start;
    flex-direction: column;
    gap: 0.4rem;
  }
}

.footer-links a {
  color: #a8d5c2;
  font-weight: 600;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-contact p {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.footer-contact a {
  color: #a8d5c2;
}

.footer-contact a:hover {
  color: #fff;
}

.copyright {
  opacity: 0.7;
  font-size: 0.8rem !important;
  margin-top: 0.5rem;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 480px) {
  .event-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .event-date {
    width: 70px;
  }
}