/**
 * Haleigh's Hope Custom Styles
 * Custom CSS for buttons, subscriptions, and UI enhancements
 */

/* ========================================
   Order Now Button - Rounded Outline Style
   ======================================== */
.button.order-now-btn {
    background-color: transparent !important;
    color: #ff5d48 !important;
    border-radius: 99px !important;
    padding: 0.85em 1.5em !important;
    font-weight: 600 !important;
    border: 2px solid #ff5d48 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

.button.order-now-btn:hover {
    background-color: #ff5d48 !important;
    color: white !important;
    border-color: #ff5d48 !important;
}

/* ========================================
   Details Text - Coral Color, No Button Styling
   ======================================== */
.products-add {
    background: none !important;
    color: #ff5d48 !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-transform: uppercase !important;
    font-weight: 400 !important;
}

.products-add:hover {
    background: none !important;
    color: #e54d3d !important;
}

/* ========================================
   Hide Payment Icons in Footer
   ======================================== */
.footer-secondary .payment-icons {
    display: none !important;
}

/* ========================================
   Subscriptions Menu Item Highlighting
   ======================================== */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--subscriptions a {
    font-weight: 700 !important;
    color: #ff5d48 !important;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--subscriptions a:before {
    content: "★ ";
    color: #ff5d48;
}

/* Active state */
.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--subscriptions.is-active a {
    background-color: #ff5d48 !important;
    color: white !important;
}

.woocommerce-MyAccount-navigation ul li.woocommerce-MyAccount-navigation-link--subscriptions.is-active a:before {
    color: white;
}

/* ========================================
   Subscription Page Links
   ======================================== */
.products-add-subscribe,
.subscription-product-title a,
.subscription-details a,
.woocommerce-orders-table a,
body.post-type-archive-product a {
    color: #ff5d48 !important;
    text-decoration: none !important;
}

.products-add-subscribe:hover,
.subscription-product-title a:hover,
.subscription-details a:hover,
.woocommerce-orders-table a:hover,
body.post-type-archive-product a:hover {
    color: #e54d3d !important;
    text-decoration: underline !important;
}

/* ========================================
   CUSTOM FOOTER STYLING
   ======================================== */

/* Footer container - dark background like The7 theme */
.hh-custom-footer {
    background-color: #3a3a3a !important;
    color: #c0c0c0 !important;
    padding: 40px 0 20px !important;
}

#hh-footer-container {
    width: 100%;
}

/* Use CSS Grid for 3-column layout */
.hh-footer-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Position widgets in grid columns using order and grid-column */
.hh-footer-row .widget {
    margin-bottom: 0;
}

/* Left column - Contact form widgets */
.hh-footer-row .widget.hh-footer-contact {
    grid-column: 1;
    grid-row: 1;
}

/* Center column hardcoded content */
.hh-footer-col-center-content {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
}

/* Center column - Newsletter widget */
.hh-footer-row .widget.hh-footer-newsletter {
    grid-column: 2;
    grid-row: 1;
    text-align: center;
    margin-top: 180px; /* Position below logo */
}

/* Right column - Navigation widgets */
.hh-footer-row .widget.hh-footer-nav {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
}

/* Stack multiple nav widgets vertically */
.hh-footer-row .widget.hh-footer-nav:nth-of-type(n+2) {
    margin-top: 0;
}

/* Footer widget titles */
.hh-custom-footer .widget-title {
    color: #ffffff !important;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Footer links */
.hh-custom-footer a {
    color: #c0c0c0 !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

.hh-custom-footer a:hover {
    color: #ffffff !important;
}

/* Footer logo */
.hh-footer-logo {
    margin-bottom: 30px;
}

.hh-footer-logo img {
    max-width: 150px;
    height: auto;
    filter: brightness(0.9);
}

/* Contact information styling */
.hh-footer-contact-info {
    margin: 20px 0;
}

.hh-footer-contact-info p {
    margin: 8px 0;
    font-size: 14px;
}

.hh-footer-contact-info .footer-phone a,
.hh-footer-contact-info .footer-email a {
    color: #ff5d48 !important;
    font-weight: 600;
}

.hh-footer-contact-info .footer-phone a:hover,
.hh-footer-contact-info .footer-email a:hover {
    color: #e54d3d !important;
}

/* FDA Disclaimer */
.hh-footer-disclaimer {
    margin-top: 25px;
    font-size: 11px;
    line-height: 1.6;
    color: #aaa;
}

.hh-footer-disclaimer p {
    margin: 8px 0;
}

.hh-footer-disclaimer .thc-notice {
    font-weight: 600;
}

/* Contact Form Styling */
.hh-footer-contact input[type="text"],
.hh-footer-contact input[type="email"],
.hh-footer-contact input[type="tel"],
.hh-footer-contact textarea,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100% !important;
    background-color: #ffffff !important;
    border: none !important;
    padding: 12px 15px !important;
    margin-bottom: 15px !important;
    font-size: 14px;
    color: #3a3a3a !important;
}

.hh-footer-contact input::placeholder,
.hh-footer-contact textarea::placeholder,
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
    color: #999 !important;
}

.hh-footer-contact input[type="submit"],
.hh-footer-contact button[type="submit"],
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
    width: 100% !important;
    background-color: #ff5d48 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 20px !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hh-footer-contact input[type="submit"]:hover,
.hh-footer-contact button[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
    background-color: #e54d3d !important;
}

/* Newsletter Form Styling */
.hh-footer-newsletter {
    margin: 25px 0;
}

.hh-footer-newsletter .widget-title {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.hh-footer-newsletter input[type="email"] {
    width: 100% !important;
    background-color: #ffffff !important;
    border: none !important;
    padding: 12px 15px !important;
    margin-bottom: 10px !important;
    text-align: center;
    font-size: 14px;
}

.hh-footer-newsletter input[type="submit"],
.hh-footer-newsletter button {
    background-color: #c0c0c0 !important;
    color: #3a3a3a !important;
    border: none !important;
    padding: 10px 30px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.hh-footer-newsletter input[type="submit"]:hover,
.hh-footer-newsletter button:hover {
    background-color: #ffffff !important;
}

/* Navigation Menu Styling */
.hh-footer-nav nav ul,
.hh-footer-nav ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 20px 0 !important;
}

.hh-footer-nav nav ul li,
.hh-footer-nav ul li {
    margin: 8px 0 !important;
}

.hh-footer-nav nav ul li a,
.hh-footer-nav ul li a {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 400;
}

/* Certification Badges */
.hh-footer-badges {
    margin: 25px 0;
    text-align: right;
}

.hh-footer-badges img {
    max-width: 80px;
    height: auto;
    margin: 0 10px;
    display: inline-block;
}

/* Secondary footer links */
.hh-footer-secondary-links {
    margin-top: 20px;
    font-size: 11px;
}

.hh-footer-secondary-links a {
    margin: 0 8px;
    display: inline-block;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hh-footer-row {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }
    
    .hh-footer-row .widget.hh-footer-contact,
    .hh-footer-col-center-content,
    .hh-footer-row .widget.hh-footer-newsletter,
    .hh-footer-row .widget.hh-footer-nav {
        grid-column: 1 !important;
        text-align: center !important;
    }
    
    .hh-footer-row .widget.hh-footer-newsletter {
        margin-top: 0 !important;
    }
    
    .hh-footer-badges {
        text-align: center !important;
    }
}

/* ========================================
   STORIES ACCORDION / CAROUSEL
   ======================================== */

.accordion {
    width: 100%;
    max-width: 1300px;
    height: 405px;
    overflow: hidden;
    margin: 20px auto;
}

.accordion ul {
    width: 100%;
    display: table;
    table-layout: fixed;
    margin: 0;
    padding: 0;
    list-style: none;
}

.accordion ul li {
    display: table-cell;
    vertical-align: bottom;
    position: relative;
    width: 19.92%;
    height: 405px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    transition: all 500ms ease;
    background-color: #3a3a3a; /* Fallback color if image doesn't load */
}

.accordion ul li div {
    display: block;
    overflow: hidden;
    width: 100%;
}

.accordion ul li div a {
    display: block;
    height: 405px;
    width: 100%;
    position: relative;
    z-index: 3;
    vertical-align: bottom;
    padding: 15px 20px;
    box-sizing: border-box;
    color: #fff;
    text-decoration: none;
    font-family: 'Open Sans', sans-serif;
    transition: all 200ms ease;
    background: rgba(0, 0, 0, 0.4);
}

.accordion ul li div a * {
    opacity: 1;
    padding-left: 5px;
    margin: 0;
    width: 100%;
    text-overflow: ellipsis;
    position: relative;
    z-index: 5;
    white-space: nowrap;
    overflow: hidden;
    -webkit-transform: translateX(-20px);
    transform: translateX(-20px);
    -webkit-transition: all 400ms ease;
    transition: all 400ms ease;
    line-height: 25px;
    font-weight: 100;
    color: #ffffff !important;
}

.accordion ul li div a h2 {
    font-family: 'Montserrat', sans-serif;
    text-overflow: clip;
    font-size: 18px;
    margin-bottom: 2px;
    top: 0px;
    display: block;
    color: #ff5d48 !important; /* Coral color to verify CSS is loading */
    line-height: 25px;
    font-weight: 600;
}

.accordion ul li div a p {
    top: 160px;
    font-size: 13.5px;
}

/* Background images for each child */
.accordion ul li:nth-child(1) {
    background-image: url("/wp-content/uploads/2020/01/home-stories-casey-1.jpg") !important;
}

.accordion ul li:nth-child(2) {
    background-image: url("/wp-content/uploads/2020/06/Quintin.jpg") !important;
}

.accordion ul li:nth-child(3) {
    background-image: url("/wp-content/uploads/2020/01/home-stories-landon.jpg-1.png") !important;
}

.accordion ul li:nth-child(4) {
    background-image: url("/wp-content/uploads/2020/01/home-stories-Ava-1.jpg") !important;
}

.accordion ul li:nth-child(5) {
    background-image: url("/wp-content/uploads/2020/01/home-stories-Penelope-1.jpg") !important;
}

/* Hover effects - accordion expands on hover */
.accordion ul:hover li {
    width: 8%;
}

.accordion ul:hover li:hover {
    width: 60%;
}

.accordion ul:hover li:hover a {
    background: rgba(0, 0, 0, 0.0);
    color: #ffffff;
}

.accordion ul:hover li:hover a * {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .accordion {
        height: auto;
    }
    
    .accordion ul {
        display: block;
    }
    
    .accordion ul li {
        display: block;
        width: 100% !important;
        height: 200px;
        margin-bottom: 10px;
    }
    
    .accordion ul:hover li {
        width: 100% !important;
    }
}