/* About and Services editorial layouts */
body.page-id-26,
body.page-id-28 {
  --bg-editorial-paper: #fffdf9;
  --bg-editorial-cream: #f7efdf;
  --bg-editorial-cream-deep: #efe1c3;
  --bg-editorial-ink: #28211d;
  --bg-editorial-maroon: #541b17;
  --bg-editorial-gold: #b58a46;
  background: var(--bg-editorial-paper);
}

body.page-id-26 .site-header,
body.page-id-28 .site-header {
  z-index: 500;
}

body.page-id-26 .hostinger-ai-menu,
body.page-id-28 .hostinger-ai-menu {
  box-shadow: none;
  border-bottom: 1px solid rgba(91, 62, 40, .13);
}

body.page-id-26 .hostinger-ai-menu-wrapper,
body.page-id-28 .hostinger-ai-menu-wrapper {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
  padding-block: 7px !important;
}

body.page-id-26 .custom-logo,
body.page-id-28 .custom-logo {
  width: 124px;
  height: auto;
}

body.page-id-26 .hostinger-ai-site-navigation a,
body.page-id-28 .hostinger-ai-site-navigation a {
  font-family: Lato, Arial, sans-serif;
  font-size: 12px;
}

body.page-id-26 .hostinger-ai-site-navigation .current-menu-item,
body.page-id-28 .hostinger-ai-site-navigation .current-menu-item {
  border-bottom: 1px solid var(--bg-editorial-maroon);
  color: var(--bg-editorial-maroon);
}

.bg-editorial,
.bg-editorial * {
  box-sizing: border-box;
}

.bg-editorial {
  width: 100%;
  color: var(--bg-editorial-ink);
  background: var(--bg-editorial-paper);
  font-family: Lato, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  overflow: hidden;
}

.bg-editorial h1,
.bg-editorial h2,
.bg-editorial h3,
.bg-editorial p {
  margin-top: 0;
}

.bg-editorial h1,
.bg-editorial h2,
.bg-editorial h3 {
  color: var(--bg-editorial-maroon);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
}

.bg-editorial h1,
.bg-editorial h2 {
  letter-spacing: -.02em;
}

.bg-section-number {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 8px;
  color: var(--bg-editorial-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.bg-section-number i {
  width: 38px;
  height: 1px;
  background: var(--bg-editorial-gold);
}

.bg-editorial-tagline {
  margin: 0 0 10px;
  color: var(--bg-editorial-maroon);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-style: italic;
  line-height: 1.3;
}

.bg-about-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: center;
  width: min(1120px, calc(100% - 48px));
  min-height: 275px;
  margin-inline: auto;
  padding-block: 12px;
}

.bg-about-intro-copy h1 {
  margin: 0 0 2px;
  font-size: clamp(31px, 3.2vw, 43px);
}

.bg-about-intro-copy > p:last-child {
  max-width: 570px;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.55;
}

.bg-about-intro-images {
  display: grid;
  grid-template-columns: 1fr .86fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.bg-about-intro-images img {
  display: block;
  width: 100%;
  height: 245px;
  border-radius: 15px;
  object-fit: cover;
}

.bg-about-intro-images img:first-child {
  object-position: center 42%;
}

.bg-about-intro-images img:last-child {
  height: 205px;
  object-position: center;
}

.bg-about-wisdom {
  display: grid;
  grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr);
  min-height: 306px;
  background: var(--bg-editorial-cream);
}

.bg-about-wisdom-image {
  min-height: 306px;
  background: url("assets/wp-content/uploads/2026/10/3510cdd6-208e-4e58-9216-3e6464a6ce2e-1100x450.png") center 54% / cover no-repeat;
}

.bg-about-wisdom-copy {
  align-self: center;
  max-width: 740px;
  padding: 28px clamp(32px, 5vw, 78px);
}

.bg-about-wisdom-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(29px, 3vw, 39px);
  text-transform: uppercase;
}

.bg-about-wisdom-copy > p:last-child {
  margin-bottom: 0;
  font-size: 14px;
}

.bg-about-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 28px;
}

.bg-about-card {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: 174px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-editorial-cream);
}

.bg-about-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 174px;
  object-fit: cover;
}

.bg-about-card-copy {
  align-self: center;
  padding: 18px 20px;
}

.bg-about-card-copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
  text-transform: uppercase;
}

.bg-short-rule {
  display: block;
  width: 31px;
  height: 1px;
  margin-bottom: 10px;
  background: var(--bg-editorial-gold);
}

.bg-about-card-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.bg-about-approach {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  min-height: 250px;
  background: linear-gradient(90deg, #f6ecda, #fffaf1);
}

.bg-about-approach-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 250px;
  object-fit: cover;
  object-position: left center;
}

.bg-about-approach-copy {
  align-self: center;
  padding: 22px clamp(28px, 4vw, 58px);
}

.bg-about-approach-copy h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 2.5vw, 34px);
}

.bg-about-approach-copy > p:not(.bg-section-number) {
  margin-bottom: 17px;
  font-size: 13px;
}

.bg-about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bg-about-values article {
  padding: 4px 14px;
  border-left: 1px solid rgba(181, 138, 70, .45);
}

.bg-about-values article:first-child {
  padding-left: 0;
  border-left: 0;
}

.bg-about-values h3 {
  margin: 0 0 3px;
  font-size: 15px;
  font-weight: 700;
}

.bg-about-values p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.bg-editorial-cta {
  padding: 28px max(24px, calc((100% - 1120px) / 2)) 32px;
  color: #fff8ec;
  text-align: left;
  background-color: #541b17;
  background-image: linear-gradient(90deg, rgba(66, 18, 15, .94), rgba(66, 18, 15, .70)), url("assets/wp-content/uploads/2026/10/create-with-us-home-page-1100x450.png");
  background-position: center;
  background-size: cover;
}

.bg-editorial-cta .bg-section-number {
  color: #e0bc75;
}

.bg-editorial-cta h2 {
  max-width: 780px;
  margin: 0 0 8px;
  color: #fff8ec;
  font-size: clamp(26px, 3vw, 38px);
  text-transform: uppercase;
}

.bg-editorial-cta > p:not(.bg-section-number) {
  max-width: 750px;
  margin: 0 0 16px;
  font-size: 13px;
}

.bg-editorial-button {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 13px;
  padding: 0 23px;
  border-radius: 24px;
  color: #3b2013 !important;
  background: #d6b477;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
}

.bg-editorial-button:hover {
  background: #ead4a4;
}

.bg-services-hero {
  display: flex;
  min-height: 300px;
  align-items: center;
  padding: 38px max(24px, calc((100% - 1160px) / 2));
  background-color: var(--bg-editorial-cream);
  background-image: linear-gradient(90deg, rgba(248, 240, 226, .98) 0%, rgba(248, 240, 226, .92) 39%, rgba(248, 240, 226, .12) 100%), url("assets/wp-content/uploads/2026/10/3510cdd6-208e-4e58-9216-3e6464a6ce2e-1100x450.png");
  background-position: center;
  background-size: cover;
}

.bg-services-hero-copy {
  max-width: 585px;
}

.bg-services-eyebrow {
  margin: 0 0 13px;
  color: var(--bg-editorial-maroon);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.bg-services-eyebrow::after {
  display: block;
  width: 150px;
  height: 1px;
  margin-top: 9px;
  background: var(--bg-editorial-gold);
  content: "";
}

.bg-services-hero h1 {
  margin: 0 0 13px;
  font-size: clamp(34px, 4.1vw, 51px);
}

.bg-services-hero-copy > p:last-child {
  max-width: 530px;
  margin: 0;
  font-size: 14px;
}

.bg-service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--bg-editorial-cream);
}

.bg-service-image {
  min-width: 0;
  min-height: 330px;
  overflow: hidden;
}

.bg-service-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 330px;
  object-fit: cover;
}

.bg-service-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px clamp(26px, 4vw, 58px);
  background: linear-gradient(135deg, #fbf5e9, #f5ead5);
}

.bg-service-copy .bg-section-number {
  margin-bottom: 5px;
  font-size: 28px;
}

.bg-service-copy h2 {
  margin: 0 0 3px;
  font-size: clamp(23px, 2.5vw, 31px);
}

.bg-service-copy .bg-editorial-tagline {
  margin-bottom: 9px;
  font-size: 17px;
}

.bg-service-copy > p:not(.bg-section-number):not(.bg-editorial-tagline) {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.5;
}

.bg-service-row-reverse .bg-service-copy {
  order: 1;
}

.bg-service-row-reverse .bg-service-image {
  order: 2;
}

.bg-service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 18px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.bg-service-list li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.35;
}

.bg-service-list li::before {
  position: absolute;
  top: .55em;
  left: 0;
  width: 6px;
  height: 6px;
  border: 1px solid var(--bg-editorial-gold);
  border-radius: 50%;
  content: "";
}

.bg-service-consultancy {
  min-height: 265px;
  padding-inline: max(24px, calc((100% - 1160px) / 2));
  border-top: 1px solid rgba(181, 138, 70, .35);
}

.bg-service-consultancy > * {
  max-width: 720px;
}

.bg-services-cta {
  text-align: center;
  background-image: linear-gradient(90deg, rgba(66, 18, 15, .86), rgba(66, 18, 15, .93)), url("assets/wp-content/uploads/2026/10/create-with-us-home-page-1100x450.png");
}

.bg-services-cta h2,
.bg-services-cta > p:not(.bg-section-number) {
  margin-inline: auto;
}

/* Service cards follow the supplied three-section reference layout. */
.bg-services-page .bg-service-copy {
  padding: 28px clamp(20px, 2.4vw, 38px);
}

.bg-service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.bg-service-cards article {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(181, 138, 70, .28);
  border-radius: 4px;
  background: rgba(255, 251, 241, .48);
}

.bg-service-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 9px;
  place-items: center;
  border: 1px solid rgba(181, 138, 70, .65);
  border-radius: 50%;
  color: var(--bg-editorial-maroon);
  font-size: 24px;
}

.bg-service-cards h3 {
  margin: 0 0 7px;
  text-align: center;
  font-size: clamp(14px, 1.2vw, 17px);
  font-weight: 600;
}

.bg-service-cards p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.bg-service-cards-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bg-service-cards-five { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .bg-service-cards-five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .bg-service-cards-four,
  .bg-service-cards-five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .bg-service-cards,
  .bg-service-cards-four,
  .bg-service-cards-five { grid-template-columns: 1fr; }

  .bg-service-cards article { padding: 16px; }
}

@media (max-width: 800px) {
  body.page-id-26 .hostinger-ai-menu-wrapper,
  body.page-id-28 .hostinger-ai-menu-wrapper {
    width: calc(100% - 32px);
  }

  .bg-about-intro {
    grid-template-columns: 1fr;
    gap: 20px;
    width: calc(100% - 36px);
    padding-block: 28px;
  }

  .bg-about-intro-copy h1 {
    font-size: clamp(30px, 7vw, 40px);
  }

  .bg-about-intro-images img {
    height: clamp(190px, 36vw, 260px);
  }

  .bg-about-intro-images img:last-child {
    height: clamp(170px, 31vw, 225px);
  }

  .bg-about-wisdom {
    grid-template-columns: 1fr;
  }

  .bg-about-wisdom-image {
    min-height: 250px;
  }

  .bg-about-wisdom-copy {
    padding: 26px 24px 31px;
  }

  .bg-about-cards {
    width: calc(100% - 36px);
    gap: 12px;
  }

  .bg-about-card {
    grid-template-columns: 1fr;
  }

  .bg-about-card img {
    height: 150px;
    min-height: 150px;
  }

  .bg-about-approach {
    grid-template-columns: 1fr;
  }

  .bg-about-approach-image {
    height: 235px;
    min-height: 0;
  }

  .bg-about-approach-copy {
    padding: 26px 24px 30px;
  }

  .bg-services-hero {
    min-height: 285px;
    padding: 30px 24px;
    background-image: linear-gradient(90deg, rgba(248, 240, 226, .97), rgba(248, 240, 226, .76)), url("assets/wp-content/uploads/2026/10/3510cdd6-208e-4e58-9216-3e6464a6ce2e-1100x450.png");
  }

  .bg-service-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .bg-service-row-reverse .bg-service-copy,
  .bg-service-row-reverse .bg-service-image {
    order: initial;
  }

  .bg-service-row-reverse .bg-service-image {
    order: -1;
  }

  .bg-service-image,
  .bg-service-image img {
    min-height: 250px;
    height: 250px;
  }

  .bg-service-copy {
    padding: 26px 24px 32px;
  }

  .bg-service-consultancy {
    min-height: 0;
    padding: 28px 24px 34px;
  }
}

@media (max-width: 560px) {
  .bg-about-intro-images {
    gap: 9px;
  }

  .bg-about-intro-images img {
    height: 210px;
    border-radius: 11px;
  }

  .bg-about-intro-images img:last-child {
    height: 178px;
  }

  .bg-about-cards {
    grid-template-columns: 1fr;
  }

  .bg-about-card {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  }

  .bg-about-card img {
    height: 100%;
    min-height: 160px;
  }

  .bg-about-card-copy {
    padding: 15px;
  }

  .bg-about-values {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bg-about-values article,
  .bg-about-values article:first-child {
    padding: 0 0 0 11px;
    border: 0;
    border-left: 1px solid rgba(181, 138, 70, .55);
  }

  .bg-editorial-cta {
    padding: 27px 22px 31px;
  }

  .bg-service-list {
    gap: 10px 12px;
  }

  .bg-service-list li {
    font-size: 11px;
  }
}

/* Keep long editorial headings and grid media inside narrow viewports. */
.bg-editorial h1,
.bg-editorial h2,
.bg-editorial h3 {
  white-space: normal !important;
  overflow-wrap: normal;
}

.bg-about-intro-copy,
.bg-about-intro-copy > *,
.bg-services-hero-copy,
.bg-services-hero-copy > * {
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
}

@media (max-width: 800px) {
  .bg-about-intro-images {
    grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  }
}

@media (max-width: 767px) {
  body.page-id-26 .hostinger-ai-menu-wrapper,
  body.page-id-28 .hostinger-ai-menu-wrapper {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  body.page-id-26 .hostinger-ai-menu-wrapper > .wp-block-group:first-child,
  body.page-id-28 .hostinger-ai-menu-wrapper > .wp-block-group:first-child {
    min-width: 0;
  }

  body.page-id-26 .hostinger-ai-site-title,
  body.page-id-28 .hostinger-ai-site-title {
    display: none;
  }

  body.page-id-26 .hostinger-ai-site-navigation-wrapper,
  body.page-id-28 .hostinger-ai-site-navigation-wrapper {
    width: auto;
    margin-left: auto;
  }

  body.page-id-26 .wp-block-navigation__responsive-container-open,
  body.page-id-28 .wp-block-navigation__responsive-container-open {
    display: flex !important;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border: 0 !important;
    color: var(--bg-editorial-maroon);
    background: transparent !important;
  }
}
@media (max-width: 560px) {
  .bg-editorial,
  .bg-editorial section {
    max-width: 100vw;
  }

  .bg-about-intro {
    width: calc(100vw - 36px) !important;
    min-width: 0;
  }

  .bg-about-intro-copy,
  .bg-about-intro-copy p,
  .bg-services-hero-copy,
  .bg-services-hero-copy p,
  .bg-service-copy > p {
    width: 100%;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .bg-about-intro-copy h1 {
    font-size: 29px !important;
  }

  .bg-about-intro-images {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) minmax(0, .86fr);
  }

  .bg-about-intro-images img {
    min-width: 0;
  }

  .bg-services-hero h1 {
    font-size: clamp(30px, 8vw, 34px) !important;
    overflow-wrap: anywhere;
  }

  body.page-id-26 .hostinger-ai-site-navigation,
  body.page-id-28 .hostinger-ai-site-navigation {
    width: 40px;
    min-width: 40px;
  }

  body.page-id-26 .wp-block-navigation__responsive-container-open svg,
  body.page-id-28 .wp-block-navigation__responsive-container-open svg {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 560px) {
  body.page-id-26 .hostinger-ai-menu-wrapper,
  body.page-id-28 .hostinger-ai-menu-wrapper {
    position: relative;
    padding-right: 48px !important;
  }

  body.page-id-26 .wp-block-navigation__responsive-container-open,
  body.page-id-28 .wp-block-navigation__responsive-container-open {
    position: fixed !important;
    z-index: 1000;
    top: 12px;
    right: 12px;
  }

  .bg-about-intro-images {
    width: calc(100vw - 36px) !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, .86fr) !important;
  }

  .bg-about-intro-copy > p {
    max-width: calc(100vw - 54px) !important;
  }

  .bg-services-hero-copy {
    width: calc(100vw - 48px) !important;
  }

  .bg-services-hero h1 {
    font-size: 30px !important;
  }

  .bg-service-copy > p:not(.bg-section-number):not(.bg-editorial-tagline) {
    max-width: calc(100vw - 52px);
  }
}
