/* Todd County homepage sections. Scoped so existing Divi pages and plugins retain their styles. */
.tcdc-home {
  --home-navy: #111c33;
  --home-green: #166938;
  --home-blue: #062f87;
  --home-cream: #fbfaf8;
  --home-ink: #263247;
  --home-muted: #596475;
  --home-border: #dfe6e1;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  overflow: hidden;
  color: var(--home-ink);
  background: #fff;
  font-family: "avenir-next-lt-pro", Arial, sans-serif;
}
.tcdc-home *, .tcdc-home *::before, .tcdc-home *::after { box-sizing: inherit; }
.tcdc-home img { display: block; width: 100%; height: auto; }
.tcdc-home a { text-decoration: none; }
.tcdc-home a:focus-visible { outline: 3px solid #75c89b; outline-offset: 4px; }
.tcdc-home :where(h1,h2,h3,h4,p) { margin: 0; padding: 0; }
.tcdc-home :where(h1,h2,h3,h4) { color: inherit; line-height: 1.12; font-weight: 800; }
.tcdc-home p { line-height: 1.65; }
.tcdc-home__inner { width: min(100% - 48px, 1240px); margin-inline: auto; position: relative; z-index: 1; }
.tcdc-home__section-pad { padding-block: clamp(72px, 8vw, 112px); }
.tcdc-home__kicker { display: inline-flex; gap: 10px; align-items: center; margin-bottom: 20px !important; color: var(--home-green); font-size: .78rem; font-weight: 800; letter-spacing: .13em; line-height: 1.3; text-transform: uppercase; }
.tcdc-home__kicker::before { content: ""; width: 22px; height: 3px; background: currentColor; flex: none; }
.tcdc-home__title { max-width: 900px; font-size: clamp(2.25rem, 4.6vw, 4.5rem); letter-spacing: -.035em; }
.tcdc-home__lead { max-width: 760px; margin-top: 22px !important; font-size: clamp(1rem, 1.3vw, 1.17rem); color: var(--home-muted); }
.tcdc-home__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.tcdc-home__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 22px; border: 2px solid transparent; border-radius: 3px; font-size: .93rem; font-weight: 800; line-height: 1.2; transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.tcdc-home__btn:hover { transform: translateY(-2px); }
.tcdc-home__btn--green { background: var(--home-green); color: #fff !important; }
.tcdc-home__btn--green:hover { background: #0c4f29; }
.tcdc-home__btn--blue { background: var(--home-blue); color: #fff !important; }
.tcdc-home__btn--blue:hover { background: #082365; }
.tcdc-home__btn--light { background: #fff; color: var(--home-green) !important; }
.tcdc-home__btn--light:hover { background: #ebf4ec; }
.tcdc-home__btn--outline { border-color: #fff; background: transparent; color: #fff !important; }
.tcdc-home__btn--outline:hover { background: #fff; color: var(--home-navy) !important; }
.tcdc-home__text-link { display: inline-flex; gap: 8px; align-items: center; width: fit-content; padding-bottom: 5px; border-bottom: 2px solid currentColor; color: var(--home-green) !important; font-size: .82rem; font-weight: 800; letter-spacing: .065em; line-height: 1.3; text-transform: uppercase; }
.tcdc-home__text-link:hover { color: #0c4f29 !important; }

/* 01 / Hero */
.tcdc-home--hero { display: flex; align-items: center; min-height: clamp(640px, 69vh, 780px); background: #20334b var(--nwd-tcdc-image-downtown, none) center / cover no-repeat; }
.tcdc-home--hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(10,22,41,.88) 0%, rgba(10,22,41,.65) 47%, rgba(10,22,41,.16) 100%); }
.tcdc-home__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.tcdc-home--hero .tcdc-home__inner { padding-block: 100px; }
.tcdc-home--hero .tcdc-home__kicker { color: #c7e4d0; }
.tcdc-home--hero h1 { max-width: 900px; color: #fff; font-size: clamp(3.5rem, 8vw, 7.1rem); font-weight: 900; letter-spacing: -.055em; line-height: .98; text-transform: uppercase; text-wrap: balance; }
.tcdc-home--hero h1 span { display: block; color: #a6dab2; }
.tcdc-home--hero .tcdc-home__lead { max-width: 660px; margin-top: 28px !important; color: #fff; font-size: clamp(1.12rem, 1.65vw, 1.45rem); font-weight: 600; line-height: 1.5; }

/* 02 / Introduction */
.tcdc-home--intro { background: #fff; }
.tcdc-home--intro .tcdc-home__inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
.tcdc-home--intro .tcdc-home__title { font-size: clamp(2.3rem, 4.3vw, 4.2rem); }
.tcdc-home--intro .tcdc-home__text-link { margin-top: 30px; }
.tcdc-home--intro .tcdc-home__image { min-height: 400px; height: clamp(400px, 42vw, 540px); overflow: hidden; border-radius: 60px 6px 6px 6px; }
.tcdc-home--intro .tcdc-home__image img { height: 100%; object-fit: cover; }

/* 03 / Business resources */
.tcdc-home--resources { background: var(--home-cream); }
.tcdc-home--resources .tcdc-home__heading { max-width: 860px; margin: 0 auto 45px; text-align: center; }
.tcdc-home--resources .tcdc-home__lead { margin-inline: auto; }
.tcdc-home__resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tcdc-home__resource-card { display: flex; flex-direction: column; min-height: 245px; padding: 30px; border: 1px solid var(--home-border); border-top: 4px solid var(--home-green); border-radius: 4px; background: #fff; box-shadow: 0 10px 28px rgba(17,28,51,.055); }
.tcdc-home__resource-card h3 { font-size: clamp(1.22rem, 1.6vw, 1.55rem); }
.tcdc-home__resource-card p { margin-top: 13px !important; color: var(--home-muted); font-size: .96rem; }
.tcdc-home__resource-card a { margin-top: auto; padding-top: 22px; color: var(--home-green) !important; font-weight: 800; }
.tcdc-home__resource-card a:hover { text-decoration: underline; }
.tcdc-home--resources .tcdc-home__actions { justify-content: center; margin-top: 38px; }

/* 04 / Why Todd County */
.tcdc-home--why { background: #192b35 var(--nwd-tcdc-image-cloud-shadows, none) center / cover no-repeat; color: #fff; }
.tcdc-home--why::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(17,28,51,.95), rgba(17,28,51,.81) 57%, rgba(17,28,51,.39)); }
.tcdc-home--why .tcdc-home__kicker { color: #a9d9b6; }
.tcdc-home--why .tcdc-home__lead { max-width: 850px; color: #fff; }
.tcdc-home__stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; max-width: 950px; margin-top: 40px; border-block: 1px solid rgba(255,255,255,.3); }
.tcdc-home__stat { padding: 27px 20px; border-right: 1px solid rgba(255,255,255,.3); }
.tcdc-home__stat:first-child { padding-left: 0; }
.tcdc-home__stat:last-child { border-right: 0; }
.tcdc-home__stat strong { display: block; color: #fff; font-size: clamp(1.7rem, 3vw, 2.7rem); line-height: 1; }
.tcdc-home__stat span { display: block; margin-top: 8px; color: #dceadf; font-size: .92rem; font-weight: 700; }
.tcdc-home--why .tcdc-home__text-link { color: #fff !important; }

/* 05 / Site selection */
.tcdc-home--sites { background: var(--home-cream); }
.tcdc-home__split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: clamp(35px, 5vw, 72px); align-items: center; }
.tcdc-home--sites .tcdc-home__image { min-height: 420px; height: clamp(420px, 40vw, 560px); overflow: hidden; border-radius: 4px 62px 4px 4px; }
.tcdc-home--sites .tcdc-home__image img { height: 100%; object-fit: cover; }
.tcdc-home__site-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 50px; }
.tcdc-home__site-card { padding: 26px; border: 1px solid var(--home-border); border-top: 4px solid var(--home-green); background: #fff; box-shadow: 0 9px 24px rgba(17,28,51,.055); }
.tcdc-home__site-card h3 { font-size: 1.25rem; }
.tcdc-home__site-card p { margin-top: 9px !important; color: var(--home-muted); font-size: .94rem; }
.tcdc-home__site-card a { display: inline-block; margin-top: 15px; color: var(--home-green) !important; font-size: .83rem; font-weight: 800; }

/* 06 / Communities */
.tcdc-home--communities { background: #fff; }
.tcdc-home--communities .tcdc-home__split { grid-template-columns: 1.1fr .9fr; }
.tcdc-home--communities .tcdc-home__title span { display: block; color: var(--home-green); }
.tcdc-home--communities .tcdc-home__image { max-height: 390px; overflow: hidden; border-radius: 4px 4px 56px 4px; }
.tcdc-home--communities .tcdc-home__image img { height: 390px; object-fit: cover; }
.tcdc-home__community-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin-top: 48px; }
.tcdc-home__community-card { display: flex; flex-direction: column; min-height: 235px; padding: 25px 21px; border: 1px solid var(--home-border); border-radius: 3px; background: #fff; box-shadow: 0 8px 22px rgba(17,28,51,.06); }
.tcdc-home__community-card::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 20px; background: var(--home-green); }
.tcdc-home__community-card h3 { font-size: 1.18rem; }
.tcdc-home__community-card p { margin-top: 12px !important; color: var(--home-muted); font-size: .88rem; line-height: 1.5; }
.tcdc-home__community-card a { display: inline-block; margin-top: auto; padding-top: 14px; color: var(--home-green) !important; font-size: .82rem; font-weight: 800; }
.tcdc-home--communities .tcdc-home__closing { margin-top: 35px; text-align: center; }
.tcdc-home--communities .tcdc-home__closing p { margin-bottom: 17px !important; font-weight: 700; }

/* 07 / Partners */
.tcdc-home--partners { background: var(--home-cream); }
.tcdc-home--partners .tcdc-home__image { max-height: 520px; overflow: hidden; border-radius: 56px 4px 4px 4px; }
.tcdc-home--partners .tcdc-home__image img { height: 520px; object-fit: cover; }
.tcdc-home--partners .tcdc-home__title span { color: var(--home-green); }
.tcdc-home--partners-feed { padding-block: 0 95px; background: var(--home-cream); }
.tcdc-home--partners-feed .tcdc-home__title { font-size: clamp(2rem, 3vw, 3.2rem); }
.tcdc-home--partners-feed .tcdc-home__lead { margin-bottom: 28px; }

/* 08 / News. The feed is supplied by [tcdc_home_news]. */
.tcdc-home--news { background: #fff; }
.tcdc-home--news .tcdc-home__news-heading { display: flex; justify-content: space-between; gap: 35px; align-items: end; margin-bottom: 36px; }
.tcdc-home--news .tcdc-home__title { font-size: clamp(2.2rem, 3.5vw, 3.6rem); }
.tcdc-home--news .tcdc-home__title span { color: var(--home-green); }
.tcdc-home-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.tcdc-home-news-card { display: flex; flex-direction: column; min-height: 255px; padding: 28px; border: 1px solid var(--home-border); background: var(--home-cream); }
.tcdc-home-news-date { margin: 0 0 13px !important; color: var(--home-green) !important; font-size: .76rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.tcdc-home-news-card h3 { font-size: 1.27rem; }
.tcdc-home-news-card h3 a { color: var(--home-navy) !important; }
.tcdc-home-news-card h3 a:hover { color: var(--home-green) !important; }
.tcdc-home-news-card > p:not(.tcdc-home-news-date) { margin-top: 13px !important; color: var(--home-muted); font-size: .92rem; }
.tcdc-home-text-link { display: inline-block; margin-top: auto; padding-top: 18px; color: var(--home-green) !important; font-size: .84rem; font-weight: 800; }

/* 09 / Closing call to action */
.tcdc-home--cta { background: #166938 var(--nwd-tcdc-image-aerial, none) center / cover no-repeat; color: #fff; }
.tcdc-home--cta::before { content: ""; position: absolute; inset: 0; background: rgba(15,87,44,.91); }
.tcdc-home--cta .tcdc-home__inner { display: flex; justify-content: space-between; align-items: center; gap: 35px; }
.tcdc-home--cta .tcdc-home__title { font-size: clamp(2.1rem, 3.6vw, 3.65rem); }
.tcdc-home--cta .tcdc-home__lead { max-width: 700px; color: #fff; }
.tcdc-home--cta .tcdc-home__btn { flex: none; }

@media (max-width: 980px) {
  .tcdc-home__resource-grid, .tcdc-home__site-cards, .tcdc-home-news-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tcdc-home__community-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tcdc-home__stat { padding-inline: 14px; }
}
@media (max-width: 700px) {
  .tcdc-home__inner { width: min(100% - 36px, 1240px); }
  .tcdc-home__section-pad { padding-block: 65px; }
  .tcdc-home--hero { min-height: 640px; }
  .tcdc-home--hero::after { background: linear-gradient(90deg, rgba(10,22,41,.89), rgba(10,22,41,.62)); }
  .tcdc-home--hero h1 { font-size: clamp(3.2rem, 13vw, 5.6rem); }
  .tcdc-home--intro .tcdc-home__inner, .tcdc-home__split, .tcdc-home--communities .tcdc-home__split { grid-template-columns: 1fr; }
  .tcdc-home--intro .tcdc-home__image, .tcdc-home--sites .tcdc-home__image { min-height: 0; height: 320px; }
  .tcdc-home--communities .tcdc-home__image img, .tcdc-home--partners .tcdc-home__image img { height: 320px; }
  .tcdc-home__resource-grid, .tcdc-home__site-cards, .tcdc-home-news-grid { grid-template-columns: 1fr; }
  .tcdc-home__community-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tcdc-home__stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tcdc-home__stat:nth-child(2) { border-right: 0; }
  .tcdc-home__stat:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.3); }
  .tcdc-home--news .tcdc-home__news-heading, .tcdc-home--cta .tcdc-home__inner { display: block; }
  .tcdc-home--news .tcdc-home__text-link, .tcdc-home--cta .tcdc-home__btn { margin-top: 24px; }
}
@media (max-width: 440px) {
  .tcdc-home__community-grid { grid-template-columns: 1fr; }
  .tcdc-home__actions { display: grid; }
  .tcdc-home__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .tcdc-home__btn { transition: none; }
  .tcdc-home__btn:hover { transform: none; }
  .tcdc-home__video { display: none; }
}
