/*
Theme Name: United Realty
Theme URI: https://unitedrealtyme.com
Author: United Realty
Author URI: https://unitedrealtyme.com
Description: Custom real estate theme for United Realty (Belfast, Maine). Modern refresh of the brand with a fully editable, form-based page editor powered by Advanced Custom Fields, plus an IDX Broker dynamic wrapper. Every piece of front-end text and imagery is editable from the WordPress admin without touching theme files.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: united-realty
Tags: real-estate, custom-theme, acf, idx-broker
*/

/* =========================================================================
   1. DESIGN TOKENS
   ========================================================================= */
:root {
  /* Brand palette (forest green + warm neutrals) */
  --ur-green:        #2f4a2b;
  --ur-green-600:    #35502f;
  --ur-green-700:    #263d22;
  --ur-green-900:    #1a2b16;
  --ur-green-tint:   #eef2ec;
  --ur-gold:         #b08d57;
  --ur-gold-dark:    #93733f;

  /* Neutrals */
  --ur-ink:          #20261f;
  --ur-body:         #414a3f;
  --ur-muted:        #6b7568;
  --ur-line:         #e3e7de;
  --ur-line-strong:  #cdd3c6;
  --ur-bg:           #ffffff;
  --ur-bg-alt:       #f6f7f3;
  --ur-footer:       #2f4a2b;
  --ur-footer-bottom:#20241d;

  /* Typography */
  --ur-serif: "Times New Roman", Times, Georgia, serif;
  --ur-sans:  "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Metrics */
  --ur-maxw: 1200px;
  --ur-gap:  clamp(1rem, 3vw, 2.5rem);
  --ur-radius: 10px;
  --ur-radius-sm: 6px;
  --ur-shadow: 0 10px 30px rgba(26, 43, 22, 0.08);
  --ur-shadow-sm: 0 4px 14px rgba(26, 43, 22, 0.07);
  --ur-transition: 200ms ease;
}

/* =========================================================================
   2. RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--ur-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ur-body);
  background: var(--ur-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ur-green); text-decoration: none; transition: color var(--ur-transition); }
a:hover { color: var(--ur-gold-dark); }

h1, h2, h3, h4 {
  font-family: var(--ur-serif);
  color: var(--ur-ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }

.ur-container {
  width: 100%;
  max-width: var(--ur-maxw);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.ur-section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.ur-section--alt { background: var(--ur-bg-alt); }
.ur-section--tint { background: var(--ur-green-tint); }

.ur-eyebrow {
  font-family: var(--ur-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ur-gold-dark);
  margin: 0 0 0.6rem;
}

.ur-section-head { max-width: 760px; margin-bottom: 2.4rem; }
.ur-section-head--center { margin-inline: auto; text-align: center; }
/* Italic serif line under a section heading, e.g. under "Meet The United Team". */
.ur-section-head__sub {
  font-family: var(--ur-serif); font-style: italic; font-weight: 700;
  font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.35;
  color: var(--ur-green-700); margin: -0.35rem 0 0;
}

.ur-lede { font-size: 1.12rem; color: var(--ur-muted); }

/* Screen-reader only */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ur-green);
  color: #fff; padding: 0.75rem 1.25rem; z-index: 1000;
}
.skip-link:focus { left: 0; }

/* =========================================================================
   3. BUTTONS
   ========================================================================= */
.ur-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ur-sans);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: var(--ur-radius-sm);
  border: 2px solid var(--ur-green);
  background: var(--ur-green);
  color: #fff;
  cursor: pointer;
  transition: background var(--ur-transition), color var(--ur-transition), transform var(--ur-transition), border-color var(--ur-transition);
  text-align: center;
}
.ur-btn:hover { background: var(--ur-green-700); border-color: var(--ur-green-700); color: #fff; transform: translateY(-1px); }
.ur-btn--ghost { background: transparent; color: var(--ur-green); }
.ur-btn--ghost:hover { background: var(--ur-green); color: #fff; }
.ur-btn--gold { background: var(--ur-gold); border-color: var(--ur-gold); }
.ur-btn--gold:hover { background: var(--ur-gold-dark); border-color: var(--ur-gold-dark); }
.ur-btn--light { background: #fff; color: var(--ur-green); border-color: #fff; }
.ur-btn--light:hover { background: transparent; color: #fff; }
.ur-btn--block { width: 100%; justify-content: center; }

/* =========================================================================
   4. UTILITY BAR
   ========================================================================= */
.ur-utilitybar {
  background: var(--ur-green-900);
  color: #d9e2d3;
  font-size: 0.86rem;
}
.ur-utilitybar a { color: #d9e2d3; }
.ur-utilitybar a:hover { color: #fff; }
.ur-utilitybar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: 0.5rem; flex-wrap: wrap;
}
.ur-utilitybar__group { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.ur-utilitybar__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.ur-utilitybar svg { width: 15px; height: 15px; flex: none; }

/* Phone gets extra prominence — it is the primary call to action. */
.ur-utilitybar__item--phone .ur-phone__label { color: #b8c7b1; }
.ur-utilitybar__item--phone .ur-phone__number {
  font-size: 1.35rem; font-weight: 700; color: #fff;
  letter-spacing: 0.01em; line-height: 1.1; white-space: nowrap;
}
.ur-utilitybar__item--phone .ur-phone__number:hover { color: var(--ur-gold); }
.ur-utilitybar__item--phone svg { width: 19px; height: 19px; }

/* =========================================================================
   5. HEADER / NAV
   ========================================================================= */
.ur-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--ur-line);
}
.ur-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}
/* Logo lockup: two centered lines set in Times New Roman. */
.ur-brand { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; line-height: 1.15; text-align: center; }
.ur-brand__img { max-height: 66px; width: auto; }
.ur-brand__text { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ur-brand__name {
  font-family: var(--ur-serif); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--ur-green); letter-spacing: 0.01em;
}
.ur-brand__meta {
  font-family: var(--ur-serif); font-size: clamp(0.95rem, 1.3vw, 1.15rem);
  color: var(--ur-ink); letter-spacing: 0.01em;
}

.ur-nav { display: flex; align-items: center; gap: 0.25rem; }
.ur-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; margin: 0; padding: 0; }
.ur-nav li { margin: 0; position: relative; }
.ur-nav a {
  display: block; padding: 0.6rem 0.9rem; border-radius: var(--ur-radius-sm);
  font-family: var(--ur-sans); font-weight: 600; font-size: 0.98rem; color: var(--ur-ink);
}
.ur-nav a:hover, .ur-nav .current-menu-item > a { color: var(--ur-green); background: var(--ur-green-tint); }
.ur-nav .menu-item-has-children > a::after { content: "▾"; font-size: 0.7em; margin-left: 0.35rem; color: var(--ur-muted); }

/* Dropdown */
.ur-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: #fff; border: 1px solid var(--ur-line); border-radius: var(--ur-radius-sm);
  box-shadow: var(--ur-shadow); padding: 0.4rem; flex-direction: column; gap: 0;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--ur-transition), transform var(--ur-transition), visibility var(--ur-transition);
  z-index: 20;
}
.ur-nav li:hover > .sub-menu, .ur-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.ur-nav .sub-menu a { width: 100%; }

.ur-header__actions { display: flex; align-items: center; gap: 0.6rem; }
.ur-header__cta { white-space: nowrap; }

/* Mobile toggle */
.ur-navtoggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--ur-line-strong);
  border-radius: var(--ur-radius-sm); background: #fff; cursor: pointer; padding: 0 10px;
}
.ur-navtoggle span { height: 2px; background: var(--ur-ink); border-radius: 2px; transition: transform var(--ur-transition), opacity var(--ur-transition); }
.ur-navtoggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ur-navtoggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ur-navtoggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================================
   6. HERO
   ========================================================================= */
.ur-hero { position: relative; background: var(--ur-green-900); overflow: hidden; }
/* The hero shows the whole photo uncropped, so its height follows the image's
   own proportions (--ur-hero-ratio is written inline from the actual file).
   Media and overlay share one grid cell, so the section takes whichever is
   taller: the photo, or the copy on a narrow screen. Nothing gets clipped. */
.ur-hero__viewport { position: relative; display: grid; }
.ur-hero__media {
  grid-area: 1 / 1; position: relative; z-index: 0;
  aspect-ratio: var(--ur-hero-ratio, 1204 / 817);
  min-height: clamp(340px, 42vh, 460px);
}
.ur-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; margin: 0; max-width: none; }
.ur-hero__overlay {
  grid-area: 1 / 1; position: relative; z-index: 2;
  /* Copy sits in the top half so it stays above the fold on a tall hero, so
     the scrim darkens the top and clears by mid-image — leaving the harbour
     and the tugs in the lower half untouched. */
  background: linear-gradient(180deg,
    rgba(26,43,22,0.68) 0%,
    rgba(26,43,22,0.54) 22%,
    rgba(26,43,22,0.24) 42%,
    rgba(26,43,22,0.05) 62%,
    rgba(26,43,22,0.00) 84%,
    rgba(26,43,22,0.10) 100%);
  display: flex; align-items: flex-start;
}
/* Hero copy is centred; the headline is held to a width that breaks it over
   two lines instead of one long ribbon. */
.ur-hero__content { padding-block: clamp(2rem, 6vw, 4rem); color: #fff; max-width: 1040px; margin-inline: auto; text-align: center; }
.ur-hero__content h1 {
  /* Wide enough that the headline sets on two balanced lines rather than
     stacking. 15em holds roughly half the default headline per line. */
  color: #fff; margin: 0 auto; max-width: 15.6em;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem); line-height: 1.14; letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 2px 26px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.35);
}
.ur-hero__content p { color: #eef2ec; font-size: 1.15rem; margin: 0.85rem auto 0; max-width: 46ch; text-shadow: 0 1px 12px rgba(0,0,0,0.45); }
.ur-hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 1.4rem; }

/* =========================================================================
   6b. TAGLINE BAND + PHOTO SLIDER (directly under the hero)
   ========================================================================= */
/* The company line, set large in Times New Roman, bold and italic. */
.ur-tagline-band { background: var(--ur-bg); padding-block: clamp(1.5rem, 3.5vw, 2.5rem); }
.ur-tagline {
  font-family: var(--ur-serif); font-weight: 700; font-style: italic;
  font-size: clamp(1.5rem, 3.2vw, 2.5rem); line-height: 1.25;
  color: var(--ur-green-700); text-align: center;
  max-width: 26ch; margin: 0 auto; text-wrap: balance;
}

.ur-slider-band { padding-bottom: clamp(1.5rem, 4vw, 3rem); }

/* Slides stack on top of each other and cross-fade. The viewport keeps the
   photos' own 940 x 318 proportions so nothing is cropped. */
.ur-slider { position: relative; }
.ur-slider__viewport {
  position: relative; display: grid; aspect-ratio: 940 / 318;
  overflow: hidden; border-radius: var(--ur-radius);
  background: var(--ur-bg-alt); box-shadow: var(--ur-shadow-sm);
}
.ur-slider__slide {
  grid-area: 1 / 1; margin: 0; opacity: 0;
  transition: opacity 700ms ease; pointer-events: none;
}
.ur-slider__slide.is-active { opacity: 1; pointer-events: auto; }
.ur-slider__img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; max-width: none; }

/* Arrows sit inside the frame and step back on smaller screens. */
.ur-slider__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85); color: var(--ur-green-900);
  font-size: 1.9rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding: 0 0 0.2rem;
  box-shadow: var(--ur-shadow-sm); transition: background var(--ur-transition);
}
.ur-slider__nav:hover, .ur-slider__nav:focus-visible { background: #fff; }
.ur-slider__nav--prev { left: 0.85rem; }
.ur-slider__nav--next { right: 0.85rem; }

.ur-slider__dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.ur-slider__dot {
  width: 10px; height: 10px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--ur-green-700); background: transparent;
  transition: background var(--ur-transition);
}
.ur-slider__dot.is-active { background: var(--ur-green-700); }

@media (max-width: 640px) {
  .ur-slider__nav { width: 36px; height: 36px; font-size: 1.5rem; }
  .ur-slider__nav--prev { left: 0.4rem; }
  .ur-slider__nav--next { right: 0.4rem; }
}

/* Visitors who ask for reduced motion get a plain swap, no fade. */
@media (prefers-reduced-motion: reduce) {
  .ur-slider__slide { transition: none; }
}

/* =========================================================================
   7. FEATURE CARDS (Buy / Sell / Contact)
   ========================================================================= */
.ur-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ur-gap); }
.ur-card {
  background: #fff; border: 1px solid var(--ur-line); border-radius: var(--ur-radius);
  padding: 2rem 1.75rem; text-align: center; box-shadow: var(--ur-shadow-sm);
  transition: transform var(--ur-transition), box-shadow var(--ur-transition), border-color var(--ur-transition);
  display: flex; flex-direction: column;
}
.ur-card:hover { transform: translateY(-4px); box-shadow: var(--ur-shadow); border-color: var(--ur-line-strong); }
.ur-card__icon {
  width: 74px; height: 74px; margin: 0 auto 1.2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--ur-green-tint); color: var(--ur-green);
}
.ur-card__icon svg { width: 34px; height: 34px; }
.ur-card h3 { margin-bottom: 0.5rem; }
.ur-card p { color: var(--ur-muted); flex: 1; }
.ur-card__link { font-weight: 700; margin-top: 0.75rem; display: inline-flex; align-items: center; gap: 0.35rem; }

/* =========================================================================
   8. IDX EMBED AREAS
   ========================================================================= */
.ur-idx-embed { width: 100%; }
.ur-idx-embed :where(iframe, img) { max-width: 100%; }
.ur-idx-placeholder {
  border: 2px dashed var(--ur-line-strong); border-radius: var(--ur-radius);
  background: var(--ur-bg-alt); padding: 2.5rem 1.5rem; text-align: center; color: var(--ur-muted);
}
.ur-idx-placeholder strong { color: var(--ur-ink); display: block; margin-bottom: 0.35rem; font-size: 1.05rem; }
.ur-idx-placeholder code { background: #fff; border: 1px solid var(--ur-line); padding: 0.1rem 0.4rem; border-radius: 4px; font-size: 0.85em; }

/* =========================================================================
   9. WELCOME / SPLIT
   ========================================================================= */
.ur-split { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ur-split__aside { text-align: center; }
/* Award badge / seal */
.ur-badge {
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  text-align: center; padding: 1rem 0.5rem;
}
.ur-badge__seal {
  position: relative; width: 158px; height: 158px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 50% 34%, #ecd6a4 0%, #c8a063 46%, #9c7a41 100%);
  box-shadow: 0 16px 34px rgba(147,115,63,0.38), inset 0 3px 7px rgba(255,255,255,0.55), inset 0 -7px 16px rgba(120,90,40,0.4);
}
.ur-badge__seal svg { width: 60px; height: 60px; position: relative; filter: drop-shadow(0 2px 3px rgba(120,90,40,0.45)); }
.ur-badge__ring { position: absolute; inset: 13px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.7); pointer-events: none; }
/* Two-line accolade: large award line, smaller supporting line beneath.
   Shared by the Home page badge and the About page signature block. */
.ur-accolade { text-align: center; margin: 0 auto; max-width: 30ch; }
.ur-accolade__lead {
  font-family: var(--ur-serif); font-weight: 700;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem); line-height: 1.2;
  color: var(--ur-green-700); margin: 0;
}
/* The awarding board, set small directly under the award line. */
.ur-accolade__org {
  font-family: var(--ur-serif); font-weight: 400;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem); line-height: 1.3;
  color: var(--ur-body); margin: 0.15rem 0 0;
}
.ur-accolade__sub {
  font-family: var(--ur-serif); font-weight: 400;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem); line-height: 1.35;
  color: var(--ur-green-700); margin: 0.4rem 0 0;
}
.ur-badge__img img { margin: 0 auto; max-height: 220px; width: auto; }

/* =========================================================================
   10. AGENTS
   ========================================================================= */
.ur-agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--ur-gap); }
.ur-agent {
  background: #fff; border: 1px solid var(--ur-line); border-radius: var(--ur-radius);
  overflow: hidden; box-shadow: var(--ur-shadow-sm); display: flex; flex-direction: column;
}
.ur-agent__photo { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--ur-green-tint); }
.ur-agent__body { padding: 1.4rem 1.5rem; }
.ur-agent__name { font-family: var(--ur-serif); font-weight: 700; font-size: 1.55rem; color: var(--ur-ink); margin: 0; }
/* Set in Times at a readable size in dark green — the gold was too light to
   read comfortably against white. */
.ur-agent__title {
  font-family: var(--ur-serif); font-weight: 700; font-size: 1.2rem; line-height: 1.3;
  color: var(--ur-green-700); margin: 0.2rem 0 1rem;
}
/* Award line — Realtor of the Year is a significant accolade, so it is set the
   same way as the line under the Best of the Best badge (large Times italic in
   dark green) rather than as a small uppercase pill. */
.ur-agent__award {
  font-family: var(--ur-serif); font-weight: 700; font-style: italic;
  font-size: clamp(1.15rem, 1.9vw, 1.4rem); line-height: 1.25;
  color: var(--ur-green-700); margin: 0 0 0.15rem;
}
/* The awarding board, set small underneath. */
.ur-agent__award-org {
  font-family: var(--ur-serif); font-size: 0.95rem; line-height: 1.3;
  color: var(--ur-body); margin: 0 0 0.95rem;
}
.ur-agent__meta { list-style: none; padding: 0; margin: 0; font-size: 1.05rem; }
/* Keep the gap before the contact list when the board line is not shown. */
.ur-agent__award + .ur-agent__meta { margin-top: 0.95rem; }
.ur-agent__meta li { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; color: var(--ur-ink); }
.ur-agent__meta svg { width: 16px; height: 16px; color: var(--ur-green); flex: none; }
/* About page: one block per broker/owner, separated by a hairline rule. */
.ur-about-profile + .ur-about-profile {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--ur-line);
}
/* Placeholder shown to logged-in editors only, where a bio is still empty. */
.ur-editor-note {
  font-family: var(--ur-sans); font-size: 0.92rem; color: var(--ur-muted);
  background: var(--ur-bg-alt); border: 1px dashed var(--ur-line-strong);
  border-radius: var(--ur-radius-sm); padding: 0.85rem 1rem;
}
.ur-agent__bio { font-size: 0.96rem; color: var(--ur-body); margin-top: 0.9rem; }
.ur-agent__bio p { margin: 0 0 0.7em; }
.ur-agent__bio p:last-child { margin-bottom: 0; }
.ur-agent__creds { font-size: 0.95rem; color: var(--ur-body); margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--ur-line); }

/* =========================================================================
   11. PAGE HERO / BREADCRUMB / CONTENT
   ========================================================================= */
.ur-pagehero {
  background: var(--ur-green-900); color: #fff; position: relative;
  background-size: cover; background-position: center;
}
.ur-pagehero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,43,22,0.55), rgba(26,43,22,0.78)); }
.ur-pagehero__inner { position: relative; z-index: 1; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.ur-pagehero h1 { color: #fff; margin: 0; }
.ur-breadcrumb { font-size: 0.9rem; color: rgba(255,255,255,0.8); margin-bottom: 0.6rem; }
.ur-breadcrumb a { color: rgba(255,255,255,0.85); }
.ur-breadcrumb a:hover { color: #fff; }
.ur-breadcrumb span { opacity: 0.6; margin-inline: 0.4rem; }

.ur-layout { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
.ur-layout--sidebar { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }

.ur-prose h2 { margin-top: 2rem; }
.ur-prose h3 { margin-top: 1.6rem; color: var(--ur-green); }
.ur-prose ul { list-style: none; padding-left: 0; }
.ur-prose ul li { position: relative; padding-left: 1.75rem; margin-bottom: 0.6rem; }
.ur-prose ul li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 0.6rem; height: 0.6rem;
  border-radius: 2px; background: var(--ur-gold); transform: rotate(45deg);
}
.ur-prose a { text-decoration: underline; text-underline-offset: 3px; }

.ur-anchor-nav {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; padding: 0; list-style: none;
}
.ur-anchor-nav a {
  display: inline-block; padding: 0.4rem 0.9rem; border: 1px solid var(--ur-line-strong);
  border-radius: 999px; font-size: 0.9rem; font-weight: 600;
}
.ur-anchor-nav a:hover { background: var(--ur-green); color: #fff; border-color: var(--ur-green); }

.ur-content-block { margin-bottom: 2rem; scroll-margin-top: 120px; }
.ur-content-block > h2 {
  font-size: 1.4rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--ur-green-tint); color: var(--ur-green);
}

/* =========================================================================
   12. CONTACT FORM
   ========================================================================= */
.ur-formcard {
  background: #fff; border: 1px solid var(--ur-line); border-radius: var(--ur-radius);
  box-shadow: var(--ur-shadow-sm); overflow: hidden; position: sticky; top: 110px;
}
.ur-formcard__head { background: var(--ur-green); color: #fff; padding: 1rem 1.4rem; font-family: var(--ur-serif); font-size: 1.2rem; }
.ur-formcard__body { padding: 1.4rem; }
.ur-form .ur-field { margin-bottom: 0.9rem; }
.ur-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ur-ink); margin-bottom: 0.3rem; }
.ur-form input, .ur-form textarea, .ur-form select {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--ur-line-strong);
  border-radius: var(--ur-radius-sm); font-family: inherit; font-size: 1rem; color: var(--ur-ink); background: #fff;
  transition: border-color var(--ur-transition), box-shadow var(--ur-transition);
}
.ur-form input:focus, .ur-form textarea:focus, .ur-form select:focus {
  outline: none; border-color: var(--ur-green); box-shadow: 0 0 0 3px rgba(47,74,43,0.12);
}
.ur-form textarea { resize: vertical; min-height: 120px; }
.ur-form__notice { padding: 0.85rem 1rem; border-radius: var(--ur-radius-sm); margin-bottom: 1rem; font-size: 0.95rem; }
.ur-form__notice--ok { background: #e7f3e2; color: #245018; border: 1px solid #b7d8ab; }
.ur-form__notice--err { background: #fdECEC; color: #8a2020; border: 1px solid #f2c2c2; }
.ur-form__hp { position: absolute; left: -9999px; }

/* =========================================================================
   13. FOOTER
   ========================================================================= */
.ur-footer { background: var(--ur-footer); color: #d7e0d1; padding-block: clamp(2.5rem, 5vw, 3.5rem) 0; }
.ur-footer a { color: #d7e0d1; }
.ur-footer a:hover { color: #fff; }
/* =========================================================================
   SIGNATURE BLOCK (About page, under the biography)
   ========================================================================= */
.ur-sig {
  margin: 2.2rem 0 1.6rem;
  padding: 1.5rem 1.6rem;
  background: var(--ur-bg-alt);
  border: 1px solid var(--ur-line);
  border-left: 4px solid var(--ur-gold);
  border-radius: var(--ur-radius-sm);
  overflow: hidden;
}
.ur-sig p { margin: 0; }
/* The accolade opens the signature block, left-aligned with the rest of it. */
.ur-accolade--sig {
  text-align: left; max-width: none;
  margin: 0 0 1.1rem; padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--ur-line);
}
.ur-sig .ur-accolade__sub { margin-top: 0.35rem; }
.ur-sig__name {
  font-family: var(--ur-serif); font-weight: 700;
  font-size: 1.35rem; color: var(--ur-ink); line-height: 1.25;
}
.ur-sig__role {
  font-family: var(--ur-sans); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ur-green); margin-top: 0.15rem !important;
}
.ur-sig__org { margin-top: 0.6rem !important; color: var(--ur-body); line-height: 1.5; }
.ur-sig__contact {
  list-style: none; padding: 0;
  margin: 1rem 0 0 !important;
  display: flex; flex-wrap: wrap; gap: 0.45rem 1.5rem;
  font-size: 0.96rem;
}
.ur-sig__contact li { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; }
.ur-sig__contact svg { width: 16px; height: 16px; flex: none; color: var(--ur-green); }

.ur-footer__tagline {
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: clamp(1.3rem, 3vw, 1.9rem);
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}
.ur-footer__tagline p {
  margin: 0; text-align: center; color: #fff;
  font-family: var(--ur-serif); font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.3;
}
.ur-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.ur-footer__col h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.ur-footer__col ul { list-style: none; padding: 0; margin: 0; }
.ur-footer__col li { margin-bottom: 0.55rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.ur-footer__col svg { width: 16px; height: 16px; flex: none; margin-top: 0.28rem; color: #a9c19c; }
.ur-social { display: flex; gap: 0.6rem; }
.ur-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.1); display: grid; place-items: center; }
.ur-social a:hover { background: rgba(255,255,255,0.22); }
.ur-social svg { width: 20px; height: 20px; color: #fff; }
.ur-footer__feature img { border-radius: var(--ur-radius-sm); margin-bottom: 0.5rem; }
.ur-footer__bottom { background: var(--ur-footer-bottom); color: #9aa694; margin-top: 2.5rem; padding-block: 1rem; font-size: 0.85rem; }
.ur-footer__bottom .ur-container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between; align-items: center; }
.ur-footer__legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.ur-footer__legal a { color: #9aa694; }

/* =========================================================================
   14. IDX WRAPPER
   ========================================================================= */
.ur-idx-wrapper { padding-block: clamp(1.5rem, 4vw, 2.5rem); min-height: 50vh; }
.ur-idx-wrapper .ur-container { max-width: var(--ur-maxw); }

/* =========================================================================
   15. HELPERS
   ========================================================================= */
.ur-mt-0 { margin-top: 0; }
.ur-center { text-align: center; }
[hidden] { display: none !important; }

/* =========================================================================
   16. RESPONSIVE
   ========================================================================= */
@media (max-width: 980px) {
  .ur-cards { grid-template-columns: 1fr; }
  .ur-split { grid-template-columns: 1fr; }
  .ur-layout--sidebar { grid-template-columns: 1fr; }
  .ur-formcard { position: static; }
}

@media (max-width: 860px) {
  .ur-navtoggle { display: flex; }
  .ur-header__cta,
  .ur-header__actions--desktop { display: none; }

  /* Full-width dropdown panel that opens directly below the header. */
  .ur-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 0.5rem clamp(1rem, 5vw, 2rem) 1.25rem;
    border-top: 1px solid var(--ur-line);
    box-shadow: 0 24px 44px rgba(20, 24, 18, 0.18);
    max-height: 80vh; overflow-y: auto; -webkit-overflow-scrolling: touch;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    pointer-events: none; z-index: 95;
  }
  .ur-nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
  .ur-nav ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; margin: 0; padding: 0; }
  .ur-nav li { width: 100%; }
  .ur-nav a { display: block; padding: 0.95rem 0.5rem; border-radius: 0; border-bottom: 1px solid var(--ur-line); }
  .ur-nav > .ur-menu > li:last-child > a { border-bottom: none; }
  .ur-nav .menu-item-has-children > a::after { float: right; }
  .ur-nav .sub-menu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: none; padding: 0 0 0 1rem; min-width: 0;
  }
  .ur-nav__cta-mobile { display: block; margin-top: 0.85rem; }
  .ur-nav__cta-mobile .ur-btn { width: 100%; justify-content: center; }

  .ur-nav-backdrop { position: fixed; inset: 0; background: rgba(20,24,18,0.4); z-index: 80; opacity: 0; visibility: hidden; transition: opacity var(--ur-transition); }
  .ur-nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.ur-nav-locked { overflow: hidden; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .ur-utilitybar { font-size: 0.8rem; }
  .ur-utilitybar__inner { justify-content: center; }
  .ur-hero__actions .ur-btn { flex: 1 1 auto; justify-content: center; }
  /* Scale the headline with the phone's width so it still sets on two lines. */
  .ur-hero__content h1 { font-size: clamp(1.35rem, 5.6vw, 1.9rem); }
  /* Keep both logo lines on phones, just a touch tighter. */
  .ur-brand__name { font-size: 1.65rem; }
  .ur-brand__meta { font-size: 0.9rem; }
}

/* Print */
@media print {
  .ur-utilitybar, .ur-header, .ur-footer, .ur-formcard { display: none; }
}

/* =========================================================================
   17. SUPPLEMENTAL (about grid, blog, idx region, mobile CTA)
   ========================================================================= */
.ur-nav__cta-mobile { display: none; }
.ur-idx-content { min-height: 200px; }

.ur-postlist { display: grid; gap: 2.5rem; max-width: 820px; }
.ur-postcard { border-bottom: 1px solid var(--ur-line); padding-bottom: 2rem; }
.ur-post-meta { color: var(--ur-muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.ur-pagination { margin-top: 2.5rem; }
.ur-pagination .page-numbers {
  display: inline-block; padding: 0.5rem 0.85rem; margin-right: 0.35rem;
  border: 1px solid var(--ur-line-strong); border-radius: var(--ur-radius-sm); font-weight: 600;
}
.ur-pagination .page-numbers.current { background: var(--ur-green); color: #fff; border-color: var(--ur-green); }

@media (max-width: 720px) {
  .ur-about-grid { grid-template-columns: 1fr !important; }
  .ur-about-grid .ur-agent { max-width: 340px; margin-inline: auto; }
}

@media (max-width: 860px) {
  .ur-nav__cta-mobile { display: block; margin-top: 1.25rem; }
  .ur-nav__cta-mobile .ur-btn { width: 100%; justify-content: center; }
}
