/*
Theme Name: Darren Martin Custom
Theme URI: http://darrenmartinrealty-custom-local.test/
Author: Local Recovery Project
Description: Lightweight custom theme for Darren Martin Realty with native WordPress and RealtyPress integration.
Version: 1.3.2
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: darren-martin-custom
*/

:root {
  --dmr-navy: #0b2638;
  --dmr-navy-soft: #173b50;
  --dmr-ink: #15232c;
  --dmr-copy: #41515c;
  --dmr-muted: #6f7d85;
  --dmr-yellow: #ffea00;
  --dmr-yellow-dark: #e0cd00;
  --dmr-sand: #f3f1ea;
  --dmr-mist: #f5f7f8;
  --dmr-white: #ffffff;
  --dmr-border: #dce3e7;
  --dmr-shadow: 0 18px 45px rgba(11, 38, 56, 0.12);
  --dmr-radius: 18px;
  --dmr-shell: 1180px;
  --dmr-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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

body.menu-open {
  overflow: hidden;
}

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

figure {
  margin: 0;
}

a {
  color: var(--dmr-navy-soft);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus {
  color: var(--dmr-navy);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65em;
  color: var(--dmr-ink);
  font-family: var(--dmr-font);
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

h1 { font-size: clamp(2.55rem, 5.2vw, 5.25rem); }
h2 { font-size: clamp(2.05rem, 3.8vw, 3.7rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

p,
ul,
ol {
  margin: 0 0 1.25rem;
}

ul,
ol {
  padding-left: 1.35rem;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-shell {
  margin-inline: auto;
  max-width: var(--dmr-shell);
  padding-inline: 28px;
  width: 100%;
}

.site-main {
  min-height: 65vh;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus,
.skip-link:focus {
  background: var(--dmr-white);
  clip: auto !important;
  clip-path: none;
  color: var(--dmr-navy);
  display: block;
  font-weight: 700;
  height: auto;
  left: 12px;
  padding: 12px 18px;
  top: 12px;
  width: auto;
  z-index: 100000;
}

:focus-visible {
  outline: 3px solid var(--dmr-yellow);
  outline-offset: 3px;
}

/* Header */
.site-header {
  background: rgba(7, 24, 35, 0.96);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1);
  color: var(--dmr-white);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  transition: background-color 180ms ease, box-shadow 180ms ease;
  z-index: 1000;
}

.dmr-front-page .site-header {
  background: linear-gradient(180deg, rgba(5, 18, 27, 0.92), rgba(5, 18, 27, 0.45) 70%, transparent);
  box-shadow: none;
  margin-bottom: -98px;
}

.dmr-front-page .site-header.is-scrolled {
  background: rgba(7, 24, 35, 0.97);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  align-items: center;
  display: flex;
  gap: 28px;
  height: 98px;
  justify-content: space-between;
}

.site-brand {
  flex: 0 0 auto;
  position: relative;
  z-index: 1002;
}

.site-brand img {
  height: auto;
  width: 160px;
}

.primary-navigation {
  align-items: center;
  display: flex;
  gap: 21px;
  margin-left: auto;
}

.primary-menu,
.primary-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  align-items: center;
  display: flex;
  gap: 25px;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  color: var(--dmr-white);
  display: block;
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 0.035em;
  padding-block: 14px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.primary-menu > li > a::after {
  background: var(--dmr-yellow);
  bottom: 7px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 150ms ease;
  width: 100%;
}

.primary-menu > li:hover > a::after,
.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-ancestor > a::after {
  transform: scaleX(1);
}

.primary-menu .sub-menu {
  background: var(--dmr-white);
  border-radius: 10px;
  box-shadow: var(--dmr-shadow);
  left: -18px;
  min-width: 245px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: calc(100% - 2px);
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  border-radius: 7px;
  color: var(--dmr-ink);
  font-size: 0.76rem;
  padding: 10px 12px;
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus {
  background: var(--dmr-mist);
}

.header-socials {
  align-items: center;
  display: flex;
  gap: 7px;
}

.header-socials a {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--dmr-white);
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  text-decoration: none;
  width: 28px;
}

.header-socials a:hover,
.header-socials a:focus {
  background: var(--dmr-yellow);
  border-color: var(--dmr-yellow);
  color: var(--dmr-navy);
}

.menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  justify-content: center;
  padding: 10px;
  position: relative;
  z-index: 1002;
}

.menu-toggle span:not(.screen-reader-text) {
  background: var(--dmr-white);
  border-radius: 2px;
  height: 2px;
  transition: transform 150ms ease, opacity 150ms ease;
  width: 27px;
}

.menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.button,
button.button,
input[type="submit"].button {
  align-items: center;
  background: var(--dmr-yellow);
  border: 2px solid var(--dmr-yellow);
  border-radius: 4px;
  color: var(--dmr-navy);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  letter-spacing: 0.025em;
  min-height: 52px;
  padding: 13px 23px;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover,
.button:focus {
  background: var(--dmr-white);
  border-color: var(--dmr-white);
  color: var(--dmr-navy);
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 9px 18px;
}

.button-outline {
  background: transparent;
  border-color: var(--dmr-navy);
  color: var(--dmr-navy);
}

.button-outline:hover,
.button-outline:focus {
  background: var(--dmr-navy);
  border-color: var(--dmr-navy);
  color: var(--dmr-white);
}

.button-light-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--dmr-white);
}

.button-light-outline:hover,
.button-light-outline:focus {
  background: var(--dmr-white);
  border-color: var(--dmr-white);
  color: var(--dmr-navy);
}

/* Shared section styles */
.section {
  padding-block: clamp(72px, 8vw, 112px);
}

.section-soft { background: var(--dmr-mist); }
.section-sand { background: var(--dmr-sand); }
.section-dark { background: var(--dmr-navy); color: rgba(255, 255, 255, 0.82); }
.section-dark h2,
.section-dark h3 { color: var(--dmr-white); }

.eyebrow {
  color: var(--dmr-navy-soft);
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.section-dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
  color: var(--dmr-yellow);
}

.section-heading {
  margin-bottom: 45px;
  max-width: 760px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading p {
  font-size: 1.08rem;
  margin-bottom: 0;
  max-width: 680px;
}

.section-heading.centered p {
  margin-inline: auto;
}

.split {
  align-items: center;
  display: grid;
  gap: clamp(38px, 6vw, 78px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.split.reverse .split-media { order: 2; }
.split.reverse .split-content { order: 1; }

.split-media img {
  border-radius: var(--dmr-radius);
  box-shadow: var(--dmr-shadow);
  width: 100%;
}

.split-content > :last-child { margin-bottom: 0; }

.actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}

/* Homepage */
.hero {
  align-items: center;
  background-color: var(--dmr-navy);
  background-image: var(--hero-image);
  background-position: center;
  background-size: cover;
  color: var(--dmr-white);
  display: flex;
  isolation: isolate;
  min-height: 790px;
  overflow: hidden;
  padding: 160px 0 100px;
  position: relative;
}

.hero-video {
  height: 100%;
  inset: 0;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 0;
}

.hero::before {
  background: linear-gradient(90deg, rgba(4, 19, 28, 0.9) 0%, rgba(4, 19, 28, 0.68) 48%, rgba(4, 19, 28, 0.25) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.hero::after {
  background: linear-gradient(180deg, transparent 75%, rgba(5, 19, 28, 0.45));
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 3;
}

.hero-copy {
  max-width: 880px;
}

.hero h1 {
  color: var(--dmr-white);
  font-size: clamp(2.8rem, 5.6vw, 5.6rem);
  max-width: 950px;
  text-transform: uppercase;
}

.hero-subtitle {
  color: var(--dmr-white);
  font-size: clamp(1.4rem, 2.5vw, 2.3rem);
  font-weight: 780;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  font-weight: 620;
  max-width: 780px;
}

.hero .actions { margin-top: 34px; }

.feature-strip {
  background: var(--dmr-navy);
  color: var(--dmr-white);
}

.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.feature-strip-item {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  padding: 31px 28px;
  text-align: center;
}

.feature-strip-item:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.feature-strip-item strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.025em;
}

.feature-strip-item span {
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.83rem;
}

.service-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background: var(--dmr-white);
  border: 1px solid var(--dmr-border);
  border-radius: var(--dmr-radius);
  box-shadow: 0 12px 35px rgba(11, 38, 56, 0.07);
  padding: 38px;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover {
  box-shadow: var(--dmr-shadow);
  transform: translateY(-5px);
}

.service-icon {
  align-items: center;
  background: linear-gradient(145deg, var(--dmr-navy), var(--dmr-navy-soft));
  border: 1px solid rgba(255, 234, 0, 0.46);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(11, 38, 56, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: var(--dmr-white);
  display: flex;
  height: 76px;
  justify-content: center;
  margin-bottom: 25px;
  position: relative;
  transition: box-shadow 180ms ease, transform 180ms ease;
  width: 76px;
}

.service-icon::after {
  background: var(--dmr-yellow);
  border-radius: 999px;
  content: "";
  height: 7px;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 7px;
}

.service-card:hover .service-icon {
  box-shadow: 0 16px 28px rgba(11, 38, 56, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.service-icon-svg {
  fill: none;
  height: 43px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.15;
  width: 43px;
}

.service-icon-svg .icon-accent {
  stroke: var(--dmr-yellow);
}

.service-card p { min-height: 8.5em; }
.service-card a:not(.button) { font-weight: 800; }

.approach-panel {
  background: var(--dmr-navy);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.78);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  overflow: hidden;
}

.approach-panel h2 { color: var(--dmr-white); }

.approach-copy {
  align-self: center;
  padding: clamp(44px, 6vw, 78px);
}

.approach-image {
  min-height: 580px;
}

.approach-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.story-grid {
  align-items: center;
  display: grid;
  gap: clamp(38px, 6vw, 78px);
  grid-template-columns: 0.85fr 1.15fr;
}

.story-grid img {
  border-radius: var(--dmr-radius);
  max-height: 700px;
  object-fit: cover;
  width: 100%;
}

.reviews-cta {
  align-items: center;
  background: linear-gradient(135deg, #0b2638, #1f5069);
  border-radius: 24px;
  color: rgba(255, 255, 255, 0.82);
  display: grid;
  gap: 35px;
  grid-template-columns: 1fr auto;
  padding: clamp(38px, 5vw, 64px);
}

.reviews-cta h2 { color: var(--dmr-white); }
.reviews-cta p { margin-bottom: 0; max-width: 720px; }

.stars {
  color: var(--dmr-yellow);
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  margin-bottom: 10px;
}

/* Cards and archives */
.card-grid,
.post-grid,
.property-grid,
.resource-grid {
  display: grid;
  gap: 27px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card,
.property-card,
.resource-card {
  background: var(--dmr-white);
  border: 1px solid var(--dmr-border);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(11, 38, 56, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.post-card:hover,
.property-card:hover,
.resource-card:hover {
  box-shadow: var(--dmr-shadow);
  transform: translateY(-4px);
}

.card-media {
  aspect-ratio: 16 / 10;
  background: var(--dmr-mist);
  overflow: hidden;
}

.card-media img {
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
  width: 100%;
}

.post-card:hover .card-media img,
.property-card:hover .card-media img,
.resource-card:hover .card-media img {
  transform: scale(1.025);
}

.card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px;
}

.card-content h2,
.card-content h3 {
  font-size: 1.35rem;
}

.card-content h2 a,
.card-content h3 a {
  color: var(--dmr-ink);
  text-decoration: none;
}

.card-content p { font-size: 0.96rem; }
.card-content .card-link { font-weight: 800; margin-top: auto; }

.post-meta,
.property-meta {
  color: var(--dmr-muted);
  font-size: 0.79rem;
  font-weight: 650;
  letter-spacing: 0.045em;
  margin-bottom: 11px;
  text-transform: uppercase;
}

.property-price {
  color: var(--dmr-navy);
  font-size: 1.18rem;
  font-weight: 850;
  margin-bottom: 7px;
}

.status-badge {
  background: var(--dmr-yellow);
  border-radius: 999px;
  color: var(--dmr-navy);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 850;
  left: 16px;
  letter-spacing: 0.06em;
  padding: 7px 11px;
  position: absolute;
  text-transform: uppercase;
  top: 16px;
  z-index: 1;
}

.property-card .card-media { position: relative; }

.pagination,
.nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 45px;
}

a.page-numbers,
span.page-numbers {
  align-items: center;
  border: 1px solid var(--dmr-border);
  border-radius: 6px;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding-inline: 10px;
  text-decoration: none;
}

.page-numbers.current,
a.page-numbers:hover,
a.page-numbers:focus {
  background: var(--dmr-navy);
  border-color: var(--dmr-navy);
  color: var(--dmr-white);
}

ul.page-numbers {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.page-numbers > li {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.page-numbers > li::marker { content: ""; }

.featured-pagination {
  clear: both;
  margin-top: 45px;
  width: 100%;
}

.featured-pagination ul.page-numbers { margin: 0; }

/* Interior pages */
.page-hero {
  align-items: end;
  background-color: var(--dmr-navy);
  background-image: linear-gradient(90deg, rgba(4, 19, 28, 0.91), rgba(4, 19, 28, 0.52)), var(--page-hero-image);
  background-position: center;
  background-size: cover;
  color: var(--dmr-white);
  display: flex;
  min-height: 410px;
  padding: 135px 0 75px;
}

.page-hero h1 {
  color: var(--dmr-white);
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  max-width: 850px;
}

.page-hero p {
  font-size: 1.1rem;
  margin-bottom: 0;
  max-width: 740px;
}

.entry-content {
  margin-inline: auto;
  max-width: 860px;
}

.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content img { border-radius: 12px; }
.entry-content h2,
.entry-content h3 { margin-top: 1.35em; }
.entry-content a { font-weight: 650; }

.listing-search-page .entry-content,
.realtypress-shell {
  max-width: none;
}

.listing-search-intro {
  margin-bottom: 38px;
  max-width: 820px;
}

.listing-search-page .entry-content > a[role="button"] {
  display: none;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 50px;
}

.jump-links a {
  background: var(--dmr-white);
  border: 1px solid var(--dmr-border);
  border-radius: 999px;
  color: var(--dmr-navy);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 8px 15px;
  text-decoration: none;
}

.jump-links a:hover,
.jump-links a:focus {
  background: var(--dmr-navy);
  border-color: var(--dmr-navy);
  color: var(--dmr-white);
}

.service-detail {
  border-top: 1px solid var(--dmr-border);
  display: grid;
  gap: 40px;
  grid-template-columns: 0.65fr 1.35fr;
  padding-block: 58px;
}

.service-detail:first-of-type { border-top: 0; padding-top: 0; }

.detail-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 30px;
}

.detail-card {
  background: var(--dmr-mist);
  border-radius: 12px;
  padding: 24px;
}

.detail-card h3 { font-size: 1.1rem; }
.detail-card p { font-size: 0.92rem; margin-bottom: 0; }

.resource-card .card-media {
  aspect-ratio: 1 / 1;
}

.resource-card .card-media img {
  object-fit: contain;
  padding: 18px;
}

/* Contact */
.contact-grid {
  align-items: start;
  display: grid;
  gap: clamp(40px, 7vw, 90px);
  grid-template-columns: 0.8fr 1.2fr;
}

.contact-details {
  background: var(--dmr-navy);
  border-radius: var(--dmr-radius);
  color: rgba(255, 255, 255, 0.78);
  padding: 42px;
}

.contact-details h2,
.contact-details h3 { color: var(--dmr-white); }
.contact-details a { color: var(--dmr-white); }
.contact-details address { font-style: normal; }

.contact-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.contact-list li {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-block: 18px;
}

.contact-list strong {
  color: var(--dmr-yellow);
  display: block;
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 19px;
  grid-template-columns: 1fr 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-field.full { grid-column: 1 / -1; }

.form-field label {
  color: var(--dmr-ink);
  font-size: 0.82rem;
  font-weight: 780;
}

.form-field input,
.form-field select,
.form-field textarea {
  background: var(--dmr-white);
  border: 1px solid #bdc9cf;
  border-radius: 7px;
  color: var(--dmr-ink);
  min-height: 51px;
  padding: 12px 14px;
  width: 100%;
}

.form-field textarea {
  min-height: 165px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--dmr-navy);
  box-shadow: 0 0 0 3px rgba(23, 59, 80, 0.13);
  outline: 0;
}

.form-honeypot {
  left: -9999px;
  position: absolute;
}

.form-notice {
  border-radius: 8px;
  font-weight: 650;
  margin-bottom: 24px;
  padding: 13px 16px;
}

.form-notice.success { background: #e6f5eb; color: #165c31; }
.form-notice.error { background: #fff0ef; color: #922b24; }

/* Frequently asked questions */
.faq-layout {
  align-items: start;
  display: grid;
  gap: clamp(45px, 7vw, 95px);
  grid-template-columns: minmax(250px, 0.72fr) minmax(0, 1.28fr);
}

.faq-heading {
  position: sticky;
  top: 125px;
}

.faq-heading .button { margin-top: 12px; }

.faq-list {
  border-top: 1px solid var(--dmr-border);
}

.faq-item {
  border-bottom: 1px solid var(--dmr-border);
}

.faq-item summary {
  align-items: center;
  color: var(--dmr-ink);
  cursor: pointer;
  display: flex;
  font-size: clamp(1.02rem, 1.6vw, 1.22rem);
  font-weight: 800;
  gap: 20px;
  justify-content: space-between;
  list-style: none;
  padding: 25px 0;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  align-items: center;
  background: var(--dmr-yellow);
  border-radius: 50%;
  color: var(--dmr-navy);
  content: "+";
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 1.25rem;
  height: 34px;
  justify-content: center;
}

.faq-item[open] summary::after { content: "−"; }

.faq-answer {
  max-width: 760px;
  padding: 0 54px 24px 0;
}

.faq-answer p { margin: 0; }

/* Single posts */
.single-article {
  margin-inline: auto;
  max-width: 900px;
}

.single-article .featured-image {
  border-radius: var(--dmr-radius);
  margin-bottom: 45px;
  overflow: hidden;
}

.single-article .featured-image img {
  width: 100%;
}

.single-property-layout {
  align-items: start;
  display: grid;
  gap: 45px;
  grid-template-columns: 1.15fr 0.85fr;
}

.property-summary {
  background: var(--dmr-mist);
  border-radius: var(--dmr-radius);
  padding: 35px;
  position: sticky;
  top: 125px;
}

.property-summary dl { margin: 0; }
.property-summary dt { color: var(--dmr-muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.property-summary dd { border-bottom: 1px solid var(--dmr-border); color: var(--dmr-ink); font-size: 1.05rem; margin: 0 0 17px; padding: 3px 0 17px; }

.property-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.property-actions .button { margin: 0; }

/* RealtyPress: preserve its required plugin markup while fitting the theme. */
.dmr-realtypress-view .site-main,
.bootstrap-realtypress {
  background: var(--dmr-white);
}

.bootstrap-realtypress {
  color: var(--dmr-copy);
  padding-block: 55px 85px;
}

.bootstrap-realtypress .container {
  max-width: var(--dmr-shell) !important;
  padding-inline: 28px;
  width: 100% !important;
}

.bootstrap-realtypress h1,
.bootstrap-realtypress h2,
.bootstrap-realtypress h3,
.bootstrap-realtypress h4,
.bootstrap-realtypress h5 {
  color: var(--dmr-ink);
  font-family: var(--dmr-font);
}

.bootstrap-realtypress .btn-primary,
.bootstrap-realtypress .rps-btn-primary,
.bootstrap-realtypress input[type="submit"] {
  background-color: var(--dmr-navy) !important;
  border-color: var(--dmr-navy) !important;
}

.bootstrap-realtypress a { color: var(--dmr-navy-soft); }
.bootstrap-realtypress .panel,
.bootstrap-realtypress .card { border-color: var(--dmr-border); box-shadow: none; }

/* Footer */
.site-footer {
  background: var(--dmr-navy);
  color: rgba(255, 255, 255, 0.72);
}

.footer-main {
  background-image: linear-gradient(rgba(5, 22, 32, 0.92), rgba(5, 22, 32, 0.96)), url("../../uploads/2025/02/grey-county-real-estate-darren-market-scaled.jpg.webp");
  background-position: center;
  background-size: cover;
  padding-block: 75px;
}

.footer-grid {
  display: grid;
  gap: 45px;
  grid-template-columns: 1.4fr 1fr 0.75fr 1fr;
}

.footer-brand img {
  margin-bottom: 20px;
  width: 177px;
}

.footer-intro p { max-width: 390px; }

.footer-kicker {
  color: var(--dmr-yellow);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.site-footer a { color: var(--dmr-white); }
.site-footer address { font-style: normal; }

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-socials a {
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: none;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li { margin-bottom: 9px; }
.footer-links a { font-size: 0.9rem; text-decoration: none; }

.footer-brokerage img {
  filter: brightness(0) invert(1);
  margin-bottom: 16px;
  max-width: 210px;
}

.footer-brokerage p:last-child { font-size: 0.8rem; }

.footer-bottom {
  background: #061722;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  padding-block: 18px;
}

.footer-bottom-inner {
  align-items: center;
  display: flex;
  gap: 25px;
  justify-content: space-between;
}

.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }

/* WordPress utility alignment. */
.alignwide { margin-left: calc(50% - 50vw + 28px); margin-right: calc(50% - 50vw + 28px); max-width: calc(100vw - 56px); width: auto; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.wp-caption-text { color: var(--dmr-muted); font-size: 0.82rem; }

@media (max-width: 1120px) {
  .header-inner { gap: 18px; }
  .site-brand img { width: 150px; }
  .primary-menu { gap: 17px; }
  .primary-menu a { font-size: 0.72rem; }
  .header-socials { display: none; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-brokerage { grid-column: 2 / 4; }
}

@media (max-width: 980px) {
  .admin-bar .site-header { top: 46px; }
  .header-inner { height: 84px; }
  .dmr-front-page .site-header { margin-bottom: -84px; }
  .site-brand img { width: 138px; }
  .menu-toggle { display: flex; }
  .primary-navigation {
    align-items: stretch;
    background: #071923;
    flex-direction: column;
    gap: 18px;
    inset: 0 0 auto auto;
    min-height: 100vh;
    opacity: 0;
    padding: 105px 28px 35px;
    pointer-events: none;
    position: fixed;
    transform: translateX(100%);
    transition: opacity 180ms ease, transform 180ms ease;
    width: min(420px, 100%);
  }
  .primary-navigation.is-open { opacity: 1; pointer-events: auto; transform: translateX(0); }
  .primary-menu { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-menu a { border-bottom: 1px solid rgba(255, 255, 255, 0.11); font-size: 0.85rem; padding: 15px 0; }
  .primary-menu > li > a::after { display: none; }
  .primary-menu .sub-menu { background: transparent; box-shadow: none; display: block; left: auto; min-width: 0; opacity: 1; padding: 0 0 0 17px; pointer-events: auto; position: static; transform: none; }
  .primary-menu .sub-menu a { border-radius: 0; color: rgba(255, 255, 255, 0.72); font-size: 0.72rem; padding: 10px 0; }
  .primary-menu .sub-menu a:hover,
  .primary-menu .sub-menu a:focus { background: transparent; color: var(--dmr-yellow); }
  .header-socials { display: flex; }
  .header-contact { align-self: flex-start; }
  .hero { min-height: 700px; padding-top: 140px; }
  .service-grid,
  .post-grid,
  .property-grid,
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-card p { min-height: 0; }
  .approach-panel { grid-template-columns: 1fr; }
  .approach-image { min-height: 440px; }
  .story-grid { grid-template-columns: 1fr; }
  .story-grid img { max-height: 600px; width: min(600px, 100%); }
  .detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brokerage { grid-column: auto; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-shell { padding-inline: 20px; }
  .section { padding-block: 68px; }
  .hero { background-image: var(--hero-image); min-height: 660px; padding-bottom: 75px; text-align: left; }
  .hero::before { background: linear-gradient(rgba(4, 19, 28, 0.75), rgba(4, 19, 28, 0.82)); }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .hero-subtitle { font-size: 1.4rem; }
  .feature-strip-grid { grid-template-columns: 1fr; }
  .feature-strip-item { border-bottom: 1px solid rgba(255, 255, 255, 0.14); border-left: 0; padding: 20px; }
  .feature-strip-item:last-child { border-right: 0; }
  .split,
  .story-grid,
  .service-detail,
  .contact-grid,
  .faq-layout,
  .single-property-layout { grid-template-columns: 1fr; }
  .split.reverse .split-media,
  .split.reverse .split-content { order: initial; }
  .service-grid,
  .post-grid,
  .property-grid,
  .resource-grid { grid-template-columns: 1fr; }
  .service-card { padding: 29px; }
  .reviews-cta { grid-template-columns: 1fr; }
  .page-hero { min-height: 350px; padding: 115px 0 62px; }
  .contact-form { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .property-summary { position: static; }
  .faq-heading { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .bootstrap-realtypress .container { padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
