/*
Theme Name: Hingham Nursery
Theme URI: https://www.hinghamnursery.co.za/
Author: WHG Solutions
Description: WordPress theme for Hingham Nursery with editable page content.
Version: 1.0.29
Text Domain: hingham
*/

.MasterFooterIlinkLogo,
.MasterFooterWebhouseLogo,
#ctl00_divMasterFooter .MasterFooterIlinkLogo,
#ctl00_divMasterFooter .MasterFooterWebhouseLogo {
    display: none !important;
}

/* Header: logo, single-line nav, side-by-side social icons */
#logo_section {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    float: none;
}

#logo_section .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    text-align: center;
    margin-bottom: 6px;
}

#logo_section .logo img.logo-main {
    width: auto;
    max-width: min(460px, 100%);
    height: auto;
    display: block;
}

#logo_section .logo img.year-logo {
    width: auto;
    max-width: 120px;
    height: auto;
    display: block;
    border-radius: 20%;
}

#logo_section .header-nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

#logo_section #nav {
    flex: 1 1 auto;
    max-width: none !important;
    width: auto !important;
    margin: 0 !important;
    text-align: center;
    float: none;
}

#logo_section #nav .DefaultNavigationMenu > ul.level1,
#logo_section #nav ul.level1 {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    width: auto !important;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

#logo_section #nav ul.level1 > li {
    display: block !important;
    float: none !important;
    max-width: none !important;
    width: auto !important;
    margin: 0 10px 0 0;
    padding-top: 0 !important;
    white-space: nowrap;
}

#logo_section #nav ul.level1 > li:last-child {
    margin-right: 0;
}

#logo_section #nav ul.level1 > li > a {
    white-space: nowrap;
    font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #626262;
    text-transform: uppercase;
    text-decoration: none;
    padding: 5px 4px;
}

#logo_section #nav ul.level1 > li > a:hover,
#logo_section #nav ul.level1 > li > a.selected {
    color: #246338;
}

#logo_section .SocialIcons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    gap: 6px;
}

#logo_section .SocialIcons .social2 {
    margin-top: 0 !important;
    margin-right: 0 !important;
}

#logo_section .SocialIcons img {
    width: 40px;
    height: 40px;
    display: block;
}

#form .Registration_Holder > div > h1 {
    display: none;
}

.hingham-contact-form__hp {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

#form .Registration {
    margin-top: 0 !important;
    padding-left: 0 !important;
}

#form .registration_field_form-control,
#form .registration_field_holder,
#form .registration_field_enquiry_comment {
    margin-bottom: 5px;
}

#form .registration_field_form-control input,
#form .registration_field_holder input,
#form .form_captcha_control_holder {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    font-family: arial, sans-serif;
    font-size: 14px;
    max-width: 220px;
    padding: 4px 8px;
    width: 218px;
}

#form .registration_field_enquiry_comment textarea,
#form .form textarea {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    box-sizing: border-box;
    display: block;
    font-family: arial, sans-serif;
    font-size: 14px;
    margin-left: 0;
    max-width: 220px;
    min-height: 96px;
    width: 218px !important;
}

#form .form_captcha {
    margin-top: 20px;
}

#form .form_captcha_label_holder {
    color: #fff;
    display: inline-block;
    font-family: arial, sans-serif;
    font-size: 14px;
    margin-right: 4px;
    vertical-align: middle;
}

#form .form_captcha_Image_holder {
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

#form .form_captcha_button_holder {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    font-size: 18px;
    line-height: 1;
    margin-right: 6px;
    padding: 0;
    vertical-align: middle;
}

#form input[type="submit"] {
    display: block;
    float: right;
    margin-right: 103px;
    margin-top: 30px;
}

#form .hingham-contact-form__notice {
    color: #fff;
    font-family: arial, sans-serif;
    font-size: 13px;
    margin: 0 0 10px;
}

#form .registration_label,
#form .form_captcha_label_holder {
    color: #fff;
    display: inline-block;
    font-family: arial, sans-serif;
    font-size: 14px;
    width: auto;
}

#contact_footer .contact a,
#contact_footer .contact a:visited {
    color: #fff;
    text-decoration: none;
}

#contact_footer .contact a:hover,
#contact_footer .contact a:focus {
    color: #fff;
    text-decoration: none;
}

#nav .DefaultNavigationMenu ul.level1 {
    margin: 0;
    padding: 0;
}

#nav .DefaultNavigationMenu ul.level1 > li {
    display: inline-block;
    vertical-align: top;
}

/* Mobile slicknav: link text must contrast with the lime menu background. */
#logo_section .slicknav_menu .slicknav_icon-bar {
    background-color: #fff !important;
}

#logo_section .slicknav_menu .slicknav_nav a,
#logo_section .slicknav_menu .slicknav_nav a:visited,
#logo_section .slicknav_menu .slicknav_nav .slicknav_item a {
    color: #fff !important;
    max-width: 100%;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    width: auto;
}

#logo_section .slicknav_menu .slicknav_nav a:hover,
#logo_section .slicknav_menu .slicknav_nav a:focus,
#logo_section .slicknav_menu .slicknav_nav a.selected,
#logo_section .slicknav_menu .slicknav_nav .slicknav_item:hover {
    background: #246338 !important;
    color: #fff !important;
}

@media only screen and (min-width: 768px) {
    #nav_bg {
        clear: both;
        display: block !important;
        overflow: hidden;
    }

    #logo_section .slicknav_menu {
        display: none !important;
    }

    #nav .DefaultNavigationMenu {
        display: block !important;
    }

    #nav .DefaultNavigationMenu ul.level1 {
        display: block;
        line-height: normal;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #nav .DefaultNavigationMenu ul.level1 > li {
        display: inline-block;
        margin: 0;
        vertical-align: top;
    }

    #nav .DefaultNavigationMenu ul.level1 > li:first-child {
        margin-left: -40px;
    }

    #nav a.level1 {
        box-sizing: border-box;
        display: inline-block;
        line-height: 1.2;
        padding: 17px 30px 18px;
        vertical-align: top;
    }

    #nav a.level1:hover,
    #nav a.level1.selected {
        color: #fff;
    }
}

.hingham-contact-form__notice--success {
    color: #007017;
}

.hingham-contact-form__notice--error {
    color: #b32d2e;
}

.hingham-contact-form__input,
.hingham-contact-form__textarea {
    width: 100%;
    max-width: 220px;
}

.hingham-quote-form {
    margin-top: 20px;
}

#slider1 li {
    min-height: 400px;
}

#slider1 li img {
    display: block;
    width: 100%;
    min-height: 400px;
    object-fit: cover;
    object-position: center top;
}

.hingham-slider-table td {
    vertical-align: middle;
}

/* Homepage welcome area keeps blue body copy from the original site. */
.hingham-home #content {
    color: #00f;
    font-family: arial, sans-serif;
    font-size: 12px;
    line-height: 20px;
}

.hingham-home #welcome {
    color: #00f;
    font-size: 36px;
    line-height: 100%;
    margin: 20px 0 10px;
}

.hingham-home #content_bg,
.hingham-home #content {
    height: auto !important;
    margin-bottom: 0 !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
}

.hingham-home #content .content-control {
    margin-bottom: 0;
    padding-bottom: 0;
}

.hingham-home #content .content-control p {
    margin-bottom: 0;
}

.hingham-home #content .content-control p:empty {
    display: none;
}

.hingham-home .ContentPageContent::after {
    clear: both;
    content: "";
    display: table;
}

.hingham-home .marqee_bg {
    margin-top: 0 !important;
}

/* Inner pages: blue page title, black body text. */
.hingham-page #content,
.hingham-page #content .content-control {
    color: #000;
    font-family: arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.hingham-page .ContentPageHeader {
    clear: both;
    color: #00f;
    float: none;
    font-family: arial, sans-serif;
    font-size: 36px;
    font-weight: normal;
    line-height: 100%;
    margin: 20px 0 10px;
}

.hingham-page .ContentPageContent,
.hingham-page .ContentPageContent p,
.hingham-page .ContentPageContent div,
.hingham-page .ContentPageContent td,
.hingham-page .ContentPageContent li,
.hingham-page .ContentPageContent strong {
    color: #000 !important;
    font-family: arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
}

.hingham-page .ContentPageContent p {
    margin: 0 0 12px;
}

.hingham-page .ContentPageContent p strong {
    display: block;
    font-weight: bold;
    margin-bottom: 4px;
}

.hingham-page .ContentPageContent a {
    color: #00f;
}

.hingham-page .ContentPageContent .hingham-whats-on-highlight,
.hingham-page .ContentPageContent span[style*="background-color: rgb(0, 255, 0)"],
.hingham-page .ContentPageContent span[style*="background-color:rgb(0, 255, 0)"] {
    background-color: rgb(0, 255, 0) !important;
}

.hingham-page .ContentPageContent .hingham-whats-on-highlight a {
    color: #00f;
}

.hingham-page .ContentPageContent span[style*="font-size:18px"] {
    font-size: 18px !important;
}

.hingham-page .ContentPageContent table.ContentPageTable {
    border-collapse: collapse;
    max-width: 100%;
    table-layout: fixed;
    width: 100%;
}

.hingham-page .ContentPageContent table.ContentPageTable td {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.hingham-page .ContentPageContent iframe,
.hingham-contact-map iframe {
    border: 0;
    box-sizing: border-box;
    display: block;
    height: 400px !important;
    margin-top: 12px;
    max-width: 100% !important;
    width: 100% !important;
}

.hingham-contact-map {
    clear: both;
    margin-top: 12px;
    max-width: 100%;
    overflow: hidden;
    width: 100%;
}

.hingham-contact-map iframe {
    margin-top: 0;
}

/* Contact page enquiry form layout. */
.hingham-contact-form--page {
    margin-top: 20px;
}

.hingham-contact-form--page .hingham-contact-form__title {
    color: #000;
    display: block;
    font-family: arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    margin: 0 0 8px;
}

.hingham-contact-form--page .hingham-contact-form__intro {
    color: #000;
    font-family: arial, sans-serif;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.hingham-contact-form--page .hingham-contact-form__intro a {
    color: #00f;
}

.hingham-contact-form--page .hingham-contact-form__grid {
    display: grid;
    gap: 12px 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hingham-contact-form--page .hingham-contact-form__email {
    grid-column: 1;
}

.hingham-contact-form--page .hingham-contact-form__message {
    grid-column: 2 / span 2;
}

.hingham-contact-form--page .registration_label {
    color: #000;
    display: block;
    font-family: arial, sans-serif;
    font-size: 14px;
    margin-bottom: 4px;
}

.hingham-contact-form--page .registration_control_holder input,
.hingham-contact-form--page .registration_control_holder textarea,
.hingham-contact-form--page .form_captcha_control_holder {
    background: #fff;
    border: 1px solid #ccc;
    box-sizing: border-box;
    font-family: arial, sans-serif;
    font-size: 14px;
    max-width: 100%;
    padding: 4px 8px;
    width: 100%;
}

.hingham-contact-form--page .registration_field_textarea {
    min-height: 120px;
    resize: vertical;
}

.hingham-contact-form--page .form_captcha {
    margin-top: 16px;
    padding-left: 0 !important;
}

.hingham-contact-form--page input[type="submit"] {
    background: #246338;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: inline-block;
    float: none;
    font-family: arial, sans-serif;
    font-size: 16px;
    margin-top: 16px;
    padding: 8px 24px;
}

.hingham-contact-legal-bar {
    background: #464855;
    color: #fff;
    font-family: arial, sans-serif;
    font-size: 14px;
    margin-top: 24px;
    padding: 12px 20px;
}

.hingham-contact-legal-bar a {
    color: #fff;
    text-decoration: none;
}

@media only screen and (max-width: 767px) {
    .hingham-contact-form--page .hingham-contact-form__grid {
        grid-template-columns: 1fr;
    }

    .hingham-contact-form--page .hingham-contact-form__email,
    .hingham-contact-form--page .hingham-contact-form__message {
        grid-column: auto;
    }
}

/* Get a Quote page form — label left, field right (matches live site). */
.hingham-quote-form {
    margin-top: 12px;
}

.hingham-quote-form .hingham-contact-form__title,
.hingham-quote-form .Registration_Holder > div > h1 {
    display: none;
}

.hingham-quote-form .Registration {
    margin-top: 0 !important;
}

.hingham-quote-form .registration_field_label_holder {
    line-height: normal;
    margin-bottom: 8px;
}

.hingham-quote-form .registration_label_holder,
.hingham-quote-form .registration_label {
    color: #000;
    display: inline-block;
    font-family: arial, sans-serif;
    font-size: 14px;
    vertical-align: top;
    width: 118px;
}

.hingham-quote-form .registration_control_holder {
    display: inline-block;
    vertical-align: top;
    width: 220px;
}

.hingham-quote-form .registration_control_holder input,
.hingham-quote-form .registration_control_holder textarea,
.hingham-quote-form .form_captcha_control_holder {
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    box-sizing: border-box;
    font-family: arial, sans-serif;
    font-size: 14px;
    max-width: 220px;
    padding: 4px 8px;
    width: 218px;
}

.hingham-quote-form .registration_field_enquiry_comment .registration_label_holder {
    padding-top: 6px;
}

.hingham-quote-form .registration_field_textarea {
    height: 72px;
    resize: vertical;
}

.hingham-quote-form .form_captcha {
    margin-top: 16px;
    padding-left: 118px;
}

.hingham-quote-form .form_captcha_Image_holder,
.hingham-quote-form .form_captcha_button_holder {
    display: inline-block;
    vertical-align: middle;
}

.hingham-quote-form .form_captcha_button_holder {
    background: transparent;
    border: 0;
    color: #000;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    margin-left: 6px;
    padding: 0;
}

.hingham-quote-form .form_captcha_label_holder {
    color: #000;
    display: block;
    font-family: arial, sans-serif;
    font-size: 14px;
    margin: 10px 0 6px;
}

.hingham-quote-form .form_captcha_control_holder {
    display: block;
}

.hingham-quote-form input[type="submit"] {
    background: red !important;
    border: none !important;
    border-radius: 0 !important;
    color: #00f !important;
    display: inline-block;
    float: none;
    font-family: 'Ropa Sans', sans-serif;
    font-size: 18px;
    height: 35px;
    margin-top: 30px;
    padding: 5px;
    width: 99px;
}

.hingham-quote-form .hingham-contact-form__notice {
    color: #000;
    font-family: arial, sans-serif;
    font-size: 13px;
    margin: 0 0 10px;
}

/* Homepage slider prev/next arrows (above red circle overlay). */
.rslides_container {
    position: relative;
}

#slider .centered-btns_nav {
    display: none;
}

body.hingham-home #slider .centered-btns_nav {
    display: block;
    font-size: 0;
    height: 46px;
    line-height: 0;
    overflow: hidden;
    position: absolute;
    text-indent: -9999px;
    top: 70%;
    width: 40px;
    z-index: 1100;
}

body.hingham-home #slider .centered-btns_nav.prev {
    background: url('assets/images/layout/prev_arrow.png') no-repeat center center;
    background-size: contain;
    left: auto;
    right: 53%;
}

body.hingham-home #slider .centered-btns_nav.next {
    background: url('assets/images/layout/next_arrow.png') no-repeat center center;
    background-size: contain;
    left: 53%;
    right: auto;
}

/* Homepage slider: no captions, default cursor (images are not links). */
body.hingham-home #out-of-the-box-demo img {
    cursor: default;
}

body.hingham-home #out-of-the-box-demo .sy-caption-wrap {
    display: none !important;
}
