/* Disable sticky header */
header,
.wp-block-template-part,
.wp-site-blocks > header {
    position: static !important;
    top: auto !important;
}

/* Homepage hero box - lighter transparent gray with balanced vertical position */
.hero-title-box {
    width: 72% !important;
    max-width: 1100px !important;
    transform: translateY(135px);
    background-color: rgba(105, 105, 105, 0.48) !important;
}

/* Homepage hero heading - large Playfair Display headline on desktop */
@media (min-width: 769px) {
    .hero-title-box h1,
    .hero-title-box h2 {
        font-family: "Playfair Display", serif !important;
        font-size: 44px !important;
        line-height: 1.08 !important;
    }
}

/* Mobile homepage hero - improve headline fit without covering image */
@media (max-width: 768px) {
    .hero-title-box {
        width: 78% !important;
        max-width: 320px !important;
        transform: translateY(55px) !important;
    }

    .hero-title-box h1,
    .hero-title-box h2 {
        font-family: "Playfair Display", serif !important;
        font-size: 20px !important;
        line-height: 1.08 !important;
        overflow-wrap: normal !important;
        word-break: normal !important;
        margin-bottom: 14px !important;
    }

    .hero-title-box p {
        font-size: 12px !important;
        line-height: 1.35 !important;
        margin-bottom: 14px !important;
    }
}

/* Services cards - reduce plugin-imposed height */
.service-card-compact,
.service-card-compact > div {
    min-height: 0 !important;
    height: auto !important;
}

/* Services cards - tighten vertical spacing */
.service-card-compact > div {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
    box-sizing: border-box !important;
}

/* Mobile layout - contain full-width blocks inside phone screen */
@media (max-width: 768px) {
    html,
    body,
    .wp-site-blocks {
        width: 100% !important;
        max-width: 100% !important;
				overflow-x: clip !important;;
    }
}

/* Mobile services section - force plugin container to fit phone width */
@media (max-width: 768px) {
    .wp-block-ub-services-section,
    .wp-block-ub-services-section > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Mobile service cards - add space on both sides */
@media (max-width: 768px) {
    .service-card-compact {
        width: calc(100% - 40px) !important;
        max-width: calc(100% - 40px) !important;
        margin-left: 20px !important;
        margin-right: 20px !important;
        box-sizing: border-box !important;
    }

    .service-card-compact > div {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Header top row - keep branding left and contact/CTA right */
.header-top-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

/* Header top row - keep each side grouped tightly */
.header-top-row > * {
    flex: 0 0 auto !important;
}

/* Header branding - reduce gap between logo and firm name */
.header-brand-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Header branding - position title/tagline beside logo and slightly lower */
.header-brand-row > .wp-block-group {
    margin-left: -20px !important;
    transform: translateY(8px);
}

.header-brand-row h1 {
    margin-left: 0 !important;
}

/* Header navigation - make purple menu bar span full width */
.header-nav-row {
    width: 100% !important;
}

/* Header navigation - let the menu fill the row */
.header-nav-row .wp-block-navigation {
    width: 100% !important;
}

/* Header navigation - tighten Hostinger menu item spacing */
.hostinger-ai-site-navigation-wrapper .wp-block-navigation-item {
    margin-right: 18px !important;
    flex: 0 0 auto !important;
}

/* Header navigation - remove extra space after last item */
.hostinger-ai-site-navigation-wrapper .wp-block-navigation-item:last-child {
    margin-right: 0 !important;
}

/* Header navigation - keep items aligned from the left */
.hostinger-ai-site-navigation-wrapper .wp-block-navigation__container {
    justify-content: flex-start !important;
}

/* Header navigation - shift the entire desktop menu slightly right */
@media (min-width: 769px) {
    .header-nav-row .wp-block-navigation {
        padding-left: 25px !important;
        box-sizing: border-box !important;
    }
}

/* Mobile header branding - size and align firm name with tagline */
@media (max-width: 768px) {
    .header-brand-row h1 {
        font-size: 30px !important;
        line-height: 1.05 !important;
        margin-left: 0 !important;
    }
}

/* Mobile header top row - stack and fit within phone screen */
@media (max-width: 768px) {
    .header-top-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 4px !important;
    }

    .header-top-row > * {
        max-width: 100% !important;
    }
}

/* Mobile header contact row - tighten top gap and add space before menu */
@media (max-width: 768px) {
    .header-top-row > *:last-child {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding-left: 20px !important;
        padding-top: 0 !important;
        margin-top: -12px !important;
        padding-bottom: 18px !important;
        box-sizing: border-box !important;
    }
}

/* Mobile navigation - inset hamburger from left edge */
@media (max-width: 768px) {
    .header-nav-row .wp-block-navigation__responsive-container-open {
        margin-left: 20px !important;
    }
}

/* Mobile navigation - enlarge hamburger menu icon */
@media (max-width: 768px) {
    .header-nav-row .wp-block-navigation__responsive-container-open svg {
        width: 32px !important;
        height: 32px !important;
    }
}

/* Navigation submenu - make each submenu row full width */
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item {
    width: 100% !important;
}

/* Navigation submenu - gold background with visible purple label on hover */
.wp-block-navigation .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
    background-color: #d4a33f !important;
    color: #422769 !important;
}

/* Navigation submenu - force nested label elements to stay purple on gold hover */
.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content:hover,
.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content:hover *,
.wp-block-navigation .wp-block-navigation__submenu-container
.wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
    color: #422769 !important;
}

/* Main navigation - change top-level menu text to gold on hover */
.header-nav-row .wp-block-navigation-item > .wp-block-navigation-item__content:hover {
    color: #cda054 !important;
}

/* WPForms submit button - change purple button to gold on hover */
.wpforms-form button[type="submit"]:hover {
    background-color: #d4a33f !important;
    border-color: #d4a33f !important;
    color: #ffffff !important;
}

/* Contact page form - set normal submit button to site purple */
.contact-page-form button[type="submit"] {
    background-color: #422769 !important;
    border-color: #422769 !important;
    color: #ffffff !important;
}

/* Contact page form - center form and keep all fields at a consistent width */
.contact-page-form {
    width: 100% !important;
    max-width: 700px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Contact page office section - add side spacing and reduce space below page title */
.contact-office-section {
    padding-left: 40px !important;
    padding-right: 40px !important;
    box-sizing: border-box !important;
    margin-top: -40px !important;
}

/* Family Law page - allow practice areas to fill the section */
.page-content-wide .practice-areas-content,
.page-content-wide .practice-areas-content > * {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.page-content-wide .practice-areas-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Family Law page - separate each practice area section */
.practice-areas-content h2 {
    margin-top: 50px !important;
}

/* Family Law page - reduce space before the first practice area */
.practice-areas-content h2:first-of-type {
    margin-top: 30px !important;
}

/* Main content paragraphs - reduce space between paragraphs */
main p {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

/* Lindsey awards - keep all three awards in one row on mobile */
@media (max-width: 768px) {
    .lindsey-awards {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
        align-items: center !important;
    }

    .lindsey-awards figure {
        width: 100% !important;
        margin: 0 !important;
    }

    .lindsey-awards img {
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* Mobile testimonial heading - keep heading inside phone width */
@media (max-width: 768px) {
    .testimonial-heading {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}

/* Testimonials - keep testimonial height consistent and center the content */
.testimonial-content {
    min-height: 380px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Mobile footer legal links - stack links vertically */
@media (max-width: 768px) {
    .footer-legal-links {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
    }
}

/* Homepage new hero - expand the two-column hero width on desktop */
@media (min-width: 769px) {
    .homepage-new-hero {
        width: 100% !important;
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Homepage new hero - fill text panel and add inner spacing */
@media (min-width: 769px) {
    .homepage-new-hero > .wp-block-column:first-child > .wp-block-group {
        height: 100% !important;
        min-height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding-left: 50px !important;
        padding-right: 50px !important;
    }
}

/* Homepage new hero - enlarge headline and tagline on desktop */
@media (min-width: 769px) {
    .homepage-new-hero h2 {
        font-size: 30px !important;
        line-height: 1.08 !important;
        margin-bottom: 28px !important;
    }

    .homepage-new-hero p {
        font-size: 19px !important;
        line-height: 1.5 !important;
        max-width: 520px !important;
    }
}

/* Homepage new hero - align headline and tagline */
@media (min-width: 769px) {
    .homepage-new-hero h2,
    .homepage-new-hero p {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Header - add gold separation line above homepage hero */
header.wp-block-template-part {
    border-bottom: 4px solid #d4a33f !important;
}

/* Homepage hero - add breathing room below navigation */
.homepage-new-hero {
    margin-top: 12px !important;
}

/* Homepage hero - reduce overall desktop hero height */
@media (min-width: 769px) {
    .homepage-new-hero {
        max-height: 520px !important;
        overflow: hidden !important;
    }

    .homepage-new-hero img {
        height: 520px !important;
        width: 100% !important;
        object-fit: cover !important;
        object-position: center top !important;
    }
}

/* Homepage hero - shift text slightly lower for vertical balance */
@media (min-width: 769px) {
    .homepage-new-hero h2 {
        transform: translateY(20px);
    }

    .homepage-new-hero p {
        transform: translateY(20px);
    }
}

/* Homepage hero - improve text panel spacing and typography on mobile */
@media (max-width: 768px) {
    .homepage-new-hero > .wp-block-column:first-child > .wp-block-group {
        padding: 28px 24px !important;
        box-sizing: border-box !important;
    }

    .homepage-new-hero h2 {
        font-size: 26px !important;
        line-height: 1.08 !important;
        margin: 0 0 18px 0 !important;
        transform: none !important;
    }

    .homepage-new-hero p {
        font-size: 17px !important;
        line-height: 1.45 !important;
        margin: 0 !important;
        transform: none !important;
    }
}

/* Homepage hero - reduce gap between text and photo on mobile */
@media (max-width: 768px) {
    .homepage-new-hero {
        gap: 12px !important;
        row-gap: 12px !important;
    }
}

/* Homepage hero - make text and photo full width on mobile */
@media (max-width: 768px) {
    .homepage-new-hero {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .homepage-new-hero > .wp-block-column {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* Mobile header tagline - tighten line spacing */
@media (max-width: 768px) {
    .header-brand-row p {
        line-height: 1.15 !important;
    }
}

/* Mobile header - add space above Free Consultation buttons block */
@media (max-width: 768px) {
    header.wp-block-template-part .wp-block-buttons {
        margin-top: 8px !important;
    }
}

/* Homepage - reduce space above Lindsey section */
.lindsey-home-section {
    margin-top: 5px !important;
}

/* Homepage Family Law - reduce space below section on desktop */
@media (min-width: 769px) {
    .family-law-home-section {
        margin-bottom: -30px !important;
    }
}

/* Services - narrow cards slightly on desktop only */
@media (min-width: 769px) {
    .services-mobile-fit {
        width: calc(100% - 50px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Services - align title areas on desktop */
@media (min-width: 769px) {
    .services-mobile-fit h2,
    .services-mobile-fit h3,
    .services-mobile-fit h4 {
        min-height: 64px !important;
    }
}

/* Services - align Child Support card on desktop */
@media (min-width: 769px) {
    .child-support-service {
        padding-top: 22px !important;
    }
}

/* Services - align Family Law Mediation card on desktop */
@media (min-width: 769px) {
    .mediation-service {
        padding-top: 22px !important;
    }
}

/* Testimonials - allow shorter testimonial cards on desktop */
@media (min-width: 769px) {
    .homepage-testimonials .testimonial-content {
        min-height: 0 !important;
        height: auto !important;
    }
}

/* Testimonials - reduce space above quote on desktop */
@media (min-width: 769px) {
    .homepage-testimonials .testimonial-content {
        padding-top: 20px !important;
    }
}

/* Testimonials - inset slider and navigation arrows on desktop */
@media (min-width: 769px) {
    .homepage-testimonials {
        width: calc(100% - 40px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Homepage consultation form - force block width and center on desktop */
@media (min-width: 769px) {
    .homepage-consultation-form {
        display: block !important;
        width: 700px !important;
        max-width: 700px !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Homepage hero - remove side gaps on desktop */
@media (min-width: 769px) {
    .homepage-new-hero {
        width: calc(100% + 48px) !important;
        max-width: none !important;
        margin-left: -24px !important;
        margin-right: -24px !important;
    }
}

/* Homepage hero - remove gap between text panel and image on desktop */
@media (min-width: 769px) {
    .homepage-new-hero {
        gap: 0 !important;
        column-gap: 0 !important;
    }
}

/* Mobile navigation - keep purple menu bar inside viewport */
@media (max-width: 768px) {
    .header-nav-row {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
}

/* Mobile navigation - allow menu row to shrink to viewport */
@media (max-width: 768px) {
    .header-nav-row {
        min-width: 0 !important;
        flex: 1 1 auto !important;
    }
}



#all-contacts {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 200%;
}

.wpforms-form button[type=submit] {
    background-color: #422769 !important;
    border-color: #422769 !important;
    color: #ffffff !important; /* This is the text color */
}

/* Change the button background color when hovering over it */
.wpforms-form button[type=submit]:hover {
    background-color: #1559ed !important;
    border-color: #1559ed !important;
}

/* Legal pages – content margins and title spacing */
.page-id-1035 .wp-block-post-content,
.page-id-1037 .wp-block-post-content,
.page-id-1039 .wp-block-post-content,
.page-id-1041 .wp-block-post-content,
.page-id-1043 .wp-block-post-content {
    padding-left: 30px;
    padding-right: 30px;
}

/* Legal pages – reduce space below page titles */
.page-id-1035 .wp-block-post-title,
.page-id-1037 .wp-block-post-title,
.page-id-1039 .wp-block-post-title,
.page-id-1041 .wp-block-post-title,
.page-id-1043 .wp-block-post-title {
    padding-bottom: 0.5rem !important;
    margin-bottom: 0 !important;
}

/* Lindsey bio - size and center fourth award */
.lindsey-fourth-award {
    max-width: 200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Extensive Experience heading – regular text with selected words bold */
.experience-heading {
    font-weight: 400 !important;
}

/* Mobile navigation - style the open menu */
@media (max-width: 768px) {
    .wp-block-navigation__responsive-container.is-menu-open {
        background-color: #422769 !important;
        color: #ffffff !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content {
        color: #ffffff !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container {
        border-left: 2px solid #d4a33f !important;
    }
}

/* Mobile navigation - make menu links gold on hover */
@media (max-width: 768px) {
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content:hover,
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation-item__content:hover .wp-block-navigation-item__label {
        color: #d4a33f !important;
    }
}

/* Mobile navigation - submenu tap state uses gold text only */
@media (max-width: 768px) {
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:focus,
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:active,
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:hover {
        background-color: transparent !important;
        color: #d4a33f !important;
    }

    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:focus *,
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:active *,
    .wp-block-navigation__responsive-container.is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content:hover * {
        color: #d4a33f !important;
    }
}

/* Why Choose - add space above Extensive Experience on mobile */
@media (max-width: 768px) {
    .why-choose-second-row {
        margin-top: 40px !important;
    }
}

/* Testimonials - add space above heading on mobile */
@media (max-width: 768px) {
    .testimonials-heading-mobile {
        margin-top: 0 !important;
        padding-top: 40px !important;
    }
}

/* Services - add space before testimonials on mobile */
@media (max-width: 768px) {
    .services-mobile-fit {
        margin-bottom: 40px !important;
    }
}

/* Family Law - increase practice area description text on mobile */
@media (max-width: 768px) {
    .family-law-practice-list p {
        font-size: 16px !important;
        line-height: 1.5 !important;
    }
}

/* Contact page - reduce gaps between community lists on mobile */
@media (max-width: 768px) {
    .communities-mobile-list .wp-block-list {
        margin-top: -10px !important;
        margin-bottom: -10px !important;
    }
}

/* Divorce blog - align intro text with top of courthouse image */
.divorce-blog-intro .wp-block-media-text__content {
    align-self: start !important;
    padding-top: 0 !important;
}

/* Divorce blog - tighten spacing around courthouse intro section */
.divorce-blog-intro {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* Family Law Insights - reduce space below page title on mobile */
@media (max-width: 768px) {
    .family-law-insights-content {
        margin-top: -30px !important;
    }
}

/* Family Law Insights - underline Read More link on mobile */
@media (max-width: 768px) {
    .family-law-insights-content .wp-block-post-excerpt__more-link {
        text-decoration: underline !important;
    }
}

/* Blog posts - reduce main post title size on mobile */
@media (max-width: 768px) {
    body.single-post .wp-block-post-title {
        font-size: 32px !important;
        line-height: 1.15 !important;
    }
}

/* Divorce article - extend opening text toward screen edges on mobile */
@media (max-width: 768px) {
    .divorce-blog-intro .wp-block-media-text__content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

.gutena-testimonial-block .tns-outer .tns-nav {
		display:	none;
}

/* Why Choose - align second row with first-row columns on desktop */
@media (min-width: 769px) {
    .why-choose-second-row {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .why-choose-second-row > .wp-block-column {
        width: auto !important;
        flex-basis: auto !important;
    }
}