/*
 * Theme Name: Palmetto Legal Process
 * Version: 3.2
 * Description: Custom wordpress theme configured for sites made with Site Builder by Corporate Tools
 * Author: Palmetto Legal Process
 */

/**
 * 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;
}

/* Palmetto Legal Process 2026 redesign */
:root {
    --palmetto-blue: #20496d;
    --palmetto-blue-bright: #326f92;
    --palmetto-blue-deep: #15344f;
    --palmetto-gold: #f8b829;
    --palmetto-mist: #f3f7f9;
    --palmetto-ink: #333333;
    --palmetto-shadow: 0 18px 45px rgb(21 52 79 / 0.12);
}

body {
    color: var(--palmetto-ink);
    font-family: var(--wp--preset--font-family--lato), Arial, sans-serif;
    line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.025em;
}

.site-header {
    background: rgb(255 255 255 / 0.97);
    border-bottom: 0;
    box-shadow: 0 1px 0 rgb(32 73 109 / 0.12);
    backdrop-filter: blur(14px);
}

.site-header > .wp-block-group,
.site-header .alignwide {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.site-header img {
    width: 176px;
    max-height: 68px;
    object-fit: contain;
}

.site-header .wp-block-navigation-item__content {
    padding: 13px 10px;
    color: var(--palmetto-blue-deep);
    font-family: var(--wp--preset--font-family--montserrat), Arial, sans-serif;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.site-header .wp-block-navigation-item:last-child .wp-block-navigation-item__content {
    margin-left: 10px;
    padding: 12px 20px;
    border-radius: 5px;
    background: var(--palmetto-gold);
    color: var(--palmetto-ink);
}

.palmetto-hero::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgb(21 52 79 / 0.98) 0%, rgb(21 52 79 / 0.85) 50%, rgb(21 52 79 / 0.35) 100%);
    content: "";
}

.palmetto-hero .wp-block-cover__background {
    opacity: 0.2 !important;
}

.palmetto-hero__content {
    position: relative;
    z-index: 2;
    margin-left: 0 !important;
    color: #fff;
}

.palmetto-eyebrow,
.palmetto-section-kicker {
    margin: 0 0 12px;
    color: var(--palmetto-gold);
    font-family: var(--wp--preset--font-family--montserrat), Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.palmetto-hero__title {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.65rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.03;
}

.palmetto-hero__tagline {
    max-width: 680px;
    margin: 24px 0 0;
    color: rgb(255 255 255 / 0.9);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.6;
}

.palmetto-hero__actions {
    gap: 14px;
    margin-top: 32px;
}

.palmetto-hero__actions .wp-block-button__link,
.palmetto-cta-band__button {
    min-width: 150px;
    padding: 14px 24px;
    border: 2px solid var(--palmetto-gold);
    border-radius: 5px;
    font-family: var(--wp--preset--font-family--montserrat), Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
}

.palmetto-hero__actions .is-style-fill .wp-block-button__link {
    color: var(--palmetto-ink);
}

.palmetto-hero__actions .is-style-outline .wp-block-button__link {
    border-color: rgb(255 255 255 / 0.8);
    color: #fff;
}

.palmetto-trust-row {
    gap: 0 !important;
    margin-top: 52px;
    padding-top: 25px;
    border-top: 1px solid rgb(255 255 255 / 0.3);
}

.palmetto-trust-row p {
    min-width: 155px;
    margin: 0 30px 0 0;
    padding-right: 30px;
    border-right: 1px solid rgb(255 255 255 / 0.25);
}

.palmetto-trust-row p:last-child { border-right: 0; }
.palmetto-trust-row strong,
.palmetto-trust-row span { display: block; }
.palmetto-trust-row strong { color: #fff; font: 700 1.15rem/1.3 var(--wp--preset--font-family--montserrat), Arial, sans-serif; }
.palmetto-trust-row span { margin-top: 4px; color: rgb(255 255 255 / 0.7); font-size: 0.78rem; }

#about {
    padding-top: 7rem !important;
    padding-bottom: 7rem !important;
}

#about .wp-block-image img {
    min-height: 470px;
    border-radius: 6px !important;
    box-shadow: var(--palmetto-shadow) !important;
}

#about .is-style-lead {
    font-size: 1.05rem !important;
}

#products {
    padding: 7rem clamp(1.25rem, 5vw, 4rem) !important;
    background: var(--palmetto-mist) !important;
}

#products > h2,
.palmetto-pricing h2,
.palmetto-cta-band h2 {
    margin-top: 0;
    font-size: clamp(2rem, 4vw, 3.15rem) !important;
}

#products > .palmetto-section-kicker,
.palmetto-pricing .palmetto-section-kicker {
    text-align: center;
}

#products .wp-block-columns {
    margin-top: 48px;
}

#products .wp-block-column {
    overflow: hidden;
    border: 1px solid rgb(32 73 109 / 0.1);
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: 0 10px 30px rgb(21 52 79 / 0.08) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#products .wp-block-column:hover {
    transform: translateY(-6px);
    scale: none;
    box-shadow: var(--palmetto-shadow) !important;
}

.palmetto-pricing {
    padding: 7rem clamp(1.25rem, 5vw, 4rem);
    background: #fff;
}

.palmetto-pricing__inner {
    max-width: 1180px;
    margin: 0 auto;
}

.palmetto-pricing h2 {
    margin-bottom: 18px;
    color: var(--palmetto-blue-deep);
    text-align: center;
}

.palmetto-pricing__intro {
    max-width: 780px;
    margin: 0 auto 48px;
    color: #596773;
    font-size: 1.05rem;
    text-align: center;
}

.palmetto-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.palmetto-price-card {
    position: relative;
    display: flex;
    min-height: 295px;
    flex-direction: column;
    padding: 32px;
    border: 1px solid #dbe4e9;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 24px rgb(21 52 79 / 0.07);
}

.palmetto-price-card--featured {
    border: 2px solid var(--palmetto-gold);
    background: var(--palmetto-blue-deep);
    color: #fff;
}

.palmetto-price-card__badge {
    position: absolute;
    top: -14px;
    right: 22px;
    padding: 6px 11px;
    border-radius: 3px;
    background: var(--palmetto-gold);
    color: var(--palmetto-ink);
    font: 700 0.7rem/1 var(--wp--preset--font-family--montserrat), Arial, sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.palmetto-price-card h3 {
    margin: 0;
    color: var(--palmetto-blue-deep);
    font-size: 1.08rem;
    text-transform: uppercase;
}

.palmetto-price-card--featured h3 { color: #fff; }

.palmetto-price-card__price {
    margin: 20px 0 12px;
    color: var(--palmetto-blue-bright);
    font: 800 clamp(2rem, 4vw, 2.8rem)/1 var(--wp--preset--font-family--montserrat), Arial, sans-serif;
}

.palmetto-price-card--featured .palmetto-price-card__price { color: var(--palmetto-gold); }
.palmetto-price-card__detail { margin: 0 0 24px; color: #63717c; }
.palmetto-price-card--featured .palmetto-price-card__detail { color: rgb(255 255 255 / 0.78); }
.palmetto-price-card__link { margin-top: auto; color: var(--palmetto-blue); font-weight: 700; }
.palmetto-price-card--featured .palmetto-price-card__link { color: var(--palmetto-gold); }

.palmetto-pricing__note {
    max-width: 900px;
    margin: 34px auto 0;
    color: #687681;
    font-size: 0.88rem;
    text-align: center;
}

.palmetto-cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 58px max(clamp(1.25rem, 5vw, 4rem), calc((100vw - 1180px) / 2));
    background: var(--palmetto-blue-bright);
    color: #fff;
}

.palmetto-cta-band h2 { margin-bottom: 0; color: #fff; }
.palmetto-cta-band .palmetto-section-kicker { color: var(--palmetto-gold); }
.palmetto-cta-band__button { flex: 0 0 auto; background: var(--palmetto-gold); color: var(--palmetto-ink); text-decoration: none; }

#contact {
    padding: 7rem clamp(1.25rem, 5vw, 4rem) !important;
    background: var(--palmetto-mist);
}

#contact h2 { color: var(--palmetto-blue-deep) !important; }
.palmetto-contact-intro { max-width: 760px; margin: 0 auto; color: #596773; font-size: 1.05rem; }
#contact form { max-width: 900px; margin: 0 auto; padding: clamp(24px, 5vw, 46px); border-radius: 7px; background: #fff; box-shadow: var(--palmetto-shadow); }

.palmetto-quote-form fieldset {
    margin: 0 0 34px;
    padding: 0;
    border: 0;
}

.palmetto-quote-form legend {
    width: 100%;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #dbe4e9;
    color: var(--palmetto-blue-deep);
    font: 700 1.15rem/1.4 var(--wp--preset--font-family--montserrat), Arial, sans-serif;
}

.palmetto-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
}

.palmetto-quote-form label {
    display: block;
    color: var(--palmetto-blue-deep);
    font-size: 0.9rem;
    font-weight: 700;
}

.palmetto-quote-form label span { color: #a34134; }
.palmetto-required-marker { margin-left: 3px; }
.palmetto-form-field--full { grid-column: 1 / -1; }

.palmetto-quote-form input,
.palmetto-quote-form select,
.palmetto-quote-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b8c7d0;
    border-radius: 4px;
    background: #fff;
    color: var(--palmetto-ink);
    font: 400 1rem/1.4 var(--wp--preset--font-family--lato), Arial, sans-serif;
    margin-top: 7px;
}

.palmetto-quote-form input:focus,
.palmetto-quote-form select:focus,
.palmetto-quote-form textarea:focus {
    border-color: var(--palmetto-blue-bright);
    outline: 3px solid rgb(50 111 146 / 0.16);
}

.palmetto-quote-form textarea { resize: vertical; }

.palmetto-quote-form button {
    width: 100%;
    padding: 15px 24px;
    border: 0;
    border-radius: 5px;
    background: var(--palmetto-gold);
    color: var(--palmetto-ink);
    cursor: pointer;
    font: 700 0.95rem/1.2 var(--wp--preset--font-family--montserrat), Arial, sans-serif;
}

.palmetto-quote-form button:hover { filter: brightness(0.96); }
.palmetto-form-privacy { margin: -8px 0 20px; color: #667580; font-size: 0.82rem; }
.palmetto-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.palmetto-form-notice {
    max-width: 900px;
    margin: 0 auto 22px;
    padding: 16px 18px;
    border-left: 4px solid;
    border-radius: 4px;
    background: #fff;
}

.palmetto-form-notice--success { border-color: #2f7a4d; color: #245c3b; }
.palmetto-form-notice--error { border-color: #a34134; color: #813126; }

.palmetto-footer { padding-top: 36px !important; background: var(--palmetto-blue-deep); color: #fff; }
.palmetto-footer a,
.palmetto-footer p { color: #fff !important; }
.palmetto-footer hr { opacity: 0.22; }

@media (max-width: 900px) {
    .palmetto-price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .palmetto-hero { min-height: 680px !important; }
    .palmetto-trust-row p { min-width: 135px; margin-right: 18px; padding-right: 18px; }
}

@media (max-width: 700px) {
    .site-header { padding-right: 20px !important; padding-left: 20px !important; }
    .site-header img { width: 132px; }
    .palmetto-hero { padding-top: 145px !important; padding-bottom: 70px !important; }
    .palmetto-hero::before { background: rgb(21 52 79 / 0.9); }
    .palmetto-trust-row { align-items: stretch !important; }
    .palmetto-trust-row p { width: 100%; margin: 0 0 14px; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 0.2); }
    .palmetto-price-grid { grid-template-columns: 1fr; }
    .palmetto-form-grid { grid-template-columns: 1fr; }
    .palmetto-form-field--full { grid-column: auto; }
    .palmetto-cta-band { align-items: flex-start; flex-direction: column; }
    #about, #products, .palmetto-pricing, #contact { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #products .wp-block-column { transition: none; }
}
