/* ==========================================================================
   H-FEC Developer Theme - Main CSS
   Joondalup Festival UI: Pure black, Barlow Condensed, massive type, bold color
   ========================================================================== */

/* ---------- CSS Custom Properties ---------- */
:root {
    /* Brand colors – Joondalup vibrant palette adapted for H-FEC */
    --hfec-primary: #00B6FF;
    --hfec-secondary: #00D4FF;
    --hfec-accent: #00B6FF;
    --hfec-orange: #FF6200;
    --hfec-pink: #FF41DB;
    --hfec-green: #00D509;
    --hfec-purple: #CA27FA;
    --hfec-dark: #000000;
    --hfec-light: #111111;
    --hfec-white: #FFFFFF;
    --hfec-black: #000000;
    /* Grays */
    --hfec-gray-100: #111111;
    --hfec-gray-200: #1a1a1a;
    --hfec-gray-300: #222222;
    --hfec-gray-400: #555555;
    --hfec-gray-500: #777777;
    --hfec-gray-600: #999999;
    --hfec-gray-700: #bbbbbb;
    --hfec-gray-800: #dddddd;
    --hfec-gray-900: #f0f0f0;
    --hfec-success: #00D509;
    --hfec-warning: #FF6200;
    --hfec-danger: #EF4444;
    /* Typography – Barlow Condensed (headings, Joondalup style) + DM Sans (body) */
    --hfec-font-body: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --hfec-font-heading: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --hfec-font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    /* Joondalup-scale massive typography */
    --hfec-fs-xs: clamp(0.7rem, 0.8vw, 0.8rem);
    --hfec-fs-sm: clamp(0.8rem, 0.9vw, 0.875rem);
    --hfec-fs-base: clamp(0.95rem, 1vw, 1.0625rem);
    --hfec-fs-lg: clamp(1.125rem, 1.3vw, 1.25rem);
    --hfec-fs-xl: clamp(1.25rem, 1.6vw, 1.5rem);
    --hfec-fs-2xl: clamp(1.5rem, 2.5vw, 2.25rem);
    --hfec-fs-3xl: clamp(2rem, 4vw, 3.75rem);
    --hfec-fs-4xl: clamp(2.5rem, 6vw, 5.5rem);
    --hfec-fs-5xl: clamp(3.5rem, 8vw, 6.75rem);
    --hfec-fs-display: clamp(4rem, 10vw, 8.75rem);
    --hfec-fw-regular: 400;
    --hfec-fw-medium: 500;
    --hfec-fw-semibold: 600;
    --hfec-fw-bold: 700;
    --hfec-fw-extrabold: 800;
    --hfec-lh-tight: 0.92;
    --hfec-lh-snug: 1.05;
    --hfec-lh-normal: 1.6;
    --hfec-lh-relaxed: 1.75;
    /* Spacing – generous like Joondalup */
    --hfec-space-xs: 0.25rem;
    --hfec-space-sm: 0.5rem;
    --hfec-space-md: 1rem;
    --hfec-space-lg: 1.5rem;
    --hfec-space-xl: 2rem;
    --hfec-space-2xl: 3rem;
    --hfec-space-3xl: 4rem;
    --hfec-space-4xl: 6rem;
    --hfec-space-5xl: 8rem;
    --hfec-space-6xl: clamp(6rem, 12vh, 10rem);
    /* Border radius */
    --hfec-radius-sm: 6px;
    --hfec-radius-md: 12px;
    --hfec-radius-lg: 16px;
    --hfec-radius-xl: 24px;
    --hfec-radius-2xl: 32px;
    --hfec-radius-full: 9999px;
    /* Shadows */
    --hfec-shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
    --hfec-shadow-md: 0 4px 16px rgba(0,0,0,0.5);
    --hfec-shadow-lg: 0 12px 40px rgba(0,0,0,0.6);
    --hfec-shadow-xl: 0 24px 64px rgba(0,0,0,0.7);
    /* Transitions */
    --hfec-transition-fast: 0.15s ease;
    --hfec-transition-base: 0.3s ease;
    --hfec-transition-slow: 0.5s ease;
    --hfec-transition-spring: 0.6s cubic-bezier(0.16,1,0.3,1);
    /* Z-index */
    --hfec-z-dropdown: 100;
    --hfec-z-sticky: 200;
    --hfec-z-fixed: 300;
    --hfec-z-overlay: 400;
    --hfec-z-modal: 500;
    --hfec-z-preloader: 9999;
    /* Layout */
    --hfec-container-max: 1320px;
    --hfec-container-pad: clamp(1.25rem, 5vw, 3rem);
    --hfec-header-height: 80px;
}

/* ---------- Reset & Base ---------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    background-color: #000;
}
body {
    font-family: var(--hfec-font-body);
    font-size: var(--hfec-fs-base);
    line-height: var(--hfec-lh-normal);
    color: rgba(255,255,255,0.75);
    background: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--hfec-primary); text-decoration: none; transition: color var(--hfec-transition-fast); }
a:hover { color: var(--hfec-white); }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 {
    font-family: var(--hfec-font-display);
    font-weight: var(--hfec-fw-semibold);
    line-height: var(--hfec-lh-tight);
    color: var(--hfec-white);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
::selection { background: var(--hfec-primary); color: var(--hfec-white); }
:focus-visible {
    outline: 2px solid var(--hfec-primary);
    outline-offset: 2px;
}

/* ---------- Preloader ---------- */
.hfec-preloader {
    position: fixed; inset: 0; z-index: var(--hfec-z-preloader);
    background: #000000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.6s, visibility 0.6s;
}
.hfec-preloader.hfec-preloader--hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.hfec-preloader__spinner svg { animation: hfec-spin 1s linear infinite; }
@keyframes hfec-spin { to { transform: rotate(360deg); } }

/* ---------- Container ---------- */
.hfec-section__container {
    max-width: var(--hfec-container-max);
    margin: 0 auto;
    padding-left: var(--hfec-container-pad);
    padding-right: var(--hfec-container-pad);
}

/* ---------- Sections ---------- */
.hfec-section {
    position: relative;
    padding: var(--hfec-space-6xl) 0;
    overflow: hidden;
}
.hfec-section--rounded-top {
    border-radius: 0;
}
.hfec-section--rounded-bottom {
    border-radius: 0;
}
.hfec-section--rounded {
    border-radius: 0;
}

.hfec-section__tagline,
.hfec-section__label {
    display: block;
    font-family: var(--hfec-font-display);
    font-size: var(--hfec-fs-sm);
    font-weight: var(--hfec-fw-semibold);
    color: var(--hfec-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--hfec-space-lg);
    text-align: center;
}
.hfec-section__title {
    font-family: var(--hfec-font-display);
    font-size: var(--hfec-fs-5xl);
    font-weight: var(--hfec-fw-semibold);
    color: var(--hfec-white);
    margin-bottom: var(--hfec-space-xl);
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: var(--hfec-lh-tight);
    text-align: center;
}
.hfec-section__desc {
    font-size: var(--hfec-fs-lg);
    color: rgba(255,255,255,0.55);
    max-width: 640px;
    margin: 0 auto var(--hfec-space-3xl);
    text-align: center;
    line-height: var(--hfec-lh-relaxed);
}
.hfec-section__header {
    text-align: center;
    margin-bottom: var(--hfec-space-3xl);
}
.hfec-section-line {
    width: 60px;
    height: 3px;
    background: var(--hfec-primary);
    margin: 0 auto var(--hfec-space-xl);
    border-radius: var(--hfec-radius-full);
}

/* ---------- Buttons – Joondalup pill-style, bold ---------- */
.hfec-btn {
    display: inline-flex; align-items: center; gap: 0.5em;
    font-family: var(--hfec-font-display);
    font-weight: var(--hfec-fw-semibold);
    font-size: var(--hfec-fs-base);
    padding: 0.9em 2.2em;
    border-radius: var(--hfec-radius-full);
    transition: all var(--hfec-transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
}
.hfec-btn--primary {
    background: var(--hfec-orange);
    color: var(--hfec-white);
}
.hfec-btn--primary:hover {
    background: #e55800;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(255,98,0,0.35);
    color: var(--hfec-white);
}
.hfec-btn--glow { box-shadow: 0 0 20px rgba(255,98,0,0.3); }
.hfec-btn--glow:hover { box-shadow: 0 0 40px rgba(255,98,0,0.5); }
.hfec-btn--outline {
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--hfec-white);
    background: transparent;
}
.hfec-btn--outline:hover {
    background: var(--hfec-white);
    border-color: var(--hfec-white);
    color: var(--hfec-black);
    transform: translateY(-2px);
}
.hfec-btn--outline-light {
    border: 2px solid rgba(255,255,255,0.35);
    color: var(--hfec-white);
    background: transparent;
}
.hfec-btn--outline-light:hover {
    background: var(--hfec-white);
    border-color: var(--hfec-white);
    color: var(--hfec-black);
}
.hfec-btn--whatsapp {
    background: #25D366;
    color: var(--hfec-white);
    padding: 0.9em 2.2em;
    border-radius: var(--hfec-radius-full);
}
.hfec-btn--whatsapp:hover { background: #1DA851; color: var(--hfec-white); transform: translateY(-2px); }
.hfec-btn--lg { padding: 1.1em 2.8em; font-size: var(--hfec-fs-lg); }
.hfec-btn--small,
.hfec-btn--sm {
    padding: 0.55em 1.4em;
    font-size: var(--hfec-fs-sm);
}
.hfec-btn--full { width: 100%; justify-content: center; }
.hfec-btn svg { flex-shrink: 0; }
.hfec-btn--glass {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--hfec-white);
}
.hfec-btn--glass:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
}
/* Blue CTA variant */
.hfec-btn--blue {
    background: var(--hfec-primary);
    color: var(--hfec-white);
}
.hfec-btn--blue:hover {
    background: #009ee0;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,182,255,0.35);
    color: var(--hfec-white);
}

/* ---------- Card Base ---------- */
.hfec-glass {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--hfec-radius-lg);
}

/* ---------- Form Elements ---------- */
.hfec-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--hfec-space-md); }
.hfec-form__group { margin-bottom: var(--hfec-space-lg); }
.hfec-form__label {
    display: block;
    font-family: var(--hfec-font-display);
    font-size: var(--hfec-fs-sm);
    font-weight: var(--hfec-fw-semibold);
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--hfec-space-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.hfec-form__input,
.hfec-form__select,
.hfec-form__textarea {
    width: 100%;
    padding: 0.9em 1.2em;
    font-family: var(--hfec-font-body);
    font-size: var(--hfec-fs-base);
    color: var(--hfec-white);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--hfec-radius-sm);
    transition: border-color var(--hfec-transition-fast), background var(--hfec-transition-fast);
    outline: none;
}
.hfec-form__input:focus,
.hfec-form__select:focus,
.hfec-form__textarea:focus {
    border-color: var(--hfec-primary);
    background: rgba(255,255,255,0.09);
}
.hfec-form__select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1em center;
    padding-right: 2.5em;
}
.hfec-form__textarea {
    resize: vertical;
    min-height: 120px;
}
.hfec-form__input::placeholder { color: rgba(255,255,255,0.25); }
.hfec-form__consent {
    margin-bottom: var(--hfec-space-lg);
    font-size: var(--hfec-fs-sm);
    color: rgba(255,255,255,0.45);
}
.hfec-form__checkbox-label {
    display: flex; align-items: flex-start; gap: var(--hfec-space-sm); cursor: pointer;
}
.hfec-form__checkbox-label input { margin-top: 3px; accent-color: var(--hfec-primary); }
.hfec-form__message {
    margin-top: var(--hfec-space-md);
    padding: var(--hfec-space-md);
    border-radius: var(--hfec-radius-sm);
    font-size: var(--hfec-fs-sm);
}
.hfec-form__message--success { background: rgba(16,185,129,0.15); color: var(--hfec-success); }
.hfec-form__message--error { background: rgba(239,68,68,0.15); color: var(--hfec-danger); }

/* ---------- Scroll to Top ---------- */
.hfec-scroll-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    color: var(--hfec-white);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--hfec-radius-full);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--hfec-shadow-lg);
    z-index: var(--hfec-z-fixed);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: all var(--hfec-transition-base);
}
.hfec-scroll-top--visible { opacity: 1; visibility: visible; transform: translateY(0); }
.hfec-scroll-top:hover { background: var(--hfec-primary); transform: translateY(-3px); color: var(--hfec-white); }

/* ---------- Spinner ---------- */
.hfec-spinner { animation: hfec-spin 0.8s linear infinite; }

/* ---------- Screen Reader Only ---------- */
.screen-reader-text {
    clip: rect(1px,1px,1px,1px);
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; word-wrap: normal;
}
