/**
 * Need More Help Section Block Styles
 * 
 * Colors:
 * - Primary Green: #006a3c
 * - Orange Accent: #f7b119
 * - Text Dark: #252525
 * - White: #ffffff
 * - Light Gray: #f5f6f6
 * 
 * Fonts:
 * - Roboto Bold
 * - Roboto Regular
 */

/* ============================================
   Block Container
   ============================================ */
.need-more-help-section-block {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* ============================================
   Background Wrapper
   ============================================ */
.nmh-background-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    overflow: hidden;
}

/* Background Image - Full Width */
.nmh-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Overlay Image */
.nmh-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nmh-overlay-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

/* ============================================
   Container - Uses WordPress Layout Width
   ============================================ */
.nmh-container {
    position: relative;
    z-index: 3;
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Card - White Content Box
   ============================================ */
.nmh-card {
    background-color: #ffffff;
    padding: 60px 80px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* ============================================
   Title
   ============================================ */
.nmh-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.3;
    color: #252525;
    margin: 0 0 30px 0;
}

/* ============================================
   Description
   ============================================ */
.nmh-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.6;
    color: #252525;
    margin: 0 0 40px 0;
}

.nmh-description p {
    margin: 0 0 1em 0;
}

.nmh-description p:last-child {
    margin-bottom: 0;
}

/* ============================================
   Contact Info
   ============================================ */
.nmh-contact-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 0 0 50px 0;
}

.nmh-contact-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

/* ============================================
   Icons
   ============================================ */
.nmh-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nmh-phone-icon svg {
    color: #006a3c;
}

.nmh-email-icon svg {
    color: #006a3c;
}

/* ============================================
   Contact Links
   ============================================ */
.nmh-contact-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.4;
    color: #252525;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nmh-contact-link:hover {
    color: #006a3c;
    text-decoration: underline;
}

.nmh-contact-link:focus {
    outline: 2px solid #006a3c;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   Button
   ============================================ */
.nmh-button-wrapper {
    margin: 0;
}

.nmh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 14px;
    background-color: #f7b119;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 1.4;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.nmh-button:hover, .nmh-button:focus {
    background-color: #006a3c;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.nmh-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 106, 60, 0.3);
}

.nmh-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.nmh-button-icon svg {
    width: 14px;
    height: 14px;
    color: #ffffff;
}

/* ============================================
   Responsive Design
   ============================================ */

/* Desktop - Large (1400px+) */
@media (min-width: 1400px) {
    .nmh-background-wrapper {
        min-height: 650px;
        padding: 100px 20px;
    }
    
    .nmh-card {
        padding: 70px 100px;
    }
    
    .nmh-title {
        font-size: 52px;
        margin-bottom: 35px;
    }
    
    .nmh-description {
        font-size: 22px;
        margin-bottom: 45px;
    }
    
    .nmh-contact-info {
        gap: 80px;
        margin-bottom: 55px;
    }
    
    .nmh-contact-link {
        font-size: 26px;
    }
    
    .nmh-button {
        font-size: 18px;
        padding: 14px 14px;
    }
}

/* Desktop - Standard (1200px - 1399px) */
@media (max-width: 1399px) {
    .nmh-background-wrapper {
        min-height: 600px;
        padding: 80px 20px;
    }
    
    .nmh-card {
        padding: 60px 80px;
    }
    
    .nmh-title {
        font-size: 48px;
    }
    
    .nmh-description {
        font-size: 20px;
    }
    
    .nmh-contact-link {
        font-size: 24px;
    }
}

/* Desktop - Small (992px - 1199px) */
@media (max-width: 1199px) {
    .nmh-background-wrapper {
        min-height: 550px;
        padding: 70px 20px;
    }
    
    .nmh-card {
        padding: 50px 60px;
    }
    
    .nmh-title {
        font-size: 42px;
        margin-bottom: 25px;
    }
    
    .nmh-description {
        font-size: 18px;
        margin-bottom: 35px;
    }
    
    .nmh-contact-info {
        gap: 50px;
        margin-bottom: 45px;
    }
    
    .nmh-contact-link {
        font-size: 22px;
    }
    
    .nmh-icon {
        width: 36px;
        height: 36px;
    }
    
    .nmh-button {
        font-size: 19px;
        padding: 16px 40px;
    }
}

/* Tablet - Standard (768px - 991px) */
@media (max-width: 991px) {
    .nmh-background-wrapper {
        min-height: 500px;
        padding: 60px 20px;
    }
    
    .nmh-card {
        padding: 45px 50px;
    }
    
    .nmh-title {
        font-size: 38px;
        margin-bottom: 22px;
    }
    
    .nmh-description {
        font-size: 17px;
        margin-bottom: 32px;
    }
    
    .nmh-contact-info {
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .nmh-contact-link {
        font-size: 20px;
    }
    
    .nmh-icon {
        width: 34px;
        height: 34px;
    }
    
    .nmh-button {
        font-size: 18px;
        padding: 15px 38px;
    }
}

/* Tablet - Small and Mobile (< 768px) */
@media (max-width: 767px) {
    .nmh-background-wrapper {
        min-height: auto;
        padding: 50px 15px;
    }
    
    .nmh-card {
        padding: 40px 30px;
    }
    
    .nmh-title {
        font-size: 32px;
        margin-bottom: 20px;
    }
    
    .nmh-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .nmh-contact-info {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 35px;
    }
    
    .nmh-contact-item {
        gap: 12px;
    }
    
    .nmh-contact-link {
        font-size: 18px;
    }
    
    .nmh-icon {
        width: 32px;
        height: 32px;
    }
    
    .nmh-button {
        font-size: 17px;
        padding: 14px 35px;
    }
}

/* Mobile - Standard (400px - 576px) */
@media (max-width: 576px) {
    .nmh-background-wrapper {
        padding: 40px 10px;
    }
    
    .nmh-card {
        padding: 35px 25px;
    }
    
    .nmh-title {
        font-size: 28px;
        margin-bottom: 18px;
    }
    
    .nmh-description {
        font-size: 15px;
        margin-bottom: 28px;
    }
    
    .nmh-contact-info {
        gap: 22px;
        margin-bottom: 32px;
    }
    
    .nmh-contact-link {
        font-size: 17px;
    }
    
    .nmh-icon {
        width: 30px;
        height: 30px;
    }
    
    .nmh-button {
        font-size: 16px;
        padding: 13px 32px;
    }
}

/* Mobile - Extra Small (< 400px) */
@media (max-width: 399px) {
    .nmh-background-wrapper {
        padding: 35px 10px;
    }
    
    .nmh-card {
        padding: 30px 20px;
    }
    
    .nmh-title {
        font-size: 26px;
        margin-bottom: 16px;
    }
    
    .nmh-description {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .nmh-contact-info {
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .nmh-contact-link {
        font-size: 16px;
    }
    
    .nmh-icon {
        width: 28px;
        height: 28px;
    }
    
    .nmh-button {
        font-size: 15px;
        padding: 12px 28px;
        gap: 6px;
    }
    
    .nmh-button-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* ============================================
   Accessibility Features
   ============================================ */

/* Focus styles for keyboard navigation */
.nmh-contact-link:focus-visible,
.nmh-button:focus-visible {
    outline: 3px solid #006a3c;
    outline-offset: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .nmh-card {
        border: 2px solid #000000;
    }
    
    .nmh-title,
    .nmh-description,
    .nmh-contact-link {
        color: #000000;
    }
    
    .nmh-button {
        border: 2px solid #000000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .nmh-contact-link,
    .nmh-button {
        transition: none;
    }
    
    .nmh-button:hover {
        transform: none;
    }
}

/* Print styles */
@media print {
    .nmh-background-wrapper {
        min-height: auto;
        padding: 20px;
    }
    
    .nmh-background-image,
    .nmh-overlay-image {
        display: none;
    }
    
    .nmh-card {
        box-shadow: none;
        border: 1px solid #000000;
        padding: 30px;
    }
    
    .nmh-button {
        border: 1px solid #000000;
        background-color: transparent;
        color: #000000;
    }
}

/* ============================================
   WordPress Editor Styles
   ============================================ */

/* Ensure proper display in Gutenberg editor */
.wp-block[data-type="acf/need-more-help-section"] {
    max-width: 100%;
}

/* Preview mode adjustments */
.acf-block-preview .need-more-help-section-block {
    margin: 0 auto;
}

/* ============================================
   Alignment Support
   ============================================ */

/* Wide alignment */
.need-more-help-section-block.alignwide {
    max-width: var(--theme-wide-container-max-width, 1600px);
}

/* Full alignment (default) */
.need-more-help-section-block.alignfull {
    max-width: 100%;
    width: 100%;
}

