/**
 * File: sections.css
 * Purpose: Content section styling (about, features, services, benefits, maps/iframe placeholders) including
 *          responsive grids and interactive hover states.
 * Guidelines: Keep structural grids semantic; reuse tokens from variables.css; minimize deep selector chains.
 */

.page-section {
    padding: var(--spacing-lg) 0;
    background: transparent;
}

body:not(.home-page) .page-section {
    padding: var(--spacing-lg) 0;
    background: transparent;
}

body:not(.home-page) .page-section:last-of-type {
    padding-bottom: var(--spacing-xl);
}

body:not(.home-page) .page-section h2 {
    margin-bottom: var(--spacing-xxl);
}

body:not(.home-page) .page-section h1 {
    margin-bottom: var(--spacing-xl);
}

.page-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-weight: var(--font-weight-extra-light);
    color: var(--color-primary);
    letter-spacing: -0.02em;
}

.home-page .page-section {
    background: transparent;
    padding: var(--section-padding) 0;
}

.about-section {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: var(--color-bg-content-overlay);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-light);
}

.about-section h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    text-align: center;
}

.about-section p {
    font-size: var(--font-size-about-p);
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.about-section p:last-child {
    margin-bottom: 0;
}

.home-page .about-section {
    margin-bottom: var(--spacing-xxxl);
}

.features-section {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl);
    background: var(--color-bg-form);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-light);
}

.features-section h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-primary);
    text-align: center;
}

.features-section p {
    margin-bottom: 0;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
    align-items: stretch;
}

.feature-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--gradient-dark);
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--color-border-light);
    transition: var(--transition-normal);
}

.feature-item:hover {
    border-color: var(--color-border-primary-focus);
    box-shadow: var(--shadow-dark);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: var(--icon-size-md);
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    color: var(--color-primary);
}

.feature-item span {
    font-size: var(--font-size-feature-item);
    color: var(--color-text-white);
    line-height: 1.5;
}

.features-summary {
    font-size: var(--font-size-feature-summary);
    color: var(--color-text-light);
    text-align: center;
    font-style: italic;
    margin-top: var(--spacing-xl);
}

.home-page .features-section {
    margin-bottom: var(--spacing-xxxl);
}

.service-section {
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl) 0;
}

.service-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.service-header .icon-circle {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: var(--border-radius-circle);
    background: var(--gradient-primary);
    color: var(--color-text-bright-white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md) auto;
    font-size: var(--icon-size-xl);
}

.service-header .icon-circle i,
.service-header .icon-circle .golden-icon {
    color: var(--color-text-bright-white) !important;
}

.service-section h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-primary);
    text-align: center;
}

.service-section p {
    font-size: var(--font-size-about-p);
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.benefits-section {
    background: var(--color-bg-form);
    border-radius: var(--border-radius-large);
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-light);
    margin-bottom: var(--spacing-xxl);
    padding: var(--spacing-xl);
}

.benefits-section h2 {
    margin-top: 0;
    margin-bottom: var(--spacing-xl);
    color: var(--color-text-primary);
    text-align: center;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
    align-items: stretch;
}

.benefit-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--gradient-dark);
    border-radius: var(--border-radius-medium);
    border: 1px solid var(--color-border-light);
    transition: var(--transition-normal);
}

.benefit-item:hover {
    border-color: var(--color-border-primary-focus);
    box-shadow: var(--shadow-dark);
    transform: translateY(-2px);
}

.benefit-item i {
    font-size: var(--icon-size-md);
    margin-right: var(--spacing-md);
    flex-shrink: 0;
    color: var(--color-primary);
}

.benefit-item span {
    font-size: var(--font-size-feature-item);
    color: var(--color-text-white);
    line-height: 1.5;
}

.maps-section .iframe-placeholder {
    background: var(--gradient-dark);
    backdrop-filter: blur(15px);
    border: 2px solid var(--color-border-primary-light);
    border-radius: var(--border-radius-large);
    padding: 40px;
    text-align: center;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

.iframe-section-card {
    background: var(--color-bg-process-overlay);
    backdrop-filter: blur(15px);
    border: 1px solid var(--color-border-primary);
}

.iframe-container {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    border: 2px solid var(--color-border-primary-light);
    line-height: 0;
    box-shadow: var(--shadow-heavy);
    transition: var(--transition-normal);
}

.iframe-container:hover {
    border-color: var(--color-border-primary-strong);
    box-shadow: var(--shadow-card);
}

.iframe-placeholder {
    background: var(--gradient-dark);
    backdrop-filter: blur(15px);
    border: 2px solid var(--color-border-primary-light);
    border-radius: var(--border-radius-large);
    padding: 40px;
    text-align: center;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-normal);
}

.iframe-placeholder:hover {
    border-color: var(--color-border-primary-focus);
    box-shadow: var(--shadow-dark);
}

.iframe-placeholder-content {
    max-width: 650px;
    width: 100%;
}

.iframe-placeholder-content h4 {
    color: var(--color-text-white);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    font-size: 1.5em;
    font-weight: var(--font-weight-light);
    font-family: 'Inter', sans-serif;
}

.iframe-placeholder-content p {
    color: var(--color-text-placeholder);
    font-size: 1em;
    margin-bottom: var(--spacing-lg);
    line-height: 1.6;
    font-weight: var(--font-weight-light);
}

.iframe-placeholder-content .privacy-link {
    font-size: 0.9em;
    color: var(--color-text-muted);
    margin-top: var(--spacing-md);
    display: block;
    font-weight: var(--font-weight-light);
}

.iframe-placeholder-content .privacy-link a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition-normal);
}

.iframe-placeholder-content .privacy-link a:hover {
    color: var(--color-primary-light);
}

.home-page .gray-grid-container {
    margin-bottom: var(--spacing-xxxl);
}

@media screen and (max-width: 768px) {
    .features-list,
    .benefits-list {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

@media screen and (max-width: 480px) {
    .benefit-item {
        word-wrap: break-word;
        padding: var(--spacing-sm);
    }
}
