/**** Naples Funeral Home Theme Styles ****/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&family=Playfair+Display:wght@400;500;600;700&family=Public+Sans:wght@400;500;600;700&display=swap');

/* General Styles */
body { 
    font-family: 'Open Sans', sans-serif; 
    font-weight: 400; 
    font-size: 18px; 
    line-height: 30px; 
    color: #000000; 
    margin: 0;
    padding: 0;
}

ul {
    padding: 0px;
    margin: 0px;
    list-style: none;
}

li {
    padding: 0px;
    margin: 0px;
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Remove default top padding between navbar and content so banners touch the header */
main.py-4 {
    padding-top: 0 !important;
}

/* Default header/banner styling */
.default-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    padding-bottom: calc(344 / 1920 * 100%); /* 1920 × 344 aspect ratio = 17.92% */
    background-image: url('../images/subbanner.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* On mobile, let the image spill off the sides instead of shrinking */
@media (max-width: 768px) {
    .default-header {
        height: 180px; /* Fixed height on mobile */
        padding-bottom: 0;
        background-size: cover; /* Cover to fill and spill off sides */
    }
}

@media (min-width: 1300px) {
    .container, .container-fluid {
        max-width: 1270px;
    }
}

h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
    font-weight: bold; 
}

h1 { font-size: 56px; line-height: 56px; }
h2 { font-size: 42px; line-height: 56px; }
h3 { font-size: 32px; line-height: 44px; }
h4 { font-size: 26px; line-height: 35px; font-weight: 600; }

p {
    margin-bottom: 1em;
}

p:last-child {
    margin-bottom: 0px;
}

a { 
    color: #0a264e; 
    outline: none; 
    text-decoration: none; 
}

a:hover { 
    text-decoration: none; 
}

/* Header Styles */
header { 
    position: fixed; 
    display: inline-block; 
    width: 100%; 
    background: #fff; 
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    z-index: 1000;
}



.header_sub {
    height: 170px;
    margin-top: 0;
}

.heaer_top {
    background: #0A264E;
    padding: 10px 0px;
    margin: 0;
    position: relative;
    top: 0;
}

.heaer_top .container-fluid {
    padding-left: 65px !important;
    padding-right: clamp(30px, 3.5vw, 60px) !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

.heaer_top .col-lg-6 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
}

.heade_topRight {
    text-align: right !important;
    padding-right: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.heaer_top .row {
    margin: 0 !important;
}

.heade_topRight ul {
    margin: 0;
    padding: 0;
}

.heade_topRight li {
    display: inline-block;
}

.heade_topLeft li a img {
    margin-right: 12px;
}

.logo img { 
    transition: all 0.3s ease; 
}

/* Desktop-only micro-adjustments to match WordPress header spacing */
@media (min-width: 1200px) {
    .logo img {
        margin-top: 10px;  /* slightly more gap under the top blue bar */
        margin-left: 16px; /* final nudge to the right */
    }
}

.heaer_top li {
    display: inline-block;
    padding: 0px 12px;
    line-height: 1; 
}

.heaer_top li a {
    color: #e2f1f9; 
    font-size: 18px; 
    line-height: 27px; 
    transition: all ease 0.3s; 
}

.heaer_top li a:hover {
    transition: all ease 0.3s; 
    color: #a4d3ed; 
}

.heaer_top li a img { 
    margin-right: 12px; 
    position: relative; 
}

.header_top_menu, .social_icons {
    display: inline-block;
}

.navbar {
    padding: 0px;
}

.header_middle {
    position: relative;
    transition: all 0.3s ease; 
}

/* Ensure header blue meets content: tiny overlap below header */
header.header { border-bottom: 0; }
.header_middle { margin-bottom: -1px; }



.navbar-nav > li { 
    display: inline-block;
}

.navbar-nav > li > a {
    padding: 12px 16px; 
    text-align: left; 
    color: #0a264e; 
    display: block; 
    font-size: 19px; 
    font-weight: 600;
    transition: all 0.3s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.current_page_item > a {
    color: #0a264e;
}

.phone_section {
    display: none;
}

.heaer_top, .header_middle { 
    padding-right: 0px; 
    padding-left: 65px; 
}

.phone_section a {
    position: relative; 
    display: inline-block; 
    padding-left: 62px;  
}

.phone_section h6 { 
    margin-bottom: 0px;
    color: #000000; 
}

.phone_section h4 {  
    font-size: 30px;
    color: #0a264e;
    line-height: 40px; 
    margin-bottom: 0px; 
}

.phone_section a i { 
    background: #edf6fb; 
    color: #0a264e; 
    width: 48px; 
    height: 48px; 
    line-height: 48px; 
    text-align: center; 
    border-radius: 50%; 
    position: absolute; 
    top: 4px; 
    left: 0px; 
}

.heade_topLeft li a i { 
    margin-right: 10px; 
}

.heade_topRight li { 
    border-right: 1px solid #e2f1f9; 
}

.heade_topRight li:last-child a i { 
    margin-right: 10px; 
    border-right: none; 
} 

.heade_topRight li:last-child { 
    border-right: none; 
    margin-left: 50px; 
}

.heade_topRight li:nth-child(3) { 
    border-right: none; 
}

.heade_topRight li:last-child a { 
    text-decoration: underline; 
}

/* Mobile Menu Styles */
.mobilemenu_icon {
    width: 32px;
    height: 30px;
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
    right: 0;
    float: right;
    position: relative;
}

.navbar_line {
    height: 3px; 
    background-color: #0a264e; 
    position: absolute; 
    top: 7px; 
    left: 0; 
    width: 30px; 
}

.navbar_line2 {
    top: 15px;
}

.navbar_line3 {
    top: 23px;
}

.mobilemenu_icon_open {
    width: 25px;
    height: 25px; 
    top: 15px; 
    right: 15px; 
    position: absolute;
    background-size: cover; 
    z-index: 99; 
    overflow: hidden; 
}

.navbarclose_line1 {
    height: 2px;
    background-color: #fff;
    position: absolute;
    top: 11px;
    left: 0;
    width: 25px;
    transform: rotate(0); 
    opacity: 0;
}

.navbarclose_line2 {
    height: 2px;
    background-color: #fff;
    position: absolute;
    top: 11px;
    left: 0;
    width: 25px;
    transform: rotate(0); 
    opacity: 0;
}

/* Footer Styles */
.footer {
    background: url(../images/footer_bg.png) no-repeat; 
    background-size: cover; 
    background-position: top; 
    padding-top: 218px;
    padding-bottom: 34px; 
    color: #fff;
}

.border_line { 
    border-top: 1px solid rgb(226 241 249 / 32%);
    margin-top: 30px; 
    margin-bottom: 33px; 
}

.footer h4 { 
    font-family: 'Open Sans', sans-serif; 
    font-size: 20px;
    color: #a3d3ed; 
    font-weight: bold; 
    margin-bottom: 38px; 
}

.contact_info_footer ul li { 
    margin-bottom: 27px; 
    color: #fff; 
}

.contact_info_footer ul li i { 
    margin-right: 10px; 
}

.quick_links_footer p { 
    margin-bottom: 20px; 
} 

.social_links li { 
    display: inline-block; 
    margin-right: 25px; 
}

.social_links li a { 
    color: #fff; 
    font-size: 30px; 
}

.quick_links_footer li { 
    margin-bottom: 20px;  
}

.quick_links_footer li a { 
    color: #fff; 
    transition: all 0.3s ease; 
}

.contact_info_footer ul li {
    position: relative;
    padding-left: 30px;
}

.contact_info_footer ul li i { 
    position: absolute; 
    top: 8px; 
    left: 0px; 
}

.contact_info_footer ul li a { 
    color: #fff; 
}

.footer_bottommenu {
    text-align: right;
}

.quick_links_footer li.current_page_item a,
.quick_links_footer li a:hover { 
    color: #a3d3ed; 
}

/* Buttons */
.btn {
    background: #0a264e; 
    font-weight: 500; 
    border-radius: 50px; 
    -webkit-transition: all .25s ease; 
    -moz-transition: all .25s ease;
    -ms-transition: all .25s ease;
    -o-transition: all .25s ease;
    transition: all .25s ease; 
    vertical-align: middle; 
    display: inline-block;  
    color: #fff; 
    font-size: 18px; 
    line-height: 1; 
    padding: 19px 40px;
}

.btn:hover { 
    background: #a3d3ed; 
    color: #0a264e; 
}

/* Responsive Styles - Naples Theme Exact Match */

/* Large screens - 1600px and above */
@media (min-width: 1600px) {
    .container, .container-fluid {
        max-width: 1440px;
    }
    
    .header_sub {
        height: 170px;
    }
    
    .navbar-nav > li > a {
        padding: 45px 10px;
    }
}

/* Medium-Large screens - 1200px to 1600px */
@media (max-width: 1600px) {
    body {
        font-size: 18px;
        line-height: 27px;
    }
    
    .navbar-nav > li > a {
        font-size: 15px;
        padding: 35px 9px;
    }
    
    .phone_section h4 {
        font-size: 18px;
        line-height: 1.2;
    }
    
    .phone_section a i {
        top: 0px;
    }
    
    .heaer_top, .header_middle {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .heaer_top li a {
        font-size: 16px;
    }
    
    h1 {
        font-size: 48px;
        line-height: 56px;
    }
    
    h2 {
        font-size: 36px;
        line-height: 48px;
    }
    
    h3 {
        font-size: 32px;
        line-height: 40px;
    }
    
    h4 {
        font-size: 24px;
        line-height: 30px;
    }
    
    .logo img {
        max-height: 75px;
    }
    
    .header_sub {
        height: 144px;
    }
    

    
    .btn {
        padding: 12px 20px;
        font-size: 18px;
    }
}

/* Desktop - 1200px and above */
@media (min-width: 1200px) {
    .navbar-nav > li > a {  
        display: block; 
    }
    
    .main_menu {
        display: inline-block !important;
    }
    
    .navbar-nav { 
        flex-direction: row; 
        align-items: center; 
        justify-content: flex-end;
        padding-right: 0; /* remove gap so phone container meets navbar */
    }
    
    .navbar { 
        display: flex;
        justify-content: flex-end;  
        width: 100%;
    }
    
    .navbar-nav > li > a { 
        position: relative; 
    }
    
    .navbar-nav > li > a:after {
        content: ''; 
        height: 0px;
        transition: all 0.3s ease; 
        background: #0a264e;
        width: 100%; 
        position: absolute; 
        bottom: 0px; 
        left: 0px; 
    }
    
    .navbar-nav > li > a:hover:after,
    .navbar-nav > li.current_page_item > a:after {
        content: ''; 
        height: 5px; 
        background: #0a264e;
        width: 100%; 
        position: absolute; 
        bottom: 0px; 
        left: 0px; 
    }
    
    .navbar-nav > li > a:hover,
    .navbar-nav > li.current_page_item > a {
        color: #0a264e;
    }
    
    
    .phone_section { 
        position: relative; 
        z-index: 1; 
        display: flex; 
        align-items: center; 
        justify-content: flex-start; /* left-align contents inside blue area */
        text-align: left;
        background: #a3d3ed;
        align-self: stretch;
        padding-right: 36px; /* breathing room on right */
        padding-left: 0 !important; /* remove gutter so blue abuts navbar */
        /* Extend blue to the right edge (single container, no pseudo-element) */
        box-shadow: 100vmax 0 0 100vmax #a3d3ed;
        -webkit-clip-path: inset(0 -100vmax 0 0);
        clip-path: inset(0 -100vmax 0 0);
    }

    /* Add a small visual gap between phone link and the viewport edge */
    .phone_section a {
        margin-right: 60px; /* increased gap from edge */
    }

    /* Push the middle nav column to the right, adjacent to the phone section */
    .header_middle .col-xl-8.col-lg-10.col-7 {
        margin-left: auto;
        padding-right: 0 !important; /* remove right gutter so blue touches navbar */
    }

    /* Ensure the navbar content sits to the right within its column */
    .navbar-header { 
        margin-left: auto; 
    }
    
    
    .header_middle {
        position: relative;
    }
    
    /* Desktop: keep on one line and make columns equal height */
    .header_middle .row {
        flex-wrap: nowrap;
        align-items: stretch;
    }
    /* make header container truly full-width and remove right padding so phone blue reaches edge */
    .header_middle .container-fluid {
        max-width: 100% !important;
        width: 100% !important;
        padding-right: 0 !important;
    }
    /* also remove header wrapper padding-right that adds a white sliver */
    .header_middle {
        padding-right: 0 !important;
    }

}

/* Remove previously added pseudo-extend of blue bar */

@media (max-width: 1199px) {
    h1 {
        font-size: 42px;
        line-height: 54px;
    }
    
    h2 {
        font-size: 32px;
        line-height: 40px;
    }
    
    h3 {
        font-size: 28px;
        line-height: 36px;
    }
    
    h4 {
        font-size: 24px;
        line-height: 30px;
    }
    
    /* Mobile Responsive header start */
    .heaer_top {
        display: none;
    }
    
    .header_top_menu { 
        display: none;
    }
    
    .main_menu { 
        display: none; 
    }
    
    .navbar-nav > li > a { 
        display: inline-block; 
        font-size: 16px;
        display: block;
    }
    
    .navbar { 
        padding: 0;
    }
    
    .sidebar_open:before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background-color: rgba(0,0,0,0.6);
        width: 100%;
        height: 100%;
        z-index: 9;
    }
    
    .mobilemenu_icon {
        width: 32px;
        height: 30px;
        display: inline-block;
        overflow: hidden;
        cursor: pointer;
        right: 0;
        float: right;
        position: relative;
    }
    
    .navbar_line {
        height: 3px;
        background-color: #0a264e;
        position: absolute;
        top: 7px;
        left: 0;
        width: 30px;
    }
    
    .navbar_line2 {
        top: 15px;
    }
    
    .navbar_line3 {
        top: 23px;
    }
    
    .sidebar_open .mobilemenu_icon {
        background: transparent;
    }
    
    .sidebar_open .navbar_line {
        left: 100%;
    }
    
    .sidebar_open .navbar_line2 {
        left: 100%;
    }
    
    .sidebar_open .navbar_line3 {
        left: 100%;
    }
    
    .mobilemenu_icon_open {
        width: 25px;
        height: 25px;
        top: 15px;
        right: 15px;
        position: absolute;
        background-size: cover;
        z-index: 99;
        overflow: hidden;
    }
    
    .navbarclose_line1 {
        height: 2px;
        background-color: #fff;
        position: absolute;
        top: 11px;
        left: 0;
        width: 25px;
        transform: rotate(0);
        opacity: 0;
    }
    
    .navbarclose_line2 {
        height: 2px;
        background-color: #fff;
        position: absolute;
        top: 11px;
        left: 0;
        width: 25px;
        transform: rotate(0);
        opacity: 0;
    }
    
    .sidebar_open .navbarclose_line1 {
        transform: rotate(-136deg);
        -webkit-transition-duration: 0.5s;
        -moz-transition-duration: 0.5s;
        transition-duration: 0.5s;
        transition-delay: 0.2s;
        opacity: 100;
    }
    
    .sidebar_open .navbarclose_line2 {
        transform: rotate(136deg);
        -webkit-transition-duration: 0.5s;
        -moz-transition-duration: 0.5s;
        transition-duration: 0.5s;
        transition-delay: 0.2s;
        opacity: 100;
    }
    
    .sidebar_open .navbar-header {
        right: 0;
        -webkit-transition-duration: 0.3s;
        -moz-transition-duration: 0.3s;
        transition-duration: 0.3s;
    }
    
    .navbar-header {
        overflow: auto;
    }
    
    .sidebar_open {
        overflow: hidden;
    }
    
    .navbar-header { 
        float: none; 
        position: fixed; 
        height: 100%; 
        z-index: 999999;
        background: #0a264e; 
        width: 280px;  
        top: 0; 
        right: -100%;
        -webkit-transition-duration: 0.3s;
        -moz-transition-duration: 0.3s;
        transition-duration: 0.3s;
    }
    
    .navbar-nav {
        text-align: left; 
        padding-top: 50px;
    }
    
    .navbar-nav > li {
        width: 100%;
        display: block;
        text-align: left; 
        border-bottom: solid 1px rgb(246 246 255 / 40%);
    }
    
    .navbar-nav > li > a {
        color: #FFF;
        padding: 10px;
        margin: 0;
        display: block;
        font-size: 16px;
    }
    
    .navbar-nav > li > a:hover { 
        background: #a3d3ed; 
        color: #0a264e; 
        text-decoration: none;
    }
    
    .navbar-nav > li.current-menu-item > a,
    .navbar-nav > li.current_page_item > a {
        color: #fff !important;
        background: rgba(163, 211, 237, 0.3);
    }
    
    .header {
        position: relative;
    }
    
    .header_sub {
        height: 0; /* prevent extra gap on mobile */
    }
    
    /* Fix main content spacing for mobile/tablet - header is fixed so content needs top margin */
    main.py-4 {
        margin-top: 120px !important; /* Space for fixed header on mobile */
        padding-top: 2rem !important;
    }
    
    /* Adjust user bar spacing when logged in on mobile */
    body.user-logged-in main.py-4 {
        margin-top: 140px !important; /* Extra space when user bar is present */
    }
    
    .header_middle { 
        padding: 15px 0px;
    }
    /* Disable right-edge extender on tablet/mobile */
    .phone_section::after { display: none; }

    /* (Revert) Let Bootstrap handle wrapping; no full-width phone bar on tablet */
}

@media (max-width: 991px) {
    h1 {
        font-size: 36px;
        line-height: 42px;
    }
    
    h2 {
        font-size: 32px;
        line-height: 40px;
    }
    
    h3 {
        font-size: 28px;
        line-height: 36px;
    }
    
    h4 {
        font-size: 20px;
        line-height: 28px;
    }
    

}

@media (max-width: 767px) {
    h1 {
        font-size: 32px;
        line-height: 40px;
    }
    
    h2 {
        font-size: 28px;
        line-height: 36px;
    }
    
    h3 {
        font-size: 24px;
        line-height: 32px;
    }
    
    h4 {
        font-size: 20px;
        line-height: 28px;
    }
    
    .footer {
        background: #0a264e; 
        padding-top: 70px; 
    }
    
    .footer h4 {  
        margin-bottom: 20px;
    }
    
    .contact_info_footer, .quick_links_footer { 
        margin-bottom: 40px; 
    }
    
    .footer_bottommenu { 
        text-align: center; 
        margin-top: 10px; 
    }
    
    .border_line {
        margin-top: 0px;
    }
    
    .copyright { 
        text-align: center; 
    }
    
    /* Reduce top margin on smaller phones */
    main.py-4 {
        margin-top: 90px !important; /* Smaller header on mobile phones */
        padding-top: 1.5rem !important;
    }
    
    body.user-logged-in main.py-4 {
        margin-top: 110px !important; /* Adjusted for user bar */
    }
    

    /* (Revert) No forced phone bar behavior on small screens here */
}

@media (max-width: 580px) {
    body {
        font-size: 16px;
        line-height: 27px;
    }
    
    .footer {
        padding-top: 50px;
    }
    

}

@media (max-width: 360px) {
    /* Extra small screens */
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Naples Obituary Card Styles */
.read-more-btn {
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
    margin-top: auto;
    align-self: flex-start;
    flex-shrink: 0;
}

.read-more-btn:hover {
    background: var(--accent-color);
    color: white;
    text-decoration: none;
}

/* Header micro-adjust: shift navbar links and phone box left a bit on desktop */
@media (min-width: 1200px) and (max-width: 1600px) {
    .header_middle { padding-left: 10px; }
}
@media (min-width: 1601px) {
    .header_middle { padding-left: 50px; }
}

/* Nudge navbar links and phone box left together (preserve spacing between them) */
@media (min-width: 1200px) and (max-width: 1600px) {
    .header_middle .col-xl-8.col-lg-10.col-7,
    .header_middle .phone_section {
        transform: translateX(-40px);
    }
}
@media (min-width: 1601px) {
    .header_middle .col-xl-8.col-lg-10.col-7,
    .header_middle .phone_section {
        transform: translateX(-50px);
    }
}

/* Prevent phone box wrapping; scale contents down smoothly on desktop */
@media (min-width: 1200px) {
    .phone_section a { 
        white-space: nowrap; 
        /* reduce right gap on tighter widths, preserve on wide */
        margin-right: clamp(16px, 3.5vw, 60px);
        /* dynamic left padding to match icon size */
        padding-left: calc(clamp(36px, 3.2vw, 48px) + 14px);
    }
    .phone_section h6 {
        font-size: clamp(12px, 0.9vw, 16px);
        line-height: 1.2;
    }
    .phone_section h4 {
        font-size: clamp(18px, 1.6vw, 30px);
        line-height: 1.2;
    }
    .phone_section a i {
        width: clamp(36px, 3.2vw, 48px);
        height: clamp(36px, 3.2vw, 48px);
        line-height: clamp(36px, 3.2vw, 48px);
        top: 0;
    }
}
