/* Verze 2 – změna názvu slouží také k bezpečnému obnovení cache prohlížeče. */
:root {
  --primary: #214c3a;
  --primary-dark: #16372a;
  --primary-light: #347058;
  --cream: #f5f1e8;
  --cream-dark: #e9e0d0;
  --gold: #c49a55;
  --paper: #fffdf8;
  --white: #ffffff;
  --text: #25332c;
  --text-muted: #68736d;
  --border: rgba(33, 76, 58, 0.14);
  --shadow: 0 18px 50px rgba(22, 55, 42, 0.10);
  --shadow-sm: 0 8px 24px rgba(22, 55, 42, 0.07);
  --shadow-lg: 0 22px 65px rgba(22, 55, 42, 0.14);
  --radius: 14px;
  --radius-lg: 26px;
  --navbar-height: 82px;
  --transition: 180ms ease;

  /* Zpětná kompatibilita se styly vnitřních stránek. */
  --background: var(--white);
  --bg-subtle: #f8faf8;
  --accent: #cfe1d7;
  --secondary: #27352e;
  --border-radius: var(--radius);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 24px);
}

body {
  margin: 0;
  padding-top: var(--navbar-height);
  background: var(--paper);
  color: var(--text);
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.page-wrapper {
  min-height: calc(100vh - var(--navbar-height));
  overflow: clip;
  background: var(--paper);
}

.container {
  max-width: 1240px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.98;
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.55rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
}

p {
  margin-top: 0;
}

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
}

section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  color: var(--primary);
  font-family: "Poppins", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-lead {
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1.6;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-heading h2,
.section-heading .eyebrow {
  margin-bottom: 0;
}

.section-heading .eyebrow {
  margin-bottom: 0.8rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.page-title {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.page-title a {
  color: inherit;
}

/* Bootstrap používá pro tyto pomocné třídy vlastní modrou s !important. */
.text-primary {
  color: var(--primary) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.btn {
  min-height: 48px;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  transition: transform var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary:hover,
.btn-primary:focus {
  border-color: var(--primary-dark);
  background: var(--primary-dark);
}

.btn-outline-primary {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: var(--primary);
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid rgba(196, 154, 85, 0.75);
  outline-offset: 3px;
}

/* Navigace */
.site-navbar {
  min-height: var(--navbar-height);
  border-bottom: 1px solid rgba(33, 76, 58, 0.08);
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 8px 30px rgba(22, 55, 42, 0.05);
  backdrop-filter: blur(16px);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy small {
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 1.24rem;
  letter-spacing: -0.03em;
}

.navbar-nav {
  gap: 0.08rem;
}

.navbar .nav-link {
  position: relative;
  padding: 0.65rem 0.72rem !important;
  color: var(--text);
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
}

.navbar .nav-link::after {
  position: absolute;
  right: 0.72rem;
  bottom: 0.38rem;
  left: 0.72rem;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transition: var(--transition);
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--primary);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar .nav-link-admin {
  margin-left: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

/* Hero */
.site-hero {
  padding: 1.75rem 0 0;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  min-height: 610px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--primary);
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(3rem, 5vw, 4.5rem);
  color: rgba(255, 255, 255, 0.86);
}

.hero-copy .eyebrow {
  color: #dec694;
}

.hero-copy h1 {
  margin-bottom: 1.65rem;
  color: var(--white);
  font-size: clamp(3rem, 5vw, 4.65rem);
}

.hero-lead {
  max-width: 540px;
  margin-bottom: 2rem;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions .btn-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--primary-dark);
}

.hero-actions .btn-primary:hover {
  border-color: #d2ae73;
  background: #d2ae73;
}

.hero-actions .btn-light {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hero-actions .btn-light:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2.2rem 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.86rem;
}

.hero-note span {
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero-media {
  position: relative;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(33, 76, 58, 0.26), transparent 42%),
    linear-gradient(0deg, rgba(22, 55, 42, 0.35), transparent 45%);
  content: "";
  pointer-events: none;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media figcaption {
  position: absolute;
  z-index: 1;
  right: 1.6rem;
  bottom: 1.6rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(22, 55, 42, 0.7);
  color: var(--white);
  font-size: 0.84rem;
  backdrop-filter: blur(8px);
}

.quick-links {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-links-grid a {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  padding: 1.15rem 1.4rem;
  border-right: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}

.quick-links-grid a:first-child {
  border-left: 1px solid var(--border);
}

.quick-links-grid a > i:first-child {
  color: var(--gold);
  font-size: 1.45rem;
}

.quick-links-grid a > i:last-child {
  color: var(--primary);
  transition: transform var(--transition);
}

.quick-links-grid a:hover {
  background: var(--cream);
  color: var(--primary);
}

.quick-links-grid a:hover > i:last-child {
  transform: translateX(4px);
}

.quick-links-grid span {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.quick-links-grid strong {
  font-family: "Poppins", sans-serif;
  font-size: 0.96rem;
}

.quick-links-grid small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 0.74rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* O obci */
.about-section {
  background: var(--paper);
}

.about-section h2 {
  margin-bottom: 1.7rem;
}

.about-section p:not(.eyebrow) {
  max-width: 670px;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
}

.about-facts div {
  display: flex;
  flex-direction: column;
}

.about-facts strong {
  color: var(--primary);
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
}

.about-facts span {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.photo-frame {
  position: relative;
  margin: 0;
  padding: 1rem 1rem 4.3rem;
  border-radius: var(--radius-lg);
  background: var(--cream);
  transform: rotate(1deg);
}

.photo-frame img {
  width: 100%;
  min-height: 440px;
  border-radius: calc(var(--radius-lg) - 8px);
  object-fit: cover;
}

.photo-frame figcaption {
  position: absolute;
  right: 2rem;
  bottom: 1.25rem;
  left: 2rem;
  color: var(--text-muted);
  font-size: 0.83rem;
  text-align: center;
}

/* Aktuality */
.news-section {
  background: var(--cream);
}

.news-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1.25rem;
}

.news-card {
  display: flex;
  min-height: 420px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid rgba(33, 76, 58, 0.09);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.news-card-media {
  height: 150px;
  overflow: hidden;
  background: var(--primary);
}

.news-card-featured .news-card-media {
  height: 235px;
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.035);
}

.news-card-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #396a55);
  color: rgba(255, 255, 255, 0.45);
}

.news-card-placeholder i {
  font-size: 3rem;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.5rem;
}

.news-card-body time {
  margin-bottom: 0.8rem;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.news-card-body h3 {
  margin-bottom: 0.9rem;
  font-size: 1.16rem;
}

.news-card-featured .news-card-body h3 {
  font-size: 1.55rem;
}

.news-card-body p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.empty-state {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}

/* Příběh obce */
.story-section {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.76);
}

.story-intro {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1rem 5rem;
  align-items: end;
  margin-bottom: 3.5rem;
}

.story-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
  color: #dec694;
}

.story-intro h2 {
  margin-bottom: 0;
  color: var(--white);
}

.story-intro > p:last-child {
  max-width: 620px;
  margin-bottom: 0.4rem;
  font-size: 1.08rem;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.story-card {
  position: relative;
  min-height: 355px;
  padding: 2.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.17);
}

.story-card:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.17);
}

.story-card > i {
  color: var(--gold);
  font-size: 2rem;
}

.story-card h3 {
  margin: 1.25rem 0 1rem;
  color: var(--white);
}

.story-card p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.91rem;
}

.story-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: rgba(255, 255, 255, 0.24);
  font-family: "Poppins", sans-serif;
  font-size: 0.8rem;
}

.story-card details {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.88rem;
}

.story-card summary {
  color: #dec694;
  cursor: pointer;
  font-weight: 700;
}

.story-card details p {
  margin-top: 1rem;
}

/* Obecní úřad */
.office-section {
  background: var(--paper);
}

.office-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.office-photo {
  position: relative;
  z-index: 0;
  margin: 0;
}

.office-photo::before {
  position: absolute;
  z-index: -1;
  top: -1.6rem;
  right: -1.6rem;
  width: 72%;
  height: 72%;
  border-radius: var(--radius-lg);
  background: var(--cream);
  content: "";
}

.office-photo img {
  width: 100%;
  min-height: 520px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.office-photo figcaption {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--primary);
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.office-content h2 {
  margin-bottom: 1.4rem;
}

.office-content > p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.office-leadership {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.office-leadership div,
.office-hours {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.office-leadership span,
.office-hours span {
  margin-bottom: 0.25rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.office-leadership strong,
.office-hours strong {
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
}

.office-hours {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  border-color: transparent;
  background: var(--cream);
}

.office-hours > div {
  display: flex;
  flex-direction: column;
}

.office-hours .office-time {
  color: var(--primary);
  font-size: 1.25rem;
}

.representatives {
  padding: 0.3rem 0;
}

.representatives summary {
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.representatives ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  columns: 2;
}

/* Čísla */
.stats-section {
  padding: 2.7rem 0;
  background: var(--gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-grid div {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.5rem 1rem;
  border-right: 1px solid rgba(22, 55, 42, 0.22);
}

.stats-grid div:last-child {
  border-right: 0;
}

.stats-grid strong {
  color: var(--primary-dark);
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.stats-grid span {
  color: rgba(22, 55, 42, 0.77);
  font-size: 0.8rem;
}

/* Kontakt */
.contact-section {
  background: var(--cream);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-card {
  padding: clamp(2rem, 5vw, 4rem);
}

.contact-card h3 {
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.contact-card address {
  margin: 0;
  font-style: normal;
}

.contact-card address p {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.contact-card address i {
  flex: 0 0 20px;
  margin-top: 0.15rem;
  color: var(--gold);
  font-size: 1.15rem;
}

.contact-card address a {
  color: var(--text);
}

.map-container {
  min-height: 430px;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Vnitřní stránky a formuláře */
.breadcrumb {
  margin-top: 1.6rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
}

.form-control,
.form-select {
  min-height: 46px;
  border-color: var(--border);
  border-radius: 9px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 0.22rem rgba(33, 76, 58, 0.12);
}

.alert {
  border: 0;
  border-radius: var(--radius);
}

/* Patička */
.site-footer {
  padding: 4.8rem 0 1.6rem;
  background: var(--primary-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 0.8fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.site-footer .navbar-brand {
  margin-bottom: 1.3rem;
  color: var(--white);
}

.site-footer .brand-mark {
  background: var(--gold);
  color: var(--primary-dark);
}

.site-footer .brand-copy small {
  color: rgba(255, 255, 255, 0.56);
}

.footer-brand p {
  max-width: 270px;
}

.site-footer h2 {
  margin-bottom: 1.2rem;
  color: #dec694;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.site-footer a {
  display: inline-block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--white);
}

.footer-grid > div:last-child a {
  display: block;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom div {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 1199.98px) {
  .navbar .nav-link {
    padding-right: 0.5rem !important;
    padding-left: 0.5rem !important;
    font-size: 0.85rem;
  }

  .quick-links-grid a {
    padding: 1rem;
  }
}

@media (max-width: 991.98px) {
  :root {
    --navbar-height: 72px;
  }

  .navbar-collapse {
    margin: 0.8rem -0.75rem -0.55rem;
    padding: 0.8rem;
    border-top: 1px solid var(--border);
    background: var(--paper);
  }

  .navbar .nav-link-admin {
    margin-left: 0;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 500px;
  }

  .hero-media {
    min-height: 430px;
  }

  .quick-links-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quick-links-grid a:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

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

  .news-card-featured {
    grid-column: 1 / -1;
  }

  .story-intro {
    grid-template-columns: 1fr;
  }

  .story-intro .eyebrow {
    grid-column: auto;
  }

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

  .story-card,
  .story-card:first-child {
    min-height: auto;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  }

  .story-card:last-child {
    border-bottom: 0;
  }

  .office-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 2;
  }
}

@media (max-width: 767.98px) {
  section {
    padding: 4.5rem 0;
  }

  .site-hero {
    padding-top: 0.8rem;
  }

  .hero-panel {
    border-radius: 18px;
  }

  .hero-copy {
    min-height: auto;
    padding: 3.2rem 1.6rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 12vw, 3.3rem);
  }

  .hero-media {
    display: block;
    min-height: 310px;
  }

  .hero-note {
    margin-top: 1.6rem;
  }

  .quick-links {
    padding: 0.8rem 0;
  }

  .quick-links-grid {
    grid-template-columns: 1fr;
  }

  .quick-links-grid a,
  .quick-links-grid a:first-child {
    border: 0;
    border-bottom: 1px solid var(--border);
  }

  .quick-links-grid a:last-child {
    border-bottom: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 2rem;
  }

  .photo-frame {
    padding: 0.7rem 0.7rem 4rem;
    transform: none;
  }

  .photo-frame img {
    min-height: 330px;
  }

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

  .news-card-featured {
    grid-column: auto;
  }

  .story-card {
    padding: 2rem 1.4rem;
  }

  .office-photo img {
    min-height: 380px;
  }

  .office-leadership {
    grid-template-columns: 1fr;
  }

  .office-hours {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem 0;
  }

  .stats-grid div:nth-child(2) {
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }
}

@media (max-width: 479.98px) {
  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

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

  .stats-grid div,
  .stats-grid div:nth-child(2) {
    justify-content: flex-start;
    border-right: 0;
    border-bottom: 1px solid rgba(22, 55, 42, 0.22);
  }

  .stats-grid div:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
