/* =========================================================
   GENESIS & CO. LEGACY SERVICES
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: #ffffff;
    color: #24342d;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --green-dark: #163c2c;
    --green: #245c43;
    --green-light: #4d8064;
    --green-soft: #edf5ef;

    --gold: #b99a5a;
    --gold-light: #d6bf87;

    --cream: #faf9f5;
    --white: #ffffff;

    --text-dark: #24342d;
    --text: #526159;
    --text-light: #718078;

    --border: #dfe7e1;

    --shadow:
        0 15px 45px rgba(22, 60, 44, 0.10);

    --container: 1180px;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {
    width: min(92%, var(--container));
    margin: 0 auto;
}


/* =========================================================
   GLOBAL SECTIONS
========================================================= */

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading p {
    color: var(--text);
}

.section-label,
.eyebrow {
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-heading h2,
.about-content h2,
.legacy-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    line-height: 1.2;
    color: var(--green-dark);
    margin-bottom: 20px;
}

.section-heading h2 span,
.about-content h2 span,
.hero h1 span,
.page-hero h1 span,
.page-hero h2 span,
.legacy-content h2 span {
    color: var(--gold);
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    max-width: 320px;
}

.logo img {
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    min-width: 58px !important;
    min-height: 58px !important;
    object-fit: contain !important;
    flex: 0 0 58px !important;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name span {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-dark);
}

.brand-name small {
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.main-nav a:not(.nav-button)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--green);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.nav-button {
    background: var(--green-dark) !important;
    color: var(--white) !important;
    padding: 12px 18px;
    border-radius: 5px;
}

.nav-button::after {
    display: none !important;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 9px;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--green-dark);
    margin: 5px 0;
}


/* =========================================================
   HERO
========================================================= */

.hero {
    background:
        linear-gradient(
            90deg,
            #f7faf7 0%,
            #f7faf7 58%,
            #edf5ef 100%
        );
    padding: 95px 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 70px;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    color: var(--green-dark);
    font-size: clamp(3rem, 6vw, 5.2rem);
    line-height: 1.05;
    margin-bottom: 25px;
}

.hero-description {
    max-width: 610px;
    font-size: 1.08rem;
    color: var(--text);
    margin-bottom: 35px;
}

.hero-buttons,
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cta-buttons {
    justify-content: center;
    margin-top: 30px;
}

.hero-image .client-photo {
    width: 100%;
    height: auto;
    max-width: 650px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 7px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 25px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--green-dark);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--green);
}

.btn-outline {
    background: transparent;
    border-color: var(--green-dark);
    color: var(--green-dark);
}

.btn-outline:hover {
    background: var(--green-dark);
    color: var(--white);
}

.btn-light-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-light-outline:hover {
    background: var(--white);
    color: var(--green-dark);
}


/* =========================================================
   PAGE HERO
========================================================= */

.page-hero {
    background:
        linear-gradient(
            135deg,
            var(--green-dark),
            var(--green)
        );
    color: var(--white);
    padding: 100px 0;
    text-align: center;
}

.page-hero .container {
    max-width: 900px;
}

.page-hero .section-label {
    color: var(--gold-light);
}

.page-hero h1,
.page-hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.7rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 22px;
}

.page-hero p {
    max-width: 720px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.86);
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 75px;
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-logo-image {
    width: 300px !important;
    height: 300px !important;
    object-fit: contain !important;
}

.about-content p {
    color: var(--text);
    margin-bottom: 18px;
}

.about-content strong {
    color: var(--green-dark);
}

.text-link {
    display: inline-block;
    margin-top: 10px;
    color: var(--green);
    font-weight: 700;
    border-bottom: 1px solid var(--gold);
}


/* =========================================================
   SERVICES
========================================================= */

.services {
    background: var(--cream);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 35px 28px;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.service-icon-image {
    width: 38px !important;
    height: 38px !important;
    object-fit: contain !important;
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--green-dark);
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text);
    margin-bottom: 18px;
}

.service-card a {
    color: var(--green);
    font-weight: 700;
}

.section-action {
    text-align: center;
    margin-top: 45px;
}


/* =========================================================
   WHY CHOOSE US
========================================================= */

.why-us {
    background: var(--cream);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.why-card {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 30px 24px;
    border-radius: 7px;
    text-align: center;
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--green-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-icon-image {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
}

.why-card h3 {
    font-family: 'Playfair Display', serif;
    color: var(--green-dark);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text);
    font-size: 0.94rem;
}

.why-statement {
    max-width: 850px;
    margin: 55px auto 0;
    padding: 38px;
    background: var(--green-dark);
    color: var(--white);
    text-align: center;
    border-radius: 7px;
}


/* =========================================================
   REVIEWS
========================================================= */

.reviews {
    background: var(--white);
}

.reviews-layout {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr;
    gap: 35px;
    align-items: start;
}

.public-reviews-header {
    margin-bottom: 25px;
}

.public-reviews-header h3,
.review-form-header h3 {
    font-family: 'Playfair Display', serif;
    color: var(--green-dark);
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.public-reviews-header p,
.review-form-header p {
    color: var(--text);
}

.public-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.review-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
}

.review-stars {
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 17px;
}

.review-text {
    color: var(--text);
    font-style: italic;
    margin-bottom: 24px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-author-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--green-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
}

.review-author strong {
    display: block;
    color: var(--green-dark);
}

.review-author span {
    display: block;
    color: var(--text-light);
    font-size: 0.82rem;
}


/* =========================================================
   REVIEW FORM
========================================================= */

.review-form-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px;
    position: sticky;
    top: 115px;
}

.review-form-header {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: var(--green-dark);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--text-dark);
    padding: 13px 15px;
    border-radius: 5px;
    outline: none;
}

.form-group input,
.form-group select {
    min-height: 50px;
}

.form-group textarea {
    min-height: 145px;
    resize: vertical;
}

.review-submit {
    width: 100%;
    border: none;
}

.form-note {
    color: var(--text-light);
    font-size: 0.78rem;
    text-align: center;
    margin-top: 14px;
}


/* =========================================================
   PARTNERS
========================================================= */

.partners {
    background: var(--white);
}

.partners-image {
    display: flex;
    justify-content: center;
}

.partners-image img {
    width: 100%;
    max-width: 900px;
}


/* =========================================================
   LEGACY
========================================================= */

.legacy-section {
    background: var(--cream);
}

.legacy-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 75px;
}

.legacy-image .client-photo {
    width: 100%;
    max-width: 600px;
    height: 520px;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 7px;
}

.legacy-content p {
    color: var(--text);
    margin-bottom: 18px;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    background: var(--green-dark);
    color: var(--white);
    padding-top: 70px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 45px;
    padding-bottom: 55px;
}

.footer-brand h3 {
    font-family: 'Playfair Display', serif;
    margin-top: 15px;
}

.footer-brand > p:not(.footer-description) {
    color: var(--gold-light);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 15px;
}

.footer-main-logo {
    width: 75px !important;
    height: 75px !important;
    object-fit: contain !important;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    margin-bottom: 18px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 9px;
}

.footer-column a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.55);
}


/* =========================================================
   FAQ CHAT
========================================================= */

.faq-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 25px;
}

.faq-modal.open {
    display: flex;
}

.faq-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 30, 22, 0.60);
    backdrop-filter: blur(4px);
}

.faq-chat {
    position: relative;
    z-index: 2;
    width: min(100%, 680px);
    max-height: 86vh;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.faq-chat-header {
    background: var(--green-dark);
    color: var(--white);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-chat-header strong {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
}

.faq-chat-header small {
    display: block;
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.75rem;
}

.faq-online-dot {
    width: 11px;
    height: 11px;
    background: #7fd39a;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(127, 211, 154, 0.15);
}

.faq-close {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-chat-body {
    padding: 22px;
    overflow-y: auto;
    background: #f7faf7;
    flex: 1;
}

.faq-message {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.faq-avatar {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--green-dark);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.faq-bubble {
    max-width: 82%;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 4px 14px 14px 14px;
    color: var(--text);
}

.faq-bubble small {
    color: var(--text-light);
}

.faq-user-message {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 15px;
}

.faq-user-bubble {
    max-width: 82%;
    background: var(--green-dark);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 14px 4px 14px 14px;
}

.faq-question-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.faq-question {
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--green-dark);
    padding: 10px 14px;
    border-radius: 22px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
}

.faq-question:hover {
    background: var(--green-soft);
    border-color: var(--green);
}

.faq-answer-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--green);
    font-weight: 700;
    border-bottom: 1px solid var(--gold);
}

.faq-chat-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 15px 20px;
    display: flex;
    gap: 10px;
}

.faq-footer-link,
.faq-footer-book {
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    font-size: 0.82rem;
    font-weight: 700;
}

.faq-footer-link {
    border: 1px solid var(--green-dark);
    color: var(--green-dark);
}

.faq-footer-book {
    background: var(--green-dark);
    color: var(--white);
}

body.faq-open {
    overflow: hidden;
}

/* =========================================================
   FAQ CATEGORIES
========================================================= */

.faq-category-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 22px;
}

.faq-category {
    min-height: 58px;

    border: 1px solid var(--border);

    background: var(--white);

    color: var(--green-dark);

    border-radius: 8px;

    padding: 12px 14px;

    font-size: 0.86rem;

    font-weight: 700;

    text-align: left;

    transition: all 0.25s ease;
}

.faq-category:hover {
    background: var(--green-soft);
    border-color: var(--green);
    transform: translateY(-2px);
}


/* CATEGORY TITLE */

.faq-category-title {
    width: 100%;

    font-family: 'Playfair Display', serif;

    font-size: 1.25rem;

    font-weight: 700;

    color: var(--green-dark);

    margin: 5px 0 8px;
}


/* BACK BUTTON */

.faq-back-button {
    width: 100%;

    border: none;

    background: transparent;

    color: var(--green);

    font-size: 0.82rem;

    font-weight: 700;

    text-align: left;

    padding: 4px 0;

    margin-bottom: 4px;
}

.faq-back-button:hover {
    color: var(--gold);
}


/* UPDATED QUESTION LIST */

.faq-question-list {
    display: none;

    flex-direction: column;

    gap: 9px;

    margin-top: 22px;
}


/* =========================================================
   FAQ MOBILE CATEGORIES
========================================================= */

@media (max-width: 600px) {

    .faq-category-list {
        grid-template-columns: 1fr;
    }

    .faq-category {
        width: 100%;
    }

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .services-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .reviews-layout {
        grid-template-columns: 1fr;
    }

    .review-form-card {
        position: static;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 800px) {

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 78px;
        left: 0;
        width: 100%;
        background: var(--white);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition:
            max-height 0.35s ease,
            opacity 0.25s ease;
    }

    .main-nav.active {
        max-height: 700px;
        opacity: 1;
    }

    .main-nav a {
        padding: 16px 6%;
        border-bottom: 1px solid var(--border);
    }

    .main-nav .nav-button {
        margin: 14px 6% 18px;
        text-align: center;
    }

    .hero-content,
    .about-grid,
    .legacy-grid {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .legacy-image .client-photo {
        height: auto;
        object-fit: contain;
    }

}

@media (max-width: 600px) {

    .section {
        padding: 70px 0;
    }

    .hero {
        padding: 70px 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
    }

    .services-grid,
    .why-grid,
    .public-reviews-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .review-form-card {
        padding: 25px 20px;
    }

    .faq-modal {
        padding: 0;
        align-items: stretch;
    }

    .faq-chat {
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .faq-chat-body {
        padding: 18px 15px;
    }

    .faq-question-list {
        flex-direction: column;
    }

    .faq-question {
        width: 100%;
        border-radius: 6px;
        padding: 12px 14px;
    }

    .faq-chat-footer {
        flex-direction: column;
        padding: 12px;
    }

}
