/**
 * SFL Productions shared pieces, used by several blocks. Values measured on
 * the live Divi site (sflproductions.net, 1440px): content rows are 80% wide
 * up to 1080px; section headings are Poppins 26px, a light (200) word after a
 * bold one ("<strong>Service</strong> Highlights"), over a faint magenta to
 * purple bar; body text is Open Sans 14px #666 (Poppins 300 16px on photo
 * bands); buttons are a blue gradient with white Poppins 500.
 */

.sf-row {
    width: 80%;
    max-width: 1080px;
    margin-inline: auto;
}

/* Section heading: light words with a bold one, over a faint gradient bar. */
.sf-heading {
    position: relative;
    display: inline-block;
    margin: 0 0 40px;
    padding-bottom: 2px;
    font-family: var(--font-heading, "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
    font-weight: 200;
    font-size: 26px;
    line-height: 1.4;
    color: var(--sf-heading, #333333);
}

.sf-heading strong { font-weight: 700; }

.sf-heading::after {
    content: "";
    position: absolute;
    left: 0;
    right: -6px;
    bottom: 2px;
    height: 5px;
    background: linear-gradient(253deg, var(--sf-magenta, #c82090) 0%, var(--sf-purple, #6a14d1) 100%);
    opacity: 0.2;
}

.sf-heading--light { color: #ffffff; }

/* Blue gradient button (live "Quote"). */
.sf-btn {
    display: inline-block;
    padding: 6px 19px;
    border: 0;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--brand-500, #0c71c3) 0%, var(--sf-sky, #0da6dd) 100%);
    color: #ffffff;
    font-family: var(--font-heading, "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
    font-weight: 500;
    font-size: 19px;
    line-height: 1.7;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.sf-btn:hover,
.sf-btn:focus-visible { filter: brightness(1.12); color: #ffffff; }
.sf-btn:focus-visible { outline: 2px solid var(--brand-700, #084d85); outline-offset: 2px; }

/* Links site-wide get a transparent bottom border (a:not(.btn)); buttons keep their own. */
a.sf-btn, a.sf-btn:hover { border-bottom: 0; }

/* Rich content inside blocks (WYSIWYG fields): Divi text modules, Open Sans 14px #666. */
.sf-prose {
    font-family: var(--font-paragraph, "Open Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.7;
    color: var(--sf-text, #666666);
}

.sf-prose > :first-child { margin-top: 0; }
.sf-prose > :last-child { margin-bottom: 0; }
.sf-prose p { margin: 0 0 16px; }
.sf-prose strong, .sf-prose b { font-weight: 700; }

.sf-prose h2,
.sf-prose h3,
.sf-prose h4,
.sf-prose h6 {
    margin: 0 0 10px;
    font-family: var(--font-heading, "Poppins", ui-sans-serif, system-ui, sans-serif);
    font-weight: 500;
    line-height: 1.3;
    color: var(--sf-heading, #333333);
}

.sf-prose h2 { font-size: 26px; }
.sf-prose h3 { font-size: 22px; }
.sf-prose h4 { font-size: 18px; }
.sf-prose h6 { font-size: 15px; }

.sf-prose ul,
.sf-prose ol { margin: 0 0 16px; padding-left: 1.2em; line-height: 1.6; }
.sf-prose ul { list-style: disc; }
.sf-prose ol { list-style: decimal; }

.sf-prose a { color: var(--brand-500, #0c71c3); text-decoration: underline; }
.sf-prose a:hover { color: var(--sf-purple, #6a14d1); }

.sf-prose img { max-width: 100%; height: auto; }
.sf-prose iframe { max-width: 100%; border: 0; }

/* A button inside formatted text keeps button colours. */
.sf-prose a.sf-btn { color: #ffffff; text-decoration: none; }

/* On photo bands (About): Poppins 300 16px/1.75 white. */
.sf-prose--light {
    font-family: var(--font-heading, "Poppins", ui-sans-serif, system-ui, sans-serif);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.75;
    color: #ffffff;
}
.sf-prose--light a { color: #ffffff; }
.sf-prose--light a:hover { color: var(--sf-pink, #ee5674); }

/* Content images floated in the editor. */
.sf-prose img.alignright { float: right; clear: right; max-width: 45%; margin: 6px 0 20px 30px; }
.sf-prose img.alignleft { float: left; clear: left; max-width: 45%; margin: 6px 30px 20px 0; }
.sf-prose::after { content: ""; display: table; clear: both; }

@media (max-width: 600px) {
    .sf-prose img.alignright, .sf-prose img.alignleft { float: none; max-width: 100%; margin: 0 0 20px; }
}

@media (max-width: 767px) {
    .sf-prose table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 14px; }
}

/* Divi's section dividers (foundation_sf_divider()): a full-width SVG pinned
   to the section's top or bottom edge. Sections that use one set position. */
.sf-divider {
    position: absolute;
    left: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: var(--sf-divider-h, 100px);
    pointer-events: none;
}
.sf-divider--top { top: -1px; }
.sf-divider--bottom { bottom: -1px; }
@media (max-width: 980px) { .sf-divider { height: calc(var(--sf-divider-h, 100px) * 0.6); } }
@media (max-width: 767px) { .sf-divider { height: calc(var(--sf-divider-h, 100px) * 0.42); } }

/* Click-to-load YouTube (foundation_sf_video()). */
.sf-video { position: relative; aspect-ratio: 16 / 9; background: #000000; }
.sf-video__poster { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: #000000; cursor: pointer; }
.sf-video__poster img { width: 100%; height: 100%; object-fit: cover; }
.sf-video__play { position: absolute; top: 50%; left: 50%; width: 68px; height: 48px; margin: -24px 0 0 -34px; border-radius: 12px; background: #ff0000; transition: transform 0.2s ease; }
.sf-video__play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 16px; border-color: transparent transparent transparent #ffffff; }
.sf-video__poster:hover .sf-video__play, .sf-video__poster:focus-visible .sf-video__play { transform: scale(1.08); }
.sf-video__poster:focus-visible { outline: 3px solid var(--brand-500, #0c71c3); outline-offset: 3px; }
.sf-video__frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .sf-video__play { transition: none; } }

.sf-prose iframe.sf-youtube { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }

/* Blog list and single posts (home.php, single.php) — unused today, kept styled. */
.sf-blog { padding: 60px 0 80px; }
.sf-blog__inner { max-width: 900px; }
.sf-blog__heading { margin: 0 0 32px; font-family: var(--font-heading, "Poppins", sans-serif); font-weight: 700; font-size: 42px; line-height: 1.2; color: #333333; }
.sf-blog__inner--single .sf-blog__heading { margin-bottom: 8px; }
.sf-blog__item { padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid #e6e6e6; }
.sf-blog__item:last-of-type { border-bottom: 0; }
.sf-blog__title { margin: 0 0 4px; font-family: var(--font-heading, "Poppins", sans-serif); font-weight: 700; font-size: 24px; line-height: 1.3; color: #333333; }
.sf-blog__title a:hover { color: var(--brand-500, #0c71c3); text-decoration: underline; }
.sf-blog__date { margin: 0 0 12px; font-size: 15px; color: #767676; }
.sf-blog__inner--single .sf-blog__date { margin-bottom: 32px; }
.sf-blog__back { margin: 0 0 16px; font-size: 15px; }
.sf-blog__back a { color: var(--brand-500, #0c71c3); text-decoration: underline; }
@media (max-width: 767px) {
    .sf-blog { padding: 40px 0 60px; }
    .sf-blog__heading { font-size: 32px; }
}

/* Password-protected pages: WordPress' password form in place of the page content. */
.post-password-form { width: 80%; max-width: 700px; margin: 0 auto; padding: 80px 0; font-size: 16px; line-height: 1.7; color: var(--sf-text, #666666); }
.post-password-form p { margin: 0 0 16px; }
.post-password-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.post-password-form input[type="password"] { max-width: 360px; padding: 10px 12px; border: 1px solid #cfcfcf; font-size: 16px; }
.post-password-form input[type="submit"] { padding: 8px 20px; border: 0; border-radius: 3px; background: linear-gradient(180deg, var(--brand-500, #0c71c3) 0%, var(--sf-sky, #0da6dd) 100%); color: #ffffff; font-family: var(--font-heading, "Poppins", sans-serif); font-weight: 500; font-size: 16px; cursor: pointer; }
.post-password-form input[type="submit"]:hover,
.post-password-form input[type="submit"]:focus-visible { filter: brightness(1.12); }

/* In-page links (#about, #contact…) land below the sticky header. */
html { scroll-padding-top: 100px; scroll-behavior: smooth; }
@media (max-width: 980px) { html { scroll-padding-top: 80px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Section backgrounds offered by the generic blocks' "Background" select. */
.sf-bg--white { background: var(--background, #ffffff); }
.sf-bg--wash { background: var(--sf-wash, #f1f2fb); }
.sf-section { padding: 80px 0; }
@media (max-width: 767px) { .sf-section { padding: 56px 0; } }

/* 404 (404.php), as live's theme-builder page. */
.sf-notfound {
    display: flex;
    align-items: center;
    min-height: 100vh;
    margin-top: calc(-1 * var(--sf-header-h, 98px));
    padding: calc(var(--sf-header-h, 98px) + 60px) 0 80px;
    background: radial-gradient(circle, rgba(200, 32, 144, 0.71) 0%, rgba(106, 20, 209, 0.87) 100%), var(--sf-notfound-photo) center / cover no-repeat;
    background-blend-mode: multiply;
    color: #ffffff;
    text-align: center;
    font-family: var(--font-heading, "Poppins", ui-sans-serif, system-ui, sans-serif);
    font-size: 20px;
    line-height: 1.6;
}
.sf-notfound__inner { max-width: 640px; }
.sf-notfound__title { margin: 0; font-weight: 600; font-size: 96px; line-height: 1; }
.sf-notfound__lead { margin: 8px 0 24px; font-weight: 600; font-size: 28px; letter-spacing: 0.08em; text-transform: uppercase; }
.sf-notfound p { margin: 0 0 24px; }
