/*
Theme Name: Van Rensburgs Divi Child
Description: Project styling and full-width page shells for Van Rensburgs Attorneys.
Template: Divi
Version: 1.0.0
Text Domain: van-rensburgs
*/
:root {
  --vr-wine: #6a1520; --vr-wine-mid: #7d1a27; --vr-wine-deep: #2a0a10;
  --vr-gold: #b4863a; --vr-gold-lt: #cda65c; --vr-ivory: #f4f0e7;
  --vr-ivory-panel: #ece6d9; --vr-charcoal: #241f1b; --vr-charcoal-2: #4a4139; --vr-line: #d9d0be;
}
body.vr-foundation { background: var(--vr-ivory); color: var(--vr-charcoal); font-family: 'Roboto', sans-serif; font-size: 17px; font-weight: 300; line-height: 1.75; }
body.vr-foundation #page-container { padding-top: 0 !important; overflow-x: clip; }
.vr-foundation #main-content, .vr-foundation .et_pb_section { background: var(--vr-ivory); }
.vr-foundation #main-content { width: 100%; min-height: 180px; }
.vr-foundation h1, .vr-foundation h2, .vr-foundation h3 { font-family: 'Roboto Condensed', sans-serif; color: var(--vr-wine); font-weight: 300; }
.vr-header *, .vr-menu * { box-sizing: border-box; }
.vr-header a, .vr-menu a { text-decoration: none; }
.vr-header a:focus-visible, .vr-header button:focus-visible, .vr-menu a:focus-visible, .vr-menu button:focus-visible, .vr-skip:focus { outline: 2px solid var(--vr-gold-lt); outline-offset: 5px; }
.vr-skip { position: fixed; top: 8px; left: 8px; z-index: 100001; transform: translateY(-180%); background: var(--vr-ivory); color: var(--vr-wine); padding: 8px 18px; }
.vr-skip:focus { transform: none; }
.vr-header { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.vr-topbar { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.vr-logo { display: block; flex-shrink: 0; }
.vr-logo img { display: block; width: 180px; height: auto; }
.vr-logo--light img { filter: grayscale(1) brightness(0) invert(96%) sepia(9%) saturate(279%) hue-rotate(347deg) brightness(102%) contrast(92%); }
.vr-contact { display: flex; align-items: center; gap: 22px; font-family: 'Roboto Condensed', sans-serif; font-size: 14px; }
.vr-contact a { color: var(--vr-charcoal-2); }
.vr-contact .vr-contact-link { border: 1px solid var(--vr-line); padding: 10px 16px; color: var(--vr-wine); }
.vr-hero { position: relative; isolation: isolate; width: 100%; min-width: 0; min-height: 640px; aspect-ratio: 16 / 9; display: grid; grid-template-columns: 280px minmax(0,1fr); }
.vr-hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -2; }
.vr-hero--portrait .vr-hero-image { object-position: 80% 30%; }
.vr-panel { align-self: stretch; background: var(--vr-wine-deep); padding: 36px 27px; display: flex; flex-direction: column; justify-content: flex-start; gap: 28px; }
.vr-panel .vr-logo img { width: 216px; }
.vr-links { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.vr-links li { margin: 0; padding: 0; }
.vr-panel .vr-links li + li, .vr-menu .vr-links li + li { border-top: 1px solid rgba(244,240,231,.14); }
.vr-links a { position: relative; display: block; color: var(--vr-ivory); font-family: 'Roboto Condensed',sans-serif; font-weight: 300; letter-spacing: .015em; line-height: 1.4; overflow-wrap: normal; }
.vr-panel .vr-links a { padding: 14px 0 14px 12px; font-size: 17px; }
.vr-links a:hover, .vr-links a[aria-current="page"] { color: var(--vr-gold-lt); }
.vr-links a[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; background: var(--vr-gold); }
.vr-caption { position: relative; isolation: isolate; align-self: end; margin: 50px 48px; padding: 18px 0; max-width: 590px; color: var(--vr-ivory); }
.vr-caption::before {
    display: none;
}.vr-caption h1 { color: var(--vr-ivory); font-size: clamp(34px,3.5vw,52px); line-height: 1.09; font-weight: 300; padding: 0; margin: 0 0 24px; max-width: 19ch; text-wrap: balance; }
.vr-caption h1::after { content: ''; display: block; width: 48px; height: 2px; background: var(--vr-gold-lt); margin-top: 24px; }
.vr-caption p { padding: 0; margin: 0; font-size: 17px; line-height: 1.65; max-width: 55ch; }
.vr-caption .vr-established { margin-top: 20px; font-family: 'Roboto Condensed',sans-serif; color: var(--vr-gold-lt); }
.vr-caption .vr-place { margin-top: 3px; font-size: 14px; }
.vr-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--vr-line); background: transparent; color: var(--vr-wine); cursor: pointer; padding: 12px; }
.vr-toggle span { display: block; height: 1px; background: currentColor; margin: 5px 0; }
.vr-menu { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--vr-wine-deep); color: var(--vr-ivory); transform: translateX(100%); transition: transform 460ms cubic-bezier(.4,.14,.2,1); overflow-y: auto; overscroll-behavior: contain; }
.vr-menu.is-open { transform: translateX(0); }
.vr-menu::backdrop { background: rgba(42,10,16,.35); }
.vr-menu-inner { max-width: 720px; margin: 0 auto; padding: max(24px,env(safe-area-inset-top)) max(28px,env(safe-area-inset-right)) max(30px,env(safe-area-inset-bottom)) max(28px,env(safe-area-inset-left)); }
.vr-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.vr-menu .vr-logo img { width: 170px; }
.vr-close { flex-shrink: 0; position: relative; width: 46px; height: 46px; border: 1px solid rgba(244,240,231,.3); background: transparent; color: var(--vr-ivory); cursor: pointer; }
.vr-close::before,.vr-close::after { content: ''; width: 22px; height: 1px; position: absolute; top: 22px; left: 11px; background: currentColor; transform: rotate(45deg); }
.vr-close::after { transform: rotate(-45deg); }
.vr-menu .vr-links a { font-size: clamp(23px,4vw,30px); padding: 17px 0 17px 12px; }
.vr-menu .vr-links a[aria-current="page"]::before { top: 22px; bottom: 22px; }
.vr-menu-contact { margin-top: 34px; font-size: 15px; line-height: 1.9; }
.vr-menu-contact a { color: var(--vr-ivory); }
.vr-nojs { display: none; }
@media (min-width:1024px) and (max-width:1199px) {
  .vr-header { padding: 0 24px; }
  .vr-hero { grid-template-columns: 250px minmax(0,1fr); }
  .vr-panel { padding: 30px 22px; }
  .vr-panel .vr-logo img { width: 206px; }
  .vr-caption { margin: 36px; }
  .vr-caption p { font-size: 16px; }
}
@media (max-width:1023px) {
  .vr-header { padding: 0 24px; }
  .vr-topbar { min-height: 92px; }
  .vr-topbar .vr-logo img { width: 180px; }
  .vr-contact, .vr-panel { display: none; }
  .vr-toggle { display: block; }
  .vr-hero { display: flex; align-items: end; min-height: 550px; aspect-ratio: 4 / 3; }
  .vr-caption { margin: 40px; max-width: 590px; }
  .vr-caption h1 { font-size: clamp(36px,5vw,48px); }
  .vr-hero--portrait .vr-hero-image { object-position: 50% 25%; }
  .vr-nojs { display: block; background: var(--vr-wine-deep); padding: 20px; }
  .vr-nojs .vr-links a { padding: 12px; }
}
@media (max-width:479px) {
  .vr-header { padding: 0 16px; }
  .vr-topbar { min-height: 86px; }
  .vr-topbar .vr-logo img { width: 165px; }
  .vr-hero { min-height: 540px; aspect-ratio: auto; }
  .vr-caption { margin: 24px; padding-bottom: 12px; }
  .vr-caption h1 { font-size: 36px; margin-bottom: 20px; }
  .vr-caption p { font-size: 16px; line-height: 1.65; }
  .vr-caption::before { inset: -22px -14px; filter: blur(18px); border-radius: 25%; }
  .vr-hero--portrait { min-height: 620px; }
  .vr-hero--portrait .vr-hero-image { object-position: 52% 20%; }
  .vr-menu-inner { padding-left: 24px; padding-right: 24px; }
  .vr-menu .vr-links a { font-size: 23px; padding-top: 14px; padding-bottom: 14px; }
}
@media (prefers-reduced-motion:reduce) { .vr-menu { transition: none; } }

/* Desktop composition: the panel is an independent layer over continuous artwork. */
@media (min-width:1024px) {
  .vr-header { --vr-panel-width: 280px; --vr-panel-gap: 48px; padding-bottom: 70px; }
  .vr-topbar { padding-left: calc(5% + var(--vr-panel-width) + var(--vr-panel-gap)); justify-content: flex-end; }
  .vr-topbar > .vr-logo { display: none; }
  .vr-hero { display: flex; align-items: flex-end; }
  .vr-panel { position: absolute; z-index: 2; left: 5%; top: -90px; bottom: -70px; width: var(--vr-panel-width); }
  .vr-caption { margin-left: calc(5% + var(--vr-panel-width) + var(--vr-panel-gap)); }
}
@media (min-width:1024px) and (max-width:1199px) {
  .vr-header { --vr-panel-width: 250px; --vr-panel-gap: 36px; }
}

/* The artwork lives outside the centred content shell at every breakpoint. */
.vr-header { max-width: none; padding-left: 0; padding-right: 0; }
.vr-topbar { max-width: 1360px; margin-inline: auto; padding-right: 32px; }
@media (min-width:1200px) {
  .vr-hero { aspect-ratio: auto; height: clamp(640px, calc(56.25vw - 36px), 729px); }
  .vr-caption { margin-left: calc(5% + 328px); }
}
@media (min-width:1024px) and (max-width:1199px) {
  .vr-topbar { padding-right: 24px; }
  .vr-hero { aspect-ratio: auto; height: 640px; }
  .vr-caption { margin-left: calc(5% + 282px); }
}
@media (max-width:1023px) {
  .vr-topbar { padding-inline: 24px; }
  .vr-hero { aspect-ratio: auto; min-height: max(550px, calc(75vw - 36px)); }
  .vr-caption { margin-inline: 32px; }
}
@media (max-width:479px) {
  .vr-topbar { padding-inline: 16px; }
  .vr-hero { min-height: 540px; }
  .vr-caption { margin-inline: 24px; }
}

/* About page body only: native Divi editorial text, portrait and statement. */
body.page-id-10 .vr-about { padding: 0; color: var(--vr-charcoal); }
body.page-id-10 .vr-about .et_pb_column { margin: 0; min-width: 0; }
body.page-id-10 .vr-about .et_pb_column .et_pb_module { margin-bottom: 0; }
body.page-id-10 .vr-about p { margin: 0; padding: 0; }
body.page-id-10 .vr-about .vr-about-shell { width: calc(100% - 96px); max-width: 1120px; margin-inline: auto; padding: 0; }
body.page-id-10 .vr-about .vr-about-intro-shell { width: auto; max-width: none; margin: 0 5% 0 calc(5% + 328px); padding: 24px 0 56px; display: grid; grid-template-columns: minmax(0,1fr) 240px; gap: 48px; }
body.page-id-10 .vr-about .vr-about-intro-shell::after, body.page-id-10 .vr-about .vr-about-chronology::after { display: none; }
body.page-id-10 .vr-about .vr-about-intro-shell > .et_pb_column, body.page-id-10 .vr-about .vr-about-chronology > .et_pb_column { width: auto; }
body.page-id-10 .vr-about h2 { margin: 0; padding: 0; font-size: 36px; font-weight: 300; line-height: 1.2; text-wrap: balance; }
body.page-id-10 .vr-about .vr-about-date { font-family: 'Roboto Condensed', sans-serif; font-size: 22px; font-weight: 300; line-height: 1.3; color: var(--vr-wine); }
body.page-id-10 .vr-about .et_pb_column .vr-about-date-first { margin-top: 28px; margin-bottom: 12px; }
body.page-id-10 .vr-about .vr-about-prose { max-width: 62ch; font-family: 'Roboto', sans-serif; font-size: 17px; font-weight: 300; line-height: 1.75; color: var(--vr-charcoal); }
body.page-id-10 .vr-about .vr-about-rule { width: 34px; height: 1px; min-height: 0; margin-top: 16px; }
body.page-id-10 .vr-about .vr-about-rule::before { content: ''; display: block; border-top: 1px solid var(--vr-gold); }
body.page-id-10 .vr-about .et_pb_column .vr-about-portrait-rule { margin-top: 0; margin-bottom: 16px; }
body.page-id-10 .vr-about .vr-about-portrait { width: 100%; line-height: 0; }
body.page-id-10 .vr-about .vr-about-portrait .et_pb_image_wrap { display: block; }
body.page-id-10 .vr-about .vr-about-portrait img { width: 100%; height: auto; aspect-ratio: 1123 / 1401; object-fit: contain; display: block; }
body.page-id-10 .vr-about .vr-about-name { margin-top: 18px; font: 400 21px/1.3 'Roboto Condensed', sans-serif; color: var(--vr-wine); }
body.page-id-10 .vr-about .vr-about-profession { margin-top: 5px; font: 400 15px/1.5 'Roboto Condensed', sans-serif; color: var(--vr-charcoal-2); }
body.page-id-10 .vr-about-history { padding-bottom: 64px; }
body.page-id-10 .vr-about .vr-about-chronology { display: grid; grid-template-columns: 184px minmax(0,1fr); gap: 48px; padding-top: 40px; border-top: 1px solid var(--vr-line); }
body.page-id-10 .vr-about-statement { padding-block: 64px; background: var(--vr-ivory-panel); }
body.page-id-10 .vr-about .vr-about-statement-column { width: 100%; }
body.page-id-10 .vr-about .vr-about-statement-copy { max-width: 920px; margin-inline: auto; font-size: 27px; line-height: 1.55; }
body.page-id-10 .vr-about-close { padding-block: 32px 40px; }
body.page-id-10 .vr-about .vr-about-closing-column { width: 100%; display: flex; justify-content: center; gap: 32px; align-items: center; }
body.page-id-10 .vr-about .vr-about-callout { font: 700 14px/1.5 'Roboto Condensed', sans-serif; color: var(--vr-wine); }
body.page-id-10 .vr-about .vr-about-callout + .vr-about-callout { border-left: 1px solid var(--vr-line); padding-left: 32px; }
body.page-id-10 .vr-about ::selection { background: var(--vr-wine); color: var(--vr-ivory); }
@media (min-width:1024px) {
  /*
   * Let the first Divi content section occupy the header's 70px desktop
   * reservation while keeping the burgundy navigation panel above it.
   * The header/panel geometry itself is unchanged.
   */
  body.vr-foundation #main-content {
    margin-top: -70px;
    position: relative;
    z-index: 1;
    background: transparent;
  }

  body.vr-foundation .vr-header {
    position: relative;
    z-index: 2;
  }

  body.vr-foundation .vr-panel {
    z-index: 3;
  }

  body.page-id-10 .vr-about-intro {
    background: transparent;
  }
}
@media (min-width:1024px) and (max-width:1199px) {
  body.page-id-10 .vr-about .vr-about-intro-shell { margin-left: calc(5% + 282px); grid-template-columns: minmax(0,1fr) 200px; gap: 32px; }
  body.page-id-10 .vr-about h2 { font-size: 32px; }
}
@media (max-width:1023px) {
  body.page-id-10 .vr-about .vr-about-shell { width: calc(100% - 64px); }
  body.page-id-10 .vr-about .vr-about-intro-shell { margin-inline: 32px; padding-top: 36px; grid-template-columns: minmax(0,1fr) 200px; gap: 32px; }
  body.page-id-10 .vr-about .vr-about-chronology { grid-template-columns: 96px minmax(0,1fr); gap: 32px; }
  body.page-id-10 .vr-about .vr-about-statement-copy { font-size: 24px; }
}
@media (max-width:767px) {
  body.page-id-10 .vr-about .vr-about-shell { width: calc(100% - 48px); }
  body.page-id-10 .vr-about .vr-about-intro-shell { margin-inline: 24px; padding-block: 32px 40px; grid-template-columns: minmax(0,1fr); gap: 32px; }
  body.page-id-10 .vr-about h2 { font-size: 30px; }
  body.page-id-10 .vr-about .vr-about-person { max-width: 280px; }
  body.page-id-10 .vr-about .vr-about-chronology { grid-template-columns: minmax(0,1fr); gap: 20px; padding-top: 32px; }
  body.page-id-10 .vr-about-history { padding-bottom: 40px; }
  body.page-id-10 .vr-about-statement { padding-block: 40px; }
  body.page-id-10 .vr-about .vr-about-statement-copy { font-size: 21px; line-height: 1.6; }
  body.page-id-10 .vr-about-close { padding-block: 8px 24px; }
  body.page-id-10 .vr-about .vr-about-closing-column { display: block; }
  body.page-id-10 .vr-about .vr-about-callout { padding-block: 18px; }
  body.page-id-10 .vr-about .vr-about-callout + .vr-about-callout { border-left: 0; border-top: 1px solid var(--vr-line); padding-left: 0; }
}

/* Page 14: native Divi process Groups; typography remains in Text settings. */
body.page-id-14 .vr-process { padding: 56px 0 64px; }
body.page-id-14 .vr-process .vr-process-row { width: calc(100% - 96px); max-width: 1120px; padding: 0; }
body.page-id-14 .vr-process .et_pb_column .et_pb_module { margin-bottom: 0; }
body.page-id-14 .vr-process .vr-process-intro .vr-process-rule { width: 40px; height: 1px; min-height: 0; margin: 0 0 22px; }
body.page-id-14 .vr-process .vr-process-rule::before { content: ''; display: block; border-top: 1px solid var(--vr-gold); }
body.page-id-14 .vr-process .vr-process-list .vr-process-item { position: relative; display: flex; align-items: center; gap: 24px; padding: 0; margin: 0 0 24px; }
body.page-id-14 .vr-process .vr-process-item:last-child { margin-bottom: 0; }
body.page-id-14 .vr-process .vr-process-item::before { content: ''; position: absolute; top: -24px; bottom: -24px; left: 27px; width: 2px; background: #d2d3d5; transform: translateX(-50%); z-index: 0; }
body.page-id-14 .vr-process .vr-process-list .vr-process-item:nth-child(1 of .vr-process-item)::before { top: 50%; }
body.page-id-14 .vr-process .vr-process-list .vr-process-item:nth-last-child(1 of .vr-process-item)::before { bottom: 50%; }
body.page-id-14 .vr-process .vr-process-number { position: relative; box-sizing: border-box; flex: 0 0 54px; width: 54px; height: 54px; border: 2px solid #d2d3d5; border-radius: 50%; background: var(--vr-ivory-panel); color: var(--vr-charcoal); display: flex; align-items: center; justify-content: center; text-align: center; z-index: 1; }
body.page-id-14 .vr-process .vr-process-number p { margin: 0; padding: 0; color: #4a4139 !important; font-weight: 700; line-height: 1; }
body.page-id-14 .vr-process .vr-process-content { flex: 1; min-width: 0; padding: 18px 24px 20px; background: rgba(236,230,217,.55); }
body.page-id-14 .vr-process .vr-process-heading h3 { padding-bottom: 10px; font-weight: 400 !important; }
body.page-id-14 .vr-process .vr-process-description p { padding-bottom: 0; }
@media (max-width:980px) {
  body.page-id-14 .vr-process .vr-process-row { width: calc(100% - 64px); }
  body.page-id-14 .vr-process .vr-process-intro { margin-bottom: 32px; }
}
@media (max-width:767px) {
  body.page-id-14 .vr-process { padding: 36px 0 40px; }
  body.page-id-14 .vr-process .vr-process-row { width: calc(100% - 48px); }
  body.page-id-14 .vr-process .vr-process-list .vr-process-item { gap: 14px; }
  body.page-id-14 .vr-process .vr-process-number { flex-basis: 44px; width: 44px; height: 44px; }
  body.page-id-14 .vr-process .vr-process-item::before { left: 22px; }
  body.page-id-14 .vr-process .vr-process-content { padding: 14px 16px 16px; }
}
/* Logo inside the desktop panel and mobile menu */
.vr-panel .vr-logo img,
.vr-menu .vr-logo img {
    content: url("https://vrensburgs.co.za/new/wp-content/uploads/2026/09/vrensburgs-logo.webp");
    filter: none !important;
    width: 216px;
    height: auto;
    object-fit: contain;
}

/* Compressed Playfair Display headings */
body.vr-foundation h1,
body.vr-foundation h2,
body.vr-foundation h3 {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-weight: 400 !important;
    font-style: normal;
    letter-spacing: normal !important;
    transform: scaleX(0.80);
    transform-origin: left center;
}
/* Larger headings over the header images */
body.vr-foundation .vr-caption h1 {
    font-size: clamp(42px, 4.5vw, 68px);
    line-height: 1.1;
}
/* Gold email link in the page content */
body.vr-foundation #main-content a[href^="mailto:"] {
    color: #b4863a !important;
}

body.vr-foundation #main-content a[href^="mailto:"]:hover {
    color: #6a1520 !important;
}