/*
Theme Name:   Hausflix Studios
Theme URI:    https://hausflix.studio
Description:  Child theme of Hello Elementor for Hausflix Studios. Loads the brand fonts (Playfair Display + Hanken Grotesk + Material Symbols), declares the global colour/type tokens as CSS variables, and ships the few helper classes Elementor Free cannot reproduce natively (vertical text, animated hover-underline, editorial drop-cap, hero gradient, grayscale-to-colour image hover). All page layout is built with Elementor Flexbox Containers per the blueprints in /elementor-blueprints.
Author:       Hausflix Studios
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hausflix-child
*/

/* ==========================================================================
   1. DESIGN TOKENS  (mirror these in Elementor > Site Settings > Global Colors/Fonts)
   ========================================================================== */
:root {
    /* Brand / accents */
    --hf-primary:                 #87361e;
    --hf-primary-container:        #a64d33;
    --hf-primary-fixed:            #ffdbd1;
    --hf-primary-fixed-dim:        #ffb5a0;
    --hf-on-primary:               #ffffff;
    --hf-on-primary-fixed:         #3b0900;

    /* Surfaces / backgrounds */
    --hf-surface:                  #fbf9f8;
    --hf-background:               #fbf9f8;
    --hf-surface-container-low:    #f5f3f3;
    --hf-surface-container:        #efeded;
    --hf-surface-container-high:   #eae8e7;
    --hf-surface-container-lowest: #ffffff;

    /* Text */
    --hf-on-surface:               #1b1c1c;   /* primary text + dark sections bg */
    --hf-on-surface-variant:       #55423d;   /* muted body text */
    --hf-secondary:                #5f5e5e;
    --hf-surface-variant:          #e4e2e2;   /* light text on dark sections */
    --hf-outline:                  #88726c;
    --hf-outline-variant:          #dbc1ba;   /* hairline borders */

    /* Spacing scale (8px base) */
    --hf-unit:            8px;
    --hf-gutter:          32px;
    --hf-margin-mobile:   24px;
    --hf-margin-desktop:  80px;
    --hf-stack-md:        64px;
    --hf-stack-lg:        120px;
    --hf-container-max:   1440px;
}

/* ==========================================================================
   2. BRAND TYPOGRAPHY
   Fonts are enqueued from functions.php; these families are referenced by the
   Global Fonts in Elementor. Defined here as fallbacks / for custom classes.
   ========================================================================== */
body {
    font-family: "Hanken Grotesk", sans-serif;
    color: var(--hf-on-surface);
    background-color: var(--hf-background);
    -webkit-font-smoothing: antialiased;
}

/* Material Symbols icon baseline */
.material-symbols-outlined {
    font-family: "Material Symbols Outlined";
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    font-weight: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
}

/* ==========================================================================
   3. HELPER CLASSES  (apply via the widget Advanced > CSS Classes field)
   These cover effects Elementor Free cannot build with native controls.
   ========================================================================== */

/* 3a. Vertical side-label (hero "Story Driven. Detail Obsessed.") */
.hf-vertical-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* 3b. Animated hover underline (footer social links) */
.hf-hover-underline {
    position: relative;
}
.hf-hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}
.hf-hover-underline:hover::after {
    width: 100%;
}

/* 3c. Editorial drop-cap (About > Our Story first paragraph) */
.hf-dropcap::first-letter {
    float: left;
    font-family: "Playfair Display", serif;
    font-size: 5rem;
    line-height: 4rem;
    padding-top: 4px;
    padding-right: 12px;
    color: var(--hf-primary);
}

/* 3d. Hero gradient overlay (apply to a Container background overlay) */
.hf-hero-gradient {
    background: linear-gradient(to bottom,
                rgba(251, 249, 248, 0.2) 0%,
                rgba(251, 249, 248, 0.8) 100%);
}

/* 3e. Grayscale image that reveals colour on hover (team + contact shots) */
.hf-grayscale-hover img {
    filter: grayscale(100%);
    transition: filter 1s ease, transform 0.7s ease;
}
.hf-grayscale-hover:hover img {
    filter: grayscale(0%);
}

/* 3f. Slow zoom-on-hover for featured-work / service images */
.hf-zoom-hover img {
    transition: transform 1s ease;
}
.hf-zoom-hover:hover img {
    transform: scale(1.08);
}

/* 3g. Oversized faded number watermark (Process steps 01–04) */
.hf-step-watermark {
    font-family: "Playfair Display", serif;
    font-size: 72px;
    line-height: 1;
    opacity: 0.05;
    user-select: none;
}

/* 3h. Decorative giant "H" (landing CTA) */
.hf-decor-letter {
    font-family: "Playfair Display", serif;
    font-size: 400px;
    line-height: 1;
    opacity: 0.05;
    user-select: none;
    pointer-events: none;
}

/* ==========================================================================
   4. CONTACT FORM 7 — editorial styling
   Scoped to the wrappers in the CF7 markup (/cf7/contact-form.txt,
   /cf7/newsletter-form.txt). CF7 ships NO design panel — this is the styling.
   ========================================================================== */

/* ---- Contact form (.hausflix-contact) ---------------------------------- */
.hausflix-contact .wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}
.hausflix-contact .hf-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.hausflix-contact .hf-field {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin: 24px 0;
}
.hausflix-contact .hf-field label {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--hf-on-surface-variant);
}

/* Inputs: thin bottom rule, transparent, no radius (editorial look) */
.hausflix-contact .wpcf7-form-control.wpcf7-text,
.hausflix-contact .wpcf7-form-control.wpcf7-email,
.hausflix-contact .wpcf7-form-control.wpcf7-textarea,
.hausflix-contact .wpcf7-form-control.wpcf7-select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--hf-outline-variant);
    background: transparent;
    border-radius: 0;
    padding: 12px 0;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 18px;
    color: var(--hf-on-surface);
    transition: border-color 0.3s ease;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.hausflix-contact .wpcf7-textarea { resize: none; min-height: 120px; }
.hausflix-contact .wpcf7-select { cursor: pointer; }
.hausflix-contact .wpcf7-form-control::placeholder { color: rgba(85, 66, 61, 0.4); }

.hausflix-contact .wpcf7-form-control:focus {
    outline: none;
    border-bottom-color: var(--hf-primary);
    box-shadow: none;
}

/* Submit button */
.hausflix-contact .wpcf7-submit {
    display: inline-block;
    border: 0;
    border-radius: 0;
    background: var(--hf-primary-container);
    color: var(--hf-on-primary);
    padding: 20px 48px;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
	line-height: 14px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.3s ease;
}
.hausflix-contact .wpcf7-submit:hover { background: var(--hf-primary); }
.hausflix-contact .wpcf7-spinner { margin: 0 0 0 12px; }

/* Validation + response messages */
.hausflix-contact .wpcf7-not-valid-tip {
    color: var(--hf-primary);
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-top: 6px;
}
.hausflix-contact .wpcf7-form-control.wpcf7-not-valid { border-bottom-color: #ba1a1a; }
.wpcf7-response-output {
    border-width: 1px !important;
    border-radius: 0 !important;
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 14px;
    margin: 24px 0 0;
    padding: 12px 16px;
}

/* ---- Footer newsletter (.hf-newsletter) — single inline field + arrow --- */
.hf-newsletter { display: flex; align-items: center; gap: 8px;
                 border-bottom: 1px solid rgba(228, 226, 226, 0.3); }
.hf-newsletter .wpcf7-email {
    flex: 1; border: 0; background: transparent; border-radius: 0;
    padding: 12px 0; color: var(--hf-surface-variant);
    font-family: "Hanken Grotesk", sans-serif; font-size: 16px;
}
.hf-newsletter .wpcf7-email::placeholder { color: rgba(228, 226, 226, 0.5); }
.hf-newsletter .wpcf7-email:focus { outline: none; }
.hf-newsletter .wpcf7-submit {
    background: transparent; border: 0; color: var(--hf-primary);
    font-size: 20px; padding: 0 8px; cursor: pointer;
    transition: transform 0.3s ease;
}
.hf-newsletter .wpcf7-submit:hover { transform: translateX(4px); }

/* Responsive: stack the two-up name/email row on mobile */
@media (max-width: 767px) {
    .hausflix-contact .hf-form-row { grid-template-columns: 1fr; }
    .hausflix-contact .wpcf7-submit { width: 100%; }
}
