/**
 * Healing Hands Block Patterns Styles
 * Based on Penpot Design System
 * Version: 1.0.0
 */

/* ============================================
   HEADER NAV PATTERN STYLES
   ============================================ */

.hh-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.hh-header-nav a {
    position: relative;
    text-decoration: none;
    transition: opacity 200ms ease;
}

.hh-header-nav a:hover {
    opacity: 0.8;
}

.hh-nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: #66C7CF;
    transition: width 200ms ease;
}

/* Active state styling */
.hh-nav-about-wrapper .hh-nav-underline {
    width: 100%;
}

/* ============================================
   FOOTER PATTERN STYLES
   ============================================ */

.hh-footer {
    margin-top: auto;
}

.hh-footer-links .gb-container {
    margin-bottom: 8px;
}

.hh-footer a {
    text-decoration: none;
    transition: opacity 200ms ease;
}

.hh-footer a:hover {
    opacity: 0.7;
}

.hh-footer h3 {
    margin-bottom: 15px;
}

/* Social icon styling */
.hh-footer-social .gb-headline {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: background-color 200ms ease, transform 200ms ease;
}

.hh-footer-social .gb-headline:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ============================================
   FORM SECTION PATTERN STYLES
   ============================================ */

.hh-form-section {
    position: relative;
    overflow: hidden;
}

.hh-form-panel {
    position: relative;
    z-index: 2;
}

.hh-form-photo {
    position: relative;
}

.hh-form-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 199, 207, 0.1) 0%, rgba(56, 120, 125, 0.2) 100%);
}

/* Form input styling */
.hh-form-input {
    transition: box-shadow 200ms ease;
}

.hh-form-input:focus {
    box-shadow: 0 0 0 3px rgba(102, 199, 207, 0.3);
}

.hh-form-next {
    transition: transform 200ms ease, box-shadow 200ms ease, opacity 200ms ease;
}

.hh-form-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hh-form-next:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Stepper styling */
.hh-stepper-circles {
    position: relative;
}

/* Step circle animations */
.hh-step-1,
.hh-step-2,
.hh-step-3 {
    transition: all 300ms ease;
}

.hh-step-1:hover,
.hh-step-2:hover,
.hh-step-3:hover {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .hh-header {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .hh-footer {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .hh-footer-bottom {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }

    .hh-footer-links {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px;
    }

    .hh-footer-badges {
        display: none;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Header mobile */
    .hh-header {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .hh-header-logo {
        width: 120px !important;
        height: 43px !important;
    }

    .hh-header-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px !important;
        margin-top: 15px;
    }

    .hh-nav-about-wrapper {
        display: none;
    }

    /* Form section mobile */
    .hh-form-section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

    .hh-form-panel {
        padding: 30px 20px !important;
    }

    .hh-form-grid {
        grid-template-columns: 1fr !important;
    }

    .hh-form-photo {
        min-height: 250px !important;
        order: -1;
    }

    .hh-form-title {
        font-size: 22px !important;
    }

    /* Footer mobile */
    .hh-footer {
        padding-left: 20px !important;
        padding-right: 20px !important;
        padding-top: 40px !important;
    }

    .hh-footer-links {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .hh-footer-bottom {
        flex-direction: column;
        gap: 16px;
        padding-left: 20px !important;
        padding-right: 20px !important;
        text-align: center;
    }

    .hh-footer-social {
        justify-content: center;
    }

    .hh-stepper-labels .gb-headline {
        font-size: 11px !important;
    }
}

/* Small mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hh-form-title {
        font-size: 20px !important;
    }

    .hh-form-input {
        height: 42px !important;
    }

    .hh-form-next {
        height: 44px !important;
    }

    .hh-footer-links .gb-headline {
        font-size: 12px !important;
    }

    .hh-footer h3 {
        font-size: 16px !important;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Visibility utilities */
.hh-hide-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hh-hide-desktop {
        display: block;
    }

    .hh-hide-mobile {
        display: none;
    }
}

/* Alignment utilities */
.hh-text-center-mobile {
    text-align: left;
}

@media (max-width: 768px) {
    .hh-text-center-mobile {
        text-align: center;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Focus visible styles for keyboard navigation */
.hh-header-nav a:focus-visible,
.hh-footer a:focus-visible,
.hh-form-next:focus-visible {
    outline: 2px solid #66C7CF;
    outline-offset: 2px;
}

/* Skip link for accessibility */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #66C7CF;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-content:focus {
    top: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hh-header-nav a,
    .hh-footer a,
    .hh-form-next,
    .hh-footer-social .gb-headline,
    .hh-step-1,
    .hh-step-2,
    .hh-step-3 {
        transition: none;
    }
}
