/* ============================================
   City of Lipscomb — Style Guide
   Modeled after West Bountiful City (wbcityut.gov)
   ============================================ */

:root {
  --teal-dark: #0d4f4f;
  --teal: #1a6b6b;
  --teal-light: #238585;
  --teal-pale: #e8f4f4;
  --gold: #c8a84e;
  --gold-light: #e8d48e;
  --white: #ffffff;
  --off-white: #f5f5f0;
  --gray-light: #e9e9e4;
  --gray: #888;
  --dark: #1a1a1a;
  --text: #333;
  --text-light: #666;
}

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

body {
  font-family: 'Merriweather', Georgia, serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--white);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Top Bar ---- */
.top-bar {
  background: var(--teal-dark);
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-search {
  display: flex;
  align-items: center;
  gap: 4px;
}
.top-bar-search input {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 5px 12px;
  color: var(--white);
  font-size: 13px;
  width: 180px;
  font-family: 'Montserrat', sans-serif;
}
.top-bar-search input::placeholder {
  color: rgba(255,255,255,0.5);
}
.top-bar-search button {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 4px;
}
.top-bar-social a {
  color: var(--white);
  margin-left: 12px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.top-bar-social a:hover {
  opacity: 1;
}

/* ---- Main Nav ---- */
.main-nav {
  background: var(--white);
  border-bottom: 3px solid var(--teal);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.nav-inner {
  display: flex;
  justify-content: center;
  gap: 0;
}
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 18px 24px;
  color: var(--teal-dark);
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: all 0.2s;
}
.nav-link:hover,
.nav-link.active {
  color: var(--teal);
  border-bottom-color: var(--gold);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 420px;
  background: url('images/hero.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(13,79,79,0.55) 0%, rgba(13,79,79,0.4) 50%, rgba(13,79,79,0.65) 100%);
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  z-index: 1;
}
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: 1px;
  text-shadow: 0 3px 12px rgba(0,0,0,0.3);
  margin-bottom: 4px;
}
.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  opacity: 0.9;
}

/* ---- Quick Links ---- */
.quick-links {
  background: var(--teal-dark);
  padding: 0;
  margin-top: -1px;
}
.quick-links-inner {
  display: flex;
  justify-content: center;
}
.quick-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 28px;
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background 0.2s;
}
.quick-link:last-child {
  border-right: none;
}
.quick-link:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.quick-link-icon {
  opacity: 0.8;
}

/* ---- Welcome Section ---- */
.welcome-section {
  padding: 70px 0;
  background: var(--white);
}
.welcome-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.welcome-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 4px;
  color: var(--gray);
  margin-bottom: 8px;
}
.welcome-title {
  font-size: 38px;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 24px;
  line-height: 1.2;
}
.welcome-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 16px;
}

/* Events */
.events-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal);
}
.events-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.event-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-light);
}
.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}
.event-month {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.event-day {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
}
.event-info {
  display: flex;
  flex-direction: column;
}
.event-time {
  font-size: 12px;
  color: var(--gray);
}
.event-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
}
.event-name:hover {
  color: var(--teal);
}

/* ---- News Section ---- */
.news-section {
  padding: 70px 0;
  background: var(--off-white);
}
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.section-title {
  font-size: 30px;
  font-weight: 800;
  color: var(--teal-dark);
}
.view-more {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.news-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-placeholder {
  opacity: 0.6;
}
.news-card-body {
  padding: 20px;
}
.news-date {
  font-size: 12px;
  color: var(--gray);
}
.news-date strong {
  color: var(--teal);
}
.news-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--teal-dark);
  margin: 8px 0;
  line-height: 1.3;
}
.news-excerpt {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}
.read-more {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Newsletter Section ---- */
.newsletter-section {
  background: var(--teal-dark);
  padding: 50px 0;
  color: var(--white);
}
.newsletter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.newsletter-header h3 {
  font-size: 26px;
  font-weight: 700;
}
.newsletter-social a {
  color: var(--white);
  opacity: 0.8;
  transition: opacity 0.2s;
}
.newsletter-social a:hover {
  opacity: 1;
  color: var(--white);
}
.newsletter-form {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
}
.newsletter-form input::placeholder {
  color: rgba(255,255,255,0.45);
}
.newsletter-form button {
  padding: 12px 32px;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-form button:hover {
  background: var(--gold-light);
}
.newsletter-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  padding: 8px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--off-white);
  padding-top: 50px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 16px;
}
.footer-col p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer-col a {
  color: var(--teal);
}
.footer-logo-col {
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--teal-dark);
  text-align: center;
  letter-spacing: 2px;
}
.seal-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  letter-spacing: 3px;
  margin-top: 4px;
}
.footer-bottom {
  background: var(--teal-dark);
  padding: 16px 0;
  text-align: center;
}
.footer-bottom p {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-inner {
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav-link {
    padding: 12px 16px;
    font-size: 12px;
  }
  .hero h1 {
    font-size: 38px;
  }
  .quick-links-inner {
    flex-wrap: wrap;
  }
  .quick-link {
    flex: 1 1 45%;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    justify-content: center;
  }
  .welcome-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 300px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-subtitle {
    font-size: 14px;
    letter-spacing: 4px;
  }
  .quick-link {
    flex: 1 1 100%;
    padding: 14px 20px;
  }
  .welcome-title {
    font-size: 28px;
  }
}

/* ---- Interior Pages ---- */
.page-header {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  padding: 50px 0;
  text-align: center;
  color: var(--white);
}
.page-header h1 {
  font-size: 36px;
  font-weight: 800;
}
.page-content {
  padding: 50px 0;
  max-width: 800px;
  margin: 0 auto;
}
.page-content h2 {
  font-size: 24px;
  color: var(--teal-dark);
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal-pale);
}
.page-content h3 {
  font-size: 18px;
  color: var(--teal);
  margin: 24px 0 12px;
}
.page-content p {
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-light);
}
.page-content ul, .page-content ol {
  margin: 0 0 16px 24px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.8;
}
.page-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
}
.page-content th {
  background: var(--teal-dark);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-light);
  font-size: 14px;
}
.page-content tr:hover td {
  background: var(--teal-pale);
}
