/* ============================================
   Firehills Landing Page - Main Styles
   Based on Firehills Style Guide V1.0
   ============================================ */

/* CSS Variables - Brand Colors from Style Guide */
:root {
    /* Primary Brand Colors */
    --gorse-yellow: #fff301;
    --turbo: #f4c927;
    --sea-ridge: #489fcd;
    --buccaneer-blue: #035f87;
    --swamp-moss: #657f37;

    /* Neutral Colors */
    --midnight-black: #171d1a;
    --doctor-white: #fafafa;

    /* Typography */
    --font-primary: 'Assistant', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

/* ============================================
   Global Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    background-color: var(--midnight-black);
    color: var(--doctor-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Reduced motion preference support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    grid-template-columns: 1fr;
    place-items: center;
    padding: 0;
    margin: 0;
    position: relative;
}

.hero-container {
    grid-row: 1;
    max-width: 1200px;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    position: relative;
}

/* ============================================
   F Logo Container
   ============================================ */

.logo-wrapper {
    position: relative;
    display: inline-block;
    margin-top: -200px;
}

.logo-container {
    opacity: 0;
    transform: scale(0.95);
    position: relative;
    display: inline-block;
    /* Animation will be applied via animations.css */
}

.f-icon {
    width: 800px;
    height: 800px;
    max-width: 90vw;
    height: auto;
    display: block;
}

/* ============================================
   Coming Soon Section (Overlaid on F Logo)
   ============================================ */

.coming-soon-container {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    max-width: 90vw;
    z-index: 10;
    opacity: 0;
    transform: translate(-50%, -50%);
    /* Animation will be applied via animations.css */
}

.coming-soon-text {
    font-size: 4rem;
    font-weight: 800;
    color: var(--doctor-white);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.tagline {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gorse-yellow);
    font-style: italic;
    opacity: 0;
    margin-top: -300px;
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   Signup Section
   ============================================ */

.signup-section {
    width: 100%;
    max-width: 600px;
    margin-top: var(--spacing-md);
}

.signup-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.signup-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--doctor-white);
    margin-bottom: var(--spacing-xs);
}

.signup-description {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--doctor-white);
    opacity: 0.8;
    margin-bottom: var(--spacing-sm);
}

.signup-form {
    width: 100%;
}

.form-group {
    display: flex;
    gap: var(--spacing-sm);
    width: 100%;
}

.email-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background-color: rgba(250, 250, 250, 0.1);
    border: 2px solid rgba(255, 243, 1, 0.3);
    border-radius: 8px;
    color: var(--doctor-white);
    transition: all var(--transition-normal);
}

.email-input::placeholder {
    color: rgba(250, 250, 250, 0.5);
}

.email-input:focus {
    outline: none;
    border-color: var(--gorse-yellow);
    background-color: rgba(250, 250, 250, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 243, 1, 0.1);
}

.submit-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-primary);
    background-color: var(--gorse-yellow);
    color: var(--midnight-black);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.submit-btn:hover {
    background-color: var(--turbo);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 243, 1, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    text-align: center;
    min-height: 1.5rem;
}

.form-message.success {
    color: var(--gorse-yellow);
}

.form-message.error {
    color: #ff6b6b;
}

/* ============================================
   HubSpot Form Custom Styling (API Method - No Iframe)
   ============================================ */

/* HubSpot form container */
.hs-form-frame {
    width: 100%;
}

/* HubSpot generates these classes when using API method */
.hs-form {
    width: 100%;
}

/* Style HubSpot form inputs - using actual HubSpot classes */
.hs-form-frame .hs-input,
.hs-form-frame input[type="email"],
.hs-form-frame input[type="text"],
.hs-form-frame textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-primary);
    background-color: rgba(250, 250, 250, 0.1) !important;
    border: 2px solid rgba(255, 243, 1, 0.3) !important;
    border-radius: 8px !important;
    color: var(--doctor-white) !important;
    transition: all var(--transition-normal);
    box-sizing: border-box;
}

.hs-form-frame .hs-input::placeholder,
.hs-form-frame input::placeholder,
.hs-form-frame textarea::placeholder {
    color: rgba(250, 250, 250, 0.5) !important;
}

.hs-form-frame .hs-input:focus,
.hs-form-frame input:focus,
.hs-form-frame textarea:focus {
    outline: none !important;
    border-color: var(--gorse-yellow) !important;
    background-color: rgba(250, 250, 250, 0.15) !important;
    box-shadow: 0 0 0 3px rgba(255, 243, 1, 0.1) !important;
}

/* Style HubSpot submit button - using actual HubSpot classes */
.hs-form-frame .hs-button,
.hs-form-frame input[type="submit"],
.hs-form-frame button[type="submit"] {
    padding: 1rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    font-family: var(--font-primary) !important;
    background-color: var(--gorse-yellow) !important;
    color: var(--midnight-black) !important;
    border: none !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all var(--transition-normal) !important;
    white-space: nowrap;
    width: auto !important;
}

.hs-form-frame .hs-button:hover,
.hs-form-frame input[type="submit"]:hover,
.hs-form-frame button[type="submit"]:hover {
    background-color: var(--turbo) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 243, 1, 0.4) !important;
}

.hs-form-frame .hs-button:active,
.hs-form-frame input[type="submit"]:active,
.hs-form-frame button[type="submit"]:active {
    transform: translateY(0);
}

/* Style HubSpot form labels */
.hs-form-frame label,
.hs-form-frame .hs-form-field > label {
    color: #fafafa !important; /* Bright readable white */
    font-family: var(--font-primary) !important;
    font-size: 0.875rem !important;
    margin-bottom: 0.5rem !important;
    display: block;
}

/* Style consent/privacy text and checkboxes */
.hs-form-frame .hs-form-booleancheckbox label,
.hs-form-frame .hs-form-booleancheckbox-display span,
.hs-form-frame .legal-consent-container p,
.hs-form-frame .legal-consent-container label,
.hs-form-frame .hs-richtext p {
    color: #f4c927 !important; /* Turbo yellow for consent text */
    font-size: 0.75rem !important;
    line-height: 1.5 !important;
}

/* Privacy policy links */
.hs-form-frame .legal-consent-container a,
.hs-form-frame .hs-richtext a {
    color: #f4c927 !important;
    text-decoration: underline !important;
}

/* Style HubSpot form error messages */
.hs-form-frame .hs-error-msg,
.hs-form-frame .hs-error-msgs {
    color: #ff6b6b !important;
    font-size: 0.875rem !important;
    margin-top: 0.5rem !important;
}

/* Style HubSpot form success message */
.hs-form-frame .submitted-message,
.hs-form-frame .hs-form-success-message {
    color: var(--gorse-yellow) !important;
    font-size: 1rem !important;
    text-align: center !important;
    padding: 1rem !important;
}

/* Style HubSpot form fields container */
.hs-form-frame .hs-form-field {
    margin-bottom: var(--spacing-sm) !important;
}

/* Additional text elements that need readable color */
.hs-form-frame .hs-richtext,
.hs-form-frame .hs-field-desc,
.hs-form-frame .hs-form-required {
    color: #fafafa !important;
}

/* ============================================
   Social Links
   ============================================ */

.social-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(250, 250, 250, 0.1);
    color: var(--doctor-white);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.social-link:hover {
    background-color: var(--gorse-yellow);
    color: var(--midnight-black);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(255, 243, 1, 0.3);
}

.social-icon {
    width: 24px;
    height: 24px;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    grid-row: 2;
    width: 100%;
    padding: var(--spacing-md);
    text-align: center;
    background-color: rgba(23, 29, 26, 0.5);
}

.footer-container {
    max-width: 1920px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.875rem;
    color: var(--doctor-white);
    opacity: 0.7;
}

/* ============================================
   Accessibility
   ============================================ */

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--gorse-yellow);
    outline-offset: 4px;
}

/* Skip to main content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--gorse-yellow);
    color: var(--midnight-black);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
