/**
 * Patterns Styles for Blocksy Seniori
 * 
 * Comprehensive styles for all pattern sections
 */

/* Common Section Styles */
.section-padding {
    padding: 5rem 0;
}

.container-responsive {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-badge {
	display: inline-block;
	padding: 0.25rem 0;
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: var(--theme-accent-color);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.about-section .section-badge {
    margin-bottom: 1rem;
}

.heading-xl {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    color: var(--theme-heading-color, #111827);
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--theme-accent-color);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    padding: 5rem 0;
    background-color: #ffffff !important;
    background-image: none !important;
    color: var(--theme-text-color, inherit);
    overflow: hidden;
}

.hero-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-content {
    max-width: 600px;
}

.hero-label {
    display: inline-block;
    background: var(--theme-primary-gradient, linear-gradient(135deg, var(--theme-accent-color) 0%, var(--theme-accent-color-darker, var(--theme-accent-color-darker, #e66a15)) 100%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    color: var(--theme-heading-color, #111827);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--theme-text-color, #4b5563);
    margin-bottom: 2rem;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.btn.btn-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85rem 2rem;
	font-size: 1.125rem;
	font-weight: 600;
	color: #ffffff;
	background: var(--theme-accent-color);
	border-radius: 2rem;
	text-decoration: none;
	transition: all 0.2s ease-in-out;
	box-shadow: 0 4px 6px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary {
    background-color: transparent;
    color: var(--theme-heading-color, #111827);
    border: 1px solid #e5e7eb;
}

.btn svg {
    margin-right: 0.5rem;
}

.hero-image-container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.hero-notice {
    margin-top: 1rem;
}

.emergency-notice {
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
}

/* About Section Styles */
.about-section {
    background-color: #ffffff;
}

.about-section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    max-width: 100%;
}

.about-description {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--theme-text-color, #4b5563);
}

.about-cta {
    margin-top: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.about-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Video styling */
.service-image-container-hero {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.service-image-hero {
    border-radius: 12px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Services Section Styles */
.services-section {
    background-color: #ffffff;
}

.services-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.services-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--theme-text-color, #4b5563);
}

.core-service-item {
    display: flex;
    padding: 2.5rem;
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

.core-service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.core-service-content {
    flex: 1;
}

.core-service-content h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    background-color: #ffffff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--theme-accent-color-light, var(--theme-accent-color-light, rgba(249, 115, 22, 0.1)));
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}

.service-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--theme-accent-color);
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--theme-heading-color, #111827);
}

.service-description {
    color: var(--theme-text-color, #4b5563);
    margin-bottom: 1rem;
}

/* FAQ Section Styles */
.faq-section {
    background-color: #ffffff;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--theme-text-color, #4b5563);
    max-width: 600px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    position: relative;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question-toggle:hover, .faq-question-toggle[aria-expanded="true"] {
    color: var(--theme-accent-color);
}

.faq-question-toggle[aria-expanded=true] .faq-toggle-icon {
    transform: rotate(45deg);
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--theme-accent-color);
    transition: transform 0.3s ease;
}

.faq-item[open] .faq-question::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--theme-text-color, #4b5563);
    line-height: 1.6;
}

/* Animation Classes */
.fade-in-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-layout-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-section-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-content {
        order: 1;
    }
    
    .about-section-grid .wp-block-column.relative {
        order: 0;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .core-service-item {
        flex-direction: column;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .heading-xl {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .core-service-item {
        padding: 1.25rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .container-responsive {
        padding: 0 1rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

/**
 * Bullet Points and Feature Lists
 */
.bullet-point,
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.bullet-icon {
    flex-shrink: 0;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}

.bullet-text,
.feature-text {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.bullets-column {
    margin-top: 1.5rem;
}

.when-to-call-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.when-to-call-heading {
    margin-bottom: 0.75rem;
    font-size: 2.25rem !important;
    color: var(--theme-heading-color, #111827);
}

.when-to-call-subheading {
    color: #64748B;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.when-to-call-layout {
    margin-top: 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.call-reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem 3rem;
}

.call-reason-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 2.5rem;
}

.call-reason-text {
    color: var(--theme-text-color, #4b5563);
    font-weight: 500;
    line-height: 1.4;
    font-size: 1rem;
    display: block;
    width: 100%;
}

.call-reason-check {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--theme-accent-color-light, rgba(249, 115, 22, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.call-reason-check svg {
    color: var(--theme-accent-color);
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    stroke: var(--theme-accent-color) !important;
    fill: none !important;
}

/* Service content icon backgrounds */
.core-service-content > .wp-block-group:first-child {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: var(--theme-accent-color-light, rgba(249, 115, 22, 0.1)) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.core-service-content > .wp-block-group:first-child svg {
    color: var(--theme-accent-color);
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    stroke: var(--theme-accent-color) !important;
    fill: none !important;
}

/* Checkmark icon containers in service lists */
.core-service-content .wp-block-group .wp-block-group[style*="border-radius:50%"] {
    background: var(--theme-accent-color-light, rgba(249, 115, 22, 0.1)) !important;
}

.core-service-content .wp-block-group .wp-block-group[style*="border-radius:50%"] svg {
    stroke: var(--theme-accent-color) !important;
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    fill: none !important;
}

/* Call-to-action button in when-to-call section */
.when-to-call-button a.wp-block-button__link {
    font-size: 1rem;
    font-weight: 600;
    min-width: 180px;
    transition: all 0.2s ease-in-out;
}

.when-to-call-button a.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px var(--theme-accent-color-shadow, rgba(249, 115, 22, 0.25));
}

@media (max-width: 768px) {
    .call-reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .when-to-call-heading {
        font-size: 1.75rem !important;
    }
    
    .when-to-call-subheading {
        font-size: 1rem !important;
    }
    
    .when-to-call-button a.wp-block-button__link {
        min-width: 160px;
    }
}

@media (max-width: 768px) {
    .bullets-column .wp-block-column {
        margin-bottom: 1rem;
    }
    
    .bullet-point,
    .feature-item {
        margin-bottom: 0.75rem;
    }
}
