/* Page sections rebuilt from Divi section > row > column > module spacing.
   Breakpoints: 980px (Divi tablet), 767px (Divi phone). */

/* Root padding is 10% (Divi rows are 80% wide). Post content is already 80% wide, so core's
   alignfull margins and global padding (and any % padding) resolve against 0.8 x page width:
   12.5% of it = 10% of the page. Same reason the CONTACT header uses padding-top 7.5% (Divi 6%). */
.wp-block-post-content.has-global-padding > .alignfull { margin-left: -12.5%; margin-right: -12.5%; }
.wp-block-post-content > .alignfull.has-global-padding { padding-left: 12.5%; padding-right: 12.5%; }

/* Divi stacking: every column is z-index 2 inside a z-index 1 root, so a column's shadow paints
   over the backgrounds of the sections after it (sections themselves stay z-index auto). */
.wp-block-post-content { position: relative; z-index: 1; }
.wp-block-post-content .wp-block-column { position: relative; z-index: 2; }

/* Divi: section 54px top/bottom, row 27px; both become 50px / 30px at <= 980px. */
.beo-section { padding-top: 54px; padding-bottom: 54px; }
.beo-row { padding-top: 27px; padding-bottom: 27px; }
:where(.wp-block-columns).beo-row { margin-bottom: 0; }
/* Divi module gap = 2.75% of the row (80vw, max 1080px), 30px at <= 980px. */
.beo-module { margin-bottom: min(2.2vw, 29.6875px); }

/* Divi text-module sizes: desktop / tablet / phone */
.beo-title-50 { font-size: 50px; }
.beo-title-45 { font-size: 45px; }
.beo-title-35 { font-size: 35px; }
.beo-title-26 { font-size: 26px; }
.beo-title-24 { font-size: 24px; }
.beo-lead-16 { font-size: 16px; }

/* ---------- CONTACT: "Contact Info" box overlapping the header ---------- */
/* full-width wrapper pulls the box 80px up; z-index keeps its shadow over the next section */
.beo-contact-info-wrap { position: relative; z-index: 10; }
.beo-contact-info { max-width: 1280px; margin-inline: auto; }
.beo-contact-info__row { width: 90%; margin-inline: auto; }

/* ---------- SERVICES: "Packages" box overlapping the header ---------- */
.beo-packages { width: 80%; max-width: 1080px; margin-inline: auto; }
.beo-packages__row { width: 90%; margin-inline: auto; }
/* Divi module gap in a 1/3 column = 9.27% of the column (a % margin resolves against it) */
.beo-packages__list { margin-bottom: 9.27%; }
/* SERVICES packages and CONTACT info boxes pull up 80px over the header. The header is positioned
   (.beo-layer), so a static box would paint under it and lose its top border; lift the box above. */
.beo-packages-wrap, .beo-contact-info-wrap { position: relative; z-index: 1; }

/* Divi sections are positioned with a white background, so each one paints over the shadows that
   overflow from the section above. overflow-x: clip cuts the offset colour blocks at the page edge
   without clipping shadows vertically (overflow: hidden would). */
.beo-layer { position: relative; overflow-x: clip; }

/* ---------- PORTFOLIO ---------- */
/* Divi gradient over the header photo: transparent to white, top to bottom */
.beo-portfolio-header { position: relative; }
.beo-portfolio-header::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
.beo-portfolio-header > * { position: relative; }
/* Divi specialty column with a single module stack: 2.855% vertical padding (of the row) */
.beo-slider-col { padding-block: 2.855%; }

/* ---------- HOME ---------- */
/* hero: Divi gradient over the photo; the next section (no background) overlaps it by 200px */
.beo-home-hero { position: relative; }
.beo-home-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #e2e2ea 20%, rgba(226, 226, 234, 0) 100%); }
.beo-home-hero > * { position: relative; }
.beo-home-booking { padding-bottom: 54px; }
.beo-home-booking__slider { padding-bottom: 2.855%; }
/* the box in a half column: Divi module gap 5.82% of the column */
.wp-block-column > .beo-schedule-box > h2 { margin-bottom: 5.82%; }

.beo-about { margin-block: 40px; padding-top: 120px; }
.beo-about__row { padding-right: 59px; margin-bottom: -19px; }
.beo-about__text { padding-top: 50px; }
.beo-about__press { padding: 60px 40px 27px; background: #fff; }
.wp-block-column > .beo-about__quote { max-width: 204px; margin-bottom: -20px; background: rgba(0, 0, 0, .05); }
.beo-about__logo { margin-bottom: 30px; text-align: center; }

.beo-tile-col { padding: 300px 40px 40px; }
.beo-tile-title { max-width: 240px; }
.beo-tile-title--gap { margin-bottom: 3.09%; }
.beo-tile { padding: 40px; }
.beo-tile:not(:last-child) { margin-bottom: 6%; }

.beo-testimonials__img-col { padding-block: 2.855%; }
.beo-testimonials__img { padding-left: 249px; }
.beo-testimonials__text-col { padding: 70px 15vw 0 0; }
.beo-testimonials__inner { padding-block: 27px; }

.beo-work { padding-top: 47.875px; padding-bottom: 30.9px; }
.beo-img-fill img { width: 100%; }
.beo-work__img:not(:last-child) { margin-bottom: 4.784%; }
/* .wp-block-column >: beats core's flow-layout reset of the first child's top margin */
.wp-block-column > .beo-work__offset--1 { width: 88.2%; margin: 24px; }
.wp-block-column > .beo-work__offset--2 { width: 85%; margin: 44px 24px; padding: 18px 0 0 23px; }
.wp-block-column > .beo-work__offset--3 { width: 100%; margin: 24px -16px; }

/* ---------- "Book An Appointment" box (synced pattern, Divi global row 312) ---------- */
.beo-schedule-box { padding: 60px 40px; }
.beo-schedule-box > h2 { margin-bottom: 2.75%; }

/* ---------- Footer contact section (synced pattern "Footer contact section") ---------- */
.beo-footer-contact p a { font-size: 16px; font-weight: 600; line-height: 2em; }

@media (max-width: 980px) {
	/* Divi stacks columns at 980px; core only below 782px. body: beats core's !important rules. */
	body .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-wrap: wrap !important; }
	body .wp-block-columns:not(.is-not-stacked-on-mobile) > .wp-block-column { flex-basis: 100% !important; }
	.beo-section { padding-top: 50px; padding-bottom: 50px; }
	.beo-row { padding-top: 30px; padding-bottom: 30px; }
	.beo-module { margin-bottom: 30px; }
	.beo-title-45, .beo-title-35 { font-size: 40px; }
	.beo-packages { width: 100%; }
	.beo-packages__list, .beo-schedule-box > h2 { margin-bottom: 30px; }
	.beo-slider-col, .beo-home-booking__slider, .beo-about__text, .beo-tile-col { padding-block: 0; }
	.wp-block-column > .beo-schedule-box > h2, .beo-tile-title--gap { margin-bottom: 30px; }
	.beo-tile-col { padding-top: 300px; }
	.beo-about__press { padding-bottom: 30px; }
	.wp-block-column > .beo-about__quote { margin-inline: auto; }
	.beo-testimonials__img-col, .beo-testimonials__text-col { padding: 0 80px; }
	.beo-testimonials__inner { padding-block: 30px; }
	.beo-work__img:not(:last-child) { margin-bottom: 30px; }
	/* .wp-block-column >: beats core's ":root :where(.is-layout-flow) > :first-child" margin reset */
	.wp-block-column > .beo-stack-gap-top { margin-top: 50px; }
	.wp-block-column > .beo-stack-gap-bottom { margin-bottom: 50px; }
}

/* Divi 1/4 columns (4-column or 1/4,1/4,1/2 rows) sit two per line on tablet. */
@media (min-width: 768px) and (max-width: 980px) {
	body .wp-block-columns > .wp-block-column.beo-col-tablet-half { flex-basis: 47.25% !important; flex-grow: 0; }
}

@media (max-width: 767px) {
	.beo-title-50 { font-size: 32px; }
	.beo-title-45, .beo-title-35 { font-size: 28px; }
	.beo-schedule-box { padding-inline: 20px; }
	.beo-title-26, .beo-title-24 { font-size: 20px; }
	.beo-testimonials__img-col, .beo-testimonials__text-col { padding: 0 50px; }
	/* Divi keeps the 249px left padding on phones, so the photo shrinks to 1px; its inline line box
	   still makes the frame 45px tall (40px border + 5px). */
	.beo-testimonials__img img { min-height: 45px; }
	.beo-lead-16 { font-size: 14px; }
}

/* ---------- 404 ---------- */
/* Existing PORTFOLIO photo (uploads, relative to this file) fading into the soft background:
   right half on desktop, a band on top below 980px. */
.beo-404 { position: relative; overflow: hidden; background: #f2f4f3; }
.beo-404::before {
	content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 55%;
	background: url(../../../uploads/2025/05/new-beo-makeup-00007-1536x1023.jpg) 42% 35% / cover no-repeat;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.beo-404 > .beo-404__content { position: relative; max-width: 1080px; padding: 110px 0 120px; }
.beo-404__content > * { max-width: 500px; }
.beo-404__code { font-size: 110px; line-height: 1; color: #cc9e94; }
.beo-404__title { font-size: 45px; line-height: 1.3; font-weight: 400; padding-bottom: 14px; }
.beo-404__lead { font-size: 16px; line-height: 2; }
.beo-404__links { gap: 30px; margin-top: 34px; }
.beo-404__search { margin-top: 42px; }
.beo-404__search .wp-block-search__inside-wrapper { border: 0; padding: 0; }
.beo-404__search .wp-block-search__input {
	height: 46px; padding: 0 16px; margin: 0; font-size: 14px; color: #666; background: #fff; border: 1px solid #e4edea; border-radius: 0;
}
.beo-404__search .wp-block-search__button {
	height: 46px; margin: 0; padding: 0 22px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
	color: #fff; background: #8d8181; border: 0; border-radius: 0; transition: background .3s;
}
.beo-404__search .wp-block-search__button:hover { background: #cd5c5c; }
.beo-404__contact { margin-top: 26px; color: #8d8181; }
.beo-404__contact a { color: #cd5c5c; font-weight: 600; }
.beo-404__contact a:hover { opacity: .7; }
/* short page: the main fills the viewport so the footer sits at the bottom */
.error404 .wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; }
.error404 .beo-404 { flex: 1 0 auto; }
@media (min-width: 981px) {
	.beo-404::before { top: 121px; } /* below the fixed header */
}
@media (max-width: 980px) {
	.beo-404::before { width: 100%; bottom: auto; height: 320px; background-position: 42% 30%;
		-webkit-mask-image: linear-gradient(#000 50%, transparent); mask-image: linear-gradient(#000 50%, transparent); }
	.beo-404 > .beo-404__content { padding: 310px 0 80px; }
	.beo-404__code { font-size: 90px; }
}
@media (max-width: 767px) {
	.beo-404::before { height: 220px; }
	.beo-404 > .beo-404__content { padding: 200px 0 60px; }
	.beo-404__code { font-size: 72px; }
	.beo-404__title { font-size: 32px; }
	.beo-404__lead { font-size: 14px; }
	.beo-404__links { gap: 18px; }
	.beo-404__links .wp-block-button__link { padding-right: 12px; font-size: 14px; }
}
