/*
 * Theme Name: Jones Digital LLC
 * Version: 2.0
 * Description: Custom wordpress theme configured for sites made with Site Builder by Corporate Tools
 * Author: Jones Digital LLC
 */

/**
 * Custom Styling for the FluentForm Submission Button
 */
form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit {
    background-color: var(--wp--preset--color--primary) !important;
    color: var(--wp--preset--color--background) !important;
    border-color: var(--wp--preset--color--primary) !important;
    transition: filter 0.2s ease !important;
}

form.fluent_form_3 .wpf_has_custom_css.ff-btn-submit:hover {
    filter: brightness(1.1) !important;
}

/*
 * When clicking links, make the scrolling behavior smooth to improve the user experience.
 */
html {
    scroll-behavior: smooth;
}

.wp-block-site-title a:hover {
    opacity: 80%;
}

.wp-block-navigation-item {
    color: var(--wp--preset--color--text);
}

.wp-block-navigation-item:hover {
    opacity: 80%;
}

.wp-block-button:hover {
    opacity: 80%;
}

/*
Get rid of the padding above/below the blocks wrapper,
which was leaving whitespace above/below the header/footer
*/
.wp-site-blocks {
    padding: 0;
}

/*
Get rid of the default margin-top around all of the outer blocks (example: hero section after header),
changing here instead of theme.json so that global blockGap is not changed for inner blocks and elements
 */
:where(.wp-site-blocks)>* {
    margin-block-start: 0;
}

/*
Adjust positioning of the "details" block summary when it is an H4
 */
summary h4 {
    display: inline;
    margin-left: 10px;
}

.header-block {
    position: relative;
    z-index: 1;
    border-bottom: 2px solid;
}

/*
Hide an info box/block from the frontend of the site (like the info box on the contact page block pattern.
 */
.hide-from-site-frontend {
    display: none;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
    text-decoration-thickness: 1px !important;
    text-underline-offset: 0.1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
    margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
    outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
    outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1,
h2,
h3,
h4,
h5,
h6,
blockquote,
caption,
figcaption,
p {
    text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
    display: block;
}

/*
 * Fix website header to always show at top of page and have colors from the theme
 */
.site-header {
    position: fixed;
    width: 100%;
    background-color: var(--wp--preset--color--background);
    z-index: 1000;
    border-bottom: 1px solid;
    box-shadow:
        0 1px 3px 0 rgb(0 0 0 / 0.1),
        0 1px 2px -1px rgb(0 0 0 / 0.1);
    /* Add a bottom box shadow to the header block */
}

.site-header img {
    height: auto;
    width: calc(var(--wp--preset--spacing--40) * 2);
}

/* Adjust for admin bar on desktop */
.admin-bar .site-header {
    top: 32px !important;
    /* WordPress admin bar height on desktop */
}

/* Adjust for admin bar on mobile devices */
@media screen and (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px !important;
        /* WordPress admin bar height on mobile */
    }
}

/* For very small screens where WP removes the admin bar */
@media screen and (max-width: 600px) {
    .admin-bar .site-header {
        top: 0 !important;
    }
}

/*
 * Make the separator between the footer and content, not so thick
 */
.wp-block-separator {
    border: none !important;
    border-top: 1px solid !important;
}

#products .wp-block-column {
    transition: scale 0.15s ease-in-out;
}

#products .wp-block-column:hover {
    scale: 105%;
}

/*Fix overflow of some unsplash images in certain browsers  */
img {
    width: 100%;
}

.footer-contact-columns .wp-block-group {
    text-align: center;
}

.footer-contact-columns {
    align-items: center;
}

/* Jones Digital AI reliability homepage refresh */
.jdg-page {
    --jdg-ink: #12201b;
    --jdg-muted: #49615a;
    --jdg-line: #d8e1dc;
    --jdg-panel: #f7faf8;
    --jdg-accent: #1f6f5b;
    --jdg-accent-strong: #154b40;
    --jdg-warning: #9a5b1e;
    color: var(--jdg-ink);
}

.jdg-page .wp-block-group {
    box-sizing: border-box;
}

.jdg-hero {
    min-height: 92vh;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(12, 28, 24, 0.92), rgba(18, 45, 39, 0.76)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80') center/cover;
    padding: 8rem 1.5rem 5rem;
}

.jdg-hero-inner,
.jdg-section-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.jdg-eyebrow {
    margin: 0 0 1rem;
    color: #b9e7d6;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.jdg-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.7rem, 7vw, 5.75rem);
    line-height: 0.96;
    letter-spacing: 0;
}

.jdg-hero-copy {
    max-width: 730px;
    margin: 1.35rem 0 0;
    color: #e6f1ed;
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.55;
}

.jdg-hero-actions,
.jdg-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.jdg-button,
.jdg-button-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700;
    text-decoration: none !important;
}

.jdg-button {
    background: #f4c95d;
    color: #18201d !important;
}

.jdg-button-outline {
    border-color: rgba(255, 255, 255, 0.68);
    color: #fff !important;
}

.jdg-section {
    padding: 5rem 1.5rem;
}

.jdg-section-alt {
    background: var(--jdg-panel);
}

.jdg-section h2 {
    max-width: 780px;
    margin: 0 0 1rem;
    color: var(--jdg-ink);
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.jdg-lead {
    max-width: 760px;
    margin: 0 0 2rem;
    color: var(--jdg-muted);
    font-size: 1.12rem;
    line-height: 1.65;
}

.jdg-grid-3,
.jdg-grid-2,
.jdg-process {
    display: grid;
    gap: 1rem;
}

.jdg-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.jdg-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.jdg-card,
.jdg-step,
.jdg-price-panel,
.jdg-faq details {
    border: 1px solid var(--jdg-line);
    border-radius: 8px;
    background: #fff;
    padding: 1.35rem;
    box-shadow: 0 10px 30px rgba(20, 40, 34, 0.06);
}

.jdg-card h3,
.jdg-step h3 {
    margin: 0 0 0.65rem;
    font-size: 1.1rem;
    line-height: 1.25;
}

.jdg-card p,
.jdg-step p,
.jdg-faq p,
.jdg-price-panel p,
.jdg-list li {
    color: var(--jdg-muted);
    line-height: 1.58;
}

.jdg-list {
    columns: 2;
    column-gap: 2rem;
    padding-left: 1.2rem;
}

.jdg-process {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    counter-reset: jdg-step;
}

.jdg-step::before {
    counter-increment: jdg-step;
    content: counter(jdg-step);
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--jdg-accent);
    color: #fff;
    font-weight: 700;
}

.jdg-price-panel {
    border-left: 5px solid var(--jdg-warning);
}

.jdg-price {
    margin: 0.25rem 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--jdg-ink);
}

.jdg-faq {
    display: grid;
    gap: 0.8rem;
}

.jdg-faq summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--jdg-ink);
}

.jdg-contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 2rem;
    align-items: start;
}

.jdg-page .fluentform,
.jdg-page .fluentform_wrapper_3 {
    padding: 1.4rem;
    border: 1px solid var(--jdg-line);
    border-radius: 8px;
    background: #fff;
}

.jdg-page input,
.jdg-page textarea,
.jdg-page select {
    border-radius: 6px !important;
}

@media (max-width: 900px) {
    .jdg-grid-3,
    .jdg-grid-2,
    .jdg-process,
    .jdg-contact-layout {
        grid-template-columns: 1fr;
    }

    .jdg-list {
        columns: 1;
    }

    .jdg-hero {
        min-height: auto;
        padding-top: 7rem;
    }
}
