/*
Theme Name:   Astra Child — Dynamite IT
Theme URI:    https://dynamiteit.nz
Description:  Astra child theme for Dynamite IT Solutions
Author:       Dynamite IT Solutions Ltd
Author URI:   https://dynamiteit.nz
Template:     astra
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  astra-child-dynamiteit
*/

/* ============================================================
   BRAND COLOURS
   Primary green:   #8fc73e
   Dark charcoal:   #2d2d2d
   White:           #ffffff
   ============================================================ */


/* ============================================================
   1. GLOBAL
   ============================================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    color: #333333;
}

a {
    color: #8fc73e;
}

a:hover {
    color: #2d2d2d;
}


/* ============================================================
   2. HEADER
   ============================================================ */

.site-header,
.ast-header-break-point .site-header {
    background-color: #2d2d2d;
    position: sticky;
    top: 0;
    z-index: 999;
    border-bottom: none !important;
    box-shadow: none !important;
}

.site-header .ast-container {
    align-items: center;
    border-top: none !important;
}

/* Logo */
.site-logo-img,
.custom-logo {
    width: auto !important;
    height: 60px !important;
    max-width: none !important;
    display: block;
    margin: auto 0;
}

/* Nav links */
.main-header-menu .menu-item > a,
#site-navigation .menu-item > a {
    color: #b8ccc0 !important;
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a {
    color: #8fc73e !important;
}

/* Dropdown menus */
.main-header-menu .sub-menu {
    background-color: #2d2d2d;
    border-top: 2px solid #8fc73e;
}

.main-header-menu .sub-menu .menu-item a {
    color: #b8ccc0 !important;
}

.main-header-menu .sub-menu .menu-item a:hover {
    color: #8fc73e !important;
    background-color: rgba(255,255,255,0.05);
}

/* Phone number button in header */
.dit-header-phone {
    background-color: #8fc73e;
    color: #293334 !important;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border: 2px solid #8fc73e;
}

.dit-header-phone:hover {
    background-color: #293334 !important;
    color: #ffffff !important;
    border: 2px solid #8fc73e !important;
}

/* Mobile menu toggle */
.ast-mobile-menu-trigger span,
.ast-mobile-menu-trigger span::before,
.ast-mobile-menu-trigger span::after {
    background-color: #ffffff;
}

.ast-mobile-menu-trigger-fill path,
.ast-mobile-menu-trigger svg {
    fill: #ffffff !important;
}


/* ============================================================
   3. PAGE TITLES — hidden, replaced by hero banners
   ============================================================ */

.entry-title,
.entry-header,
.ast-article-single .entry-header,
.entry-header.ast-no-thumbnail {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}


/* ============================================================
   4. PAGE CONTENT — remove top gaps
   ============================================================ */

#primary {
    margin-top: 0 !important;
}

.home .entry-content,
.page .entry-content,
.ast-separate-container .entry-content,
.ast-plain-container .entry-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.site-content {
    padding-top: 0 !important;
}


/* ============================================================
   5. HERO BANNERS
   ============================================================ */

.dit-hero {
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 4rem 2rem !important;
    border-radius: 0 !important;
    text-align: center;
    margin-bottom: 0;
	padding: 2.5rem 2rem !important;
}

.dit-hero h1 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.dit-hero p {
    color: #b8ccc0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.dit-hero .dit-hero-highlight {
    color: #8fc73e;
    font-weight: 600;
}


/* ============================================================
   6. BUTTONS
   ============================================================ */

.dit-btn-primary,
.wp-block-button .wp-block-button__link,
button[type="submit"],
input[type="submit"],
.ast-button {
    background-color: #8fc73e !important;
    color: #ffffff !important;
    border: none;
    border-radius: 24px;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dit-btn-primary:hover,
.wp-block-button .wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.ast-button:hover {
    background-color: #2d2d2d !important;
    color: #ffffff !important;
}

.dit-btn-secondary {
    background-color: transparent !important;
    color: #8fc73e !important;
    border: 2px solid #8fc73e !important;
    border-radius: 24px;
    padding: 8px 22px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dit-btn-secondary:hover {
    background-color: #8fc73e !important;
    color: #ffffff !important;
}


/* ============================================================
   7. SECTION HEADINGS
   ============================================================ */

.entry-content h2 {
    color: #2d2d2d;
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #8fc73e;
    padding-bottom: 0.4rem;
    display: inline-block;
}

.entry-content h3 {
    color: #2d2d2d;
    font-size: 1.25rem;
    margin-top: 1.75rem;
}


/* ============================================================
   8. FEATURE / SERVICE CARDS
   ============================================================ */

.dit-card-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.5rem 0;
}

.dit-card {
    flex: 1;
    min-width: 200px;
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 1.25rem;
    text-align: center;
}

.dit-card h3 {
    color: #2d2d2d;
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.dit-card p {
    font-size: 0.875rem;
    color: #555;
    margin: 0;
}


/* ============================================================
   9. PRICING CARDS
   ============================================================ */

.dit-pricing-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 1.5rem 0;
    justify-content: center;
}

.dit-pricing-card {
    flex: 1;
    min-width: 200px;
    max-width: 260px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    background: #fff;
    position: relative;
}

.dit-pricing-card--featured {
    border: 2px solid #8fc73e;
    background: #f7fbef;
}

.dit-pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #8fc73e;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.dit-pricing-card__name {
    font-size: 1rem;
    font-weight: 600;
    color: #2d2d2d;
    margin: 0.75rem 0 0.5rem;
}

.dit-pricing-card__price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d2d2d;
    line-height: 1.1;
}

.dit-pricing-card__period {
    font-size: 0.8rem;
    color: #777;
    display: block;
    margin-bottom: 0.75rem;
}

.dit-pricing-card__desc {
    font-size: 0.875rem;
    color: #555;
    margin-bottom: 1.25rem;
    min-height: 3em;
}


/* ============================================================
   10. DARK BAND SECTIONS
   ============================================================ */

.dit-dark-band {
    background-color: #2d2d2d;
    color: #ffffff;
    padding: 1.25rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin: 2rem 0;
}

.dit-dark-band p,
.dit-dark-band span {
    color: #b8ccc0;
    margin: 0;
}

.dit-dark-band strong,
.dit-dark-band h3 {
    color: #8fc73e;
    margin: 0 0 0.5rem;
}


/* ============================================================
   11. GRAVITY FORMS
   ============================================================ */

.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="number"],
.gform_wrapper input[type="password"],
.gform_wrapper textarea,
.gform_wrapper select {
    border: 1px solid #d0d0d0 !important;
    border-radius: 6px !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    width: 100% !important;
    transition: border-color 0.2s !important;
}

.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus {
    border-color: #8fc73e !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(143, 199, 62, 0.15) !important;
}

.gform_wrapper .gform_submit_button,
.gform_wrapper input[type="submit"] {
    background-color: #8fc73e !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 24px !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.gform_wrapper .gform_submit_button:hover,
.gform_wrapper input[type="submit"]:hover {
    background-color: #2d2d2d !important;
}

.gform_wrapper .gfield_label {
    font-weight: 600 !important;
    color: #2d2d2d !important;
    font-size: 0.9rem !important;
}

.gform_wrapper .validation_message,
.gform_wrapper .gfield_description.validation_message {
    color: #c0392b !important;
    font-size: 0.85rem !important;
}

.gform_wrapper .gform_confirmation_message {
    background: #f7fbef;
    border-left: 4px solid #8fc73e;
    padding: 1rem 1.25rem;
    border-radius: 4px;
    color: #2d2d2d;
}


/* ============================================================
   12. FOOTER
   ============================================================ */

.site-footer,
.footer-widget-area,
.footer-widget-area .widget,
.footer-widget-area .widget-area,
#colophon {
    background-color: #ffffff !important;
    color: #333333 !important;
}

.footer-widget-area .widget {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.site-footer a,
.footer-widget-area a {
    color: #333333 !important;
    text-decoration: none;
}

.site-footer a:hover,
.footer-widget-area a:hover {
    color: #8fc73e !important;
}

.footer-widget-area .widget-title,
.footer-widget-area h2,
.footer-widget-area h3,
.site-footer h2.wp-block-heading,
.site-footer h3.wp-block-heading,
#colophon .widget-title {
    color: #2d2d2d !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
}

.ast-footer-copyright,
.ast-footer-copyright p,
.ast-footer-copyright a {
    color: #b8ccc0 !important;
    font-size: 0.8rem;
    border-top: none !important;
}

/* Footer spacing */
.footer-widget-area {
    padding-bottom: 0 !important;
}

.site-footer .ast-container {
    padding-bottom: 0 !important;
}

.site-primary-footer-wrap {
    padding-bottom: 0 !important;
}


/* ============================================================
   13. METASLIDER / SPONSORS
   ============================================================ */

.metaslider,
.ms-slider-container,
#metaslider_container_1205,
#metaslider-id-1205,
.metaslider-1205 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* ============================================================
   14. TRUSTINDEX REVIEWS
   ============================================================ */

.ti-widget.ti-goog {
    max-width: 1200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}


/* ============================================================
   15. BLOCK EDITOR
   ============================================================ */

.wp-block-columns {
    gap: 1rem !important;
}


/* ============================================================
   16. MOBILE RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {

    .dit-hero h1 {
        font-size: 1.5rem;
    }

    .dit-card-grid,
    .dit-pricing-grid {
        flex-direction: column;
    }

    .dit-pricing-card {
        max-width: 100%;
    }

    .dit-btn-primary,
    .dit-btn-secondary {
        display: block;
        width: 100%;
        text-align: center;
        margin: 0.5rem 0;
    }

    /* Footer mobile */
    .site-footer,
    .footer-widget-area,
    .footer-widget-area .widget,
    #colophon {
        background-color: #ffffff !important;
        color: #333333 !important;
    }

    .site-footer .widget,
    .site-footer .widget ul,
    .site-footer .widget p,
    .site-footer .widget-title,
    .site-footer h3.wp-block-heading {
        text-align: center !important;
    }

    .site-footer .widget {
        margin-bottom: 1.5rem !important;
        padding-bottom: 0 !important;
        border: none !important;
    }

    .metaslider,
    .ms-slider-container,
    #metaslider-id-1205 {
        margin: 0 auto !important;
        text-align: center !important;
    }

}
.ast-primary-header-bar {
    border-bottom: 3px solid #8fc73e !important;
}
#menu-item-1360 {
    text-align: center !important;
}

#menu-item-1360 > a.menu-link {
    background-color: #8fc73e !important;
    color: #ffffff !important;
    border-radius: 20px !important;
    padding: 8px 20px !important;
    font-weight: 600 !important;
    width: auto !important;
    box-sizing: border-box !important;
	display: inline-block !important;
}
.ast-header-break-point .main-header-bar-navigation {
    min-height: 100vh !important;
}
.wp-block-button .wp-block-button__link,
.dit-btn-primary {
    background-color: #8fc73e !important;
    color: #293334 !important;
    border: 2px solid #8fc73e !important;
}

.wp-block-button .wp-block-button__link:hover,
.dit-btn-primary:hover {
    background-color: #293334 !important;
    color: #ffffff !important;
    border: 2px solid #8fc73e !important;
}

/* ============================================================
   PAGE SECTIONS
   ============================================================ */

/* Hero banner */
.dit-hero {
    background-color: #293334;
    color: #ffffff;
    text-align: center;
    padding: 3rem 2rem;
}

.dit-hero h1 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.dit-hero p {
    color: #b8ccc0;
    font-size: 1.1rem;
}

/* Light grey section */
.dit-section-grey {
    background-color: #f8f9f8;
    padding: 3rem 2rem;
}

/* White section */
.dit-section-white {
    background-color: #ffffff;
    padding: 3rem 2rem;
}

/* Dark section */
.dit-section-dark {
    background-color: #293334;
    color: #ffffff;
    padding: 3rem 2rem;
    text-align: center;
}

.dit-section-dark h2,
.dit-section-dark h3 {
    color: #8fc73e;
}

.dit-section-dark p {
    color: #b8ccc0;
}

/* Pricing cards */
.dit-price-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.dit-price-card h3 {
    color: #293334;
    margin-top: 0;
}

.dit-price-card .dit-price {
    font-size: 2rem;
    font-weight: 700;
    color: #293334;
    margin: 0.5rem 0 0.25rem;
}

.dit-price-card .dit-price-note {
    font-size: 0.875rem;
    color: #666666;
}

/* Featured price card */
.dit-price-card--featured {
    border: 2px solid #8fc73e;
    background: #f2f7e8;
}

/* Info bar */
.dit-info-bar {
    background-color: #293334;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    text-align: center;
    margin-top: 1.5rem;
}

.dit-info-bar p {
    color: #b8ccc0;
    font-size: 0.875rem;
    margin: 0;
}

/* Green accent cards */
.dit-accent-card {
    border-left: 4px solid #8fc73e;
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
}

.dit-accent-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #293334;
}

.dit-accent-card p {
    font-size: 0.875rem;
    color: #666666;
    margin: 0;
}

/* Section headings */
.dit-section-heading {
    text-align: center;
    color: #293334;
    margin-bottom: 0.25rem;
}

.dit-section-subheading {
    text-align: center;
    color: #777777;
    margin-bottom: 2rem;
}

/* Notice bar */
.dit-notice {
    background-color: #f2f7e8;
    border-left: 4px solid #8fc73e;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
}

.dit-section-dark h4 {
    color: #8fc73e;
}
.ast-footer-copyright p {
    text-align: center !important;
	width:100%
}
@media (min-width: 1500px) {
    .entry-content > .wp-block-group > h2,
    .entry-content > .wp-block-group > h3,
    .wp-block-group.alignfull > .wp-block-group__inner-container > h2,
    .wp-block-group.alignfull > .wp-block-group__inner-container > h3 {
        max-width: 1500px !important;
        margin-left: calc((100vw - 1500px) / 2) !important;
        margin-right: calc((100vw - 1500px) / 2) !important;
    }
}

@media (max-width: 921px) {
    .entry-content h2.wp-block-heading,
    .entry-content h3.wp-block-heading {
        display: table !important;
        margin-left: auto !important;
        margin-right: auto !important;
        text-align: center !important;
    }
}

@media (max-width: 921px) {
    .ast-builder-menu-mobile {
        --ast-global-color-4: #293334 !important;
    }
	.ast-mobile-header-wrap .ast-mobile-header-content, .ast-desktop-header-content {
    background-color: #293334;
	}
}

input[type="text"], input[type="number"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type=reset], input[type=tel], input[type=date], select {
    height: 50px;
}
.wp-block-separator {
    border-color: #8fc73e !important;
    border-top-color: #8fc73e !important;
	margin-left: 0 !important;
    margin-right: auto !important;
	width: auto !important;
    display: inline-block !important;
    min-width: 175px !important;
}



.ast-primary-header-bar,
.ast-primary-header-bar .ast-builder-grid-row,
.ast-primary-header-bar .ast-container,
.site-primary-header-wrap {
    min-height: 80px !important;
    align-items: center !important;
}

.ast-primary-header-bar .site-header-primary-section-left,
.ast-primary-header-bar .site-header-primary-section-right,
.ast-primary-header-bar .site-header-primary-section-center {
    align-items: center !important;
    align-self: center !important;
    margin: auto 0 !important;
}

.ast-primary-header-bar .ast-site-identity,
.ast-primary-header-bar .site-logo-img,
.ast-primary-header-bar .custom-logo-link {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    margin: auto 0 !important;
}


