/*
 Theme Name:   TPC Direct Care
 Theme URI:    https://tpcdirectcare.com
 Description:  Child theme for TPC Direct Care, based on Divi
 Author:       TPC Direct Care
 Template:     Divi
 Version:      1.0.0
*/

/* ===== TPC Direct Care Brand Colors ===== */
:root {
    --tpc-green: #1a5841;
    --tpc-green-light: #709185;
    --tpc-green-dark: #143d2f;
    --tpc-dark: #333333;
    --tpc-gray: #666666;
    --tpc-light: #f7f7f7;
    --tpc-white: #ffffff;
}

/* ===== HEADER / STICKY NAV BAR ===== */
#main-header,
#main-header.et-fixed-header {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important;
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 99999;
}

#page-container {
    padding-top: 80px !important;
}

/* Bigger logo */
#logo {
    max-height: 65px !important;
    width: auto !important;
}

/* Hide search icon and RSS */
.et_search_outer,
#et_search_icon,
.et-search-form-container,
#main-header .et-search-field,
.et_pb_widget .rss-widget-icon {
    display: none !important;
}

/* Nav links styling */
#top-menu li a {
    color: #333333 !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    transition: color 0.3s ease;
}

#top-menu li a:hover,
#top-menu li.current-menu-item a {
    color: #1a5841 !important;
    opacity: 1 !important;
}

/* CTA button in nav - style the last menu item as a button */
#top-menu li:last-child a {
    background-color: #1a5841 !important;
    color: #ffffff !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

#top-menu li:last-child a:hover {
    background-color: #143d2f !important;
    color: #ffffff !important;
}

/* ===== HERO / FULLWIDTH HEADER ===== */
.et_pb_fullwidth_header {
    min-height: 90vh !important;
}

.et_pb_fullwidth_header .header-content {
    padding: 60px 40px !important;
}

.et_pb_fullwidth_header h1,
.et_pb_fullwidth_header .et_pb_fullwidth_header_title {
    color: #ffffff !important;
    font-size: 54px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin-bottom: 24px !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.et_pb_fullwidth_header .et_pb_fullwidth_header_subhead {
    color: rgba(255,255,255,0.95) !important;
    font-size: 20px !important;
    line-height: 1.7 !important;
    max-width: 700px;
    margin: 0 auto 36px !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

/* Hero buttons - extra specificity to override dark layout */
.et_pb_fullwidth_header .header-content .et_pb_button_one.et_pb_button {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #1a5841 !important;
    padding: 16px 36px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
}

.et_pb_fullwidth_header .header-content .et_pb_button_one.et_pb_button:hover {
    background-color: #1a5841 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

/* ===== GENERAL TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    color: #1a5841;
}

.et_pb_bg_layout_dark h1,
.et_pb_bg_layout_dark h2,
.et_pb_bg_layout_dark h3,
.et_pb_bg_layout_dark h4,
.tpc-dark-bg h1,
.tpc-dark-bg h2,
.tpc-dark-bg h3,
.tpc-dark-bg h4 {
    color: #ffffff !important;
}

a { color: #1a5841; }
a:hover { color: #709185; }

/* ===== BUTTONS ===== */
body .et_pb_button {
    border: 2px solid #1a5841 !important;
    color: #1a5841 !important;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    padding: 14px 32px !important;
    font-size: 14px !important;
    transition: all 0.3s ease;
}

body .et_pb_button:hover {
    background-color: #1a5841 !important;
    color: #ffffff !important;
}

/* Buttons on dark backgrounds */
.et_pb_bg_layout_dark .et_pb_button,
.tpc-dark-bg .et_pb_button {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.et_pb_bg_layout_dark .et_pb_button:hover,
.tpc-dark-bg .et_pb_button:hover {
    background-color: #ffffff !important;
    color: #1a5841 !important;
}

/* ===== NUMBER COUNTERS ===== */
.et_pb_number_counter .percent p {
    color: #1a5841 !important;
    font-size: 52px !important;
    font-weight: 700 !important;
}

.et_pb_number_counter h3 {
    font-size: 15px !important;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== BLURBS ===== */
.et_pb_blurb_content .et_pb_main_blurb_image .et-pb-icon {
    color: #1a5841 !important;
    font-size: 52px !important;
}

.et_pb_blurb h4,
.et_pb_blurb_content .et_pb_module_header {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1a5841 !important;
    margin-bottom: 8px;
}

/* Blurb icons on dark backgrounds */
.et_pb_bg_layout_dark .et_pb_blurb_content .et_pb_main_blurb_image .et-pb-icon,
.tpc-dark-bg .et_pb_blurb_content .et_pb_main_blurb_image .et-pb-icon {
    color: #ffffff !important;
    font-size: 52px !important;
}

.et_pb_bg_layout_dark .et_pb_blurb h4,
.et_pb_bg_layout_dark .et_pb_blurb_content .et_pb_module_header,
.tpc-dark-bg .et_pb_blurb h4,
.tpc-dark-bg .et_pb_blurb_content .et_pb_module_header {
    color: #ffffff !important;
}

.et_pb_bg_layout_dark .et_pb_blurb_description,
.tpc-dark-bg .et_pb_blurb_description {
    color: rgba(255,255,255,0.9) !important;
    line-height: 1.7;
}

.et_pb_blurb_description {
    color: #666 !important;
    line-height: 1.7;
}

/* ===== TOGGLES (FAQ) ===== */
.et_pb_toggle {
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px;
    margin-bottom: 12px;
}

.et_pb_toggle_title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a5841 !important;
}

.et_pb_toggle_open .et_pb_toggle_title {
    color: #1a5841 !important;
}

/* ===== IMAGES ===== */
.et_pb_image img {
    border-radius: 6px;
}

/* ===== FOOTER ===== */
#main-footer {
    background-color: #1a5841 !important;
}

#main-footer .widget li a,
#main-footer .widget,
#footer-info,
#main-footer .footer-widget h4 {
    color: #ffffff !important;
}

/* Hide RSS icon in footer social */
.et-social-rss {
    display: none !important;
}

#footer-bottom {
    background-color: #143d2f !important;
    padding: 15px 0 !important;
}

#footer-bottom #footer-info {
    color: rgba(255,255,255,0.8) !important;
    font-size: 13px;
}

#footer-bottom .et-social-icon a {
    color: rgba(255,255,255,0.6) !important;
    font-size: 18px;
}

#footer-bottom .et-social-icon a:hover {
    color: #ffffff !important;
}

/* ===== CONTACT FORM 7 ===== */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 select,
.wpcf7 textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    font-family: "Open Sans", Arial, sans-serif;
    margin-bottom: 8px;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
    border-color: #1a5841;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,88,65,0.1);
    background-color: #ffffff;
}

.wpcf7 textarea {
    min-height: 140px;
    resize: vertical;
}

.wpcf7 input[type="submit"] {
    background-color: #1a5841;
    color: #ffffff;
    border: 2px solid #1a5841;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.wpcf7 input[type="submit"]:hover {
    background-color: #143d2f;
    border-color: #143d2f;
}

.wpcf7 label {
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
    font-size: 14px;
}

/* ===== LEADERSHIP HEADSHOTS ===== */
.tpc-headshot img {
    border-radius: 50% !important;
    width: 180px !important;
    height: 180px !important;
    object-fit: cover;
    margin: 0 auto 12px !important;
    display: block !important;
}

.tpc-leadership-grid .et_pb_column {
    text-align: center;
    margin-bottom: 30px;
}

.tpc-leadership-grid h4 {
    margin-bottom: 2px !important;
}

.tpc-leadership-grid p {
    color: #666 !important;
    font-size: 14px;
}

/* ===== RESPONSIVE — TABLET (768px–980px) ===== */
@media (max-width: 980px) {
    .et_pb_fullwidth_header h1,
    .et_pb_fullwidth_header .et_pb_fullwidth_header_title {
        font-size: 36px !important;
    }
    .et_pb_fullwidth_header .et_pb_fullwidth_header_subhead {
        font-size: 16px !important;
    }
    #page-container {
        padding-top: 60px !important;
    }
    #top-menu li:last-child a {
        background-color: transparent !important;
        color: #1a5841 !important;
        padding: 0 !important;
        margin-left: 0;
    }

    /* Hamburger menu touch target */
    .mobile_menu_bar {
        width: 48px !important;
        height: 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .mobile_menu_bar::before {
        font-size: 32px !important;
    }

    /* Compact header */
    #main-header {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    #logo {
        max-height: 45px !important;
    }

    /* Style mobile slide-in menu */
    .et_mobile_menu {
        padding: 10px 0 !important;
        background: #ffffff !important;
        border-top: 3px solid #1a5841 !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
    .et_mobile_menu li a {
        font-size: 16px !important;
        padding: 14px 20px !important;
        min-height: 48px !important;
        display: flex !important;
        align-items: center !important;
        border-bottom: 1px solid #f0f0f0 !important;
        color: #333333 !important;
    }
    .et_mobile_menu li a:hover,
    .et_mobile_menu li a:active {
        background-color: rgba(26,88,65,0.08) !important;
        color: #1a5841 !important;
    }
    .et_mobile_menu li:last-child a {
        background-color: #1a5841 !important;
        color: #ffffff !important;
        border-radius: 6px !important;
        margin: 10px 20px !important;
        text-align: center !important;
        justify-content: center !important;
        font-weight: 600 !important;
    }
}

/* ===== RESPONSIVE — MOBILE (max 767px) ===== */
@media (max-width: 767px) {

    /* --- Hero --- */
    .et_pb_fullwidth_header {
        min-height: 70vh !important;
    }
    .et_pb_fullwidth_header .header-content {
        padding: 40px 20px !important;
    }
    .et_pb_fullwidth_header h1,
    .et_pb_fullwidth_header .et_pb_fullwidth_header_title {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 16px !important;
    }
    .et_pb_fullwidth_header .et_pb_fullwidth_header_subhead {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 24px !important;
    }
    .et_pb_fullwidth_header .header-content .et_pb_button_one.et_pb_button {
        padding: 14px 28px !important;
        font-size: 14px !important;
        width: 100% !important;
        max-width: 320px !important;
        display: block !important;
        margin: 0 auto !important;
        text-align: center !important;
    }

    /* --- Header --- */
    #logo {
        max-height: 40px !important;
    }
    #page-container {
        padding-top: 56px !important;
    }

    /* --- Global buttons --- */
    body .et_pb_button {
        padding: 14px 24px !important;
        font-size: 15px !important;
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        box-sizing: border-box !important;
        border-radius: 6px !important;
        min-height: 48px !important;
    }

    /* --- Global typography --- */
    .et_pb_text p,
    .et_pb_blurb_description p,
    .et_pb_toggle_content p {
        font-size: 15px !important;
        line-height: 1.65 !important;
    }
    .et_pb_text h2 {
        font-size: 24px !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
    }
    .et_pb_text h3 {
        font-size: 20px !important;
    }
    .et_pb_text h4 {
        font-size: 17px !important;
    }

    /* --- Section spacing --- */
    .et_pb_section {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }
    .et_pb_row {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* --- Number counters --- */
    .et_pb_number_counter .percent p {
        font-size: 42px !important;
    }
    .et_pb_number_counter h3 {
        font-size: 13px !important;
    }

    /* --- Blurb icons --- */
    .et_pb_blurb_content .et_pb_main_blurb_image .et-pb-icon {
        font-size: 40px !important;
    }
    .et_pb_blurb h4,
    .et_pb_blurb_content .et_pb_module_header {
        font-size: 16px !important;
    }

    /* --- Dark section blurbs on mobile --- */
    .tpc-dark-bg .et_pb_blurb_content .et_pb_main_blurb_image .et-pb-icon {
        font-size: 40px !important;
    }

    /* --- Contact form spacing --- */
    .wpcf7 textarea {
        min-height: 100px !important;
    }
    .wpcf7 input[type="submit"] {
        font-size: 16px !important;
        padding: 16px !important;
        border-radius: 6px !important;
    }

    /* --- Leadership headshots mobile --- */
    .tpc-headshot img {
        width: 120px !important;
        height: 120px !important;
    }
    .tpc-leadership-grid .et_pb_column {
        margin-bottom: 24px !important;
    }
    .tpc-leadership-grid h4 {
        font-size: 16px !important;
    }

    /* --- Footer --- */
    #footer-bottom {
        padding: 12px 0 !important;
    }
    #footer-bottom #footer-info {
        font-size: 12px !important;
        text-align: center !important;
        padding: 0 20px !important;
    }
    .et-social-icons {
        text-align: center !important;
    }

    /* --- Services page compact cards --- */
    .et_pb_blurb {
        margin-bottom: 16px !important;
    }

    /* --- FAQ toggles mobile --- */
    .et_pb_toggle_title {
        font-size: 15px !important;
        padding-right: 30px !important;
    }
    .et_pb_toggle_content {
        font-size: 14px !important;
    }
}
