:root {
    --forest: #2B4A2B;
    --forest-light: #3a6b3a;
    --sage: #708F70;
    --sage-light: #a0b8a0;
    --cream: #F2C98A;
    --cream-light: #faf3e8;
    --cream-dark: #e8b86d;
    --white: #ffffff;
    --text: #2a2a2a;
    --border: #d4c4a0;
    --font-blakely: 'blakely', sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: 'Lato', sans-serif; color: var(--text); background: var(--white); }

  /* ── ROOT FONT-SIZE FIX (OceanWP) ─────────────────────────────────────
   * OceanWP forces the root <html> font-size to 10px, which silently
   * shrinks every rem value on this page to 62.5% of intended size.
   * Scoped to this page's body class only. !important added defensively
   * in case OceanWP's own rule carries higher specificity/priority.
   */
  html:has(body.mhv-homepage) { font-size: 16px !important; }
  body.mhv-homepage { font-size: 16px !important; }

  /* ── BLAKELY UTILITIES ──────────────────────────────────────────────────
   * Adobe Fonts (Typekit) kit hns4hdg, loaded via <link> in front-page.php.
   * Caps-only design — Adobe's spacing is optimized for all-caps text.
   */
  .font-blakely-light {
    font-family: var(--font-blakely);
    font-weight: 300;
    font-style: normal;
    text-transform: uppercase;
  }
  .font-blakely-bold {
    font-family: var(--font-blakely);
    font-weight: 700;
    font-style: normal;
    text-transform: uppercase;
  }

  /* ── HEADER ── */
  header {
    position: sticky; top: 0; z-index: 100;
    background: var(--forest);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 82px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  }
  .header-logo { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
  .logo-img { height: 64px; width: auto; }
  .site-name {
    font-family: 'Playfair Display', serif; color: var(--cream);
    font-size: 1.1rem; font-weight: 600; line-height: 1.2;
  }
  .site-name span {
    display: block; font-size: 0.76rem; font-family: 'Lato', sans-serif;
    font-weight: 300; letter-spacing: 0.15em; color: var(--sage-light); text-transform: uppercase;
  }
  .header-nav { display: flex; align-items: center; gap: 0.5rem; }
  .header-select {
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
    color: var(--white); padding: 0.4rem 0.75rem; border-radius: 4px;
    font-family: 'Lato', sans-serif; font-size: 0.85rem; cursor: pointer; min-width: 210px;
  }
  .header-select option { color: #222; background: white; }
  .header-btn {
    background: var(--cream); color: var(--forest); border: none;
    padding: 0.4rem 1rem; border-radius: 4px;
    font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.85rem; cursor: pointer;
    transition: background 0.2s;
  }
  .header-btn:hover { background: var(--cream-dark); }

  /* ── MISSION STRIP ── */
  .mission-strip {
    background: var(--cream-light);
    border-bottom: 2px solid var(--border);
    padding: 0.85rem 2rem;
    display: flex; align-items: baseline; gap: 1.5rem; flex-wrap: wrap;
  }
  .mission-text { max-width: 640px; margin: 0; color: var(--forest); font-size: 0.92rem; font-weight: 400; line-height: 1.5; }
  .mission-link {
    color: var(--forest); font-weight: 700; font-size: 0.85rem;
    text-decoration: underline; text-underline-offset: 3px; letter-spacing: 0.02em;
    white-space: nowrap; transition: color 0.15s;
  }
  .mission-link:hover { color: var(--sage); }

  /* ── HOME HERO WRAP — carousel + gallery, reorders on mobile ── */
  .home-hero-wrap {
    display: flex;
    flex-direction: column;
  }

  /* ── CAROUSEL — compact, static split-layout slides, no click nav ── */
  .carousel-band {
    order: 1; /* desktop default: carousel appears first */
    width: 100%;
    background: var(--forest);
  }
  .carousel-compact {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 300px;
    overflow: hidden;
  }
  .carousel-compact .slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease;
  }
  .carousel-compact .slide.active { opacity: 1; }

  .slide-split { display: flex; }
  .slide-split-left {
    flex: 0 0 42%;
    background: var(--forest);
    display: flex; flex-direction: column; justify-content: center;
    padding: 2rem 2.5rem;
  }
  .slide-split-headline {
    font-family: 'Playfair Display', serif; font-weight: 700;
    color: var(--white); font-size: 1.9rem; line-height: 1.15; margin-bottom: 0.75rem;
  }
  .slide-split-body {
    color: rgba(255,255,255,0.78); font-size: 0.92rem; font-weight: 300; line-height: 1.55;
    max-width: 380px;
  }
  .slide-split-right { flex: 1; position: relative; overflow: hidden; }
  .slide-split-right img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    display: block;
  }

  .carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.28); border: none; color: white;
    width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem;
    cursor: pointer; z-index: 10; transition: background 0.2s;
    display: flex; align-items: center; justify-content: center;
  }
  .carousel-arrow:hover { background: rgba(0,0,0,0.6); }
  .arrow-prev { left: 0.75rem; } .arrow-next { right: 0.75rem; }
  .carousel-dots {
    position: absolute; bottom: 0.9rem; left: 42%; transform: translateX(-50%);
    display: flex; gap: 0.4rem; z-index: 10;
  }
  .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: rgba(255,255,255,0.32); cursor: pointer; border: none; transition: all 0.3s;
  }
  .dot.active { background: var(--cream); transform: scale(1.3); }

  /* ── PRODUCT GALLERY — floating/windowless tiles, responsive auto-fit ── */
  .product-gallery {
    order: 2; /* desktop default: gallery appears second, below the carousel */
    background: var(--cream-light);
    padding: 2.5rem 2rem;
  }
  .product-gallery-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: start;
    gap: 1.5rem 1rem;
    max-width: 1180px;
    margin: 0 auto;
  }
  .gallery-intro {
    grid-column: 1 / -1;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: left;
    margin-bottom: 0.5rem;
  }
  .gallery-intro-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--forest);
    font-size: 1.5rem;
    letter-spacing: 0.01em;
  }
  .gallery-intro-sub {
    color: var(--sage);
    font-size: 0.88rem;
    font-style: italic;
  }
  .gallery-tile {
    display: block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
  }
  .gallery-tile-img-wrap {
    position: relative;
    width: 100%;
  }
  .gallery-tile-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.18));
    transition: opacity 0.25s ease;
  }
  .gallery-label {
    margin-top: 0.6rem;
    color: var(--forest);
    font-size: 1.25rem;
    line-height: 1.3;
    letter-spacing: 0.04em;
  }

  /* Pill overlay — click-to-reveal, dims image, stacks pills centered over it */
  .gallery-pills {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease;
  }
  .gallery-tile[data-has-pills="true"].active .gallery-tile-img-wrap img { opacity: 0.35; }
  .gallery-tile[data-has-pills="true"].active .gallery-pills { opacity: 1; pointer-events: auto; }
  .gallery-pill {
    background: var(--forest); color: var(--cream-light);
    font-family: 'Lato', sans-serif; font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.45rem 1.4rem; border-radius: 3px; text-decoration: none;
    transition: background 0.15s;
  }
  .gallery-pill:hover { background: var(--forest-light); }

  /* ── SEARCH SECTION ── */
  .search-section { background: var(--cream-light); border-bottom: 2px solid var(--border); padding: 1.5rem 2rem; }
  .search-inner { max-width: 960px; margin: 0 auto; display: flex; gap: 1.5rem; align-items: flex-end; flex-wrap: wrap; }
  .search-group { flex: 1; min-width: 240px; }
  .search-label { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin-bottom: 0.4rem; }
  .search-select, .search-input {
    width: 100%; padding: 0.85rem 0.9rem; border: 1.5px solid var(--border);
    border-radius: 4px; font-family: 'Lato', sans-serif; font-size: 0.9rem;
    background: white; color: var(--text); appearance: none;
    line-height: 1.4;
  }
  .search-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23708F70'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2rem;
  }
  .search-row { display: flex; align-items: flex-end; gap: 0.5rem; flex: 1; min-width: 240px; }
  .search-row .search-group { min-width: 0; }
  .search-btn {
    background: var(--forest); color: var(--cream); border: none;
    padding: 0.85rem 1.75rem; border-radius: 4px; font-family: 'Lato', sans-serif;
    font-weight: 700; font-size: 0.85rem; cursor: pointer;
    letter-spacing: 0.05em; text-transform: uppercase; white-space: nowrap; transition: background 0.2s;
  }
  .search-btn:hover { background: var(--forest-light); }
  .search-note { font-size: 0.76rem; color: var(--sage); margin-top: 0.7rem; font-style: italic; }
  .search-autocomplete { position: relative; }
  .autocomplete-list {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 20;
    background: white; border: 1.5px solid var(--border); border-top: none;
    border-radius: 0 0 4px 4px; max-height: 220px; overflow-y: auto;
    display: none; box-shadow: 0 6px 16px rgba(0,0,0,0.12);
  }
  .autocomplete-list.show { display: block; }
  .autocomplete-list div { padding: 0.5rem 0.9rem; font-size: 0.86rem; cursor: pointer; color: var(--text); }
  .autocomplete-list div:hover, .autocomplete-list div.highlighted { background: var(--cream-light); color: var(--forest); }
  .autocomplete-list .ac-seealso { color: var(--sage); font-size: 0.76rem; font-style: italic; }

  /* ── MAP SECTION ── */
  .map-section { background: var(--cream-light); border-top: 2px solid var(--border); border-bottom: 2px solid var(--border); padding: 3.5rem 2rem; }
  .section-header { text-align: center; margin-bottom: 2.5rem; }
  .section-label { font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--sage); font-weight: 700; margin-bottom: 0.5rem; display: block; }
  .section-title { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--forest); line-height: 1.2; }
  .section-divider { width: 48px; height: 3px; background: var(--cream-dark); margin: 1rem auto 0; border-radius: 2px; }

  .map-widget { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 2.5rem; align-items: start; }
  .map-image-col { position: sticky; top: 80px; }
  .map-img { width: 100%; border-radius: 6px; display: block; transition: opacity 0.3s; }
  .map-caption { text-align: center; margin-top: 0.75rem; font-size: 0.75rem; color: var(--sage); font-style: italic; }

  .map-level-label { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--forest); font-weight: 600; margin-bottom: 0.35rem; }
  .map-level-sub { font-size: 0.8rem; color: var(--sage); margin-bottom: 1.25rem; font-style: italic; }

  .back-link {
    display: inline-flex; align-items: center; gap: 0.4rem; color: var(--sage);
    font-size: 0.78rem; cursor: pointer; margin-bottom: 1rem; font-weight: 700;
    letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none;
    border: none; background: none; padding: 0;
  }
  .back-link:hover { color: var(--forest); }

  .county-list { list-style: none; columns: 2; column-gap: 1.5rem; }
  .county-list li { padding: 0.2rem 0; break-inside: avoid; }
  .county-list li button {
    background: none; border: none; padding: 0;
    font-family: 'Lato', sans-serif; font-size: 0.88rem; color: var(--forest);
    cursor: pointer; transition: color 0.15s; line-height: 1.65; text-align: left;
  }
  .county-list li button:hover { color: var(--sage); text-decoration: underline; }

  .town-list { list-style: none; columns: 2; column-gap: 1rem; }
  .town-list li { padding: 0.18rem 0; break-inside: avoid; }
  .town-list li a { color: var(--forest); text-decoration: none; font-size: 0.87rem; transition: color 0.15s; line-height: 1.6; }
  .town-list li a:hover { color: var(--sage); text-decoration: underline; }
  .town-village { color: var(--sage) !important; font-size: 0.8rem !important; padding-left: 0.75rem; }
  .town-village::before { content: "↳ "; }
  .see-also { color: var(--sage); font-size: 0.73rem; font-style: italic; margin-left: 0.25rem; }

  /* ── COMMUNITY ── */
  .community-section { background: var(--forest); text-align: center; padding: 2.5rem 2rem; }
  .community-section .section-label { color: var(--sage-light); }
  .community-section .section-title { color: var(--cream); font-size: 1.7rem; }
  .community-section .community-text { font-size: 0.88rem; margin-top: 1.1rem; }
  .community-section .section-divider { background: var(--sage); }
  .community-text { max-width: 640px; margin: 1.5rem auto 0; color: rgba(255,255,255,0.72); font-size: 0.95rem; line-height: 1.75; font-weight: 300; }
  .community-cta {
    display: inline-block; margin-top: 1.75rem; background: var(--cream); color: var(--forest);
    padding: 0.7rem 2rem; border-radius: 4px; font-family: 'Lato', sans-serif;
    font-weight: 700; font-size: 0.85rem; text-decoration: none;
    letter-spacing: 0.05em; text-transform: uppercase; transition: background 0.2s;
  }
  .community-cta:hover { background: var(--cream-dark); }

  /* ── FOOTER ── */
  footer { background: #191919; padding: 2.5rem 2rem; display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; align-items: flex-start; }
  .footer-logo-img { height: 48px; }
  .footer-brand-name { font-family: 'Playfair Display', serif; color: var(--cream); font-size: 1rem; margin-top: 0.4rem; }
  .footer-brand-sub { font-family: 'Lato', sans-serif; font-size: 0.72rem; color: var(--sage); font-weight: 300; margin-top: 0.2rem; letter-spacing: 0.08em; }
  .footer-policy { font-size: 0.76rem; color: rgba(255,255,255,0.38); max-width: 400px; line-height: 1.65; }
  .footer-policy strong { color: rgba(255,255,255,0.62); }
  .footer-links { display: flex; flex-direction: column; gap: 0.45rem; }
  .footer-links a { color: var(--sage-light); text-decoration: none; font-size: 0.8rem; transition: color 0.15s; }
  .footer-links a:hover { color: var(--cream); }
  .footer-bottom { width: 100%; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 1.1rem; font-size: 0.7rem; color: rgba(255,255,255,0.22); text-align: center; letter-spacing: 0.04em; }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    .mission-strip { padding: 0.7rem 1.25rem; gap: 1rem; }
    .mission-text { font-size: 0.82rem; }
    .mission-link { font-size: 0.78rem; }

    /* Mobile: gallery appears ABOVE the carousel — order values flip */
    .product-gallery { order: 1; padding: 1.5rem 1rem; }
    .product-gallery-inner { grid-template-columns: repeat(2, 1fr); gap: 1.25rem 0.75rem; }
    .carousel-band { order: 2; }
    .carousel-compact { height: 380px; }

    .slide-split { flex-direction: column; }
    .slide-split-left { flex: 0 0 auto; padding: 1.25rem 1.5rem; }
    .slide-split-headline { font-size: 1.3rem; }
    .slide-split-body { font-size: 0.82rem; max-width: 100%; }
    .slide-split-right { flex: 1; }
    .carousel-dots { left: 50%; }

    .map-widget { grid-template-columns: 1fr; }
    .map-section { display: none; }

    .site-name { display: none; }
    .search-row { width: 100%; }
  }
