/**
 * Lettings Title And Description Section Block Styles
 * 
 * Two-column layout with title and description for each column.
 * 
 * Colors:
 * - White: #ffffff (background)
 * - Dark Text: #252525 (title and description text)
 * 
 * Fonts:
 * - Roboto Bold
 * - Roboto Regular
 */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    --ltds-bg-white: #ffffff;
    --ltds-text-dark: #252525;
}

/* ============================================
   Block Container
   ============================================ */
.lettings-title-description-section {
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Background wrapper - Full width white background */
.ltds-background-wrapper {
    width: 100%;
    background: var(--ltds-bg-white);
    padding: 80px 0;
}

/* Content container - Uses WordPress layout width */
.ltds-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Columns Layout
   ============================================ */
.ltds-columns-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: start;
}

.ltds-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   Column Title
   ============================================ */
.ltds-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 45px;
    line-height: 1.2;
    color: var(--ltds-text-dark) !important;
    margin: 0;
    text-align: left;
}

/* ============================================
   Column Description
   ============================================ */
.ltds-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.7;
    color: var(--ltds-text-dark);
    text-align: left;
    margin: 0;
}

.ltds-description p {
    margin: 0 0 15px 0;
    color: var(--ltds-text-dark);
}

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

.ltds-description a {
    color: var(--green-primary, #006a3c);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.ltds-description a:hover {
    color: var(--orange-accent, #f7b119);
}

.ltds-description ul,
.ltds-description ol {
    margin: 0 0 15px 20px;
    padding: 0;
    color: var(--ltds-text-dark);
}

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

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

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

/* Large Desktop */
@media (max-width: 1400px) {
    .ltds-container {
        max-width: 1200px;
    }
    
    .ltds-columns-wrapper {
        gap: 50px;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    .ltds-container {
        max-width: 960px;
    }
    
    .ltds-background-wrapper {
        padding: 70px 0;
    }
    
    .ltds-columns-wrapper {
        gap: 40px;
    }
    
    .ltds-title {
        font-size: 45px;
    }
    
    .ltds-description {
        font-size: 17px;
    }
}

/* Tablet - Large */
@media (max-width: 992px) {
    .ltds-background-wrapper {
        padding: 60px 0;
    }
    
    .ltds-columns-wrapper {
        gap: 35px;
    }
    
    .ltds-title {
        font-size: 26px;
        margin-bottom: 15px;
    }
    
    .ltds-description {
        font-size: 32px;
        line-height: 1.65;
    }
}

/* Tablet - Medium */
@media (max-width: 768px) {
    .ltds-background-wrapper {
        padding: 50px 0;
    }
    
    .ltds-columns-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .ltds-column {
        gap: 15px;
    }
    
    .ltds-title {
        font-size: 28px;
    }
    
    .ltds-description {
        font-size: 16px;
        line-height: 1.7;
    }
}

/* Mobile - Large */
@media (max-width: 576px) {
    .ltds-background-wrapper {
        padding: 40px 0;
    }
    
    .ltds-container {
        padding: 0 15px;
    }
    
    .ltds-columns-wrapper {
        gap: 35px;
    }
    
    .ltds-title {
        font-size: 28px;
    }
    
    .ltds-description {
        font-size: 16px;
    }
    
    .ltds-description p {
        margin-bottom: 12px;
    }
}

/* Mobile - Small */
@media (max-width: 400px) {
    .ltds-background-wrapper {
        padding: 35px 0;
    }
    
    .ltds-title {
        font-size: 24px;
    }
    
    .ltds-description {
        font-size: 15px;
        line-height: 1.65;
    }
}

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

.block-editor-block-list__block[data-type="acf/lettings-title-description-section"] .lettings-title-description-section {
    padding: 40px 0;
}

/* ============================================
   Alignment Support
   ============================================ */
.lettings-title-description-section.alignwide .ltds-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
}

.lettings-title-description-section.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.lettings-title-description-section.alignfull .ltds-background-wrapper {
    width: 100%;
}

.lettings-title-description-section.alignfull .ltds-container {
    max-width: var(--theme-normal-container-max-width, 1290px);
    width: var(--theme-container-width, 100%);
}

@media (max-width: 768px) {
    .lettings-title-description-section.alignfull .ltds-container {
        padding: 0 20px;
    }
}

@media (max-width: 576px) {
    .lettings-title-description-section.alignfull .ltds-container {
        padding: 0 15px;
    }
}

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

/* Ensure proper contrast for text on white background */
@media (prefers-contrast: high) {
    .ltds-title {
        color: #000000;
    }
    
    .ltds-description,
    .ltds-description p {
        color: #000000;
    }
    
    .ltds-background-wrapper {
        background-color: #ffffff;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .ltds-description a {
        transition: none;
    }
}

/* Focus states for accessibility */
.ltds-description a:focus {
    outline: 2px solid var(--green-primary, #006a3c);
    outline-offset: 2px;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .lettings-title-description-section {
        page-break-inside: avoid;
    }
    
    .ltds-background-wrapper {
        padding: 30px 0;
        background-color: #ffffff !important;
    }
    
    .ltds-columns-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .ltds-title,
    .ltds-description,
    .ltds-description p {
        color: #000000 !important;
    }
}

