/*
Theme Name: Shiny Floors
Description: WordPress + WPBakery port of the Lovable "Shiny Floors" site. The original compiled stylesheet is loaded unchanged from assets/css/original.css so every colour, font, spacing and breakpoint matches the source; this file only holds the WordPress-specific glue documented below.
Version: 1.0.0
Text Domain: shiny
*/

/* ==========================================================================
   WORDPRESS / WPBAKERY GLUE  (documented overrides – nothing here restyles the design)
   ========================================================================== */

/* 1. Rows that wrap one of our "Shiny" elements must add no gutters/padding,
      so the element's own markup (.wrap / .sec …) controls the layout exactly as in the original. */
.vc_row.shiny-raw,
.vc_row.shiny-raw > .wpb_column,
.vc_row.shiny-raw > .wpb_column > .vc_column-inner,
.vc_row.shiny-raw .wpb_wrapper { margin: 0; padding: 0; }
.vc_row.shiny-raw > .wpb_column { width: 100%; float: none; }
.vc_row.shiny-raw:before, .vc_row.shiny-raw:after { display: none; }

/* 2. Header and footer parts are WPBakery rows. Their wrapper elements must not generate boxes,
      so the fixed/sticky header and the footer behave exactly as direct children of <body> (as in the original). */
#shiny-header-part, #shiny-footer-part,
#shiny-header-part .vc_row, #shiny-footer-part .vc_row,
#shiny-header-part .wpb_column, #shiny-footer-part .wpb_column,
#shiny-header-part .vc_column-inner, #shiny-footer-part .vc_column-inner,
#shiny-header-part .wpb_wrapper, #shiny-footer-part .wpb_wrapper,
#shiny-header-part .wpb-content-wrapper, #shiny-footer-part .wpb-content-wrapper { display: contents; }

/* 3. Admin bar offset for the fixed header. */
.admin-bar .site-head { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-head { top: 46px; } }

/* 4. Plain WordPress content (non-WPBakery pages / single posts) */
.shiny-plain { padding: 120px 0 60px; }

/* 5. Contact Form 7 – maps CF7's markup onto the original form styling (the original used its own React form). */
.wpcf7 .form .wpcf7-form-control-wrap { display: block; }
.wpcf7 .hidden-fields-container, .wpcf7 form > div[style*="display: none"] { display: none; }
.wpcf7 .screen-reader-response { position: absolute; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; margin: -1px; padding: 0; border: 0; }
.wpcf7 .wpcf7-not-valid-tip { display: block; margin-top: 6px; color: #9a3b2c; font-size: .88rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.estimate-contact .wpcf7-not-valid-tip { color: var(--estimate-error-text); }
.wpcf7 .wpcf7-not-valid { border-color: #9a3b2c; }
.wpcf7 form .wpcf7-response-output { display: none; grid-column: 1 / -1; margin: 0; padding: 12px 16px; border: 1px solid var(--line); font-size: .9rem; line-height: 1.5; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output { display: block; border-color: #9a3b2c; color: #9a3b2c; }
.estimate-contact .wpcf7 form .wpcf7-response-output { color: var(--white); }
.wpcf7 .wpcf7-spinner { display: none; }
.wpcf7 .wpcf7-form-control-wrap > textarea, .wpcf7 .wpcf7-form-control-wrap > select, .wpcf7 .wpcf7-form-control-wrap > input { display: block; }
