/* =========================================================
   Redmark Structures LLC — modern stone / deep red system
   Drop-in replacement for static/style.css
   ========================================================= */

:root {
  --rm-red: #b2252b;
  --rm-red-deep: #7f1519;
  --rm-red-bright: #d2383f;
  --rm-brown-950: #20130f;
  --rm-brown-900: #2b1a14;
  --rm-brown-800: #3b241b;
  --rm-brown-700: #533326;
  --rm-brown-600: #765a49;
  --rm-brown-500: #927868;
  --rm-stone-50: #fffaf0;
  --rm-stone-100: #f8eedb;
  --rm-stone-150: #f2e4cc;
  --rm-stone-200: #e6d3b9;
  --rm-stone-300: #d5baa0;
  --rm-ink: #251813;
  --rm-muted: #725f52;
  --rm-line: rgba(74, 42, 30, 0.16);
  --rm-line-strong: rgba(74, 42, 30, 0.28);
  --rm-glass: rgba(255, 250, 240, 0.82);
  --rm-card: rgba(255, 249, 238, 0.93);
  --rm-card-solid: #fff8ec;
  --rm-shadow-sm: 0 8px 22px rgba(37, 24, 19, 0.10);
  --rm-shadow-md: 0 18px 48px rgba(37, 24, 19, 0.17);
  --rm-shadow-lg: 0 30px 90px rgba(37, 24, 19, 0.24);
  --rm-radius-sm: 12px;
  --rm-radius: 22px;
  --rm-radius-lg: 34px;
  --rm-gutter: clamp(18px, 3vw, 58px);
  --rm-section-max: 1880px;
  --rm-reading-max: 780px;
  --rm-header-height: 78px;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--rm-stone-100);
}

body {
  margin: 0;
  min-height: 100%;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--rm-ink);
  line-height: 1.6;
  background:
    radial-gradient(circle at 12% 8%, rgba(178, 37, 43, 0.13), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(83, 51, 38, 0.16), transparent 24rem),
    linear-gradient(180deg, rgba(255, 251, 242, 0.80), rgba(255, 247, 232, 0.78)),
    url("/static/images/marble.101275a8c63e.webp") center top / 860px auto repeat;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.32) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255,255,255,0.24) 0 1px, transparent 1px 100%);
  background-size: 84px 84px;
  opacity: 0.18;
  mix-blend-mode: multiply;
}

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

a { color: inherit; }

p { margin: 0 0 1rem; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--rm-ink);
  line-height: 1.04;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

h1 { font-size: clamp(3rem, 7vw, 7.6rem); }
h2 { font-size: clamp(2.15rem, 4vw, 4.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 2rem); }

strong { font-weight: 850; }

::selection { background: rgba(178, 37, 43, 0.2); }

/* =========================================================
   Header / navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(135deg, rgba(32, 19, 15, 0.97), rgba(59, 36, 27, 0.96)),
    url("/static/images/marble.101275a8c63e.webp") center / 760px auto repeat;
  border-bottom: 1px solid rgba(255, 248, 236, 0.13);
  box-shadow: 0 14px 42px rgba(32, 19, 15, 0.22);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  width: min(calc(100% - var(--rm-gutter) * 2), var(--rm-section-max));
  min-height: var(--rm-header-height);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(18px, 2.4vw, 42px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: 0 0 auto;
}

.site-brand img {
  width: clamp(132px, 16vw, 224px);
  height: auto;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 7px 18px rgba(0,0,0,0.28));
}

.main-nav { margin-left: auto; }

.main-nav__list,
.main-nav__sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.main-nav__item { position: relative; }

.main-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.9rem;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.88);
  text-decoration: none;
  font-size: 0.89rem;
  font-weight: 850;
  letter-spacing: -0.015em;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.main-nav__link:hover,
.main-nav__item.is-active > .main-nav__link,
.main-nav__item.is-ancestor > .main-nav__link {
  color: #fff;
  background: rgba(255, 250, 240, 0.13);
}

.main-nav__link:hover { transform: translateY(-1px); }

.main-nav__sublist {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 0.55rem;
  border-radius: 18px;
  background: rgba(32, 19, 15, 0.98);
  border: 1px solid rgba(255, 248, 236, 0.12);
  box-shadow: var(--rm-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: 160ms ease;
}

.main-nav__item:hover > .main-nav__sublist {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.main-nav__sublink {
  display: block;
  padding: 0.72rem 0.8rem;
  border-radius: 12px;
  color: rgba(255, 250, 240, 0.86);
  text-decoration: none;
  font-weight: 800;
}

.main-nav__sublink:hover { background: rgba(255,255,255,0.1); color: #fff; }

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  background: rgba(255, 250, 240, 0.08);
  color: #fff;
  padding: 10px;
}

.site-nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: #fff;
}

/* =========================================================
   Global layout pieces
   ========================================================= */

.site-main {
  min-height: calc(100vh - var(--rm-header-height));
  padding: clamp(18px, 2vw, 32px) 0 clamp(54px, 7vw, 120px);
}

.page-stack {
  display: grid;
  gap: clamp(22px, 3.2vw, 58px);
}

.page-stack--home { gap: clamp(28px, 4vw, 76px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(178, 37, 43, 0.22);
  background: rgba(178, 37, 43, 0.08);
  color: var(--rm-red-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-button,
button.cta-button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 999px;
  background:
    linear-gradient(135deg, var(--rm-red-bright), var(--rm-red) 54%, var(--rm-red-deep));
  color: #fff !important;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(178, 37, 43, 0.24), inset 0 1px 0 rgba(255,255,255,0.24);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.cta-button:hover,
button.cta-button:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 18px 42px rgba(178, 37, 43, 0.32), inset 0 1px 0 rgba(255,255,255,0.28);
}

.cta-button:active,
button.cta-button:active { transform: translateY(0); }

.content-panel,
.owners-banner,
.info-card-banner,
.build-flow,
.faq-section,
.photo-grid-section,
.vendor-banner,
.cta-section,
.about-footer,
.blog-shell,
.page-hero,
.plan-cards-grid,
.contact-page-wrapper {
  width: min(calc(100% - var(--rm-gutter) * 2), var(--rm-section-max));
  margin-inline: auto;
}

.content-panel,
.owners-banner,
.info-card,
.build-flow,
.faq-section,
.photo-grid-section,
.vendor-banner,
.cta-section,
.about-footer,
.blog-shell,
.contact-form-wrapper {
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.93), rgba(247, 236, 218, 0.84)),
    url("/static/images/marble.101275a8c63e.webp") center / 900px auto repeat;
  box-shadow: var(--rm-shadow-md);
  overflow: hidden;
}

/* Gentle reveal without making the page invisible if JS fails */
.reveal-on-scroll,
.banner,
.capability-banner,
.hero-block,
.content-panel,
.owners-banner,
.info-card-banner,
.faq-section,
.build-flow,
.photo-grid-section,
.vendor-banner,
.cta-section,
.about-footer,
.contact-form-wrapper,
.plan-card {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-on-scroll,
  .banner,
  .capability-banner,
  .hero-block,
  .content-panel,
  .owners-banner,
  .info-card-banner,
  .faq-section,
  .build-flow,
  .photo-grid-section,
  .vendor-banner,
  .cta-section,
  .about-footer,
  .contact-form-wrapper,
  .plan-card {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
  }

  .is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
}

/* =========================================================
   Home hero / CMS banner plugin
   ========================================================= */

.banner {
  position: relative;
  width: min(calc(100% - var(--rm-gutter) * 2), var(--rm-section-max));
  margin-inline: auto;
  min-height: clamp(560px, calc(100vh - 150px), 880px);
  border-radius: clamp(24px, 3vw, 46px);
  border: 1px solid var(--rm-line);
  background:
    radial-gradient(circle at 18% 12%, rgba(178, 37, 43, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(255, 251, 243, 0.92), rgba(244, 229, 206, 0.74)),
    url("/static/images/marble.101275a8c63e.webp") center / 1000px auto repeat;
  box-shadow: var(--rm-shadow-lg);
  overflow: hidden;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.18) 42%, rgba(32, 19, 15, 0.18) 100%),
    radial-gradient(circle at 72% 32%, rgba(255,255,255,0.55), transparent 26rem);
  pointer-events: none;
}

.banner::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 11px;
  height: 100%;
  background: linear-gradient(180deg, var(--rm-red), var(--rm-brown-900));
  opacity: 0.86;
}

.banner__shell {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 72px);
  padding: clamp(28px, 5vw, 92px);
}

.banner__brand-card {
  position: relative;
  display: grid;
  justify-items: start;
  gap: clamp(16px, 2vw, 26px);
  max-width: 650px;
  padding: clamp(24px, 4.2vw, 58px);
  border-radius: clamp(22px, 3vw, 38px);
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.94), rgba(249, 239, 222, 0.92)),
    url("/static/images/marble.101275a8c63e.webp") center / 760px auto repeat;
  border: 1px solid rgba(84, 54, 41, 0.16);
  box-shadow: 0 28px 80px rgba(37, 24, 19, 0.18);
}

.banner-logo {
  display: block;
  width: clamp(250px, 28vw, 470px);
  height: auto;
  max-height: 390px;
  object-fit: contain;
  border-radius: 24px;
  filter: drop-shadow(0 20px 38px rgba(80, 34, 30, 0.14));
}

.banner-tagline {
  max-width: 560px;
  margin: 0;
  color: var(--rm-brown-700);
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.65;
  font-weight: 720;
}

.banner__showcase {
  position: relative;
  min-height: clamp(420px, 52vh, 680px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr 1fr;
  gap: clamp(12px, 1.4vw, 22px);
}

.banner__photo {
  position: relative;
  min-height: 180px;
  border-radius: clamp(18px, 2vw, 30px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: 0 22px 56px rgba(37, 24, 19, 0.20);
}

.banner__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.banner__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32, 19, 15, 0.05), rgba(32, 19, 15, 0.32));
}

.banner__photo--large {
  grid-row: 1 / span 2;
  min-height: 100%;
}

/* =========================================================
   Generic page hero
   ========================================================= */

.page-hero {
  border-radius: var(--rm-radius-lg);
  border: 1px solid var(--rm-line);
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.92), rgba(242, 224, 199, 0.82)),
    url("/static/images/marble.101275a8c63e.webp") center / 900px auto repeat;
  box-shadow: var(--rm-shadow-md);
  overflow: hidden;
}

.page-hero__content {
  display: grid;
  gap: 1rem;
  max-width: 980px;
  padding: clamp(38px, 6vw, 88px);
}

.page-hero h1,
.blog-hero h1 { color: var(--rm-red); }

.page-hero p,
.blog-hero p {
  max-width: var(--rm-reading-max);
  color: var(--rm-brown-700);
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.7;
  font-weight: 620;
}

.page-hero--compact .page-hero__content { padding-block: clamp(34px, 4.8vw, 70px); }

/* =========================================================
   Capability banners / service sections
   ========================================================= */

.capability-banner {
  --cap-cut: 12%;
  position: relative;
  width: min(calc(100% - var(--rm-gutter) * 2), var(--rm-section-max));
  margin: var(--section-mt, 40px) auto var(--section-mb, 40px);
  min-height: clamp(430px, 42vw, 640px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.90), rgba(242, 226, 202, 0.78)),
    url("/static/images/marble.101275a8c63e.webp") center / 900px auto repeat;
  box-shadow: var(--rm-shadow-md);
  overflow: hidden;
}

.capability-banner.alt { grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr); }

.capability-banner-image {
  min-height: 360px;
  overflow: hidden;
}

.capability-banner.alt .capability-banner-image { order: 2; }

.capability-banner-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
  filter: saturate(1.03) contrast(1.02);
}

.capability-banner-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.2rem;
  padding: clamp(32px, 5vw, 74px);
}

.capability-banner-text h2 {
  color: var(--rm-red);
  max-width: 820px;
}

.capability-banner-text p {
  max-width: var(--rm-reading-max);
  margin: 0;
  color: var(--rm-brown-700);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.78;
  font-weight: 590;
}

/* =========================================================
   Service hero block plugin
   ========================================================= */

.hero-block {
  position: relative;
  width: min(calc(100% - var(--rm-gutter) * 2), var(--rm-section-max));
  min-height: clamp(460px, 54vw, 760px);
  margin-inline: auto;
  border-radius: var(--rm-radius-lg);
  border: 1px solid rgba(255, 250, 240, 0.32);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(55, 35, 27, 0.56), rgba(32, 19, 15, 0.74)),
    url("/static/images/marble.101275a8c63e.webp") center / 940px auto repeat;
  box-shadow: var(--rm-shadow-lg);
}

.hero-block__image {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(32, 19, 15, 0.78), rgba(32, 19, 15, 0.42) 42%, rgba(32, 19, 15, 0.10)),
    radial-gradient(circle at 20% 28%, rgba(178, 37, 43, 0.34), transparent 28rem);
}

.hero-overlay {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 1.25rem;
  padding: clamp(42px, 7vw, 112px);
}

.hero-overlay .eyebrow {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.10);
  color: #fff3e8;
}

.hero-block h1 {
  max-width: 960px;
  color: #fff;
  text-shadow: 0 16px 38px rgba(0,0,0,0.34);
}

.hero-tagline {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 250, 240, 0.91);
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.68;
  font-weight: 650;
  text-shadow: 0 10px 30px rgba(0,0,0,0.34);
}

/* =========================================================
   About, cards, FAQ, build flow
   ========================================================= */

.owners-banner {
  padding: clamp(34px, 5vw, 78px);
}

.owners-banner__heading {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 1rem;
  margin-bottom: clamp(22px, 3vw, 42px);
}

.owners-title,
.build-flow h2,
.faq-section h2,
.photo-grid-title,
.about-footer__title {
  color: var(--rm-red);
}

.owners-intro {
  max-width: 860px;
  color: var(--rm-brown-700);
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.72;
}

.single-owner {
  display: grid;
  grid-template-columns: minmax(240px, 0.46fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
  padding: clamp(22px, 3vw, 42px);
  border-radius: 28px;
  background: rgba(255,255,255,0.46);
  border: 1px solid var(--rm-line);
}

.owner-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: var(--rm-shadow-sm);
  background: var(--rm-stone-100);
}

.owner-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.owner-info h3 { color: var(--rm-brown-950); }

.owner-role {
  margin: 0.45rem 0 1.1rem;
  color: var(--rm-red-deep);
  font-weight: 900;
}

.owner-description {
  color: var(--rm-brown-700);
  line-height: 1.75;
  font-weight: 560;
}

.info-card-banner {
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.info-card {
  padding: clamp(28px, 4vw, 58px);
}

.info-card-title {
  margin-bottom: 1rem;
  color: var(--rm-red);
}

.info-card-body {
  max-width: 920px;
  color: var(--rm-brown-700);
  line-height: 1.75;
  font-weight: 560;
}

.build-flow,
.faq-section,
.photo-grid-section,
.cta-section,
.about-footer {
  padding: clamp(32px, 5vw, 78px);
}

.build-flow h2,
.faq-section h2,
.photo-grid-title,
.cta-section h2,
.about-footer__title {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 42px);
}

.build-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.build-card,
.plan-card,
.blog-category-grid article {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--rm-line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.76), rgba(255, 247, 234, 0.76));
  box-shadow: var(--rm-shadow-sm);
  overflow: hidden;
}

.build-card::before,
.plan-card::before,
.blog-category-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--rm-red), var(--rm-brown-700));
}

.build-card h3 { color: var(--rm-brown-950); }
.build-card p { color: var(--rm-muted); margin: 0.65rem 0 0; }

.faq-list { display: grid; gap: 0.8rem; }

.faq-item {
  border: 1px solid var(--rm-line);
  border-radius: 18px;
  background: rgba(255,255,255,0.54);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border: none;
  background: transparent;
  color: var(--rm-ink);
  text-align: left;
  font: inherit;
  font-weight: 880;
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(178, 37, 43, 0.10);
  color: var(--rm-red);
  font-weight: 900;
}

.faq-answer {
  display: none;
  padding: 0 1.15rem 1.15rem;
  color: var(--rm-brown-700);
}

.faq-item.is-open .faq-answer { display: block; }
.faq-item.is-open .faq-icon { transform: rotate(45deg); }

/* =========================================================
   Photo grid / vendor / CTA
   ========================================================= */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.photo-item {
  margin: 0;
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--rm-shadow-sm);
  background: var(--rm-stone-100);
}

.photo-item {
  aspect-ratio: 1 / 1;
}

.photo-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 300ms ease;
}

.photo-item:hover img { transform: scale(1.035); }

.photo-caption {
  position: absolute;
  inset: auto 12px 12px 12px;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  background: rgba(32, 19, 15, 0.76);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.vendor-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 300px);
  align-items: center;
  gap: clamp(22px, 4vw, 70px);
  padding: clamp(28px, 4vw, 64px);
}

.vendor-content {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.vendor-content h2,
.cta-section h2 { color: var(--rm-red); }

.vendor-content p,
.cta-body,
.about-footer__body {
  color: var(--rm-brown-700);
  font-size: clamp(1rem, 1.15vw, 1.16rem);
  line-height: 1.75;
}

.vendor-logo {
  justify-self: end;
  width: min(100%, 280px);
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255,255,255,0.56);
  border: 1px solid var(--rm-line);
}

.vendor-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
}

.cta-section,
.about-footer { text-align: center; }

.cta-inner,
.about-footer__content {
  display: grid;
  justify-items: center;
  gap: 1rem;
  max-width: 980px;
  margin-inline: auto;
}

/* =========================================================
   Blog
   ========================================================= */

.blog-hero {
  width: min(calc(100% - var(--rm-gutter) * 2), var(--rm-section-max));
  margin-inline: auto;
  min-height: clamp(420px, 48vw, 670px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.36fr);
  align-items: end;
  gap: clamp(22px, 4vw, 60px);
  padding: clamp(34px, 6vw, 88px);
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.90), rgba(245, 231, 208, 0.78)),
    url("/static/images/marble.101275a8c63e.webp") center / 880px auto repeat;
  box-shadow: var(--rm-shadow-lg);
}

.blog-hero__content {
  display: grid;
  gap: 1.1rem;
}

.blog-hero__card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.4rem;
  min-height: 220px;
  padding: 1.5rem;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(32, 19, 15, 0.14), rgba(32, 19, 15, 0.84)),
    url("/static/images/metal_building.3b15ad7259cb.png") center / cover no-repeat;
  color: #fff;
  box-shadow: var(--rm-shadow-md);
}

.blog-hero__card strong { font-size: 1.35rem; }
.blog-hero__card span { color: rgba(255,255,255,0.84); font-weight: 650; }

.blog-shell {
  margin-top: clamp(22px, 3vw, 48px);
  padding: clamp(24px, 4vw, 56px);
}

.blog-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: clamp(20px, 3vw, 42px);
}

.blog-intro > div { display: grid; gap: 0.85rem; }
.blog-intro h2 { color: var(--rm-red); }
.blog-intro p { max-width: 820px; color: var(--rm-brown-700); }

.blog-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
  margin-bottom: clamp(22px, 3vw, 42px);
}

.blog-category-grid h3 { color: var(--rm-brown-950); font-size: clamp(1.15rem, 1.4vw, 1.55rem); }
.blog-category-grid p { color: var(--rm-muted); margin: 0.65rem 0 0; }

.blog-embed-card {
  min-height: 500px;
  padding: clamp(18px, 2.4vw, 32px);
  border-radius: 28px;
  border: 1px solid var(--rm-line);
  background: rgba(255,255,255,0.62);
}

#soro-blog:empty::before {
  content: "Loading Redmark Structures articles...";
  min-height: 280px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--rm-line-strong);
  border-radius: 20px;
  color: var(--rm-muted);
  font-weight: 850;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255, 247, 234, 0.72));
}

/* =========================================================
   Contact pages / forms
   ========================================================= */

.plan-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.plan-card {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  min-height: 300px;
  color: inherit !important;
  text-decoration: none !important;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rm-shadow-md);
}

.plan-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  padding: 0.65rem;
  border-radius: 18px;
  background: rgba(178, 37, 43, 0.08);
}

.plan-card__eyebrow {
  color: var(--rm-red-deep);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-card h3 { color: var(--rm-brown-950); }
.plan-card p { color: var(--rm-muted); margin: 0; }
.plan-card__link { margin-top: auto; color: var(--rm-red); font-weight: 900; }

.contact-page-wrapper { display: block; }

.contact-form-wrapper {
  padding: clamp(22px, 4vw, 56px);
}

.contact-form-wrapper--with-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.55fr);
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-row { display: grid; gap: 0.4rem; }
.form-row--full { grid-column: 1 / -1; }

.form-row label {
  color: var(--rm-brown-900);
  font-size: 0.92rem;
  font-weight: 900;
}

.form-row label span,
.form-row small,
.subtext,
.muted {
  color: var(--rm-muted);
  font-size: 0.84rem;
  font-weight: 650;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea,
.contact-form-wrapper select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(74, 42, 30, 0.22);
  border-radius: 14px;
  background: rgba(255,255,255,0.62);
  color: var(--rm-ink);
  padding: 0.8rem 0.95rem;
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.contact-form-wrapper textarea { min-height: 145px; resize: vertical; }

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
  outline: 2px solid rgba(178, 37, 43, 0.28);
  border-color: rgba(178, 37, 43, 0.58);
}

.contact-form-wrapper input[type="file"] {
  padding: 0.65rem;
  background: rgba(255,255,255,0.78);
}

.captcha-row { margin-top: 0.25rem; }

.contact-form-wrapper .cta-button { margin-top: 1.25rem; }

.form-alert,
.success-message {
  width: min(calc(100% - var(--rm-gutter) * 2), var(--rm-section-max));
  margin: 0 auto clamp(18px, 2vw, 30px);
  padding: 1rem 1.2rem;
  border-radius: 18px;
  font-weight: 800;
}

.form-alert--error {
  width: auto;
  margin: 0 0 1.2rem;
  color: #7f1519;
  background: rgba(178, 37, 43, 0.08);
  border: 1px solid rgba(178, 37, 43, 0.22);
}

.form-alert ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

.success-message {
  color: #245c35;
  background: rgba(49, 128, 78, 0.10);
  border: 1px solid rgba(49, 128, 78, 0.22);
}

.preview-panel {
  position: sticky;
  top: calc(var(--rm-header-height) + 24px);
  display: grid;
  gap: 1rem;
  padding: clamp(18px, 2.2vw, 28px);
  border: 1px solid var(--rm-line);
  border-radius: 24px;
  background: rgba(255,255,255,0.55);
}

.preview-panel h3 { color: var(--rm-red); }

.preview-container,
.pdf-mini {
  width: 100%;
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid var(--rm-line);
  overflow: hidden;
  background: rgba(32, 19, 15, 0.08);
}

.preview-container img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.pdf-mini { height: clamp(360px, 52vh, 760px); }
.pdf-mini iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   Legacy / existing helpers that CMS pages may still use
   ========================================================= */

.intro-text {
  width: min(calc(100% - var(--rm-gutter) * 2), var(--rm-section-max));
  margin: 0 auto clamp(18px, 2vw, 32px);
  padding: clamp(32px, 5vw, 72px);
  text-align: center;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 252, 245, 0.92), rgba(242, 224, 199, 0.82)),
    url("/static/images/marble.101275a8c63e.webp") center / 900px auto repeat;
  box-shadow: var(--rm-shadow-md);
}

.intro-text h1 { color: var(--rm-red); }
.tagline { max-width: 780px; margin: 1rem auto 0; color: var(--rm-brown-700); font-weight: 650; }

.errorlist { color: var(--rm-red-deep); }
.error { color: var(--rm-red-deep); font-weight: 800; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background:
    linear-gradient(135deg, rgba(32, 19, 15, 0.98), rgba(59, 36, 27, 0.98)),
    url("/static/images/marble.101275a8c63e.webp") center / 860px auto repeat;
  color: rgba(255, 250, 240, 0.78);
  border-top: 1px solid rgba(255, 248, 236, 0.13);
}

.site-footer__inner {
  width: min(calc(100% - var(--rm-gutter) * 2), var(--rm-section-max));
  min-height: 110px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.4rem 0;
}

.site-footer img {
  width: 170px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.92;
}

.site-footer p { margin: 0; font-weight: 700; font-size: 0.95rem; }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1180px) {
  .banner__shell,
  .blog-hero,
  .contact-form-wrapper--with-preview {
    grid-template-columns: 1fr;
  }

  .banner__showcase {
    min-height: 360px;
  }

  .capability-banner,
  .capability-banner.alt {
    grid-template-columns: 1fr;
  }

  .capability-banner.alt .capability-banner-image { order: 0; }

  .vendor-banner,
  .single-owner {
    grid-template-columns: 1fr;
  }

  .vendor-logo { justify-self: start; }

  .preview-panel { position: static; }
}

@media (max-width: 920px) {
  :root { --rm-header-height: 72px; }

  .site-nav-toggle { display: block; }

  .site-header__inner { position: relative; }

  .main-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    padding: 0.75rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 248, 236, 0.14);
    background: rgba(32, 19, 15, 0.98);
    box-shadow: var(--rm-shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 180ms ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .main-nav__link { justify-content: flex-start; width: 100%; }

  .main-nav__sublist {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    margin-top: 0.3rem;
    background: rgba(255,255,255,0.06);
  }

  .blog-category-grid,
  .plan-cards-grid {
    grid-template-columns: 1fr;
  }

  .blog-intro { display: grid; align-items: start; }
}

@media (max-width: 720px) {
  :root { --rm-gutter: 14px; }

  h1 { font-size: clamp(2.45rem, 13vw, 4.4rem); }
  h2 { font-size: clamp(2rem, 10vw, 3.2rem); }

  .site-brand img { width: 142px; }

  .banner,
  .hero-block,
  .blog-hero {
    min-height: auto;
  }

  .banner__shell,
  .page-hero__content,
  .hero-overlay,
  .blog-hero,
  .blog-shell,
  .owners-banner,
  .build-flow,
  .faq-section,
  .photo-grid-section,
  .vendor-banner,
  .cta-section,
  .about-footer,
  .contact-form-wrapper {
    padding: 24px;
  }

  .banner__brand-card { padding: 22px; justify-items: center; text-align: center; }
  .banner-logo { width: min(100%, 330px); }

  .banner__showcase {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 180px);
    min-height: unset;
  }

  .banner__photo--large { grid-row: auto; }

  .capability-banner-text { padding: 24px; }
  .capability-banner-image { min-height: 250px; }

  .form-grid { grid-template-columns: 1fr; }
  .form-row--full { grid-column: auto; }

  .site-footer__inner {
    display: grid;
    justify-items: center;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .main-nav__list { grid-template-columns: 1fr; }
  .cta-button { width: 100%; }
}
