/* Home page specific styles */

/* Hero section styles */
.hero {
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    padding: 4rem 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: background var(--transition-base);
    background-image: url('../images/Hero%26FooterBackground6.png');
    background-size: cover;
    background-position: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: 'Times New Roman', Times, serif;
    color: #5d4f45;
    line-height: 1.2;
    margin: 0;
}

.hero-tagline {
    font-size: 1.25rem;
    color: #5d4f45;
    line-height: 1.6;
    margin: 0;
    max-width: 500px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-placeholder {
    width: min(400px, 80vw);
    aspect-ratio: 1 / 1;
    background-image: url('../images/HeroLogoLight.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.hero-image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 20px 20px;
}

.placeholder-text {
    color: var(--text-inverse);
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    z-index: 1;
    position: relative;
}

/* Services section styles */
.services {
    padding: 5rem 0;
    background-color: var(--bg-primary);
}

.services + .services {
    padding-top: 1rem;
}

.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.services .page-header {
    margin-bottom: 3rem;
    padding: 0;
    background: none;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    background-color: #ffffff;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #836c55;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-medium);
    background: #fcf7f1;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Times New Roman', Times, serif;
    color: #5d4f45;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-description {
    color: #867b74;
    line-height: 1.6;
    font-size: 1rem;
}

.services-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-style: italic;
}

.services-error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: var(--accent-error);
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-primary);
}

/* Hero section responsive styles */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

    .hero-tagline {
        font-size: 1.1rem;
    }

    .hero-container {
        gap: 2rem;
    }

    .hero-image-placeholder {
        width: min(350px, 70vw);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1rem;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta-button {
        min-width: 140px;
        padding: 0.875rem 1.5rem;
    }

    .hero-visual {
        justify-content: center;
    }

    .hero-image-placeholder {
        width: 250px;
        height: 250px;
        margin-top: 1rem;
    }

    .placeholder-text {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 2rem 0;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 0.95rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
    }

    .hero-image-placeholder {
        width: 200px;
        height: 200px;
    }

    .placeholder-text {
        font-size: 1.1rem;
    }
}

/* Services section responsive styles */
@media (max-width: 1024px) {
    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .services {
        padding: 3rem 0;
    }

    .services .page-header {
        margin-bottom: 2rem;
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-title {
        font-size: 1.25rem;
    }

    .service-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 2rem 0;
    }

    .service-card {
        padding: 1.25rem;
    }

    .service-icon {
        font-size: 2.25rem;
    }

    .service-title {
        font-size: 1.1rem;
    }

    .service-description {
        font-size: 0.9rem;
    }
}

/* Service Modal */
.service-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.service-modal.active {
    display: flex;
}

.service-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.service-modal-content {
    position: relative;
    background: var(--bg-primary);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: serviceModalFadeIn 0.3s ease;
}

@keyframes serviceModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.service-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    z-index: 1;
}

.service-modal-close:hover {
    background: var(--bg-secondary, rgba(0, 0, 0, 0.05));
}

.service-modal-body {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
}

.service-modal-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-modal-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-modal-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary, #666);
}

.service-modal-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-modal-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

/* Service Modal Responsive */
@media (max-width: 768px) {
    .service-modal-body {
        flex-direction: column-reverse;
        padding: 2rem 1.5rem;
    }

    .service-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .service-modal-title {
        font-size: 1.4rem;
    }

    .service-modal-image {
        max-height: 250px;
    }
}
