/*
Theme Name: SGA Poole
Theme URI: https://sgapoole.com/
Author: Fourquant
Description: Like-for-like copy of the SGA Poole Limited website (built by Realnet on the Divi theme). The Divi front-end stylesheets and scripts (GPL) are bundled as static assets; page content is the rendered Divi layout, editable as HTML.
Version: 1.0.3
Requires PHP: 8.1
Text Domain: sgapoole
*/

/* Video hero that replaces the Slider Revolution module on the home page */
.sgp-hero { position: relative; width: 100%; height: 600px; overflow: hidden; container-type: size; background: #105b79 url(assets/images/SGA-Pool-HQ.jpg) center/cover no-repeat; }
/* Size the 16:9 player against the hero box (container units), not the viewport, so it always covers it.
   2% overscan hides the hairline letterbox Vimeo adds because the source is 426x240 (1.775:1).
   Divi's FitVids wraps the iframe in .fluid-width-video-wrapper (position:relative, padding-top ratio,
   iframe top/left 0 + 100%) - make that wrapper inert so the hero stays the containing block. */
.sgp-hero .fluid-width-video-wrapper { position: static; width: auto; height: auto; padding: 0 !important; }
.sgp-hero iframe, .sgp-hero .fluid-width-video-wrapper iframe { position: absolute; top: 50%; left: 50%; width: max(102cqw, 181.33cqh); height: max(102cqh, 57.375cqw); max-width: none; max-height: none; transform: translate(-50%, -50%); pointer-events: none; border: 0; }
@supports not (width: 1cqw) { .sgp-hero iframe, .sgp-hero .fluid-width-video-wrapper iframe { width: 177.78vh; min-width: 100%; height: 100%; min-height: 56.25vw; } }
.sgp-hero .sgp-hero-overlay { position: absolute; inset: 0; background: rgba(16, 91, 121, 0.25); }
@media (max-width: 1239px) { .sgp-hero { height: 500px; } }
@media (max-width: 1023px) { .sgp-hero { height: 400px; } }
@media (max-width: 777px)  { .sgp-hero { height: 270px; } }

/* Contact Form 7 inside the Divi contact form markup */
.et_pb_contact_form .wpcf7-form-control-wrap { display: block; }
.et_pb_contact_form .wpcf7-not-valid-tip { color: #e02b20; font-size: 13px; margin-top: 4px; }
.et_pb_contact_form .wpcf7-response-output { margin: 15px 0 0; padding: 10px 15px; border: 1px solid #ddd; }
.et_pb_contact_form .wpcf7-spinner { display: block; margin: 10px auto 0; }
.et_pb_contact_form textarea.et_pb_contact_message { min-height: 150px; }
.et_pb_contact_field .wpcf7-form-control:not(.wpcf7-submit) { width: 100%; }

/* search results / 404 */
.sgp-plain { max-width: 1280px; margin: 60px auto; padding: 0 20px; }
.sgp-plain .search-result { margin-bottom: 25px; }

/* Request a Quote: file inputs have no placeholder, so show their labels */
.et_pb_contact_field.sgp-file-field .et_pb_contact_form_label { display: block; font-size: 14px; color: #666; margin: 0 0 6px; }
.et_pb_contact_field.sgp-file-field input[type=file] { padding: 12px 16px; }
