/*
Theme Name: Grunberg Probate
Author: JE Consulting
Author URI: https://www.je-consulting.co.uk/
Version: 1.0.0
*/

/* Header Styles */
header {
  background-color: var(--white);
  box-shadow: var(--black) 0px 5px 5px;
  position: fixed;
  top: 0;
  width: 100%;
  padding: 10px 0;
  z-index: 9999;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 267px;
  height: auto;
}

.header-interactables {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.social-icon {
  height: 30px;
  width: 30px;
  border: 1px solid #a1acc1;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

nav i {
  font-size: 30px;
}

.searchBox {
  display: none;
}

.search {
  cursor: pointer;
}

.search-submit {
  display: none;
}

.search-field {
  border: none;
  height: 30px;
  padding: 0 10px;
  border-bottom: 1px solid #e6e6e6;
}

.homepage-header-container {
  background-color: var(--orange);
}

.homepage-header {
  display: grid;
  grid-template-columns: 5fr 1fr 4fr;
  padding-top: 81.5px;
}

.header-intro-alt {
  display: none;
}

.mobile-header {
  display: none;
}

.listings-header {
  display: grid;
  grid-template-columns: 10fr 1fr 8fr;
}

.homepage-header > .container {
  padding: 150px 0;
}

.left-container {
  padding-top: 150px;
  padding-bottom: 150px;
  background-color: var(--orange);
}

.left-container-no-padding {
  padding-left: 150px;
  padding-bottom: 50px;
  background-color: var(--orange);
}

.middle-container {
  background-color: var(--orange);
}

.right-container {
  position: relative;
}

.main-logo {
  z-index: 17;
  position: absolute;
  bottom: 0;
  right: 0;
}

.image-carousel {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 10;
  width: 100%;
}

.header-image-carousel {
  background-image: url("/wp-content/uploads/2025/08/g-shape-1-scaled-1.png");
  background-size: cover;
  background-repeat: no-repeat;
  height: 100%;
  width: 100%;
}

.overlay-carousel {
  transition: opacity 1s linear;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 11;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
}

.tagline {
  color: var(--white);
  font-size: 64px;
  line-height: 1.2em;
  margin-bottom: 30px;
}

.tagline > span.bold {
  font-weight: 700;
}

.header-intro {
  color: var(--white);
}

.FlyoutMenu {
  position: fixed;
  right: -100%;
  z-index: 9999999;
  background-color: var(--blue);
  height: 100%;
  overflow-y: scroll;
  transition: all 0.5s ease-in-out;
  max-width: 500px;
  width: 100%;
}

.FlyoutMenu .menu {
  display: block;
}

.FlyoutMenu li {
  position: relative;
}

.FlyoutMenu li a {
  padding: 5px 10px;
  border-bottom: 1px solid #fff;
}

.FlyoutMenu li i {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #fff;
  cursor: pointer;
}

.FlyoutMenu .sub-menu {
  width: 100%;
  background-color: unset;
  position: relative;
}

.FlyoutMenu .sub-menu a {
  background-color: #071b40;
  padding-left: 30px;
}

.FlyoutMenu .sub-menu .sub-menu {
  right: unset;
  position: relative;
}

.FlyoutMenu .sub-menu .sub-menu a {
  background-color: #041025;
  padding-left: 45px;
}

.FlyoutMenu.active {
  right: 0;
}

.FlyoutMenuOverlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
}

/* Menu Styles */

.FlyoutMenu {
  position: fixed;
  right: -100%;
  z-index: 9999999;
  background-color: var(--orange);
  height: 100%;
  overflow-y: scroll;
  transition: all 0.5s ease-in-out;
  max-width: 500px;
  width: 100%;
}

.FlyoutMenu .menu {
  display: block;
}

.FlyoutMenu li a {
  padding: 5px 10px;
  border-bottom: 1px solid #fff;
}

.FlyoutMenuOverlay {
  background-color: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  z-index: 9999;
  position: fixed;
  top: 0;
  left: 0;
  display: none;
}

.FlyoutMenu li {
  position: relative;
}

.FlyoutMenu li a {
  padding: 5px 10px;
  border-bottom: 1px solid #fff;
}

.FlyoutMenu li i {
  position: absolute;
  right: 15px;
  top: 10px;
  color: #fff;
  cursor: pointer;
}

.FlyoutMenu .sub-menu {
  width: 100%;
  background-color: unset;
  position: relative;
}

.FlyoutMenu .sub-menu a {
  background-color: #071b40;
  padding-left: 30px;
}

.FlyoutMenu .sub-menu .sub-menu a {
  background-color: #041025;
  padding-left: 45px;
}

.FlyoutMenu .sub-menu .sub-menu {
  right: unset;
  position: relative;
}

.FlyoutMenu.active {
  right: 0;
}

/* Menu Styles END */

/* Header Styles END */

/* Homepage Styles */

/* Sticky Styles */
.panel {
  display: flex;
  justify-content: center;
}

.panel,
.pin-spacer {
  width: 100vw !important;
  max-width: 100vw !important;
  overflow-x: hidden;
  box-sizing: border-box;
}

.panel.green-bg p,
.panel.green-bg ul,
.panel.green-bg li,
.panel.orange-bg p,
.panel.orange-bg ul,
.panel.orange-bg li,
.panel.blue-bg p,
.panel.blue-bg ul,
.panel.blue-bg li {
  color: var(--white);
}

.panel.blue-bg h4:first-of-type,
.panel.green-bg h4:first-of-type,
.panel.orange-bg h4:first-of-type,
.panel.white-bg h4:first-of-type {
  padding-top: 40px;
}

.panel.white-bg h4,
.panel.white-bg blockquote p {
  color: var(--blue);
}

.panel-padding {
  padding: 50px 0;
}

.OpeningContent {
  background-color: var(--orange);
  padding: 131.5px 0 0 0;
}
/* Sticky Styles END */

/* Animated Icons */

.animated-crown {
  position: relative;

  display: inline-block;
}

.crown-wrapper {
  position: absolute;

  top: -20px;

  left: -20px;

  width: 70px;

  height: auto;

  pointer-events: none;
}

.crown {
  position: absolute;

  top: 0;

  left: 0;

  width: 70px;

  height: auto;

  opacity: 0;
}

.crown-middle {
  animation: drawMiddle 7s linear infinite alternate;

  animation-delay: 0s;

  animation-fill-mode: forwards;
}

@keyframes drawMiddle {
  0% {
    clip-path: inset(0 100% 0 0);

    opacity: 0;
  }

  14.28% {
    opacity: 1;
  }

  28.57% {
    clip-path: inset(0 0 0 0);

    opacity: 1;
  }

  100% {
    clip-path: inset(0 0 0 0);

    opacity: 1;
  }
}

.crown-end {
  animation: drawEnd 7s linear infinite alternate;

  animation-delay: 0s;

  animation-fill-mode: forwards;
}

@keyframes drawEnd {
  0%,
  28.56% {
    clip-path: inset(0 0 0 100%);

    opacity: 0;
  }

  42.85% {
    opacity: 1;
  }

  57.14% {
    clip-path: inset(0 0 0 0);

    opacity: 1;
  }

  100% {
    clip-path: inset(0 0 0 0);

    opacity: 1;
  }
}

.green-underline-home,
.green-underline,
.yellow-underline,
.blue-underline,
.orange-underline {
  position: relative;
  display: inline-block;
}

.green-underline-home::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 20px;
  background-image: url("/wp-content/uploads/2025/08/green-underline.svg");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  clip-path: inset(0 0 100% 0);
  animation: underlineWipeReveal 4s ease-in-out infinite;
  z-index: 1;
}

.green-underline::after,
.yellow-underline::after,
.blue-underline::after,
.orange-underline::after {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 0;
  width: 100%;
  height: 20px;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
  clip-path: inset(0 0 100% 0);
  animation: underlineWipeReveal 4s ease-in-out infinite;
  z-index: 1;
}

.green-underline::after {
  background-image: url("/wp-content/uploads/2025/08/green-underline.svg");
}

.yellow-underline::after {
  background-image: url("/wp-content/uploads/2025/08/Underline-Yellow.png");
}

.blue-underline::after {
  background-image: url("/wp-content/uploads/2025/08/Underline-Blue.png");
}

.orange-underline::after {
  background-image: url("/wp-content/uploads/2025/08/Underline-Orange.png");
}

.green-underline-home.offset::after,
.green-underline.offset::after,
.yellow-underline.offset::after,
.blue-underline.offset::after,
.orange-underline.offset::after {
  bottom: -10px;
}

@keyframes underlineWipeReveal {
  0% {
    clip-path: inset(0 0 100% 0);
  }

  25% {
    clip-path: inset(0 0 0% 0);
  }

  50% {
    clip-path: inset(0 0 0% 0);
  }

  75% {
    clip-path: inset(0 0 100% 0);
  }

  100% {
    clip-path: inset(0 0 100% 0);
  }
}

.wipe {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: fit-content;
}

.yellow-wipe::before {
  background-image: url("/wp-content/uploads/2025/08/Strip-Yellow.svg");
}

.orange-wipe::before {
  background-image: url("/wp-content/uploads/2025/08/Strip-Orange.svg");
}

.blue-wipe::before {
  background-image: url("/wp-content/uploads/2025/08/Strip-Blue.svg");
}

.green-wipe::before {
  background-image: url("/wp-content/uploads/2025/08/Strip-Green.svg");
}

.white-wipe::before {
  background-image: url("/wp-content/uploads/2025/08/Strip-White.svg");
}

.wipe::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: -1;
  animation: brushWipe 4s ease-in-out infinite;
}

@keyframes brushWipe {
  0% {
    width: 0%;
  }

  40% {
    width: 100%;
  }

  60% {
    width: 100%;
  }

  100% {
    width: 0%;
  }
}

.archive-loop article {
  position: relative;
}

.archive-loop article::before {
  position: absolute;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.archive-loop article:nth-child(4n-1)::before {
  content: "";
  width: 50px;
  height: 50px;
  right: 0;
  top: 118px;
  background-image: url(/wp-content/uploads/2025/08/Hand-Drawn-Heart-Green.svg);
}

.archive-loop article:nth-child(4n)::before {
  content: "";
  background-image: url(/wp-content/uploads/2025/08/Crown-End.png);
  height: 80px;
  width: 80px;
  top: -46px;
  left: -35px;
}

.archive-loop article:nth-child(6n)::before {
  content: "";
  background-image: url(/wp-content/uploads/2025/08/Hand-Drawn-Star-Orange.svg);
  width: 40px;
  height: 40px;
  bottom: 0;
  right: 41px;
}

.archive-loop.team-loop article:nth-child(5n-3)::before {
  content: "";
  background-image: url(/wp-content/uploads/2025/08/Hand-Drawn-Star-Orange.svg);
  width: 40px;
  height: 40px;
  bottom: unset;
  right: unset;
  top: -27px;
  left: -17px;
  position: absolute;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.archive-loop.team-loop article:nth-child(5n-4)::before {
  content: "";
  background-image: url(/wp-content/uploads/2025/08/Crown-End.png);
  top: -46px;
  left: -35px;
  width: 80px;
  height: 80px;
  position: absolute;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
}

.Profileimg {
  position: relative;
}

.Profileshot .Profileimg::before {
  content: "";
  background-image: url(/wp-content/uploads/2025/08/Crown-End.png);
  width: 80px;
  height: 80px;
  position: absolute;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  top: -40px;
  left: -35px;
}

/* Animated Icons END */

/* Page Listings */

.page-listings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.page-listing-box {
  display: flex;
  align-items: center;
  text-decoration: none;
  background: #fff;
  border: 1px solid #eee;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
  height: 100px;
}

.page-listing-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--blue);
}

.page-icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 1rem;
  margin-left: -1px;
}

.page-text {
  color: var(--blue);
  padding: 1rem 1rem 1rem 0;
}

/* Page Listings END */

.ArchiveItemWrap {
  padding-bottom: 50px;
}

.blogTitle {
  font-size: 40px;
  padding-bottom: 40px;
}

.FeaturedImage {
  max-width: 300px;
  margin: 0 0 10px 10px;
  float: right;
}

.PostContent {
  padding-bottom: 50px;
}

/* Team Members */

.team-thumbnail {
  width: 270px;
  height: 350px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.team-name a,
.team-name {
  font-size: 24px;
  font-weight: 700;
  color: var(--blue);
  margin-top: 10px;
  margin-bottom: 0;
  line-height: 1.5em;
}

.team-job-title {
  margin-bottom: 0;
}

.team-email a {
  font-size: 16px;
}

.ProfileContent .container {
  display: grid;
  grid-template-columns: 70% auto;
  gap: 40px;
}

.Profileimg img {
  box-shadow: 0 0 11px #999;
  border-radius: 5px;
}

.ProfileSocials {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.ProfileContent {
  padding-bottom: 50px;
}

.ProfileSocials a {
  background-color: var(--orange);
  border-radius: 5px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.ProfileSocials a:hover {
  background-color: var(--blue);
}

.profileSpecialisms {
  margin-top: 20px;
  padding: 40px 20px 10px;
  background-color: var(--white);
  border-radius: 5px;
  box-shadow: 0 0 11px #999;
}

/* Team Members END */

/* Footer Styles */
footer {
  background-color: var(--blue);
  z-index: 100;
  position: relative;
}

footer a {
  color: var(--white);
}

footer a:hover {
  color: var(--orange);
}

.info-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 100px 0;
}

.info-left {
  flex: 0 0 30%;
}

.info-right {
  flex: 0 0 calc(70% - 20px);
  padding: 50px 0 50px 50px;
  border: 1px solid var(--white);
  border-right: none;
  border-radius: 3px;
  position: absolute;
  right: 0;
}

.email::before {
  content: "";
  display: inline-block;
  background-image: url("/wp-content/uploads/2025/08/Email.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.phone::before {
  content: "";
  display: inline-block;
  background-image: url("/wp-content/uploads/2025/08/Tel.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.newsletterContainer {
  margin-top: 40px;
}

.grunberg-form-field input,
.grunberg-form-field textarea {
  border: 1px solid var(--white) !important;
  border-radius: 2px !important;
  background-color: transparent !important;
  padding: 10px !important;
  color: var(--white) !important;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out !important;
  resize: none !important;
}

.gform-theme--foundation .gform_fields {
  grid-row-gap: 10px !important;
}

.grunberg-form-field input::placeholder,
.grunberg-form-field textarea::placeholder {
  color: var(--white);
  opacity: 1;
  font-family: "Poppins";
}

.grunberg-form-field input:focus-visible,
.grunberg-form-field textarea:focus-visible {
  outline: none;
  border-color: var(--orange) !important;
  box-shadow: 0 0 5px var(--orange) !important;
}

.gform-field-label {
  color: var(--white) !important;
  font-family: "Poppins";
}

.gform_wrapper.gravity-theme .gfield textarea.large {
  height: 150px !important;
}

#field_2_4 {
  grid-column: span 10;
}

#gform_wrapper_2 #field_submit {
  grid-column: span 2;
}

#gform_wrapper_2 #field_submit input {
  margin: auto;
}

.gfield_checkbox .gfield-choice-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.gfield_checkbox .gchoice label {
  position: relative;
  padding-left: 33px;
  cursor: pointer;
  display: inline-block;
  color: white;
  line-height: 1.2;
}

.gfield_checkbox .gchoice label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  border: 1px solid white;
  border-radius: 3px;
  background: transparent;
  box-sizing: border-box;
}

.gfield_checkbox .gchoice label::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  transform-origin: bottom left;
  transform: translateY(-50%) rotate(45deg) scale(0);
  width: 8px;
  height: 16px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.gfield_checkbox .gchoice input[type="checkbox"]:checked ~ label::after {
  transform: translateY(-50%) rotate(45deg) scale(1);
  opacity: 1;
}

label#label_2_4_1::after {
  top: 18px;
}

.gform_wrapper.gravity-theme .gfield-choice-input {
  top: unset !important;
}

.logo-section {
  padding: 50px 0;
  background-color: var(--white);
}

.award-logos-slider .slick-track {
  display: flex;
  align-items: center;
  height: 100px;
}

.award-logos-slider .logo-slide {
  display: inline-block;
  padding: 0 20px;
  box-sizing: border-box;
}

.award-logos-slider .logo-slide img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
}

.split-footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 50px;
}

.grunberg-family {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.split-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 50px;
}

.logos-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.footer-links {
  background-color: var(--orange);
  padding: 10px 0;
}

.footer-links a {
  color: var(--white);
  font-size: 16px;
}

.footer-links a:hover {
  color: var(--blue);
}

.copyright-info {
  background-color: var(--white);
  padding: 10px 0;
}

.copyright-info a {
  color: var(--black);
  font-size: 16px;
}

#gform_submit_button_2 {
  background-color: transparent;
  border: none;
  border-radius: 0;
  height: auto;
  padding: 0;
  width: auto;
}
/* Footer Styles END */

.page-id-28856 h6,
.privacy-policy h6 {
  color: var(--blue);
}

/* Resonsive Code */
@media only screen and (max-width: 968px) {
  .header-interactables .socials {
    display: none;
  }

  .homepage-header-container .homepage-header {
    grid-template-columns: 1fr;

    padding-top: 120px;
  }

  .homepage-header-container .homepage-header .middle-container,
  .homepage-header-container .homepage-header .right-container {
    display: none;
  }

  .homepage-header-container .homepage-header .left-container {
    padding-top: 0;
    padding-right: 20px;
    padding-bottom: 50px;
  }

  .homepage-header-container .homepage-header .left-container .tagline {
    font-size: 48px;
  }

  .homepage-header-container .homepage-header .left-container .home {
    font-size: 26px;
  }

  .info-section .info-left {
    flex: unset;
  }

  .info-section .info-right {
    flex: unset;
    position: unset;
    border-right: 1px solid var(--white);
    padding: 50px 0 50px 20px;
  }

  .split-footer-top {
    flex-direction: column;

    gap: 20px;
  }

  .grunberg-family,
  .logos-container,
  .split-footer-bottom {
    flex-direction: column;
  }

  .page-listings-grid {
    grid-template-columns: 1fr;
  }

  .pin-spacer {
    margin: 0 !important;
  }

  .reset-margin .vc_custom_1754660107676 {
    margin: 0 !important;
  }

  .archive-loop.team-loop article:nth-child(5n-4)::before {
    left: 0px;
  }

  h1.profile-name {
    font-size: 40px;
  }

  .ProfileContent .container {
    display: flex;
    flex-direction: column-reverse;
  }

  .OpeningContent h1 {
    font-size: 50px !important;
  }

  .PostContent .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .panel {
    padding-bottom: 50px !important;
  }
}

@media only screen and (max-width: 624px) {
  .archive-loop.team-loop {
    grid-template-columns: 1fr;
  }

  .team-thumbnail {
    margin: auto;
  }

  .team-content h3,
  .team-content p,
  .team-content a {
    text-align: center;
  }

  .archive-loop.team-loop article:nth-child(5n-3)::before {
    top: -22px;
    left: 20px;
  }

  .archive-loop.team-loop article:nth-child(5n-1)::before {
    right: unset;
    left: 20px;
  }

  .archive-loop article:nth-child(4n)::before {
    left: -40px;
    top: -40px;
  }
}
