/* ==========================================================================
   Jodee Blanco — site stylesheet
   Replaces Astra + Elementor. Sections:
   1. Fonts   2. Tokens   3. Base   4. Layout helpers   5. Header & nav
   6. Page banner   7. Content blocks   8. Forms   9. Footer   10. Utilities
   ========================================================================== */

/* 1. Fonts (self-hosted) ------------------------------------------------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Rufina"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/rufina-latin-400-normal.woff2) format("woff2"); }
/* Rufina only comes in 400 and 700; the old theme asked for 600, which browsers render with the 700 file */
@font-face { font-family: "Rufina"; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/rufina-latin-700-normal.woff2) format("woff2"); }

/* 2. Tokens ---------------------------------------------------------------- */
:root {
  --green: #4e7851;        /* buttons, accents */
  --green-dark: #3b5e3e;   /* button hover */
  --green-light: #9ebc99;
  --blue: #3f68c3;         /* links */
  --orange: #e86850;
  --white: #fff;
  --gray-light: #f2f2f2;   /* top bar, light sections */
  --text: #414141;
  --heading: #1f1f1f;
  --border: #ddd;
  --font-body: "Montserrat", sans-serif;
  --font-head: "Rufina", serif;
  --content: 1140px;       /* main content width */
  --wide: 1310px;          /* header/footer width */
  --gutter: 20px;
}

/* 3. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 93.75%; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }   /* in-page jumps clear the sticky header */
@media (max-width: 1024px) { html { scroll-padding-top: 95px; } }
@media (max-width: 921px) { html { font-size: 85.5%; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* line-height in em on purpose: like the old theme, every element inherits the body's
   computed 22.5px line height (small footer text included) */
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.5em; color: var(--text); background: var(--white); overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
a { color: var(--blue); }
a:hover, a:focus { color: var(--green); }
p { margin: 0 0 1.75em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.5em 3em; padding: 0; }
li > ul, li > ol { margin-bottom: 0; margin-left: 1.5em; }
.text li { padding-bottom: 10px; }
.text ul ul { list-style-type: circle; padding-top: 10px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); font-weight: 600; color: var(--heading); margin: 0 0 20px; }
h1 { font-size: 4em; line-height: 1.4; }
h2 { font-size: 2.5em; line-height: 1.3; }
h3 { font-size: 2em; line-height: 1.3; }
h4 { font-size: 1.5em; line-height: 1.2; }
h5 { font-size: 1.2em; line-height: 1.2; }
h6 { font-size: .8em; line-height: 1.25; }
/* .as-hN: a heading whose tag level was corrected for accessibility/SEO but keeps its original look */
.as-h1 { font-size: 4em; line-height: 1.4; }
.as-h2 { font-size: 2.5em; line-height: 1.3; }
.as-h3 { font-size: 2em; line-height: 1.3; }
.as-h4 { font-size: 1.5em; line-height: 1.2; }
.as-h5 { font-size: 1.2em; line-height: 1.2; }
.as-h6 { font-size: .8em; line-height: 1.25; }
@media (max-width: 921px) { h1, .as-h1 { font-size: 30px; } h2, .as-h2 { font-size: 25px; } h3, .as-h3 { font-size: 20px; } }
blockquote { margin: 0 0 1.5em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
table { border-collapse: collapse; width: 100%; margin-bottom: 1.5em; }
td, th { border: 1px solid var(--border); padding: .7em 1em; text-align: left; vertical-align: top; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 10px; top: -100px; z-index: 1000; background: var(--white); color: var(--heading); padding: 12px 20px; box-shadow: 0 0 4px rgba(0,0,0,.3); }
.skip-link:focus { top: 10px; }

/* 4. Layout helpers -------------------------------------------------------
   .container  = centered page-width wrapper
   .sec        = a full-width content band (one per old Elementor section)
   .row / .col = columns; a .col's width is set with style="--w:40%".
                 Columns stack full-width below 768px.                       */
.container { max-width: calc(var(--wide) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
/* Like the old builder, sections have no side gutter: content spacing comes from the 10px column padding */
.sec { position: relative; }
.sec > .inner.pad, .sec--first > .inner > .text:only-child { padding-left: 10px; padding-right: 10px; }
.sec > .inner { max-width: var(--content); margin: 0 auto; position: relative; z-index: 1; }
.sec--first { padding-top: 60px; }
.sec--last { padding-bottom: 60px; }
.row { display: flex; flex-wrap: wrap; gap: var(--gap, 20px); }
/* stacked blocks are 20px apart (the old widget spacing); a box can change it with style="--stack:10px" */
.col, .box { --stack: 20px; }
.inner > * + *, .col > * + *, .box > * + * { margin-top: var(--stack, 20px); }
.col { flex: 1 1 0; min-width: 0; padding: 10px; }
.row.legacy { flex-wrap: nowrap; gap: 0; }
.row.legacy > .col { padding: var(--colpad, 10px); }
.row.legacy > .col[style*="--w:"] { flex: 0 1 var(--w); }
.box { padding: 10px; }
.col[style*="--w:"] { flex: 0 0 calc(var(--w) - var(--gap, 20px) * (1 - var(--w) / 100%)); }
.grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: var(--gap, 20px); }
@media (max-width: 767px) { .grid { grid-template-columns: 1fr; } }
.v-center { align-items: center; }
.v-center-self { align-self: center; }
/* Phones: columns go full width; buttons and other blocks placed side by side just wrap */
@media (max-width: 767px) {
  .row, .row.legacy { flex-wrap: wrap; }
  .row > .col, .row > .col[style*="--w:"], .row.legacy > .col[style*="--w:"] { flex: 0 0 100%; width: 100%; }
}
.row > .btn-wrap.full .btn { flex: none; }
/* Sections with a photo behind them (home page). Pass the image with style="--bg:url(...)" */
.sec--photo { color: var(--white); isolation: isolate; }
.sec.flex-center { display: flex; align-items: center; }
.sec.flex-center > .inner { width: 100%; }
.sec--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg) center / cover no-repeat; }
.sec--photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--overlay, rgba(31,31,31,.6)); }
.sec--photo h1, .sec--photo h2, .sec--photo h3, .sec--photo h4, .sec--photo h5, .sec--photo h6 { color: var(--white); }

/* Tablet / phone overrides carried over from the old page builder.
   A block can set e.g. style="padding-top:120px; --pt-m:40px" — the --x-t value
   applies at 1024px and below, --x-m at 767px and below. */
@media (max-width: 1024px) {
  [style*="--pt-t:"] { padding-top: var(--pt-t) !important; }
  [style*="--pb-t:"] { padding-bottom: var(--pb-t) !important; }
  [style*="--pl-t:"] { padding-left: var(--pl-t) !important; }
  [style*="--pr-t:"] { padding-right: var(--pr-t) !important; }
  [style*="--mt-t:"] { margin-top: var(--mt-t) !important; }
  [style*="--mb-t:"] { margin-bottom: var(--mb-t) !important; }
  [style*="--mh-t:"] { min-height: var(--mh-t) !important; }
  [style*="--pad-t:"] { padding: var(--pad-t) !important; }
  .col[style*="--w-t:"] { flex: 0 0 calc(var(--w-t) - var(--gap, 20px) * (1 - var(--w-t) / 100%)) !important; }
  .row:has(> .col[style*="--w-t:"]) { flex-wrap: wrap; }
}
@media (max-width: 767px) {
  [style*="--pt-m:"] { padding-top: var(--pt-m) !important; }
  [style*="--pb-m:"] { padding-bottom: var(--pb-m) !important; }
  [style*="--pl-m:"] { padding-left: var(--pl-m) !important; }
  [style*="--pr-m:"] { padding-right: var(--pr-m) !important; }
  [style*="--mt-m:"] { margin-top: var(--mt-m) !important; }
  [style*="--mb-m:"] { margin-bottom: var(--mb-m) !important; }
  [style*="--mh-m:"] { min-height: var(--mh-m) !important; }
  [style*="--pad-m:"] { padding: var(--pad-m) !important; }
  .col[style*="--w-t:"] { flex: 0 0 100% !important; }   /* phones: full width unless a phone width is given */
  .col[style*="--w-m:"] { flex: 0 0 var(--w-m) !important; }
}

/* 5. Header & nav ---------------------------------------------------------- */
/* Whole header (gray top bar + logo/menu bar) stays pinned to the top while scrolling */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); }
.top-bar { background: var(--gray-light); }
.top-bar__inner { display: flex; align-items: center; gap: 20px; min-height: 51px; }
.top-bar__inner > .btn:first-child { margin-right: auto; }
.btn, .gform_button, button.btn { display: inline-block; background: var(--green); color: var(--white); border: 0; border-radius: 0; padding: 12px 20px; font: inherit; font-size: 15px; line-height: 1; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s; }
.btn:hover, .btn:focus, button.btn:hover { background: var(--green-dark); color: var(--white); }
.social-link { color: #0a66c2; display: inline-flex; }
.social-link svg { width: 26px; height: 26px; }
.social-link:hover { color: var(--green); }

.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.nav .menu > li { position: relative; }
.nav a, .nav .sub-toggle--label { color: var(--heading); text-decoration: none; font: inherit; }
.nav a:hover, .nav .current > a, .nav .current > .sub-toggle, .nav a[aria-current="page"] { color: var(--blue); }
.nav--top .menu > li > a, .nav--top .menu > li > .sub-toggle--label { display: flex; align-items: center; padding: 0 15px; line-height: 51px; }
.nav--main .menu > li > a, .nav--main .menu > li > .sub-toggle--label { display: flex; align-items: center; padding: 0 15px; line-height: 78px; }
.sub-toggle { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.nav .sub-toggle--label::after { content: ""; width: 6px; height: 6px; margin: -3px 0 0 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.nav .sub-menu { list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 0; width: 300px; background: var(--white); border-top: 2px solid var(--green); box-shadow: 0 4px 10px -2px rgba(0,0,0,.1); z-index: 10; display: none; }
/* closed dropdowns take up no space (so narrow windows never scroll sideways); open ones fade in */
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu, .nav .sub-menu.open { display: block; animation: dropdown .2s ease-out; }
@keyframes dropdown { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .nav .sub-menu { animation: none !important; } }
.nav .sub-menu a { display: block; padding: 13.5px 15px; line-height: 1.45; border-bottom: 1px solid #eaeaea; }
.nav .sub-menu li:last-child a { border-bottom: 0; }
/* dropdowns near the right edge open leftward so they stay on screen */
.nav .menu > li:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }

.main-bar { background: var(--white); border-bottom: 1px solid #eaeaea; }
.main-bar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; }
.logo { display: flex; align-items: center; gap: 20px; line-height: 0; }
.logo__mark { width: 70px; }
.logo__name { width: 260px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; color: var(--green); cursor: pointer; line-height: 0; }
.menu-toggle .icon-close, .menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: inline; }
.mobile-menu { display: none; }

/* Shrinking menu bar: once the page is scrolled (js adds .is-scrolled), the white
   logo/menu bar eases from 78px to 62px tall with a slightly smaller logo. Desktop only. */
@media (min-width: 1025px) {
  .main-bar__inner { transition: min-height .25s ease; }
  .nav--main .menu > li > a, .nav--main .menu > li > .sub-toggle--label { transition: line-height .25s ease; }
  .logo__mark, .logo__name { transition: width .25s ease; }
  .is-scrolled .main-bar__inner { min-height: 62px; }
  .is-scrolled .nav--main .menu > li > a, .is-scrolled .nav--main .menu > li > .sub-toggle--label { line-height: 62px; }
  .is-scrolled .logo__mark { width: 56px; }
  .is-scrolled .logo__name { width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .main-bar__inner, .nav--main .menu > li > a, .nav--main .menu > li > .sub-toggle--label, .logo__mark, .logo__name { transition: none !important; }
}

/* Never let menu labels or header buttons wrap onto two lines */
.nav a, .nav .sub-toggle--label, .top-bar .btn { white-space: nowrap; }
.nav .sub-menu a { white-space: normal; }

/* Narrow desktop windows (1025–1180px): compact header so everything stays on one line */
@media (min-width: 1025px) and (max-width: 1180px) {
  .top-bar__inner { gap: 12px; }
  .top-bar .btn { padding: 12px 14px; }
  .nav--top .menu > li > a, .nav--top .menu > li > .sub-toggle--label,
  .nav--main .menu > li > a, .nav--main .menu > li > .sub-toggle--label { padding: 0 9px; }
  .logo { gap: 12px; }
  .logo__mark { width: 56px; }
  .logo__name { width: 210px; }
  .is-scrolled .logo__mark { width: 50px; }
  .is-scrolled .logo__name { width: 190px; }
}

/* Hamburger menu at tablet size and below (the full desktop header needs ~1025px+) */
@media (max-width: 1024px) {
  .top-bar, .nav--main { display: none; }
  .main-bar__inner { min-height: 76px; }
  .logo { gap: 12px; }
  .logo__mark { width: 56px; }
  .logo__name { width: 200px; }
  .menu-toggle { display: block; }
  /* Mobile menu scrolls inside itself when it's taller than the screen (landscape phones) */
  .mobile-menu.open { display: block; max-height: calc(100vh - 77px); max-height: calc(100dvh - 77px); overflow-y: auto; border-top: 1px solid #eaeaea; }
  .mobile-menu .menu { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li { position: relative; border-bottom: 1px solid #eaeaea; }
  .mobile-menu a, .mobile-menu .sub-toggle--label { display: block; width: 100%; text-align: left; padding: 12px 20px; color: var(--heading); text-decoration: none; font: inherit; }
  .mobile-menu .current > a, .mobile-menu a[aria-current="page"] { color: var(--blue); }
  .mobile-menu a:hover, .mobile-menu a:focus-visible, .mobile-menu .sub-toggle--label:hover, .mobile-menu .sub-toggle--label:focus-visible { background: var(--gray-light); color: var(--green); }
  .mobile-menu .sub-toggle--label { position: relative; }
  .mobile-menu .sub-toggle--label::after { content: ""; position: absolute; right: 24px; top: 50%; width: 7px; height: 7px; margin-top: -6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s; }
  .mobile-menu .sub-toggle--label[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
  .mobile-menu .sub-menu { display: none; list-style: none; margin: 0; padding: 0; border-top: 1px solid #eaeaea; }
  .mobile-menu .sub-menu.open { display: block; }
  .mobile-menu .sub-menu li:last-child { border-bottom: 0; }
  .mobile-menu .sub-menu a { padding-left: 40px; }
}

/* 6. Page banner (title + breadcrumbs on every inner page) ------------------ */
.page-banner { position: relative; background: #1f1f1f url(/images/homepage-bg.webp) center / cover no-repeat; color: var(--white); text-align: center; padding: 6% 0; isolation: isolate; }
.page-banner::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: -1; }
.page-banner h1 { color: var(--white); font-size: 60px; line-height: 1.2; margin: 0; }
.breadcrumbs ol { list-style: none; margin: 15px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.breadcrumbs li + li::before { content: "»"; margin: 0 .3em; }
.breadcrumbs a { color: var(--white); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
@media (max-width: 921px) { .page-banner h1 { font-size: 30px; margin-bottom: 20px; } }

/* 7. Content blocks ---------------------------------------------------------- */
.text { display: flow-root; }   /* contains floated images */
.text p { margin-bottom: 1.6em; }
.text > :last-child { margin-bottom: 0; }
/* WordPress image alignment classes inside text */
.alignleft { float: left; margin-right: 2em; }
.alignright { float: right; margin-left: 2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone { display: inline-block; }
@media (max-width: 767px) {   /* phones: floated images sit on their own line with space below (the old site had none) */
  .text .alignleft, .text .alignright { float: none; display: block; margin: 0 auto 1.5em; }
}
.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }
.wp-caption-text { font-size: .9em; text-align: center; margin: 8px 0 0; }
.heading, .btn-wrap { margin-bottom: 0; }   /* headings placed as blocks have no margin; spacing comes from the column gap */
.center { text-align: center; }
.right { text-align: right; }
figure { margin: 0; }
figcaption { font-size: .9em; text-align: center; margin-top: 8px; }
.img.center img, figure.center img { margin: 0 auto; }
.img img { display: inline-block; }
.btn-wrap { display: flex; }
.btn-wrap.center { justify-content: center; }
.btn-wrap.right { justify-content: flex-end; }
.btn-wrap.full .btn { flex: 1; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-row.center { justify-content: center; }
.video { position: relative; aspect-ratio: var(--ratio, 16 / 9); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* Click-to-play video: shows a local thumbnail; the Vimeo player only loads when clicked (much faster pages) */
.video__play { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.video__play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video__play::after { content: ""; position: absolute; left: 50%; top: 50%; width: 66px; height: 40px; margin: -20px 0 0 -33px; border-radius: 5px; background: rgba(23,35,34,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M5 3l12 7-12 7z'/%3E%3C/svg%3E") center / 20px no-repeat; transition: background-color .2s; }
.video__play:hover::after, .video__play:focus-visible::after { background-color: #00adef; }
.video__play:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.divider { width: 50px; height: 34px; margin-left: auto; margin-right: auto; padding: 15px 0; border: 0; background: #bdbdbd content-box; }
.quote { background: var(--gray-light); padding: 30px; margin-left: 0; margin-right: 0; margin-bottom: 0; color: #3f444b; }   /* top margin comes from the 20px block spacing, so stacked quotes stay separated */
.quote > p { font-style: italic; margin: 0 0 24px; }
.quote > p:last-child { margin-bottom: 0; }
.quote cite { font-style: normal; font-weight: 700; }
/* Accordions / toggles (old Elementor accordion) use native <details> — no JS needed */
.accordion { border: 1px solid #d5d8dc; }
.accordion details + details { border-top: 1px solid #d5d8dc; }
.accordion summary { list-style: none; cursor: pointer; padding: 15px 20px; font-weight: 700; line-height: 1; color: var(--heading); display: flex; align-items: center; gap: 10px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::before { content: "+"; font-size: 1.2em; width: 1em; flex: none; }
.accordion details[open] > summary::before { content: "–"; }
.accordion summary span { text-decoration: underline; }
.accordion .panel { padding: 15px 20px; border-top: 1px solid #d5d8dc; }
.accordion .panel > :last-child { margin-bottom: 0; }
@media (max-width: 767px) { .accordion summary { padding: 12px 15px; } .accordion .panel { padding: 7px 15px; } }

/* Testimonial slider (home page) */
.slider { position: relative; padding: 0 28px 40px; }
.slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; text-align: center; padding: 20px; }
.slide blockquote { margin: 0; position: relative; background: var(--white); border: 1px solid var(--gray-light); padding: 20px; font-size: 17px; line-height: 1.5; font-style: italic; }
.slide blockquote::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 14px; height: 14px; margin-left: -7px; background: var(--white); border: solid var(--gray-light); border-width: 0 1px 1px 0; transform: rotate(45deg); }
.slide cite { display: block; margin-top: 25px; font-style: normal; font-size: 14px; line-height: 21px; }
.slide cite strong { display: block; color: var(--heading); }
.slider__btn { position: absolute; top: calc(50% - 20px); transform: translateY(-50%); background: none; border: 0; padding: 0; width: 20px; height: 20px; cursor: pointer; color: var(--blue); }
.slider__btn svg { width: 20px; height: 20px; }
.slider__btn--prev { left: -10px; }
.slider__btn--next { right: -10px; }
.slider__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 12px; }
.slider__dots { gap: 0; bottom: 0; }
.slider__dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }   /* 24px tap area, 6px dot */
.slider__dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #000; opacity: .2; }
.slider__dots button[aria-current="true"]::before { opacity: 1; }
@media (max-width: 767px) { .slide blockquote { font-size: 15px; } }

/* Blog: post page + Tutorials list */
.sec > .inner:has(> .post-layout) { max-width: 1244px; }   /* blog pages use the wider theme container */
.post-layout { display: grid; grid-template-columns: 25% minmax(0, 1fr); gap: 36px; }
.post-layout--sidebar-right { grid-template-columns: minmax(0, 1fr) 25%; }
.sidebar__title { font-size: 1.8em; }
.sidebar ul { list-style: none; margin: 0; }
.sidebar li { padding-bottom: 7px; margin-bottom: 4px; }
.sidebar a { text-decoration: none; }
.post .sec { padding: 0; }
.post .sec + .sec { margin-top: 20px; }
.post-meta { margin: 0; }
.post-meta a { text-decoration: underline; }
.post-nav { display: flex; justify-content: space-between; margin-top: 60px; }
.post-nav a { text-decoration: none; }
.related { margin-top: 40px; }
.related > h2 { font-size: 2em; }
.related__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }
.related img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.related h3 { font-size: 1.3em; line-height: 1.1; margin: 10px 0 5px; }
.related h3 a { color: var(--heading); text-decoration: none; }
.related p a { text-decoration: none; }
@media (max-width: 544px) { .related__grid { grid-template-columns: 1fr; } }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; align-items: start; }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__body { padding: 20px; }
.card h2 { font-size: 1.5em; margin-bottom: 5px; }
.card h2 a { color: var(--heading); text-decoration: none; }
.card__cat { margin-bottom: 15px; }
.card__cat a { text-decoration: none; }
@media (max-width: 921px) {
  .post-layout, .post-layout--sidebar-right { grid-template-columns: 1fr; }
  .post-layout > .sidebar { order: 2; }
  .cards { grid-template-columns: 1fr; }
}

/* 8. Forms ------------------------------------------------------------------- */
.form .req-note { margin-bottom: 10px; font-size: 14px; }
.form .req { color: #c02b0a; }
.field { margin: 0 0 25px; border: 0; padding: 0; min-width: 0; }
.field > label, .field > legend, .field-label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 8px; color: var(--text); padding: 0; }
.field .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field .pair label { display: block; font-size: 15px; margin-top: 8px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { width: 100%; font: inherit; color: #666; background: #fafafa; border: 1px solid var(--border); border-radius: 2px; padding: 10px 8px; }
.form textarea { height: 288px; resize: vertical; }
.form input:focus, .form textarea:focus { color: #111; border-color: #999; outline: 2px solid var(--blue); outline-offset: 0; }
.form .hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .cf-turnstile { margin-bottom: 25px; min-height: 65px; }
.form-msg { padding: 15px 20px; margin-bottom: 25px; border: 1px solid; }
.form-msg:focus { outline: none; }
.form-msg--ok { border-color: var(--green); background: #eef5ee; color: #2c4a2e; }
.form-msg--err { border-color: #c02b0a; background: #fff2ef; color: #8a1f07; }
.field-error { color: #c02b0a; font-size: 14px; margin-top: 6px; }
@media (max-width: 640px) { .field .pair { grid-template-columns: 1fr; gap: 0; } .field .pair > div + div { margin-top: 12px; } }

.password-form { max-width: 520px; }
.password-row { display: flex; gap: 10px; }
.password-row input { flex: 1; width: auto; font: inherit; color: #666; background: #fafafa; border: 1px solid var(--border); border-radius: 2px; padding: 10px 8px; }

/* 9. Footer ------------------------------------------------------------------ */
.site-footer { color: var(--white); }
.footer-widgets { position: relative; background: #1f1f1f url(/images/homepage-bg.webp) center / cover no-repeat; padding: 115px 0; isolation: isolate; }
.footer-widgets::after { content: ""; position: absolute; inset: 0; background: rgba(31,31,31,.8); z-index: -1; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; text-align: center; }
.footer-title { font-size: 30px; color: var(--white); padding-bottom: 10px; margin: 0; }
.site-footer p { color: var(--white); margin-bottom: 1.75em; }
.footer-grid p:last-of-type { margin-bottom: 0; }
.footer-grid .btn { margin-top: 10px; border: 1px solid var(--white); }
.site-footer .footer-widgets a:not(.btn) { color: #e8f2e6; text-decoration: none; }
.footer-grid p { line-height: 24px; }   /* keeps stacked links far enough apart to tap */
.site-footer .footer-widgets a:not(.btn):hover { text-decoration: underline; }
.footer-bottom { background: var(--gray-light); color: var(--text); padding: 20px 0; font-size: 12px; }
.footer-bottom p { color: var(--text); margin: 0 0 12px; }
.copyright { text-align: justify; }
.credit { text-align: right; }
@media (max-width: 921px) { .footer-widgets { padding: 31px 0; } .footer-grid { grid-template-columns: 1fr; gap: 20px; } .site-footer .container { padding: 0 10px; } .footer-title { font-size: 20px; } }

/* 10. Utilities -------------------------------------------------------------- */
.to-top { position: fixed; right: 30px; bottom: 30px; z-index: 99; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--green); color: var(--white); border-radius: 2px; }
.to-top:hover { color: var(--white); background: var(--green-dark); }
.to-top[hidden] { display: none; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* Fixed ("parallax") backgrounds: hero/feature photos, page title banner, footer.
   Kept at the END of the file on purpose: the background shorthands above would
   otherwise reset it. Desktop only, since iOS/Android can't do fixed backgrounds
   properly, so phones and tablets get normal scrolling. */
@media (min-width: 1025px) and (hover: hover) {
  .sec--photo::before, .page-banner, .footer-widgets { background-attachment: fixed; }
}

/* Phones get the lighter, phone-sized background photos */
@media (max-width: 767px) {
  .page-banner, .footer-widgets { background-image: url(/images/homepage-bg-mobile.webp); }
  .sec--photo::before { background-image: var(--bg-m, var(--bg)); }
}
