/* style/about.css */
:root {
    --primary-color: #F2C14E;
    --secondary-color: #FFD36B;
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    --card-bg: #111111;
    --background-color-page: #0A0A0A;
    --text-main-color: #FFF6D6;
    --border-color: #3A2A12;
    --glow-color: #FFD36B;
    --header-offset: 120px; /* Default desktop header height */
}

.page-about {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Main text color for the page */
    background-color: var(--background-color-page); /* Page background */
    line-height: 1.6;
}

.page-about__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset); /* Ensure content is below fixed header */
    padding-bottom: 60px;
    overflow: hidden;
    background-color: var(--background-color-page);
}

.page-about__hero-image-wrapper {
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    position: relative;
}

.page-about__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6); /* Darken image for text readability */
}

.page-about__hero-content-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    max-width: 900px;
    width: 90%;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-about__intro-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    color: var(--text-main-color);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-about__section {
    padding: 60px 0;
    background-color: var(--background-color-page);
}

.page-about__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-about__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-about__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: var(--text-main-color);
}

.page-about__sub-title {
    font-size: clamp(1.4em, 2.5vw, 2em);
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__paragraph {
    font-size: 1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    line-height: 1.7;
}

.page-about__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-about__image-text-block--reverse {
    flex-direction: row-reverse;
}

.page-about__image-text-image {
    flex: 1;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-about__text-content {
    flex: 1;
}

.page-about__features-grid, .page-about__service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-about__feature-card, .page-about__service-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-about__feature-title, .page-about__service-title {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-about__feature-description, .page-about__service-description {
    font-size: 1em;
    color: var(--text-main-color);
    line-height: 1.6;
    flex-grow: 1;
}

.page-about__full-width-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 40px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-about__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-about__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-about__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-about__btn-secondary {
    background: none;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    margin-top: 20px;
}

.page-about__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 10px var(--glow-color);
}

.page-about__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-about__features-grid--small .page-about__feature-card {
    text-align: left;
    padding: 25px;
}

/* FAQ Section */
.page-about__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg);
}

.page-about__faq-list {
    margin-top: 40px;
}

.page-about__faq-item {
    background-color: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-about__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #1a1a1a;
    color: var(--primary-color);
    font-size: 1.2em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.page-about__faq-question:hover {
    background-color: #222222;
}

.page-about__faq-question h3 {
    margin: 0;
    color: var(--primary-color);
    font-size: 1.2em;
}

.page-about__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.page-about__faq-item.active .page-about__faq-toggle {
    transform: rotate(45deg);
}

.page-about__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-main-color);
    background-color: #111111;
}

.page-about__faq-item.active .page-about__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px;
}

.page-about__faq-answer p {
    margin: 0;
    line-height: 1.6;
}

.page-about__service-card .page-about__btn-secondary {
    width: auto;
    align-self: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-about__hero-image-wrapper {
        height: 500px;
    }
    .page-about__hero-content-wrapper {
        padding: 15px;
        width: 95%;
    }
    .page-about__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-about__intro-description {
        font-size: 0.95em;
    }
    .page-about__image-text-block {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .page-about__image-text-block--reverse {
        flex-direction: column;
    }
    .page-about__image-text-image {
        max-width: 100%;
    }
    .page-about__sub-title {
        text-align: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-offset: 100px; /* Mobile header height */
    }
    .page-about {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-about__hero-section {
        padding-top: var(--header-offset) !important;
        padding-bottom: 40px;
    }
    .page-about__hero-image-wrapper {
        height: 400px;
    }
    .page-about__hero-content-wrapper {
        padding: 10px;
    }
    .page-about__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 10px;
    }
    .page-about__intro-description {
        font-size: 0.9em;
        margin-bottom: 20px;
    }
    .page-about__section {
        padding: 40px 0;
    }
    .page-about__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 30px;
    }
    .page-about__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-about__sub-title {
        font-size: clamp(1.2em, 4vw, 1.6em);
        margin-top: 20px;
    }
    .page-about__paragraph {
        font-size: 0.95em;
    }
    .page-about__image-text-block {
        padding: 20px;
        margin-bottom: 40px;
    }
    .page-about__image-text-image {
        min-width: 200px !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-about__features-grid, .page-about__service-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-about__feature-card, .page-about__service-card {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-about__full-width-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-about__cta-button {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-about__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-about__faq-question {
        padding: 15px;
        font-size: 1.1em;
    }
    .page-about__faq-question h3 {
        font-size: 1.1em;
    }
    .page-about__faq-answer {
        padding: 0 15px;
    }
    .page-about__faq-item.active .page-about__faq-answer {
        padding: 15px;
    }
    .page-about__container {
        padding-left: 15px;
        padding-right: 15px;
    }
}