/*
Theme Name: Manhattan Valley Pediatrics
Theme URI: https://manhattanvalleypediatrics.com
Author: John Michael Darrin
Author URI: https://www.anchortoanchor.com
Description: Custom theme for Manhattan Valley Pediatrics - a pediatric care practice in Manhattan. All design & code files copyright of JMD Web Services LLC.
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: mvp
Tags: custom, medical, pediatrics

This theme was custom built for Manhattan Valley Pediatrics.
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif ;
  line-height: 1.6;
  color: #333;
  padding-top: 100px;
}

/* Sticky Header - Hide on scroll down, show on scroll up */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    transition: transform 0.3s ease-in-out;
    z-index: 99;
}

header.header-hidden {
    transform: translateY(-100%);
}

.custom-logo {
    height: 80px;
    width: auto;
}

.footer-logo .custom-logo {
    height: 170px;
    width: auto;
}

/* Navigation Dropdowns */
.menu-item-has-children {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.375rem;
    padding: 0.5rem 0;
    margin-top: 0; /* Remove the gap! */
    min-width: 220px;
    z-index: 50;
    transition: opacity 0.2s ease-in-out;
    font-size: medium;
}

.dropdown-menu.hidden {
    display: none;
}

/* Dropdown indicator arrow
    .menu-item-has-children > a::after {
        content: '▼';
        font-size: 0.7em;
        margin-left: 0.3em;
        opacity: 0.6;
    } */

/* Dropdown menu items */
    .dropdown-menu li {
        display: block;
        margin: 0;
    }

    .dropdown-menu li a {
        display: block;
        padding: 0.6rem 1rem;
        color: #213989; /* secondary-500 */
        transition: all 0.2s;
        text-decoration: none;
    }

    .dropdown-menu li a:hover {
        background-color: #f3f4f6;
        color: #D8488D; /* primary-500 */
    }

/* Remove underline from dropdown items */
    .dropdown-menu li {
        text-decoration: none !important;
    }

    .dropdown-menu li:hover {
        text-decoration: none !important;
    }

/* External link icon for menu items that open in new tab */
    .dropdown-menu .menu-item a[target="_blank"]::after {
        content: '';
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-left: 6px;
        margin-bottom: 5px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23213989'%3E%3Cpath d='M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z'/%3E%3Cpath d='M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
        opacity: 0.7;
    }

/* Remove icon from top-level menu items */

    .menu > .menu-item > a[target="_blank"]::after {
        display: none;
    }

/* Mobile Menu Styles */

    #mobile-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    #mobile-menu.active {
        max-height: 100vh;
        overflow-y: auto;
    }

/* Mobile submenu toggle animations */

    .mobile-menu-item.has-submenu .mobile-submenu-toggle svg {
        transition: transform 0.3s ease;
    }

    .mobile-menu-item.has-submenu.active .mobile-submenu-toggle svg {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .mobile-menu-item.active .mobile-submenu {
        max-height: 500px;
    }

/* External link icons for mobile menu */

    .mobile-submenu .menu-item a[target="_blank"]::after {
        content: '';
        display: inline-block;
        width: 16px;
        height: 16px;
        margin-left: 6px;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23213989'%3E%3Cpath d='M11 3a1 1 0 100 2h2.586l-6.293 6.293a1 1 0 101.414 1.414L15 6.414V9a1 1 0 102 0V4a1 1 0 00-1-1h-5z'/%3E%3Cpath d='M5 5a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2v-3a1 1 0 10-2 0v3H5V7h3a1 1 0 000-2H5z'/%3E%3C/svg%3E");
        background-size: contain;
        background-repeat: no-repeat;
        vertical-align: middle;
        opacity: 0.7;
    }

    #mobile-menu.active {
        max-height: 100vh;
        overflow-y: auto;
    }

/* Mobile submenu toggle animations */

    .mobile-menu-item.has-submenu .mobile-submenu-toggle svg {
        transition: transform 0.3s ease;
    }

    .mobile-menu-item.has-submenu.active .mobile-submenu-toggle svg {
        transform: rotate(180deg);
    }

    .mobile-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .mobile-menu-item.active .mobile-submenu {
        max-height: 500px;
    }

/* Blog Post Content Styling */

.entry-content {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #334155;
}

.entry-content h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #213989;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.entry-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #334155;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
    color: #475569;
    line-height: 1.75;
}

.entry-content strong {
    font-weight: 700;
    color: #213989;
}

.entry-content a {
    color: #D8488D;
    text-decoration: none;
}

.entry-content a:hover {
    color: #C63976;
}

.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.entry-content ul {
    list-style-type: disc;
}

.entry-content ol {
    list-style-type: decimal;
}

.entry-content li {
    margin-bottom: 0.5rem;
    color: #475569;
}

.entry-content img {
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.entry-content blockquote {
    border-left: 4px solid #D8488D;
    padding-left: 1.5rem;
    font-style: italic;
    color: #64748b;
    margin: 2rem 0;
}

/*pagination styling for reviews scroller*/

.testimonials-swiper {
    padding-bottom: 3rem; /* Make room for pagination */
}

.testimonials-swiper .swiper-pagination {
    position: relative !important;
    bottom: auto !important;
    margin-top: 2rem;
}

.testimonials-swiper .swiper-pagination-bullet {
    background: #CBD5E1 !important; /* slate-300 */
    opacity: 1 !important;
}

.testimonials-swiper .swiper-pagination-bullet-active {
    background: #EC4899 !important; /* primary-500/pink */
}

.testimonials-swiper .swiper-slide {
    height: auto;
}

.testimonials-swiper .swiper-slide > div {
    height: 100%;
}

/* Contact Form 7 Styling */
.wpcf7-form-wrapper .wpcf7-form {
    background: white;
}

.wpcf7-form p {
    margin-bottom: 1.5rem;
}

.wpcf7-form label {
    display: block;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--color-primary-500, #ec4899);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background-color: var(--color-primary-500, #ec4899);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.wpcf7-form input[type="submit"]:hover {
    background-color: var(--color-primary-600, #db2777);
}

/* Error and Success Messages */
.wpcf7-response-output {
    margin: 1.5rem 0;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid;
}

.wpcf7-validation-errors {
    background-color: #fef2f2;
    border-color: #ef4444;
    color: #991b1b;
}

.wpcf7-mail-sent-ok {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}

.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Blog Card  */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Pagination styling */
    .pagination {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .pagination .page-numbers {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        border: 2px solid #cbd5e1;
        color: #334155;
        transition: all 0.2s;
        text-decoration: none;
    }

    .pagination .page-numbers:hover:not(.current):not(.dots) {
        border-color: #D8488D;
        color: #D8488D;
    }

    .pagination .page-numbers.current {
        background-color: #D8488D;
        border-color: #D8488D;
        color: white;
    }

    .pagination .page-numbers.dots {
        border: none;
    }

    .pagination .prev,
    .pagination .next {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.5rem;
        height: 2.5rem;
        border-radius: 9999px;
        border: 2px solid #cbd5e1;
        color: #334155;
        transition: all 0.2s;
    }

    .pagination .prev:hover,
    .pagination .next:hover {
        border-color: #D8488D;
        color: #D8488D;
    }

/* Footer Navigation */

    footer .menu-item {
        list-style: none;
    }

    footer .menu-item a {
        display: inline-block;
        transition: all 0.2s;
    }

    footer .menu-item:hover a {
        text-decoration: underline;
        text-underline-offset: 4px;
    }

/* Footer Legal Menu */

    .footer-bottom .menu-item {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-bottom .menu-item .separator {
        color: #213989;
    }

    /* Hide separator after last item */
    .footer-bottom .menu-item:last-child .separator {
        display: none;
    }

    .footer-bottom .menu-item a {
        transition: color 0.2s;
    }

    details[open] summary .accordion-icon {
    transform: rotate(45deg);
}
.accordion-icon {
    transition: transform 0.3s ease;
}
summary {
    list-style: none;
}
summary::-webkit-details-marker {
    display: none;
}

.hipaa-notice p {
    font-size: .8rem;
    color: #475569;
    line-height: 1.5;
}

.hipaa-notice a {
    color: #213989;
    text-decoration: underline;
}

.hipaa-notice a:hover {
    color: #051751;
    text-decoration: underline;
}

.prose img {
    border-radius: 0;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #213989; /* Navy */
    color: white;
    padding: 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #213989; /* Navy */
    color: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-banner.hidden {
    display: none;
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
}

.cookie-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-text a {
    color: white;
    text-decoration: underline;
    margin-left: 0.5rem;
}

.cookie-text a:hover {
    opacity: 0.8;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-shrink: 0;
}

.cookie-buttons button {
    white-space: nowrap;
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.cookie-buttons .btn-primary {
    background: #D8488D; /* Pink */
    color: white;
}

.cookie-buttons .btn-primary:hover {
    background: #c03d7a;
}

.cookie-buttons .btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cookie-buttons .btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 1.25rem;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    body {
        padding-top: 80px;
    }
}