/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ============================================================
   VWD Utility-Page Components (house component classes)
   Used by the baked-in utility pages (thank-you, 404, legal).
   Pages carry clean semantic HTML only - all styling lives here.
   Tokens: colors/fonts pull from ACSS variables with fallbacks.
   Docs: STARTER-UTILITY-PAGES in the VWD build kit.
   ============================================================ */

html { overflow-x: clip; }

/* Full-width canvas for pages built on these components */
#brx-content:has(.vwd-standalone, .vwd-legal) { max-width: none !important; width: 100% !important; padding-left: 0 !important; padding-right: 0 !important; }

/* --- Standalone screens (thank-you / 404): no header, no footer --- */
#brx-content:has(.vwd-standalone) > h1:first-child { display: none; }
.vwd-standalone { box-sizing: border-box; width: 100%; min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--primary-dark, #0a4174) 0%, var(--primary-ultra-dark, #052a4a) 100%); padding: clamp(1.25rem, 3vh, 2rem) 1.5rem clamp(7.5rem, 20vh, 12rem); text-align: center; }
.vwd-standalone__inner { max-width: 46rem; }
.vwd-standalone__logo { width: clamp(140px, 18vw, 210px); height: auto; display: block; margin: 0 auto 2.25rem; }
.vwd-standalone h1 { color: #fff; font-size: clamp(2.75rem, 5.5vw, 3.75rem); margin: 0 0 1.25rem; }
.vwd-standalone .vwd-404-code { color: rgba(255,255,255,.92); font-family: var(--heading-font-family, inherit); font-size: clamp(4.5rem, 13vw, 7.5rem); font-weight: 600; line-height: 1; margin-bottom: 1rem; }
.vwd-standalone__bar { width: 56px; height: 4px; border-radius: 2px; background: var(--secondary, #e41320); margin: 0 auto 1.75rem; }
.vwd-standalone p { color: rgba(255,255,255,.88); font-weight: 300; font-size: clamp(1.125rem, 1.5vw, 1.35rem); line-height: 1.7; max-width: 32em; margin: 0 auto 2.75rem; }
.vwd-btn { display: inline-block; background: var(--secondary, #e41320); color: #fff; font-size: 0.95rem; padding: 0.85em 2em; border-radius: 8px; text-decoration: none; font-weight: 600; letter-spacing: 0.02em; box-shadow: 0 6px 18px rgba(0,0,0,0.25); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.vwd-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,0.3); color: #fff; }

/* --- Legal / document pages (privacy, terms, cookie) --- */
#brx-content:has(.vwd-legal) > h1:first-child { box-sizing: border-box; width: 100%; margin: 0; background: linear-gradient(180deg, var(--primary-dark, #0a4174) 0%, var(--primary-ultra-dark, #052a4a) 100%); color: #fff; text-align: center; padding: clamp(3rem, 8vw, 4.5rem) 1.5rem; }
.vwd-legal { box-sizing: border-box; max-width: min(1200px, 96vw); margin: 0 auto; padding: 40px 28px 80px; font-size: 18px; line-height: 1.65; text-align: left; }
.vwd-legal > * { max-width: 950px; margin-left: 0; }
.vwd-legal .vwd-meta { text-align: left; opacity: .6; font-size: 15px; font-weight: 400; margin: 0 0 8px; }
.vwd-legal h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.25; font-weight: 600; color: #3a3f47; border-top: 1px solid #d5dbe3; padding-top: 40px; margin: 40px 0 18px; }
.vwd-legal h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 32px; }
.vwd-legal h3 { font-size: clamp(19px, 2vw, 22px); font-weight: 600; color: #3a3f47; margin: 1.6em 0 .5em; }
.vwd-legal p, .vwd-legal li { font-size: 18px; font-weight: 300; color: #4a5058; line-height: 1.7; margin: 0 0 20px; }
.vwd-legal li { margin: 0 0 10px; }
.vwd-legal ul { padding-left: 1.3em; margin: 0 0 22px; list-style: disc; }
.vwd-legal li::marker { color: #9aa1ab; }
.vwd-legal a { color: var(--primary, #0c508f); }
.vwd-legal figure { overflow-x: auto; margin: 24px 0; }
.vwd-legal table { border-collapse: collapse; width: 100%; font-size: 16px; }
.vwd-legal th, .vwd-legal td { border: 1px solid rgba(10,65,116,.16); padding: .65em .85em; text-align: left; vertical-align: top; font-weight: 400; }
.vwd-legal th { background: rgba(12,80,143,.06); font-weight: 600; }


/* --- Social icon row ([vwd_social_icons]) --- */
.vwd-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.vwd-standalone .vwd-social { margin-top: 2.75rem; }
.vwd-social__link { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.28); color: rgba(255,255,255,0.85); transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease; }
.vwd-social__link svg { width: 18px; height: 18px; fill: currentColor; }
.vwd-social__link:hover { background: rgba(255,255,255,0.12); color: #fff; transform: translateY(-2px); border-color: rgba(255,255,255,0.5); }

/* --- Email-capture popup (.vwd-popup) --- */
.vwd-popup { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(5,22,40,0.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s; }
.vwd-popup.is-open { opacity: 1; visibility: visible; }
.vwd-popup__card { position: relative; width: 100%; max-width: 430px; background: #fff; border-radius: 12px; padding: 2.25rem 2rem 2rem; text-align: center; box-shadow: 0 24px 64px rgba(0,0,0,0.35); transform: translateY(12px); transition: transform 0.25s ease; }
.vwd-popup.is-open .vwd-popup__card { transform: none; }
.vwd-popup__close { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; background: transparent; color: #6a7280; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 50%; }
.vwd-popup__close:hover { background: rgba(0,0,0,0.06); color: #111; }
.vwd-popup__title { font-size: 24px; font-weight: 600; color: #23272e; margin: 0 0 0.5rem; }
.vwd-popup__text { font-size: 15.5px; font-weight: 400; color: #4a5058; line-height: 1.6; margin: 0 0 1.4rem; }
.vwd-popup .gform_wrapper input[type=email] { width: 100%; padding: 0.8em 1em; border: 1px solid #d3d8df; border-radius: 8px; font-size: 16px; box-sizing: border-box; }
.vwd-popup .gform_wrapper .gform_footer { margin-top: 0.75rem; }
.vwd-popup .gform_wrapper input[type=submit], .vwd-popup .gform_wrapper button[type=submit] { width: 100%; background: var(--secondary, #e41320); color: #fff; border: 0; border-radius: 8px; padding: 0.85em 1em; font-weight: 600; font-size: 15.5px; cursor: pointer; }
.vwd-popup .gform_wrapper input[type=submit]:hover { filter: brightness(0.94); }
.vwd-popup .gform_confirmation_message { font-size: 16px; font-weight: 500; color: #23272e; }
@media (max-width: 480px) { .vwd-popup__card { padding: 1.9rem 1.25rem 1.5rem; } }

.vwd-popup .gfield_label, .vwd-popup .gfield_required, .vwd-popup legend.gfield_label { display: none; }


/* Popup v2 polish - hierarchy, spacing rhythm, brand focus states */
.vwd-popup__card { max-width: 440px; padding: 2.7rem 2.2rem 2.35rem; border-radius: 14px; }
.vwd-popup__logo { display: block; width: 128px; height: auto; margin: 0 auto 1.2rem; }
.vwd-popup__title { font-size: 27px; letter-spacing: 0.01em; margin: 0 0 0.6rem; }
.vwd-popup__text { max-width: 32ch; margin: 0 auto 1.6rem; }
.vwd-popup__close { top: 12px; right: 12px; }
.vwd-popup .gform_wrapper { margin: 0; }
.vwd-popup .gform_wrapper .gform_fields { grid-row-gap: 12px; row-gap: 12px; }
.vwd-popup .gform_wrapper input[type=text], .vwd-popup .gform_wrapper input[type=email] { width: 100%; padding: 0.8em 1em; border: 1px solid #d3d8df; border-radius: 8px; font-size: 16px; box-sizing: border-box; text-align: center; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.vwd-popup .gform_wrapper input[type=text]:focus, .vwd-popup .gform_wrapper input[type=email]:focus { outline: none; border-color: var(--primary, #0c508f); box-shadow: 0 0 0 3px rgba(12,80,143,0.14); }
.vwd-popup .gform_wrapper input::placeholder { color: #9aa1ab; }
.vwd-popup .gform_wrapper .gform_footer { margin-top: 1rem; }
.vwd-popup .gform_wrapper input[type=submit], .vwd-popup .gform_wrapper button[type=submit] { letter-spacing: 0.03em; transition: filter 0.15s ease, transform 0.15s ease; }
.vwd-popup .gform_wrapper input[type=submit]:hover { transform: translateY(-1px); }
.vwd-popup .gform_wrapper .gfield_error input { border-color: var(--secondary, #e41320); }
.vwd-popup .gform_wrapper .validation_message, .vwd-popup .gform_wrapper .gfield_validation_message { font-size: 13px; color: #b3261e; margin-top: 0.4rem; background: none; border: 0; padding: 0; text-align: center; }
.vwd-popup .gform_wrapper .gform_validation_errors { display: none; }


/* Social block label */
.vwd-standalone .vwd-social-block { margin-top: 2.75rem; }
.vwd-standalone .vwd-social-block .vwd-social { margin-top: 0; }
.vwd-social__label { font-size: 13px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 22px; text-align: center; }


/* Popup v3 - designer pass: depth, rhythm, brand ribbon, confirmation moment */
.vwd-popup { background: rgba(4,18,34,0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.vwd-popup__card { max-width: 450px; padding: 3rem 2.4rem 2.5rem; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.2), 0 30px 80px rgba(0,0,0,0.35); overflow: hidden; }
.vwd-popup__card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--primary, #0c508f), var(--secondary, #e41320)); }
.vwd-popup__logo { width: 120px; margin-bottom: 1.35rem; }
.vwd-popup__title { font-size: 28px; margin-bottom: 0.65rem; }
.vwd-popup__text { font-size: 16px; line-height: 1.65; margin-bottom: 1.75rem; max-width: 30ch; }
.vwd-popup .gform_wrapper .gform_fields { display: grid; grid-row-gap: 14px !important; row-gap: 14px !important; }
.vwd-popup .gform_wrapper .gfield { margin: 0; }
.vwd-popup .gform_wrapper input[type=text], .vwd-popup .gform_wrapper input[type=email] { padding: 0.95em 1.1em; background: #fbfcfd; border-color: #d9dee5; font-size: 15.5px; }
.vwd-popup .gform_wrapper input[type=text]:hover, .vwd-popup .gform_wrapper input[type=email]:hover { border-color: #b9c2cc; }
.vwd-popup .gform_wrapper .gform_footer { margin-top: 18px; }
.vwd-popup .gform_wrapper input[type=submit], .vwd-popup .gform_wrapper button[type=submit] { padding: 0.95em 1em; font-size: 16px; border-radius: 9px; }
.vwd-popup .gform_confirmation_message { display: block; padding: 1.1rem 0 0.4rem; font-size: 17.5px; font-weight: 500; color: #23272e; }
.vwd-popup .gform_confirmation_message::before { content: ""; display: block; width: 54px; height: 54px; margin: 0 auto 1.1rem; border-radius: 50%; background-color: #e7f6ee; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2322a06b' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 26px; }
@media (max-width: 480px) { .vwd-popup__card { padding: 2.4rem 1.5rem 1.9rem; } .vwd-popup__title { font-size: 24px; } }


/* Hide Gravity Forms honeypot (anti-spam): off-screen so bots fill it but visitors never see it */
.gform_wrapper .gform_validation_container,
.gform_wrapper .gfield--type-honeypot {
	position: absolute !important;
	left: -9999px !important;
	top: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(1px, 1px, 1px, 1px);
}
