/**
 * Areas We Cover Section Block Styles
 * 
 * Colors:
 * - Primary Green: #006a3c
 * - Orange Accent: #f7b119
 * - White: #ffffff
 * - Text Dark: #252525
 * 
 * Fonts:
 * - Roboto Bold
 * - Roboto Regular
 */

/* ============================================
   Block Container
   ============================================ */
.areas-we-cover-section-block {
    width: 100%;
    background-color: #ffffff;
    padding: 80px 0;
}

/* ============================================
   Container (WordPress Layout Width)
   ============================================ */
.awc-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Title
   ============================================ */
.awc-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 48px;
    line-height: 1.2;
    color: #252525;
    text-align: center;
    margin: 0 0 20px 0;
}

/* ============================================
   Description
   ============================================ */
.awc-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.6;
    color: #252525;
    text-align: center;
    margin: 0 auto 60px;
    max-width: 900px;
}

/* ============================================
   Grid Layout
   ============================================ */
.awc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* ============================================
   Card
   ============================================ */
.awc-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.awc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* ============================================
   Card Title
   ============================================ */
.awc-card-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    color: #252525;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    position: relative;
}

/* Green underline for card title */
.awc-card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 4px;
    background-color: #006a3c;
}

/* ============================================
   Card Description
   ============================================ */
.awc-card-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #252525;
    flex: 1;
}

.awc-card-description p {
    margin: 0 0 12px 0;
}

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

/* Remove default list styling and add custom spacing */
.awc-card-description ul,
.awc-card-description ol {
    margin: 0 0 12px 0;
    padding-left: 20px;
}

.awc-card-description li {
    margin-bottom: 8px;
}

.awc-card-description li:last-child {
    margin-bottom: 0;
}

/* ============================================
   Button
   ============================================ */
.awc-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.awc-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    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;
}

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

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

.awc-button:focus {
    outline: 2px solid #006a3c;
    outline-offset: 2px;
}

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

.awc-button-icon svg {
    width: 100%;
    height: 100%;
}

.awc-button-text {
    display: inline-block;
}

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

/* Large Desktop */
@media (min-width: 1400px) {
    .awc-container {
        max-width: var(--theme-normal-container-max-width, 1290px);
        width: var(--theme-container-width, 100%);
    }
}

/* Desktop - 2 columns */
@media (max-width: 1200px) {
    .awc-container {
        width: var(--theme-container-width, 100%);
    }
    
    .awc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet */
@media (max-width: 992px) {
    .areas-we-cover-section-block {
        padding: 60px 0;
    }
    
    .awc-title {
        font-size: 40px;
        margin-bottom: 18px;
    }
    
    .awc-description {
        font-size: 17px;
        margin-bottom: 50px;
    }
    
    .awc-grid {
        gap: 25px;
        margin-bottom: 50px;
    }
    
    .awc-card {
        padding: 35px 25px;
    }
    
    .awc-card-title {
        font-size: 22px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    
    .awc-card-description {
        font-size: 15px;
    }
    
    .awc-button {
        font-size: 17px;
        padding: 14px 28px;
    }
}

/* Small Tablets - 1 column */
@media (max-width: 768px) {
    .areas-we-cover-section-block {
        padding: 50px 0;
    }
    
    .awc-container {
        width: 100%;
        padding: 0 20px;
    }
    
    .awc-title {
        font-size: 36px;
        margin-bottom: 16px;
    }
    
    .awc-description {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .awc-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .awc-card {
        padding: 30px 20px;
    }
    
    .awc-card-title {
        font-size: 20px;
        margin-bottom: 16px;
        padding-bottom: 10px;
    }
    
    .awc-card-title::after {
        width: 50px;
        height: 3px;
    }
    
    .awc-card-description {
        font-size: 15px;
    }
    
    .awc-button {
        font-size: 16px;
        padding: 13px 26px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .areas-we-cover-section-block {
        padding: 40px 0;
    }
    
    .awc-container {
        padding: 0 15px;
    }
    
    .awc-title {
        font-size: 32px;
        margin-bottom: 14px;
    }
    
    .awc-description {
        font-size: 15px;
        margin-bottom: 35px;
    }
    
    .awc-grid {
        gap: 18px;
        margin-bottom: 35px;
    }
    
    .awc-card {
        padding: 25px 18px;
        border-radius: 10px;
    }
    
    .awc-card-title {
        font-size: 19px;
        margin-bottom: 14px;
        padding-bottom: 8px;
    }
    
    .awc-card-description {
        font-size: 14px;
    }
    
    .awc-button {
        font-size: 15px;
        padding: 12px 24px;
        gap: 10px;
    }
}

/* Extra Small Mobile */
@media (max-width: 400px) {
    .areas-we-cover-section-block {
        padding: 35px 0;
    }
    
    .awc-title {
        font-size: 28px;
    }
    
    .awc-description {
        font-size: 14px;
    }
    
    .awc-card {
        padding: 20px 16px;
    }
    
    .awc-card-title {
        font-size: 18px;
    }
    
    .awc-card-description {
        font-size: 14px;
    }
    
    .awc-button {
        font-size: 14px;
        padding: 11px 22px;
        gap: 8px;
    }
}

/* ============================================
   Gutenberg Editor Specific Styles
   ============================================ */
.block-editor-block-list__block[data-type="acf/areas-we-cover-section"] {
    margin: 20px 0;
}

.block-editor-block-list__block[data-type="acf/areas-we-cover-section"] .areas-we-cover-section-block {
    padding: 40px 0;
}

/* ============================================
   Alignment Support
   ============================================ */
.areas-we-cover-section-block.alignwide .awc-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
}

.areas-we-cover-section-block.alignfull {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
}

/* ============================================
   Accessibility
   ============================================ */
.awc-button:focus-visible {
    outline: 2px solid #006a3c;
    outline-offset: 2px;
}

/* Ensure proper contrast for all text */
@media (prefers-contrast: high) {
    .awc-title,
    .awc-card-title,
    .awc-description,
    .awc-card-description {
        color: #000000;
    }
    
    .awc-card {
        border: 2px solid #252525;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .awc-card,
    .awc-button {
        transition: none !important;
    }
    
    .awc-card:hover,
    .awc-button:hover {
        transform: none !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: more) {
    .awc-card {
        border: 2px solid #252525;
    }
    
    .awc-button:focus {
        outline-width: 3px;
    }
}

/* Print Styles */
@media print {
    .areas-we-cover-section-block {
        padding: 20px 0;
        background-color: transparent !important;
    }
    
    .awc-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .awc-card:hover {
        transform: none;
    }
    
    .awc-button-wrapper {
        display: none;
    }
}

