@import url('https://fonts.googleapis.com/css2?family=Lora:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --lgc-green: #2f7a45;
  --lgc-green-soft: #66a95b;
  --lgc-clay: #f5f1e9;
  --lgc-ink: #1f2d23;
  --lgc-accent: #d9b44a;
  --lgc-card-border: #e3ddd1;
  --lgc-radius: 14px;
  --lgc-shadow: 0 12px 34px rgba(31, 45, 35, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--lgc-ink);
  background: radial-gradient(circle at top, #fffaf0, var(--lgc-clay) 72%);
}

#masthead {
  display: none !important;
}

.lgc-site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
  color: #fff;
  background: var(--lgc-green);
  box-shadow: 0 10px 22px rgba(31, 45, 35, 0.18);
}

.lgc-header-image-panel {
  background-image:
    linear-gradient(90deg, rgba(31, 45, 35, 0.9), rgba(47, 122, 69, 0.74)),
    url('images/city-lockhart-courthouse-panorama.jpg');
  background-color: var(--lgc-green);
  background-position: center;
  background-size: cover;
}

.admin-bar .lgc-site-header {
  top: 32px;
}

.lgc-header-top,
.lgc-primary-nav,
.lgc-secondary-nav {
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.lgc-header-top {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.45rem;
  padding-bottom: 0.38rem;
}

.lgc-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: #fff !important;
  text-decoration: none;
}

.lgc-header-brand .custom-logo {
  width: 64px;
  max-height: 64px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
}

.lgc-header-brand-text {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.32);
}

.lgc-social-nav,
.lgc-header-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lgc-social-nav a,
.lgc-header-menu a {
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.26);
}

.lgc-social-nav a {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14) !important;
}

.lgc-social-nav svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  display: block;
}

.lgc-primary-nav {
  min-height: 42px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.48rem;
  padding-bottom: 0.58rem;
}

.lgc-secondary-nav {
  min-height: 46px;
  display: flex;
  align-items: center;
  padding-top: 0.55rem;
  padding-bottom: 0.6rem;
}

.lgc-header-menu {
  justify-content: flex-start;
}

.lgc-secondary-menu {
  width: 100%;
  justify-content: center;
}

.lgc-header-menu li {
  margin: 0;
}

.lgc-header-menu a {
  display: inline-flex;
  padding: 0.18rem 0;
  font-size: clamp(0.86rem, 1.4vw, 0.98rem);
}

.lgc-social-nav a:hover,
.lgc-social-nav a:focus,
.lgc-header-menu a:hover,
.lgc-header-menu a:focus {
  color: #000 !important;
}

.lgc-social-nav a:hover,
.lgc-social-nav a:focus {
  background: rgba(255, 255, 255, 0.72) !important;
}

@media (max-width: 782px) {
  .admin-bar .lgc-site-header {
    top: 46px;
  }

  .lgc-header-top {
    min-height: 62px;
    align-items: center;
    gap: 0.38rem;
  }

  .lgc-header-brand-text {
    font-size: 1.12rem;
  }

  .lgc-header-brand .custom-logo {
    width: 50px;
    max-height: 50px;
  }

  .lgc-social-nav,
  .lgc-header-menu {
    gap: 0.45rem 0.72rem;
  }

  .lgc-primary-nav {
    align-items: flex-start;
    min-height: 0;
  }

  .lgc-secondary-menu {
    justify-content: flex-start;
  }
}


/* Keep the courthouse menu visible while page content scrolls underneath it. */
#masthead.site-header,
.site-header,
#mobile-header,
.site-mobile-header-wrap {
  position: sticky !important;
  top: 0;
  z-index: 9999;
  width: 100%;
  box-shadow: 0 10px 22px rgba(31, 45, 35, 0.18);
}

.admin-bar #masthead.site-header,
.admin-bar .site-header,
.admin-bar #mobile-header,
.admin-bar .site-mobile-header-wrap {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar #masthead.site-header,
  .admin-bar .site-header,
  .admin-bar #mobile-header,
  .admin-bar .site-mobile-header-wrap {
    top: 46px;
  }
}

#masthead,
.site-header,
#mobile-header,
.site-mobile-header-wrap {
  background-image:
    linear-gradient(90deg, rgba(31, 45, 35, 0.88), rgba(31, 45, 35, 0.54)),
    url('images/city-lockhart-courthouse-panorama.jpg') !important;
  background-color: #1f2d23 !important;
  background-size: cover !important;
  background-position: center !important;
  color: #fff !important;
}

#masthead .site-header-row-container-inner,
#masthead .site-main-header-wrap,
#masthead .site-bottom-header-wrap,
#masthead .site-top-header-wrap,
#masthead .site-header-upper-wrap,
#masthead .site-header-upper-inner-wrap,
#masthead .site-header-inner-wrap,
#masthead .site-main-header-inner-wrap,
#masthead .site-mobile-header-wrap,
#masthead .site-mobile-header-inner-wrap,
#masthead .site-mobile-header-row,
#masthead .site-mobile-main-header-wrap,
#masthead .site-mobile-main-header-inner-wrap,
.site-header-row-container-inner,
.site-main-header-wrap,
.site-mobile-header-wrap,
.site-mobile-header-inner-wrap,
.site-mobile-header-row,
.site-mobile-main-header-wrap,
.site-mobile-main-header-inner-wrap {
  background: transparent !important;
  color: #fff !important;
}

#masthead a,
#masthead .site-title,
#masthead .site-title a,
#masthead .site-description,
#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
#masthead .mobile-toggle-open-container .menu-toggle-open,
#masthead .mobile-toggle-open-container .menu-toggle-open:focus,
#mobile-header a,
#mobile-header .site-title,
#mobile-header .site-title a,
#mobile-header .site-description,
#mobile-header .mobile-toggle-open-container .menu-toggle-open,
#mobile-header .mobile-toggle-open-container .menu-toggle-open:focus,
.site-mobile-header-wrap a,
.site-mobile-header-wrap .site-title,
.site-mobile-header-wrap .site-title a,
.site-mobile-header-wrap .site-description,
.site-mobile-header-wrap .mobile-toggle-open-container .menu-toggle-open,
.site-mobile-header-wrap .mobile-toggle-open-container .menu-toggle-open:focus {
  color: #fff !important;
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
#mobile-header .main-navigation .primary-menu-container > ul > li.menu-item > a,
#mobile-header .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.site-mobile-header-wrap .main-navigation .primary-menu-container > ul > li.menu-item > a,
.site-mobile-header-wrap .main-navigation .primary-menu-container > ul > li.current-menu-item > a {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: #fff !important;
  margin: 0;
  padding-left: 0.72rem !important;
  padding-right: 0.72rem !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:focus,
#masthead .mobile-toggle-open-container .menu-toggle-open:hover,
#masthead .mobile-toggle-open-container .menu-toggle-open:focus-visible {
  color: #000 !important;
  filter: none;
  transform: none;
}

#mobile-drawer,
#mobile-drawer .drawer-inner,
#mobile-drawer .drawer-content,
.popup-drawer,
.popup-drawer .drawer-inner,
.popup-drawer .drawer-content,
.mobile-navigation,
.mobile-navigation ul {
  background: linear-gradient(120deg, var(--lgc-green), var(--lgc-green-soft)) !important;
  color: #fff !important;
}

#mobile-drawer a,
#mobile-drawer .mobile-navigation a,
.popup-drawer a,
.popup-drawer .mobile-navigation a,
.mobile-navigation ul li a {
  color: #fff !important;
  background: transparent !important;
  text-decoration: none !important;
}

#mobile-drawer a:hover,
#mobile-drawer a:focus,
.popup-drawer a:hover,
.popup-drawer a:focus,
.mobile-navigation ul li a:hover,
.mobile-navigation ul li a:focus {
  color: #000 !important;
}

#masthead .custom-logo {
  width: 68px;
  max-height: 68px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  padding: 4px;
}

#masthead .site-branding {
  display: flex;
  align-items: center;
}

#masthead .site-main-header-inner-wrap {
  min-height: 84px;
}

@media (max-width: 767px) {
  #masthead .custom-logo {
    width: 52px;
    max-height: 52px;
  }
}

.entry-hero.page-hero-section .entry-hero-container-inner {
  min-height: 0 !important;
  padding: 0 !important;
}

.entry-hero.page-hero-section .hero-container {
  display: block !important;
}

.entry-hero.page-hero-section .entry-header {
  min-height: 0 !important;
  padding: 18px 0 8px !important;
  display: block !important;
  text-align: left !important;
}

.entry-hero.page-hero-section .entry-title {
  margin: 0 !important;
  line-height: 1.15 !important;
  text-align: left !important;
}

.content-area {
  margin-top: 24px !important;
}

.home .entry-header,
.home .entry-title,
.home .page-title {
  display: none;
}

.home .entry-hero.page-hero-section {
  display: none !important;
}

.home .entry.single-entry {
  box-shadow: none;
}

.home .entry-content-wrap {
  padding-top: 0 !important;
}

.home .lgc-shell {
  padding-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Lora', Georgia, serif;
  margin-top: 0;
}

.lgc-shell {
  max-width: 1140px;
  margin: 0 auto;
  padding: 1rem;
  display: grid;
  gap: 1.2rem;
}

.lgc-section {
  border: 1px solid var(--lgc-card-border);
  border-radius: var(--lgc-radius);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  background: #ffffffd8;
  position: relative;
  box-shadow: var(--lgc-shadow);
}

.lgc-hero {
  border-radius: calc(var(--lgc-radius) * 1.2);
  overflow: hidden;
  position: relative;
  background-image: linear-gradient(110deg, rgba(31, 45, 35, 0.84), rgba(47, 122, 69, 0.6)),
    var(--lgc-hero-image, radial-gradient(circle at top, #2f7a45 0%, #1f2d23 100%));
  background-size: cover;
  background-position: center;
  color: #fff;
  min-height: clamp(280px, 42vw, 390px);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  display: grid;
  gap: 1rem;
  align-content: center;
  position: relative;
}

.lgc-home-hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  min-height: clamp(340px, 46vw, 560px);
  padding-left: max(1.4rem, calc((100vw - 1140px) / 2 + 1rem));
  padding-right: max(1.4rem, calc((100vw - 1140px) / 2 + 1rem));
  background-position: center 42%;
}

.lgc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.lgc-hero > * {
  position: relative;
  z-index: 1;
}

.lgc-photo-credit {
  align-self: end;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  margin: 0;
}

.lgc-hero h1 {
  color: #d7efff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.42);
}

.lgc-kicker {
  color: #d4f0d7;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.84rem;
}

.lgc-cta-row,
.lgc-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.lgc-btn,
.lgc-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(120deg, var(--lgc-green), var(--lgc-green-soft));
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 0.78rem 1.1rem;
  transition: transform 0.22s ease, filter 0.22s ease;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(31, 45, 35, 0.16);
}

.wp-block-button__link,
.wp-element-button,
.elementor-button,
.kb-button,
.kt-button,
button,
input[type='button'],
input[type='submit'],
input[type='reset'] {
  background: linear-gradient(120deg, var(--lgc-green), var(--lgc-green-soft)) !important;
  color: #fff !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(31, 45, 35, 0.16);
}

.lgc-btn:hover,
.lgc-form button:hover,
.lgc-btn:focus-visible,
.lgc-form button:focus-visible {
  color: #000 !important;
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.wp-block-button__link:hover,
.wp-block-button__link:focus,
.wp-element-button:hover,
.wp-element-button:focus,
.elementor-button:hover,
.elementor-button:focus,
.kb-button:hover,
.kb-button:focus,
.kt-button:hover,
.kt-button:focus,
button:hover,
button:focus,
input[type='button']:hover,
input[type='button']:focus,
input[type='submit']:hover,
input[type='submit']:focus,
input[type='reset']:hover,
input[type='reset']:focus {
  color: #000 !important;
}

.lgc-btn.secondary,
.lgc-form button {
  background: linear-gradient(120deg, var(--lgc-green), var(--lgc-green-soft));
  color: #fff;
  border: 0;
}

.lgc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
}

.lgc-feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.lgc-two-col {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 1rem;
}

.lgc-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lgc-photo-card {
  border-radius: var(--lgc-radius);
  overflow: hidden;
  min-height: 220px;
}

.lgc-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lgc-panorama {
  margin: 1rem 0 0;
  overflow: hidden;
}

.lgc-panorama img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.lgc-panorama figcaption {
  color: rgba(31, 45, 35, 0.72);
  font-size: 0.82rem;
  margin-top: 0.45rem;
}

.lgc-panorama.compact {
  margin-top: 1.2rem;
}

.lgc-card {
  border-radius: var(--lgc-radius);
  border: 1px solid var(--lgc-card-border);
  background: #fff;
  padding: 1.1rem;
  position: relative;
  box-shadow: 0 8px 20px rgba(31, 45, 35, 0.08);
}

.lgc-card p {
  margin-bottom: 0;
}

.lgc-card h3 {
  margin-bottom: 0.4rem;
}

.lgc-event-list,
.lgc-project-grid,
.lgc-resource-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.lgc-event-list .lgc-card,
.lgc-project-grid .lgc-card {
  display: grid;
  gap: 0.6rem;
}

.lgc-project img,
.lgc-project .lgc-project-fallback {
  border-radius: 10px;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.lgc-project-fallback {
  background:
    linear-gradient(130deg, #2f7a45 0%, #66a95b 45%, #d9b44a 100%);
}

.lgc-event-meta,
.lgc-event p,
.lgc-card p {
  margin-bottom: 0.6rem;
}

.lgc-form {
  display: grid;
  gap: 0.75rem;
}

.lgc-form .lgc-field {
  display: grid;
  gap: 0.35rem;
}

.lgc-form label {
  color: var(--lgc-green);
  font-weight: 600;
}

.lgc-form input,
.lgc-form textarea {
  width: 100%;
  padding: 0.72rem;
  border-radius: 10px;
  border: 1px solid #d6cec1;
  background: #fff;
}

.lgc-form input:focus,
.lgc-form textarea:focus {
  outline: 2px solid rgba(47, 122, 69, 0.22);
  border-color: var(--lgc-green);
}

.lgc-hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.lgc-form-consent {
  margin: 0.2rem 0 0;
}

.lgc-alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.lgc-alert-success {
  background: #e9f7ea;
  color: #1f5e34;
  border: 1px solid #b8dfbe;
}

.lgc-alert-error {
  background: #fcf0f0;
  color: #7d2020;
  border: 1px solid #e3b0b0;
}

.lgc-reveal {
  animation: lgc-reveal-up 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes lgc-reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

a:not(.lgc-btn) {
  color: #1f5e34;
}

@media (max-width: 900px) {
  .lgc-two-col,
  .lgc-split {
    grid-template-columns: 1fr;
  }

  .lgc-hero {
    min-height: 250px;
  }
}
