/*
Theme Name: SO FLO FOTOS Child
Theme URI: https://soflofotos.com
Description: Child theme for SO FLO FOTOS — South Florida photography studio. Luxury minimal.
Author: SO FLO FOTOS
Template: astra
Version: 2.0.0
Text Domain: soflofotos-child
*/

/* ============================================================
   DESIGN TOKENS — LUXURY MINIMAL
   ============================================================ */
:root {
    /* ── Palette ── */
    --sff-white:            #FFFFFF;
    --sff-cream:            #FAFAF7;
    --sff-bone:             #F3EDE3;
    --sff-champagne:        #C9A96E;
    --sff-terracotta:       #B85C3C;
    --sff-terracotta-hover: #9E4A2E;
    --sff-terracotta-light: #F7EEE9;
    --sff-black:            #0D0D0D;
    --sff-charcoal:         #1C1C1C;
    --sff-dark:             #2A2A2A;
    --sff-mid:              #5A5A5A;
    --sff-muted:            #8A8A8A;
    --sff-border:           #DDD8CE;
    --sff-border-light:     #ECEAE4;

    /* ── Typography ── */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'Inter', system-ui, -apple-system, sans-serif;

    /* ── Type Scale ── */
    --text-xs:   0.6875rem;
    --text-sm:   0.8125rem;
    --text-base: 1rem;
    --text-md:   1.0625rem;
    --text-lg:   1.1875rem;
    --text-xl:   1.375rem;
    --text-2xl:  1.75rem;
    --text-3xl:  2.25rem;
    --text-4xl:  3rem;
    --text-5xl:  4rem;
    --text-6xl:  5.5rem;
    --text-7xl:  7.5rem;

    /* ── Spacing ── */
    --sp-1:  0.25rem;
    --sp-2:  0.5rem;
    --sp-3:  0.75rem;
    --sp-4:  1rem;
    --sp-5:  1.25rem;
    --sp-6:  1.5rem;
    --sp-8:  2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;
    --sp-20: 5rem;
    --sp-24: 6rem;
    --sp-32: 8rem;
    --sp-40: 10rem;

    /* ── Layout ── */
    --max-w:     1440px;
    --content-w: 1240px;
    --narrow-w:  840px;
    --gutter:    clamp(1.5rem, 5vw, 5rem);

    /* ── Motion ── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:  cubic-bezier(0.4, 0, 1, 1);
    --t-fast:   200ms;
    --t-base:   350ms;
    --t-slow:   600ms;

    /* ── Misc ── */
    --radius-sm: 2px;
    --radius:    4px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow:    0 4px 24px rgba(0,0,0,.10);
    --shadow-lg: 0 12px 48px rgba(0,0,0,.14);
    --header-h:  80px;
}

/* ── Global Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--sff-charcoal);
    background: var(--sff-cream);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
ul { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--sff-charcoal);
}
h1 { font-size: clamp(var(--text-4xl), 6vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl)); }
h3 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }
p { max-width: 65ch; }
p + p { margin-top: var(--sp-4); }

/* ── Layout Helpers ── */
.container,
.sff-container {
    width: 100%;
    max-width: var(--content-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.container--narrow,
.sff-container--narrow {
    max-width: var(--narrow-w);
    margin-inline: auto;
    padding-inline: var(--gutter);
}
.section,
.sff-section {
    padding-block: clamp(var(--sp-16), 8vw, var(--sp-32));
}
.section--sm,
.sff-section--sm {
    padding-block: clamp(var(--sp-10), 5vw, var(--sp-20));
}
.sff-section--white {
    background: var(--sff-white);
}
.sff-section--cream {
    background: var(--sff-cream);
}
.sff-section--bone {
    background: var(--sff-bone);
}

/* ── Label / Eyebrow ── */
.label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--sff-muted);
}
.label--accent { color: var(--sff-terracotta); }
.label--light  { color: rgba(255,255,255,.6); }

/* ── Divider ── */
.sff-divider {
    width: 36px; height: 1px;
    background: var(--sff-terracotta);
    display: block;
    margin-block: var(--sp-5);
}
.sff-divider--center { margin-inline: auto; }
.sff-divider--dark   { background: var(--sff-border); }
.sff-divider--light  { background: rgba(255,255,255,.35); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0.875rem 2.25rem;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--t-base) var(--ease-out);
    white-space: nowrap;
    text-decoration: none;
}
.btn--primary  { background: var(--sff-charcoal); color: var(--sff-white); border-color: var(--sff-charcoal); }
.btn--primary:hover { background: var(--sff-terracotta); border-color: var(--sff-terracotta); }

.btn--outline  { background: transparent; color: var(--sff-charcoal); border-color: var(--sff-charcoal); }
.btn--outline:hover { background: var(--sff-charcoal); color: var(--sff-white); }

.btn--outline-light { background: transparent; color: var(--sff-white); border-color: rgba(255,255,255,.55); }
.btn--outline-light:hover { background: var(--sff-white); color: var(--sff-charcoal); border-color: var(--sff-white); }

.btn--accent { background: var(--sff-terracotta); color: var(--sff-white); border-color: var(--sff-terracotta); }
.btn--accent:hover { background: var(--sff-terracotta-hover); border-color: var(--sff-terracotta-hover); }

.btn--ghost { background: transparent; color: var(--sff-mid); border-color: var(--sff-border); }
.btn--ghost:hover { border-color: var(--sff-charcoal); color: var(--sff-charcoal); }

.btn--sm  { padding: 0.625rem 1.375rem; font-size: 0.625rem; }
.btn--lg  { padding: 1.125rem 3rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── Form Elements ── */
.sff-input, .sff-textarea, .sff-select {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--sff-white);
    border: 1px solid var(--sff-border);
    border-radius: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--sff-charcoal);
    transition: border-color var(--t-fast);
    -webkit-appearance: none;
    appearance: none;
}
.sff-input:focus, .sff-textarea:focus, .sff-select:focus {
    outline: none;
    border-color: var(--sff-charcoal);
}
.sff-input::placeholder, .sff-textarea::placeholder { color: var(--sff-muted); }
.sff-textarea { resize: vertical; min-height: 130px; }
.sff-form-group { display: flex; flex-direction: column; gap: var(--sp-2); }
.sff-form-label {
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sff-mid);
}
.sff-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); }
@media (max-width: 600px) { .sff-form-row { grid-template-columns: 1fr; } }

/* ── Page Hero (inner pages) ── */
.page-hero {
    padding-block: clamp(var(--sp-20), 10vw, var(--sp-40));
    background: var(--sff-bone);
    text-align: center;
}
.page-hero .label  { margin-bottom: var(--sp-4); }
.page-hero h1      { margin-bottom: var(--sp-6); }
.page-hero p       { max-width: 52ch; margin-inline: auto; color: var(--sff-mid); font-size: var(--text-lg); }

/* ── Notices ── */
.sff-notice {
    padding: var(--sp-4) var(--sp-6);
    border-left: 3px solid var(--sff-terracotta);
    background: var(--sff-terracotta-light);
    font-size: var(--text-sm);
    color: var(--sff-dark);
}
.sff-notice--success { border-color: #5D9E6F; background: #EEF6F1; }
.sff-notice--error   { border-color: #C0392B; background: #FDECEA; }

/* ── Stars ── */
.sff-stars { display: flex; gap: 3px; color: var(--sff-champagne); font-size: 0.9rem; }

/* ── Toast ── */
.sff-toast {
    position: fixed;
    bottom: var(--sp-8);
    left: 50%;
    transform: translateX(-50%) translateY(130%);
    background: var(--sff-charcoal);
    color: var(--sff-white);
    padding: var(--sp-3) var(--sp-8);
    font-size: var(--text-xs);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 9999;
    transition: transform var(--t-base) var(--ease-out);
    white-space: nowrap;
    pointer-events: none;
}
.sff-toast.is-visible { transform: translateX(-50%) translateY(0); }

/* ── Overlay ── */
.sff-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 900;
    opacity: 0; pointer-events: none;
    transition: opacity var(--t-base);
}
.sff-overlay.is-active { opacity: 1; pointer-events: all; }

/* ── Astra Core Overrides ── */
#masthead,
.ast-masthead-custom-menu,
.ast-below-header-wrap,
.ast-breadcrumbs-wrapper,
.page-header,
.entry-header { display: none !important; }
.ast-container   { max-width: 100% !important; padding: 0 !important; }
.entry-content   { margin: 0 !important; }
.ast-article-single, #primary, .site-content, #content { padding: 0 !important; }

/* ── Screen reader only ── */
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    :root { --header-h: 64px; --gutter: 1.25rem; }
}

/* ============================================================
   PREMIUM CUSTOM BUTTERFLY CURSOR
   ============================================================ */
@media (pointer: fine) {
    /* Hide native cursor globally on mouse viewports */
    html, body, a, button, input, select, textarea, [role="button"], [data-lightbox], .sff-ap__slide-card, .sff-ap__slide-add, .sff-filter-chip {
        cursor: none !important;
    }

    /* Crisp hotspot dot at the exact click point */
    .sff-cursor-dot {
        position: fixed;
        top: 0; left: 0;
        width: 6px; height: 6px;
        background: var(--sff-terracotta);
        border: 1px solid var(--sff-white);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate3d(-50%, -50%, 0);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }

    /* Butterfly wrapper enfolding 3D wings */
    .sff-cursor-butterfly {
        position: fixed;
        top: 0; left: 0;
        width: 32px; height: 32px;
        pointer-events: none;
        z-index: 9999;
        transform-style: preserve-3d;
        perspective: 500px;
        /* Center around dot, but offset slightly down so the head tip points exactly to the dot */
        margin-top: 14px;
        margin-left: 0px;
        display: flex;
        align-items: center;
        justify-content: center;
        will-change: transform;
    }

    /* 3D Butterfly layout */
    .sff-butterfly__wings-wrap {
        position: relative;
        width: 30px; height: 26px;
        transform-style: preserve-3d;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Central butterfly body */
    .sff-butterfly__body {
        position: absolute;
        width: 3px; height: 18px;
        background: var(--sff-charcoal);
        border-radius: 2px;
        z-index: 2;
    }

    /* Left and Right Wing wrappers for independent rotation */
    .sff-butterfly__wing {
        position: absolute;
        top: 0;
        width: 14px; height: 26px;
        transform-style: preserve-3d;
        will-change: transform;
        transition: filter var(--t-fast);
    }
    
    /* Left Wing */
    .sff-butterfly__wing--left {
        right: 50%;
        transform-origin: right center;
        animation: sff-flap-left 0.15s infinite linear;
    }
    
    /* Right Wing */
    .sff-butterfly__wing--right {
        left: 50%;
        transform-origin: left center;
        animation: sff-flap-right 0.15s infinite linear;
    }

    /* Wing SVG shapes */
    .sff-butterfly__wing svg {
        width: 100%; height: 100%;
        fill: var(--sff-terracotta);
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
        transition: fill 0.2s, filter 0.2s;
    }

    /* Mirror the right wing SVG */
    .sff-butterfly__wing--right svg {
        transform: scaleX(-1);
    }

    /* When the mouse stops moving, wings enter a gentle glide/flutter state */
    .sff-cursor-butterfly.is-resting .sff-butterfly__wing--left {
        animation: sff-flap-left-slow 2.5s infinite ease-in-out;
    }
    .sff-cursor-butterfly.is-resting .sff-butterfly__wing--right {
        animation: sff-flap-right-slow 2.5s infinite ease-in-out;
    }

    /* Hover interactive reactions */
    .sff-cursor-dot.is-hovering {
        width: 10px; height: 10px;
        background: var(--sff-champagne);
    }
    .sff-cursor-butterfly.is-hovering {
        transform: scale(1.3);
    }
    .sff-cursor-butterfly.is-hovering .sff-butterfly__wing svg {
        fill: var(--sff-champagne);
        filter: drop-shadow(0 0 6px rgba(201, 169, 110, 0.7));
    }
    .sff-cursor-butterfly.is-hovering .sff-butterfly__wing--left {
        animation: sff-flap-left 0.08s infinite linear;
    }
    .sff-cursor-butterfly.is-hovering .sff-butterfly__wing--right {
        animation: sff-flap-right 0.08s infinite linear;
    }

    /* Keyframes for active flapping */
    @keyframes sff-flap-left {
        0% { transform: rotateY(0deg); }
        50% { transform: rotateY(65deg); }
        100% { transform: rotateY(0deg); }
    }
    @keyframes sff-flap-right {
        0% { transform: rotateY(0deg); }
        50% { transform: rotateY(-65deg); }
        100% { transform: rotateY(0deg); }
    }

    /* Keyframes for gentle glide/resting state */
    @keyframes sff-flap-left-slow {
        0%, 100% { transform: rotateY(15deg); }
        50% { transform: rotateY(45deg); }
    }
    @keyframes sff-flap-right-slow {
        0%, 100% { transform: rotateY(-15deg); }
        50% { transform: rotateY(-45deg); }
    }
}
