/*
Theme Name: Staff'd
Theme URI: https://va-recruitment.co.za
Author: Metamorph Growth Agency
Author URI: https://metamorph.agency
Description: Custom WordPress theme for Staff'd, beauty industry recruitment specialists. Editorial, whitespace-led design with an elegant serif wordmark and soft mint accents. Hero background and card images are editable from the Customizer. Candidate and employer enquiry forms send via wp_mail (WP SMTP) with file attachments, a honeypot, and a post-submission WhatsApp handoff.
Version: 6.5
Requires at least: 5.5
Tested up to: 6.5
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: staffd
*/

:root {
    --white: #FFFFFF;
    --cream: #F7F4EF;
    --ink: #1F1F1F;
    --muted: #6E6E6E;
    --sage: #8CBEB1;
    --sage-deep: #5E9488;
    --sage-soft: #E4EFEB;
    --sage-pill: #D8E7E1;
    --border: #EAE5DD;
    --border-mint: #D3E4DE;
}

* {
    transition-property: color, background-color, border-color, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 170ms;
}

body {
    font-family: 'Jost', system-ui, sans-serif;
    color: var(--ink);
    background: var(--white);
    margin: 0;
}

.font-serif { font-family: 'Playfair Display', Georgia, serif; }
.script { font-family: 'Dancing Script', cursive; line-height: 0.9; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--sage-deep);
}

/* Brand lockup */
.brand-lockup { line-height: 1; }
.brand-spark svg { display: block; }

/* Buttons keep transitions smooth */
.lift:hover { transform: translateY(-4px); }

/* Hero soft mint decoration when no image is set */
.hero-soft {
    background:
        radial-gradient(90% 70% at 88% 6%, rgba(140,190,177,0.16) 0%, transparent 60%),
        radial-gradient(70% 60% at 4% 96%, rgba(140,190,177,0.10) 0%, transparent 55%),
        var(--cream);
}

/* Rotating hero background */
.sd-has-bg { background: var(--cream); }
.sd-hero-bg { position: absolute; inset: 0; z-index: 0; }
.sd-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.sd-hero-slide.is-active { opacity: 1; }
.sd-hero-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(247,244,239,0.94) 0%, rgba(247,244,239,0.78) 50%, rgba(247,244,239,0.55) 100%);
}
@media (max-width: 768px) {
    /* Stronger wash on small screens so the stacked text stays readable */
    .sd-hero-scrim {
        background: linear-gradient(180deg, rgba(247,244,239,0.92) 0%, rgba(247,244,239,0.86) 60%, rgba(247,244,239,0.80) 100%);
    }
}

.modal { animation: modalPop 0.28s cubic-bezier(0.34, 1.4, 0.64, 1); }

@keyframes modalPop {
    0% { opacity: 0; transform: scale(0.97) translateY(14px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Segmented Yes/No radio controls */
.seg { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
    display: block;
    text-align: center;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ink);
}
.seg input:checked + span {
    border-color: var(--sage);
    background: var(--sage-soft);
    color: var(--ink);
}
.seg input:focus-visible + span {
    outline: 3px solid rgba(94,148,136,0.35);
    outline-offset: 2px;
}

input:focus, select:focus, textarea:focus { outline: none; }
.field {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 0.85rem;
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-size: 0.98rem;
}
.field:focus { border-color: var(--sage); }

/* Honeypot */
.sd-hp {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px; height: 1px; overflow: hidden;
}

/* Role / location style pills */
.sd-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.25rem;
    background: var(--sage-pill);
    color: var(--ink);
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 500;
}
.sd-pill .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--sage-deep); }

/* Card image areas and placeholders */
.sd-card-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: var(--sage-soft);
}
.sd-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sd-card-img--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    border: 1.5px dashed var(--border-mint);
}
.sd-card-img--placeholder i { font-size: 1.5rem; color: var(--sage); opacity: 0.85; }

/* Pillar icon circle */
.sd-pillar-ic {
    width: 64px; height: 64px;
    border-radius: 999px;
    background: var(--sage-soft);
    color: var(--sage-deep);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    border: 1px solid var(--border-mint);
}

/* Mobile refinements */
@media (max-width: 640px) {
    .hero-h1 { font-size: 2.6rem !important; line-height: 1.02 !important; }
    .sd-card-img { aspect-ratio: 16 / 9; margin-bottom: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    .lift:hover { transform: none; }
}
