/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/*
 * Color Palette Reference
 * ─────────────────────────────────────────────
 * C1  --theme-palette-color-1   #f2b74a   Accent
 * C2  --theme-palette-color-2   #e0a83f   Accent Hover
 * C3  --theme-palette-color-3   #333333   Headings
 * C4  --theme-palette-color-4   #4a4a4a   Body Text
 * C5  --theme-palette-color-5   #222222   Header Text
 * C6  --theme-palette-color-6   #7a7a7a   Muted Text
 * C7  --theme-palette-color-7   #e6e6e6   Border
 * C8  --theme-palette-color-8   #ededed   Soft Border
 * C9  --theme-palette-color-9   #ffffff   White
 * C10 --theme-palette-color-10  #f7f7f7   Light Background
 * C11 --theme-palette-color-11  #f5f5f5   Footer Background
 * C12 --theme-palette-color-12  #6f6f6f   Footer Text
 * C13 --theme-palette-color-13  #8c8c8c   Footer Muted
 */

:root {
    /* Layout */
    --gs-row-column-padding: 0;
    --theme-content-spacing: 1em;

    /* Contact Form 7 */
    --uidesign-color-accent-halo: rgba(224, 168, 63, 0.22);

    /* Components */
    --radius-card: 12px;
    --radius-input: 6px;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.03);
}


/* ==========================================================================
   Logo and site title
   ========================================================================== */

.site-branding[data-id="logo"] {
    display: flex;
    flex-direction: row !important;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
}

.site-branding[data-id="logo"] .site-logo-container {
    display: flex;
    flex: 0 0 auto;
}

.site-branding[data-id="logo"] .site-title-container {
    width: auto;
    margin: 0;
}

.site-branding[data-id="logo"] .site-title {
    display: block;
    margin: 0;
    color: var(--theme-palette-color-6);
    white-space: nowrap;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.site-branding[data-id="logo"] .site-title a {
    color: inherit;
}


/* ==========================================================================
   Typography
   ========================================================================== */

u,
span[style*="text-decoration: underline"] {
    padding: 0.05em 0.3em;
    border-radius: 0.3em;
    color: var(--theme-palette-color-9);
    background-color: var(--theme-palette-color-1);
    font-weight: 500;
    text-decoration: none !important;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

.heading-eyebrow {
    color: var(--theme-palette-color-1);
    font-size: 14px;
    font-weight: 500;
}

.gspb_heading_subtitle {
    margin-top: 0 !important;
    color: var(--theme-palette-color-12);
    font-size: 18px;
    font-style: italic;
    font-weight: 400;
}




/* ==========================================================================
   Layout elements
   ========================================================================== */

.card {
    margin-bottom: 20px;
    padding: 28px;
    background: var(--theme-palette-color-9);
    border: 1px solid var(--theme-palette-color-7);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.code-block {
	background: var(--theme-palette-color-10);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
	padding: 12px;
}

.code-block p {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        "Liberation Mono",
        "Courier New",
        monospace;
    font-size: 0.92em;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    font-variant-ligatures: none;
}

.gspb_iconBox.icon_boxed .gspb_iconBox__wrapper {
    padding: 16px !important;
    border-radius: 16px !important;
}


/* ==========================================================================
   Contact Form 7
   ========================================================================== */

.entry-content .wpcf7-list-item-label {
    font-size: inherit;
    font-weight: var(--theme-font-weight);
}

/* Text fields */
.entry-content .wpcf7 input[type="text"],
.entry-content .wpcf7 input[type="email"],
.entry-content .wpcf7 textarea {
    padding: 12px 14px;
    color: var(--theme-palette-color-4);
    background: var(--theme-palette-color-9);
    border: 1px solid var(--theme-palette-color-7);
    border-radius: var(--radius-input);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.entry-content .wpcf7 input[type="text"]:hover,
.entry-content .wpcf7 input[type="email"]:hover,
.entry-content .wpcf7 textarea:hover {
    border-color: var(--theme-palette-color-13);
}

.entry-content .wpcf7 input[type="text"]:focus,
.entry-content .wpcf7 input[type="email"]:focus,
.entry-content .wpcf7 textarea:focus {
    outline: none;
    border-color: var(--theme-palette-color-2);
    box-shadow: 0 0 0 3px var(--uidesign-color-accent-halo);
}

/* Validation state */
.entry-content .wpcf7 input[type="text"].wpcf7-not-valid,
.entry-content .wpcf7 input[type="email"].wpcf7-not-valid,
.entry-content .wpcf7 textarea.wpcf7-not-valid {
    border-color: var(--theme-palette-color-2);
    box-shadow: 0 0 0 3px var(--uidesign-color-accent-halo);
}

.entry-content .wpcf7 ::placeholder {
    color: var(--theme-palette-color-6);
}

/* Checkbox alignment */
.entry-content .wpcf7 .wpcf7-list-item label {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.entry-content .wpcf7 .wpcf7-list-item input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--theme-palette-color-1);
    cursor: pointer;
}

/* Submit button */
.entry-content .wpcf7 input[type="submit"] {
    padding: 12px 20px;
    color: var(--theme-palette-color-9);
    background: var(--theme-palette-color-1);
    border: none;
    border-radius: var(--radius-input);
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.entry-content .wpcf7 input[type="submit"]:hover {
    background: var(--theme-palette-color-2);
}

.entry-content .wpcf7 input[type="submit"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px var(--uidesign-color-accent-halo);
}

/* Loading spinner */
.entry-content .wpcf7 .wpcf7-spinner {
    position: relative;
    top: 8px;
    background-color: var(--theme-palette-color-6);
}

/* Inline validation message */
.entry-content .wpcf7-not-valid-tip {
    display: block;
    margin-top: 4px;
    color: var(--theme-palette-color-2);
    font-style: normal !important;
    font-weight: 400;
}

/* Form response */
.entry-content .wpcf7-response-output {
    margin: 12px 0 0 !important;
    padding: 0 !important;
    color: var(--theme-palette-color-4) !important;
    background: transparent !important;
    border: none !important;
    font-weight: 500;
}

/* Hide fields after successful submission */
.entry-content .wpcf7 form.sent p,
.entry-content .wpcf7 form.sent .wpcf7-turnstile {
    max-height: 0;
    margin: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        opacity 0.6s ease,
        max-height 0.6s ease,
        margin 0.6s ease,
        padding 0.6s ease;
}