/*
Theme Name: Independence Heritage
Theme URI: https://www.independenceflorida.com/
Author: HOA Migration
Description: Child theme that preserves the current Independence look and feel using Twenty Twenty-Five as a base.
Version: 1.0.13
Template: twentytwentyfive
Text Domain: independence-heritage
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=PT+Sans:wght@400;700&display=swap');

:root {
  --ind-accent: #0079ba;
  --ind-accent-dark: #053d75;
  --ind-white: #ffffff;
  --ind-ink: #212121;
}

body {
  margin: 0;
  background: #f9f9f9;
  color: var(--ind-ink);
  font-family: 'PT Sans', 'Segoe UI', sans-serif;
}

h1,
h2,
h3,
h4 {
  font-family: 'Cinzel', Georgia, serif;
}

main {
  padding: 0;
}

main .wp-block-post-content,
main .wp-block-page-content {
  max-width: 1200px;
  margin-inline: auto;
}

body.home .wp-block-post-title {
  display: none;
}

body.home header.wp-block-template-part {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent !important;
  border: 0;
  box-shadow: none;
}

body.home header.wp-block-template-part,
body.home header.wp-block-template-part .wp-block-group,
body.home header.wp-block-template-part .wp-block-navigation,
body.home header.wp-block-template-part .wp-block-navigation__container {
  background-color: transparent !important;
}

body.home header.wp-block-template-part .wp-block-site-title {
  display: none;
}

body.home .wp-block-navigation {
  width: 100%;
}

body.home .wp-block-navigation .wp-block-navigation__container {
  justify-content: flex-end;
  width: 100%;
  gap: 24px;
}

/* Header menu as on live (measured 2026-11-19): 16 px bold PT Sans, normal case and spacing. */
body.home .wp-block-navigation .wp-block-navigation-item__content {
  color: #fff;
  font-family: 'PT Sans', 'Segoe UI', sans-serif;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
  font-weight: 700;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* Home hero fills the window as on live: 100vh plus the 90 px header band, whatever the
   window height (the Elementor page stores the 990 px measured in a 900 px-tall window). */
body.home.elementor-page .elementor > .e-con:first-child {
  --min-height: calc(100vh + 90px);
  min-height: calc(100vh + 90px);
}

.ind-hero,
.ind-value,
.ind-discover {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

body.home .wp-block-post-content > .ind-hero,
body.home .wp-block-post-content > .ind-value,
body.home .wp-block-post-content > .ind-discover {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-block: 0 !important;
}

.ind-hero {
  min-height: 100vh;
  background-size: cover;
  background-position: center center;
  position: relative;
}

.ind-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 17, 30, 0.28);
}

.ind-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 5vw;
}

.ind-hero p {
  margin: 0;
}

.ind-hero .wp-element-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: min(94vw, 26rem);
  margin: 0 0 0.7rem;
  padding: 0.7rem 1rem;
  border: 2px solid #fff;
  border-radius: 2px;
  background: transparent;
  color: #fff;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.ind-ico {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', FontAwesome, sans-serif;
  margin-right: 0.5rem;
  font-size: 0.95em;
}

.ind-value {
  background: #0089d3;
  color: #fff;
  padding: clamp(1.9rem, 4vw, 3.4rem) 0;
}

.ind-value-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}

.ind-value-copy h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(2rem, 3.3vw, 3rem);
}

.ind-value-copy p {
  color: #f3f8fd;
  font-size: 1.12rem;
}

.ind-rule {
  width: 2rem;
  height: 2px;
  margin-bottom: 1rem;
  background: #fff;
}

.ind-value-image {
  min-height: 21rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.ind-discover {
  background: #06498d;
  color: #fff;
  padding: clamp(2rem, 4vw, 3.4rem) 0;
}

.ind-discover > h2 {
  max-width: 1200px;
  margin: 0 auto 1.2rem;
  padding: 0 15px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.9rem);
}

.ind-discover-item {
  max-width: 1200px;
  margin: 0 auto 1.3rem;
  padding: 0 15px;
  display: grid;
  grid-template-columns: 34% 66%;
}

.ind-discover-item.reverse {
  grid-template-columns: 66% 34%;
}

.ind-discover-image {
  min-height: 17rem;
  background-size: cover;
  background-position: center;
}

.ind-discover-copy {
  background: #fff;
  color: var(--ind-ink);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 14px 28px rgba(7, 29, 53, 0.2);
}

.ind-discover-copy .ind-rule {
  background: var(--ind-accent);
}

.ind-discover-copy h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  color: #1f2f42;
  font-size: 1.7rem;
}

.ind-discover-copy p {
  color: #3d4d5e;
}

.ind-discover-copy .wp-element-button {
  background: var(--ind-accent);
  border: 1px solid var(--ind-accent);
  border-radius: 4px;
  color: #fff;
  padding: 0.55rem 1rem;
}

@media (max-width: 860px) {
  body.home header.wp-block-template-part .wp-block-site-title {
    display: block;
  }

  .ind-hero {
    min-height: 80vh;
    background-position: 56% center;
  }

  .ind-hero-inner {
    min-height: 80vh;
    align-items: flex-end;
    padding-bottom: 2rem;
  }

  .ind-value-grid,
  .ind-discover-item,
  .ind-discover-item.reverse {
    grid-template-columns: 1fr;
  }
}

body.home .ind-hero {
  max-width: none !important;
  margin-top: 0 !important;
  padding-top: 0;
  background-position: center top;
}

body.home .wp-block-post-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.home main,
body.home .wp-site-blocks,
body.home .wp-site-blocks > main {
  margin: 0;
  padding: 0;
  background: transparent;
}

/* final home header lock */
body.home header.wp-block-template-part .wp-block-site-title {
  display: none !important;
}

@media (max-width: 860px) {
  body.home header.wp-block-template-part .wp-block-site-title {
    display: none !important;
  }
}

/* zero-gap + right-justified nav hard overrides */
body.home .wp-site-blocks > main > .wp-block-group.has-global-padding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

body.home main {
  margin-top: 0 !important;
}

body.home .wp-block-navigation {
  margin-left: auto !important;
}

body.home .wp-block-navigation .wp-block-navigation__container {
  justify-content: flex-end !important;
}

/* inner page full-width bands */
body:not(.home) .wp-site-blocks > main.wp-block-group {
  max-width: none !important;
  margin-top: 0 !important;
  padding: 0 !important;
  background: #06498d;
}

body:not(.home) main.wp-block-group > .wp-block-group.alignfull {
  width: 100vw;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: clamp(3rem, 6vw, 5rem) 0 !important;
  background: #06498d;
  color: #fff;
}

body:not(.home) .wp-block-post-title {
  width: min(1120px, calc(100vw - 2rem));
  max-width: none !important;
  margin: 0 auto 1.25rem !important;
  color: #fff;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

body:not(.home) .wp-block-post-content {
  width: min(1120px, calc(100vw - 2rem));
  max-width: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent;
  color: #24384d;
  box-shadow: 0 14px 28px rgba(7, 29, 53, 0.2);
}

body:not(.home) .wp-block-post-content h2,
body:not(.home) .wp-block-post-content h3,
body:not(.home) .wp-block-post-content h4 {
  color: #1f2f42;
}

body:not(.home) .wp-block-post-content h2:first-child {
  margin-top: 0;
}

body:not(.home) .wp-block-post-content a {
  color: var(--ind-accent);
}

footer.wp-block-template-part {
  width: 100%;
  margin-top: 0 !important;
  background: #053d75;
  color: #fff;
}

footer.wp-block-template-part > .wp-block-group {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  background: #053d75;
  color: #fff;
}

footer.wp-block-template-part .wp-block-columns,
footer.wp-block-template-part > .wp-block-group > p {
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}

footer.wp-block-template-part a,
footer.wp-block-template-part h3,
footer.wp-block-template-part p {
  color: #fff;
}

.ind-residents-lede {
  font-size: 1.12rem;
  color: #4f6070;
}

.ind-page-hero {
  width: 100vw;
  max-width: none !important;
  min-height: clamp(32rem, 72vh, 48rem);
  position: relative;
  display: flex;
  align-items: flex-end;
  margin: 0 calc(50% - 50vw) !important;
  padding: clamp(2rem, 6vw, 5rem);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.ind-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 17, 30, 0.38);
}

.ind-page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 2rem));
  max-width: none;
  margin: 0 auto;
}

.ind-page-hero h2 {
  margin: 0 0 0.75rem;
  color: #fff !important;
  font-size: clamp(2.3rem, 5vw, 4rem);
}

.ind-page-hero p {
  color: #fff;
}

.ind-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ind-section {
  width: 100vw;
  max-width: none !important;
  margin: 0 calc(50% - 50vw) !important;
  padding: clamp(1.6rem, 4vw, 2.75rem);
}

.ind-section > * {
  width: min(1120px, calc(100vw - 2rem));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.ind-section h3:first-child {
  margin-top: 0;
}

.ind-section-light {
  background: #eef7fc;
}

.ind-section-white {
  background: #fff;
}

.ind-section-blue {
  background: #06498d;
  color: #fff;
}

.ind-section-blue h3,
.ind-section-blue p {
  color: #fff !important;
}

.ind-section-with-image {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(16rem, 0.8fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.ind-section-with-image > * {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.ind-section-with-image {
  padding-left: max(1rem, calc((100vw - 1120px) / 2));
  padding-right: max(1rem, calc((100vw - 1120px) / 2));
}

.ind-side-image {
  min-height: 24rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 14px 28px rgba(7, 29, 53, 0.22);
}

.ind-portal-grid,
.ind-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  margin: 1.25rem 0 2rem;
}

.ind-card {
  border: 1px solid rgba(0, 121, 186, 0.18);
  border-left: 4px solid var(--ind-accent);
  padding: 1rem;
  background: #f7fbfe;
}

.ind-card h3,
.ind-card h4 {
  margin: 0 0 0.45rem;
}

.ind-card p {
  margin: 0.25rem 0;
}

.ind-card .wp-element-button,
.ind-button {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.55rem 0.85rem;
  background: var(--ind-accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
}

.ind-faq-list details {
  border-top: 1px solid rgba(0, 121, 186, 0.18);
  padding: 1rem 0;
}

.ind-faq-list details:last-child {
  border-bottom: 1px solid rgba(0, 121, 186, 0.18);
}

.ind-faq-list summary {
  cursor: pointer;
  color: #1f2f42;
  font-weight: 700;
}

.ind-highlight {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #eef7fc;
  border-left: 4px solid var(--ind-accent);
}

.ind-support-hours {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem;
}

.ind-stat-grid,
.ind-status-grid,
.ind-sponsor-grid,
.ind-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 1.25rem auto;
}

.ind-stat {
  padding: 1.1rem;
  background: #fff;
  border-top: 4px solid var(--ind-accent);
  text-align: center;
  box-shadow: 0 8px 18px rgba(7, 29, 53, 0.12);
}

.ind-stat strong {
  display: block;
  color: var(--ind-accent-dark);
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
}

.ind-status {
  padding: 1rem;
  background: #fff;
  border-left: 4px solid #30a45a;
  box-shadow: 0 8px 18px rgba(7, 29, 53, 0.12);
}

.ind-status strong {
  color: #146c2e;
  text-transform: uppercase;
}

.ind-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}

.ind-project-hero {
  background-position: center;
}

.ind-timeline {
  display: grid;
  gap: 0.75rem;
}

.ind-timeline div {
  padding: 0.9rem 1rem;
  background: #fff;
  border-left: 4px solid var(--ind-accent);
}

.ind-note {
  padding: 1rem;
  background: #fff7df;
  border-left: 4px solid #d2a11d;
}

.ind-section-blue .ind-card,
.ind-section-blue .ind-status,
.ind-section-blue .ind-stat {
  color: #24384d;
}

@media (max-width: 860px) {
  .ind-page-hero {
    min-height: 26rem;
    padding: 1.5rem;
  }

  .ind-section-with-image {
    grid-template-columns: 1fr;
  }

  .ind-side-image {
    min-height: 16rem;
  }

  .ind-two-col {
    grid-template-columns: 1fr;
  }
}

body.ind-source-mirror-page {
  background: #fff;
}

body.ind-source-mirror-page header.wp-block-template-part,
body.ind-source-mirror-page footer.wp-block-template-part,
body.ind-source-mirror-page .wp-block-post-title {
  display: none !important;
}

body.ind-source-mirror-page .wp-site-blocks,
body.ind-source-mirror-page main,
body.ind-source-mirror-page main .wp-block-post-content,
body.ind-source-mirror-page main .wp-block-page-content,
body.ind-source-mirror-page .entry-content {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.ind-source-mirror-page .ind-source-mirror-fragment {
  width: 100%;
  min-height: 100vh;
}

body.ind-source-mirror-page .ind-source-mirror-fragment .kv-site {
  width: 100%;
}

body.ind-editable-migration-page .wp-block-post-title {
  display: none !important;
}

body.ind-editable-migration-page .wp-site-blocks > main.wp-block-group {
  background: #fff;
}

body.ind-editable-migration-page main.wp-block-group > .wp-block-group.alignfull {
  padding: 0 !important;
  background: #fff;
}

body.ind-editable-migration-page main .wp-block-post-content {
  max-width: none;
  width: 100%;
  box-shadow: none;
}

.ind-editable-page {
  --ind-edit-blue: #0089d3;
  --ind-edit-dark-blue: #003f7d;
  --ind-edit-soft: #f4f8fb;
  width: 100vw;
  max-width: none !important;
  margin: 0 calc(50% - 50vw) !important;
  background: #fff;
}

.ind-editable-page > section {
  width: 100%;
}

.ind-editable-hero {
  min-height: clamp(18rem, 38vw, 30rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: clamp(4rem, 8vw, 8rem) 1rem;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
}

.ind-editable-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 121, 186, 0.42);
}

.ind-editable-hero > .wp-block-group {
  position: relative;
  z-index: 1;
  max-width: 780px;
}

.ind-editable-hero h2,
.ind-editable-hero p {
  color: #fff !important;
}

.ind-editable-hero h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.1;
}

.ind-editable-hero .ind-kicker {
  color: rgba(255, 255, 255, 0.9) !important;
}

.ind-editable-band {
  padding: clamp(2rem, 5vw, 4rem) 1rem;
}

.ind-editable-band > .wp-block-group,
.ind-editable-band > .wp-block-columns,
.ind-editable-band > .wp-block-heading,
.ind-editable-band > p,
.ind-editable-band > .wp-block-details,
.ind-editable-band > .wp-block-buttons {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.ind-editable-band h2,
.ind-editable-band h3 {
  color: var(--ind-accent);
  text-align: center;
}

.ind-editable-details {
  display: grid;
  gap: 0.9rem;
  max-width: 920px;
  margin: 0 auto;
}

.ind-editable-details details {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 8px 18px rgba(0, 44, 84, 0.14);
  overflow: hidden;
}

.ind-editable-details summary {
  padding: 0.85rem 1rem;
  background: var(--ind-edit-blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.ind-editable-details details > *:not(summary) {
  padding-left: 1rem;
  padding-right: 1rem;
}

.ind-editable-details details > p:last-child {
  padding-bottom: 1rem;
}

.ind-editable-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin: 1.25rem auto 0;
}

.ind-editable-detail-card {
  padding: 1rem;
  background: var(--ind-edit-soft);
  border-top: 4px solid var(--ind-edit-blue);
  text-align: center;
}

/* Header menu position as on live (measured 2026-11-19 at 1366 and 1920 px): the last item
   ends 27 px from the window's right edge at every width (no 1200 px cap), 24 px between
   items. html-prefixed to outrank editable-preview.css, which loads after this file. */
html body.ind-fixed-header .ind-preview-header {
  padding-right: 27px;
}

html body.ind-fixed-header .ind-preview-header > .wp-block-navigation {
  max-width: none !important;
  margin-right: 0 !important;
}

html body.ind-fixed-header .ind-preview-header .wp-block-navigation__container {
  gap: 24px;
}
