:root {
    --primary-color: #2F4F4F;
    --secondary-color: #F5F2EB;
    --accent-color: #D4AF37;
    --background-color: #FFFFFF;
    --surface-color: #F7F5F0;
    --text-color: #222222;
    --muted-text-color: #666666;

    --on-primary-color: #FFFFFF;
    --on-secondary-color: #111111;
    --on-accent-color: #111111;
    --on-background-color: #111111;
    --on-surface-color: #111111;

    --heading-font: "Georgia", Georgia, serif;
    --body-font: "Arial", Arial, sans-serif;

    --border-radius: 8px;
    --button-radius: 999px;
    --section-spacing: 90px;
    --brand-shadow: 0 15px 40px rgba(0, 0, 0, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: var(--secondary-color);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

section {
    scroll-margin-top: 0;
}

/* ===========================
   Header
=========================== */

.site-header {
    position: fixed;
    top: 24px;
    left: 50%;
    z-index: 100;
    width: calc(100% - 48px);
    max-width: 1320px;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(15, 15, 15, 0.68);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-logo {
    color: white;
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.site-nav a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.site-nav a:hover {
    color: var(--accent-color);
}

.nav-cta {
    padding: 0.7rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 999px;
}

/* ===========================
   Hero
=========================== */

.luxury-hero {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
    background: #111;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.84) 0%,
            rgba(0, 0, 0, 0.62) 48%,
            rgba(0, 0, 0, 0.32) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 10rem 6% 7rem;
}

.hero-content h1 {
    max-width: 900px;
    margin: 0 0 1.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3rem, 7vw, 6.2rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero-content p {
    max-width: 700px;
    margin: 0 0 2rem;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.hero-button,
.button {
    display: inline-block;
    padding: 1rem 1.75rem;
    border-radius: 999px;
    background: var(--accent-color);
    color: var(--on-accent-color);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.hero-button:hover,
.button:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

/* ===========================
   Shared Sections
=========================== */

.about,
.services,
.gallery,
.contact {
    padding: 6rem 8%;
}

.about h2,
.services h2,
.gallery h2,
.contact h2 {
    margin: 0 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
}

.about > p,
.services > p,
.gallery > p,
.contact > p {
    max-width: 760px;
    margin: 0 auto 2.5rem;
    font-size: 1.08rem;
    color: var(--muted-text-color);
}

/* ===========================
   About
=========================== */

.about {
    background: white;
}

.about p {
    max-width: 850px;
    font-size: 1.08rem;
}

/* Split About layouts */

.about-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 6rem);
}

.about-split .about-content {
    min-width: 0;
}

.about-split .about-content p {
    margin: 0 0 2rem;
    line-height: 1.75;
    color: var(--muted-text-color, #666666);
}

.about-split .about-image {
    min-width: 0;
}

.about-split .about-image img {
    display: block;
    width: 100%;
    height: clamp(360px, 44vw, 620px);
    object-fit: cover;
    border-radius: var(--border-radius, 18px);
    box-shadow: var(
        --shadow,
        0 18px 45px rgba(0, 0, 0, 0.14)
    );
}

/*
The left template places its image first.
The right template places its content first.
The HTML order therefore controls which side contains the image.
*/

@media (max-width: 850px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-split .about-content {
        order: 1;
    }

    .about-split .about-image {
        order: 2;
    }

    .about-split .about-image img {
        height: clamp(300px, 75vw, 500px);
    }
}

/* ===========================
   Services
=========================== */

.services {
    color: white;
    background:
        linear-gradient(135deg, #111, var(--primary-color));
}

.services > p {
    color: var(--secondary-color);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.card {
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, 0.7);
    background: rgba(255, 255, 255, 0.09);
}

.card h3 {
    margin: 0 0 0.75rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5rem;
}

.card p {
    margin: 0;
    color: var(--secondary-color);
}

/* ===========================
   Gallery
=========================== */

.gallery {
    background: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.gallery-item {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    border-radius: 18px;
    background: var(--secondary-color);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===========================
   Contact
=========================== */

.contact {
    text-align: center;
    background: white;
}

.contact-info {
    max-width: 760px;
    margin: 2rem auto;
    padding: 2rem;
    border: 1px solid var(--secondary-color);
    border-radius: 18px;
    background: var(--surface-color);
    color: var(--on-surface-color);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.07);
}

.contact-info p {
    margin: 0.6rem 0;
}

/* ===========================
   Footer
=========================== */

footer {
    padding: 2rem 8%;
    text-align: center;
    color: var(--secondary-color);
    background: var(--primary-color);
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 900px) {
    .site-header {
        top: 16px;
        width: calc(100% - 32px);
        padding: 14px 18px;
        border-radius: 16px;
    }

    .site-nav {
        gap: 1rem;
    }

    .hero-content {
        padding: 9rem 1.5rem 5rem;
    }

    .service-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item img {
        min-height: 280px;
    }
}

@media (max-width: 700px) {
    .site-nav {
        display: none;
    }

    .about,
    .services,
    .gallery,
    .contact {
        padding: 4.5rem 1.25rem;
    }

    .luxury-hero {
        min-height: 85vh;
    }

    .hero-content h1 {
        font-size: clamp(2.7rem, 13vw, 4.5rem);
    }
}

/* ===========================
   Testimonials
=========================== */

.testimonials {
    padding: 6rem 8%;
    background: var(--surface-color);
}

.testimonials h2 {
    margin: 0 0 2.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    line-height: 1.1;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    padding: 2rem;
    border-left: 5px solid var(--accent-color);
    border-radius: 16px;
    background: white;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
    margin: 0 0 1.25rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    line-height: 1.7;
}

.testimonial-name {
    margin: 0;
    color: var(--accent-color);
    font-weight: 800;
}

@media (max-width: 900px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .testimonials {
        padding: 4.5rem 1.25rem;
    }
}

/* ===========================
   SERVICES - CARD LAYOUT
=========================== */

.services-cards {
    padding: var(--section-spacing, 100px) 0;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #111111,
            #2b2b2b
        );
}

.services-cards .section-container {
    width: min(1200px, 92%);
    margin: 0 auto;
}

.services-cards .section-heading {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.services-cards .section-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.services-cards .section-heading h2 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: #ffffff;
}

.services-cards .section-heading p {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.78);
}

.services-cards .services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.services-cards .service-card {
    position: relative;
    padding: 42px 34px;
    overflow: hidden;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--border-radius, 18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

.services-cards .service-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.36);
}

.services-cards .service-number {
    margin-bottom: 24px;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.18);
    opacity: 0.5;
}

.services-cards .service-card h3 {
    margin: 0 0 16px;
    font-size: 1.5rem;
    color: #ffffff;
}

.services-cards .service-card p {
    margin: 0;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.76);
}

/* ===========================
   Brand Presentation Engine V1
   Logo Handling
=========================== */

.site-logo-image {
    display: block;
    max-height: 70px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.site-logo-text {
    font-size: clamp(1.4rem, 2vw, 2rem);
    font-weight: 700;
}


/* =================================================
   PORTFOLIO
   ================================================= */

.portfolio-section {
    padding: var(--section-spacing, 90px) 5%;
    background: var(--surface-color, #f7f7f7);
}

.section-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.portfolio-heading {
    max-width: 760px;
    margin-bottom: 48px;
}

.section-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-color, #2f4f4f);
}

.portfolio-heading h2 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.08;
}

.portfolio-heading p {
    max-width: 680px;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.75;
}

.portfolio-grid,
.dynamic-gallery-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(260px, 1fr)
    );
    gap: 20px;
}

.portfolio-item,
.gallery-item {
    min-height: 260px;
    margin: 0;
    overflow: hidden;
    border-radius: var(--border-radius, 8px);
    box-shadow: var(
        --shadow,
        0 15px 40px rgba(0, 0, 0, 0.10)
    );
}

.portfolio-item-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 540px;
}

.gallery-lightbox-trigger {
    width: 100%;
    height: 100%;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.portfolio-item img,
.gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img,
.gallery-item:hover img {
    transform: scale(1.035);
}

.gallery-item-extra {
    display: none;
}

.gallery-item-extra.is-visible {
    display: block;
}

@media (max-width: 900px) {
    .portfolio-item-large {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 320px;
    }
}

@media (max-width: 600px) {
    .portfolio-grid,
    .dynamic-gallery-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item,
    .gallery-item,
    .portfolio-item-large {
        min-height: 280px;
    }
}

/* =========================================
   Dynamic Gallery Final Layout
========================================= */

.portfolio-grid.dynamic-gallery-grid {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 1fr)
    );
    grid-template-rows: none;
    gap: 20px;
}

.dynamic-gallery-grid .portfolio-item,
.dynamic-gallery-grid .gallery-item,
.dynamic-gallery-grid .portfolio-item-large {
    position: relative;
    display: flex;
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-height: 280px;
    height: 280px;
    margin: 0;
    overflow: hidden;
}

.dynamic-gallery-grid .gallery-lightbox-trigger {
    display: block;
    flex: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.dynamic-gallery-grid .gallery-lightbox-trigger img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

@media (max-width: 650px) {
    .portfolio-grid.dynamic-gallery-grid {
        grid-template-columns: 1fr;
    }

    .dynamic-gallery-grid .portfolio-item,
    .dynamic-gallery-grid .gallery-item,
    .dynamic-gallery-grid .portfolio-item-large {
        height: 260px;
        min-height: 260px;
    }
}

/* ===========================
   Service Card Images
=========================== */

.service-card-image {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

.service-card-content {
    padding: 1.5rem;
}

/* Keep extra dynamic gallery images hidden until View More is clicked */
.dynamic-gallery-grid .gallery-item-extra {
    display: none;
}

.dynamic-gallery-grid .gallery-item-extra.is-visible {
    display: flex;
}

/* =========================================
   Universal Hero Structure Fix
========================================= */

.hero {
    position: relative;
    min-height: 100vh;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #ffffff;
    background: #111111;
}

/*
Keep anchored section headings visible below the fixed site header.
*/
html {
    scroll-padding-top: 100px;
}

section[id] {
    scroll-margin-top: 0;
}

/* Ensure About headings remain visible on light backgrounds. */
.about .about-content h2 {
    display: block;
    margin: 0 0 1rem;
    color: var(--text-color, #222222);
}

@media (max-width: 700px) {
    .hero {
        min-height: 85vh;
    }
}

/* =========================================
   Blog Index and Article Pages
========================================= */

.blog-page,
.blog-article-page {
    min-height: 100vh;
    background: var(--background-color);
    color: var(--text-color);
    padding: 140px 24px 80px;
}

.blog-page .blog-section {
    max-width: 1200px;
    margin: 0 auto;
}

.blog-page .section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.blog-page .section-heading h1 {
    margin: 0 0 16px;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: clamp(2.4rem, 5vw, 4.25rem);
    line-height: 1.08;
}

.blog-page .section-heading p {
    margin: 0;
    color: var(--muted-text-color);
    font-size: 1.1rem;
    line-height: 1.7;
}

.blog-page .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.blog-page .blog-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 28px;
    background: var(--surface-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    box-shadow: var(--brand-shadow);
}

.blog-page .blog-card h2 {
    margin: 0 0 16px;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 1.6rem;
    line-height: 1.25;
}

.blog-page .blog-card p {
    margin: 0 0 24px;
    color: var(--muted-text-color);
    line-height: 1.7;
}

.blog-page .blog-link {
    margin-top: auto;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}

.blog-page .blog-link:hover {
    text-decoration: underline;
}

.blog-article {
    width: min(100%, 820px);
    margin: 0 auto;
}

.blog-article .section-eyebrow {
    margin: 0 0 14px;
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.blog-article h1 {
    margin: 0 0 24px;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 1.08;
}

.blog-article-intro {
    margin: 0 0 42px;
    color: var(--muted-text-color);
    font-size: 1.25rem;
    line-height: 1.75;
}

.blog-article-content {
    color: var(--text-color);
    font-size: 1.08rem;
    line-height: 1.85;
}

.blog-article-content p {
    margin: 0 0 1.5rem;
}

.blog-article-content h2 {
    margin: 2.8rem 0 1rem;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.2;
}

.blog-article-content h3 {
    margin: 2.2rem 0 0.8rem;
    color: var(--text-color);
    font-family: var(--heading-font);
    font-size: 1.5rem;
    line-height: 1.25;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 1.8rem;
    padding-left: 1.5rem;
}

.blog-article-content li {
    margin-bottom: 0.65rem;
}

.blog-back-link {
    margin-top: 48px;
}

.blog-back-link a {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}

.blog-back-link a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .blog-page,
    .blog-article-page {
        padding-top: 120px;
    }

    .blog-page .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .blog-page,
    .blog-article-page {
        padding-left: 18px;
        padding-right: 18px;
    }

    .blog-page .blog-card {
        padding: 22px;
    }

    .blog-article-intro {
        font-size: 1.1rem;
    }

    .blog-article-content {
        font-size: 1rem;
    }
}


/* ===========================
   AI Presentation System
=========================== */
.site-header {
    top: 0;
    width: 100%;
    max-width: none;
    border: none;
    border-radius: 0;
    background: var(--primary-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.luxury-hero {
    justify-content: flex-start;
}
.hero-content {
    text-align: left;
    margin-left: 0;
    margin-right: auto;
}
.luxury-hero,
.hero-content,
.hero-content h1,
.hero-content p {
    color: #ffffff;
}
.hero-overlay {
    background: rgba(0, 0, 0, 0.58);
}
.site-nav {
    gap: 1.8rem;
}
.button,
.hero-button,
.nav-cta {
    border-radius: 14px;
}
.card,
.service-card,
.collection-card,
.product-card {
    background: var(--surface-color);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
    border-radius: var(--border-radius);
}
@media (max-width: 900px) {
    .site-header {
        top: 16px;
        width: calc(100% - 32px);
        padding: 14px 18px;
        border-radius: 16px;
    }
}

/* MARCAI PRESENTATION START: services.h3.1 */
[data-marcai-id="services.h3.1"] {
    color: black !important;
}
/* MARCAI PRESENTATION END: services.h3.1 */

/* MARCAI PRESENTATION START: services.p.2 */
[data-marcai-id="services.p.2"] {
    color: black !important;
}
/* MARCAI PRESENTATION END: services.p.2 */

/* MARCAI PRESENTATION START: services.h3.2 */
[data-marcai-id="services.h3.2"] {
    color: black !important;
}
/* MARCAI PRESENTATION END: services.h3.2 */

/* MARCAI PRESENTATION START: services.p.3 */
[data-marcai-id="services.p.3"] {
    color: black !important;
}
/* MARCAI PRESENTATION END: services.p.3 */

/* MARCAI PRESENTATION START: services.h3.3 */
[data-marcai-id="services.h3.3"] {
    color: black !important;
}
/* MARCAI PRESENTATION END: services.h3.3 */

/* MARCAI PRESENTATION START: services.p.4 */
[data-marcai-id="services.p.4"] {
    color: black !important;
}
/* MARCAI PRESENTATION END: services.p.4 */

/* ============================================================
   FUNCTIONAL PAGES
   Universal presentation for interactive pages such as forms,
   questionnaires, calculators, quote flows, and customer tools.
   ============================================================ */

.functional-page {
    width: min(100%, 1040px);
    min-height: calc(100vh - 260px);
    margin: 0 auto;
    padding: 140px 24px 90px;
    color: var(--text-color);
    font-family: var(--body-font);
}

.functional-page > h1 {
    max-width: 820px;
    margin: 0 auto 16px;
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.05;
    text-align: center;
}

.functional-page > h1 + p {
    max-width: 720px;
    margin: 0 auto 48px;
    color: var(--muted-text-color);
    font-size: 1.12rem;
    line-height: 1.7;
    text-align: center;
}

.functional-page section {
    position: relative;
    margin: 0 0 32px;
    padding: 36px;
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--border-radius);
    box-shadow: var(--brand-shadow);
}

.functional-page section h2 {
    margin: 0 0 24px;
    color: var(--primary-color);
    font-family: var(--heading-font);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.functional-page section h3 {
    color: var(--primary-color);
    font-family: var(--heading-font);
}

.functional-page form {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    align-items: end;
}

.functional-page form > p {
    margin: 0;
}

.functional-page label {
    display: block;
    margin: 0 0 8px;
    color: var(--text-color);
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.4;
}

.functional-page input,
.functional-page select,
.functional-page textarea {
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    padding: 13px 15px;
    background: var(--background-color);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.16);
    border-radius: var(--border-radius);
    font: inherit;
    line-height: 1.4;
    box-sizing: border-box;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.functional-page input:hover,
.functional-page select:hover,
.functional-page textarea:hover {
    border-color: var(--primary-color);
}

.functional-page input:focus,
.functional-page select:focus,
.functional-page textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--accent-color) 24%,
            transparent
        );
}

.functional-page button,
.functional-page input[type="submit"] {
    width: fit-content;
    min-width: 150px;
    min-height: 50px;
    padding: 13px 26px;
    background: var(--accent-color);
    color: var(--on-accent-color);
    border: 0;
    border-radius: var(--button-radius);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;
}

.functional-page button:hover,
.functional-page input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.functional-page button:focus-visible,
.functional-page input[type="submit"]:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.functional-page input[type="checkbox"],
.functional-page input[type="radio"] {
    width: auto;
    min-height: auto;
}

.functional-page a {
    color: var(--primary-color);
    font-weight: 700;
}

.functional-page #county-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.functional-page #county-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.functional-page #county-options button {
    margin: 0 !important;
    background: var(--background-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.functional-page #county-options button:hover {
    background: var(--primary-color);
    color: var(--on-primary-color);
}

.functional-page #message:not(:empty) {
    margin: 24px 0 !important;
    padding: 16px 20px;
    background: var(--surface-color);
    color: var(--text-color);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--border-radius);
    font-weight: 700;
}

.functional-page #results-data {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.functional-result-card {
    margin: 0;
    padding: 28px;
    background: var(--background-color);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.10);
    border-top: 4px solid var(--accent-color);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.functional-result-card h2,
.functional-result-card h3 {
    color: var(--primary-color);
}

.functional-result-card h2 {
    margin: 18px 0;
    font-family: var(--heading-font);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.functional-result-card h3 {
    margin: 8px 0 10px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.functional-result-card p {
    line-height: 1.6;
}

.functional-result-card hr {
    margin: 22px 0;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.functional-page .service-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 28px 0;
    padding: 0;
    list-style: none;
}

.functional-page .service-card {
    margin: 0;
    padding: 24px;
    background: var(--background-color);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--border-radius);
}

.functional-page .service-card::marker {
    content: "";
}

.functional-page .service-card h3 {
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.functional-page .service-card p {
    margin: 0;
    color: var(--muted-text-color);
    line-height: 1.6;
}

@media (max-width: 700px) {
    .functional-page {
        padding:
            120px
            18px
            64px;
    }

    .functional-page > h1,
    .functional-page > h1 + p {
        text-align: left;
    }

    .functional-page section {
        padding: 26px 20px;
    }

    .functional-page form,
    .functional-page #results-data,
    .functional-page .service-grid {
        grid-template-columns: 1fr;
    }

    .functional-page button,
    .functional-page input[type="submit"] {
        width: 100%;
    }

    .functional-page #county-options {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* MARCAI PRESENTATION START: contact-form.container.1 */
[data-marcai-id="contact-form.container.1"] {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 1rem !important;
    width: 100% !important;
    max-width: 960px !important;
    margin: 0 auto !important;
}
/* MARCAI PRESENTATION END: contact-form.container.1 */

/* MARCAI PRESENTATION START: contact.label.1 */
[data-marcai-id="contact.label.1"] {
    display: block !important;
    width: 100% !important;
}
/* MARCAI PRESENTATION END: contact.label.1 */

/* MARCAI PRESENTATION START: contact.label.2 */
[data-marcai-id="contact.label.2"] {
    display: block !important;
    width: 100% !important;
}
/* MARCAI PRESENTATION END: contact.label.2 */

/* MARCAI PRESENTATION START: contact.label.3 */
[data-marcai-id="contact.label.3"] {
    display: block !important;
    width: 100% !important;
}
/* MARCAI PRESENTATION END: contact.label.3 */

/* MARCAI PRESENTATION START: contact.label.4 */
[data-marcai-id="contact.label.4"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}
/* MARCAI PRESENTATION END: contact.label.4 */

/* MARCAI PRESENTATION START: contact.label.5 */
[data-marcai-id="contact.label.5"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
}
/* MARCAI PRESENTATION END: contact.label.5 */

/* MARCAI PRESENTATION START: contact.field.4 */
[data-marcai-id="contact.field.4"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0.4rem !important;
    padding: 0.75rem !important;
}
/* MARCAI PRESENTATION END: contact.field.4 */

/* MARCAI PRESENTATION START: contact.field.5 */
[data-marcai-id="contact.field.5"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0.4rem !important;
    padding: 0.75rem !important;
}
/* MARCAI PRESENTATION END: contact.field.5 */

/* MARCAI PRESENTATION START: contact.field.6 */
[data-marcai-id="contact.field.6"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0.4rem !important;
    padding: 0.75rem !important;
}
/* MARCAI PRESENTATION END: contact.field.6 */

/* MARCAI PRESENTATION START: contact.field.7 */
[data-marcai-id="contact.field.7"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0.4rem !important;
    padding: 0.75rem !important;
}
/* MARCAI PRESENTATION END: contact.field.7 */

/* MARCAI PRESENTATION START: contact.field.8 */
[data-marcai-id="contact.field.8"] {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin-top: 0.4rem !important;
    padding: 0.75rem !important;
}
/* MARCAI PRESENTATION END: contact.field.8 */

/* MARCAI PRESENTATION START: contact.button.1 */
[data-marcai-id="contact.button.1"] {
    display: block !important;
    grid-column: 1 / -1 !important;
    margin: 0.5rem auto 0 !important;
}
/* MARCAI PRESENTATION END: contact.button.1 */
