/* Fraser Funeral Home Theme CSS */

/* Base Typography - Poppins font family */
body { 
    font-family: 'Poppins', sans-serif; 
    font-size: 20px; 
    line-height: 33px; 
    color: #202020; 
    font-weight: 400; 
}

h1, h2, h3, h4, h5 { 
    font-weight: 500; 
}

h1 { 
    font-size: 50px; 
    line-height: 1.1; 
}

h2 { 
    font-size: 42px; 
    line-height: 1.4; 
}

h3 { 
    font-size: 36px; 
    line-height: 1.4; 
}

h4 { 
    font-size: 24px; 
    line-height: 1.4; 
}

/* Fraser Header Styles */
.fraser-header-top {
    background: #E5E5E5;
    padding: 9px 0;
}

.fraser-header-top ul li {
    display: inline-block;
    padding: 0;
}

.fraser-header-top ul li a {
    font-size: 18px;
    line-height: 1;
    color: #20409A;
    border-right: 1px solid #1f4f88;
    padding: 0 15px;
    display: inline-block;
}

.fraser-header-top ul li:last-child a {
    border-right: none;
}

/* Fraser Middle Header */
.fraser-middle-header {
    padding: 15px 0 20px 0;
}

.fraser-header-address {
    color: #000000;
    line-height: 36px;
    font-size: 18px;
    position: relative;
    padding-left: 70px;
}

.fraser-header-address i {
    height: 53px;
    width: 53px;
    line-height: 53px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    font-size: 22px;
    top: 10px;
    text-align: center;
    border: 1px solid #C2C2C2;
    color: #1f4f88;
}

.fraser-contact-det {
    color: #000000;
    line-height: 27px;
    font-size: 18px;
    position: relative;
    padding-left: 35px;
    margin-bottom: 10px;
}

.fraser-contact-det i {
    height: 28px;
    width: 28px;
    line-height: 28px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 2px;
    text-align: center;
    border: 1px solid #C2C2C2;
    color: #1f4f88;
    font-size: 14px;
}

.fraser-header-button a {
    background: #9e7418;
    line-height: 60px;
    width: 100%;
    border-radius: 50px;
    color: #ffffff;
    display: inline-block;
    text-align: center;
    font-size: 20px;
}

.fraser-header-button a:hover {
    background: #20409A;
    color: #ffffff;
    text-decoration: none;
}

/* Fraser Navigation Menu */
.fraser-main-menu {
    background: #1f4f88;
    display: inline-block;
    width: 100%;
    vertical-align: middle;
}

.fraser-main-menu .main_menu li {
    padding: 24px 0;
    float: left;
    line-height: 1;
}

.fraser-main-menu .main_menu li a {
    color: #ffffff;
    font-weight: 500;
    padding: 0 20px;
    border-right: 1px solid #FFFFFF;
    text-decoration: none;
}

.fraser-main-menu .main_menu li:last-child a {
    border-right: none;
}

.fraser-main-menu .main_menu li a:hover {
    background: #9e7418;
    text-decoration: none;
}

.fraser-main-menu .main_menu li.current-menu-item {
    background: #9e7418;
}

/* Fraser Footer Styles */
.fraser-footer-top {
    background: #9e7418;
    padding: 45px 0;
    color: #ffffff;
}

.fraser-footer-top p {
    font-size: 34px;
    line-height: 50px;
    margin-bottom: 0;
    text-align: center;
}

.fraser-footer-top a {
    color: #ffffff;
    font-weight: bold;
}

.fraser-footer {
    background: #20409A;
    padding: 60px 0;
    color: #ffffff;
}

.fraser-footer-logo {
    margin-bottom: 40px;
}

.fraser-contact-infos li {
    color: #FFFFFF;
    line-height: 27px;
    font-size: 18px;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
}

.fraser-contact-infos i {
    height: 28px;
    width: 28px;
    line-height: 28px;
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 2px;
    text-align: center;
    border: 1px solid #FFFFFF;
    color: #ffffff;
    font-size: 14px;
}

.fraser-quicklinks li {
    margin-bottom: 15px;
}

.fraser-quicklinks a {
    font-size: 18px;
    color: #ffffff;
    text-decoration: none;
}

.fraser-quicklinks a:hover {
    text-decoration: underline;
}

.fraser-footer-button {
    background: #9e7418;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #9e7418;
    display: inline-block;
    width: 100%;
    border-radius: 40px;
    padding: 15px 30px;
    color: #000000;
    text-decoration: none;
}

.fraser-footer-button:hover {
    background: #ffffff !important;
    color: #9e7418 !important;
    text-decoration: none;
}

.fraser-footer-bottom {
    padding: 15px 0;
    background: #153b68;
    text-align: center;
    color: #ffffff;
}

.fraser-footer-bottom a {
    color: #ffffff;
}

/* Fraser Social Media */
.fraser-social a {
    color: #ffffff;
    font-size: 24px;
    margin-right: 10px;
}

/* Fraser Mobile Styles */
.fraser-mobile-view {
    display: none;
    background: #20409A;
    padding: 4px 0;
    text-align: center;
}

.fraser-mobile-view li {
    display: inline-block;
    margin: 0 5px;
}

.fraser-mobile-view .phone_mobile a i {
    display: inline-block;
    height: 25px;
    width: 25px;
    line-height: 25px;
    border-radius: 25px;
    text-align: center;
    color: #ffffff;
    background: #1f4f88;
}

.fraser-mobile-view .phone_mobile a span {
    margin-left: 10px;
    color: #ffffff;
}

.fraser-mobile-view .getqte a {
    background: #1f4f88;
    color: #ffffff;
    padding: 0 15px;
    line-height: 25px;
    border-radius: 25px;
    display: inline-block;
    text-decoration: none;
}

/* Fraser Mobile Menu */
.fraser-mobile-menu {
    display: none;
}

.fraser-mobile-menu .nav_button {
    height: 14px;
    margin-left: 10px;
}

.fraser-mobile-menu .bar1, 
.fraser-mobile-menu .bar2, 
.fraser-mobile-menu .bar3 {
    width: 25px;
    height: 2px;
    border-radius: 5px;
    background-color: #4e68af;
    margin: 5px 0;
    transition: 0.4s;
}

.fraser-mobile-menu .change .bar1 {
    transform: rotate(-45deg) translate(-8px, 6px);
}

.fraser-mobile-menu .change .bar2 {
    opacity: 0;
}

.fraser-mobile-menu .change .bar3 {
    transform: rotate(45deg) translate(-3px, -2px);
}

/* Fraser Responsive Styles */
@media (max-width: 768px) {
    .fraser-mobile-view {
        display: block;
    }
    
    .fraser-header-top {
        display: none;
    }
    
    .fraser-main-menu {
        display: none;
    }
    
    .fraser-mobile-menu {
        display: block;
    }
    
    .fraser-middle-header {
        display: none;
    }
    
    .fraser-contact-det span,
    .fraser-header-address span {
        display: none;
    }
}

/* Fraser Buttons */
.fraser-orange-button {
    background: #1f4f88;
    border: 1px solid #1f4f88;
    padding: 15px 40px;
    color: #ffffff;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
}

.fraser-orange-button:hover {
    background: #ffffff;
    color: #1f4f88;
    text-decoration: none;
}

.fraser-white-button {
    background: #ffffff;
    border: 1px solid #ffffff;
    padding: 15px 40px;
    color: #20409A;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
}

.fraser-white-button:hover {
    background: #20409A;
    color: #ffffff;
    border: 1px solid #20409A;
    text-decoration: none;
}

/* Fraser Instant Quote Button */
.fraser-instant-quote-btn {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 12px !important;
    font-size: 14px !important;
    border-radius: 50px !important;
    text-decoration: none !important;
}

.fraser-instant-quote-btn:hover {
    background: var(--secondary-color) !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Override default theme styles for Fraser */
.header_top {
    background: #E5E5E5 !important;
}

.bottomHeader {
    background: var(--secondary-color) !important;
}

.navbar-nav > li > a:hover {
    color: var(--primary-color) !important;
}

.footer_top {
    background: var(--accent-color) !important;
}

.footer_main {
    background: var(--accent-color) !important;
}

/* Fraser User Bar - Styled to match Fraser theme */
.modern-user-bar {
    padding: clamp(10px, 2vw, 20px) 0;
    background: linear-gradient(135deg, #1f4f88, #20409A);
    border-bottom: 3px solid #9e7418;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.user-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(15px, 3vw, 25px);
    flex-wrap: wrap;
}

.user-info {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
}

.user-avatar {
    width: clamp(32px, 4vw, 40px);
    height: clamp(32px, 4vw, 40px);
    background: #9e7418;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    border: 2px solid #fff;
}

.user-greeting {
    font-size: clamp(14px, 2.2vw, 16px);
    color: #fff;
    font-weight: 500;
}

.user-actions {
    display: flex;
    gap: clamp(8px, 1.5vw, 12px);
}

.action-btn {
    font-size: clamp(12px, 1.8vw, 14px);
    padding: clamp(6px, 1vw, 10px) clamp(10px, 1.8vw, 16px);
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: clamp(4px, 0.8vw, 6px);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    background: #9e7418;
    color: #ffffff;
    border-color: #9e7418;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(158,116,24,0.3);
}

.action-btn.logout-btn:hover {
    background: #e53e3e;
    border-color: #e53e3e;
    color: #fff;
    box-shadow: 0 2px 8px rgba(229,62,62,0.3);
}

/* Header adjustments for user bar */
body.user-logged-in .fraser-header-top,
body.user-logged-in .fraser-middle-header,
body.user-logged-in .fraser-main-menu {
    margin-top: clamp(60px, 8vw, 80px);
}

/* Main content spacing - when user bar is present */
body.user-logged-in main.py-4 {
    padding-top: clamp(15px, 3vw, 30px) !important;
}

/* Fraser Obituary Card Styles */
.read-more-btn {
    background: var(--primary-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(--secondary-color);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    /* User bar mobile - position below header, not fixed */
    .modern-user-bar {
        position: relative;
        margin-top: 0;
    }
    
    .user-bar-content {
        flex-direction: column;
        gap: clamp(10px, 2vw, 15px);
        text-align: center;
    }
    
    .user-actions {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Mobile header spacing - no margin needed since user bar flows below */
    body.user-logged-in .fraser-header-top,
    body.user-logged-in .fraser-middle-header,
    body.user-logged-in .fraser-main-menu {
        margin-top: 0;
    }
}

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

/* Fraser Default Banner/Header Styling */
.fraser-subbanner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    padding-bottom: calc(139 / 1800 * 100%); /* Exact dimensions from WordPress site: 1800×139 */
    background: url('../images/aboutus_bg.png') no-repeat;
    background-size: cover;
    background-position: center;
    color: #20409A;
    padding-top: 80px;
    overflow: hidden;
    z-index: 1;
}

/* Bird and sun overlay positioned on the right side */
.fraser-subbanner::before {
    content: '';
    position: absolute;
    right: 0px;
    top: -75px;
    bottom: -25px;
    width: 645px;
    height: 350px;
    background: url('../images/bird-sun--transprent-01-01.png') no-repeat;
    background-size: contain;
    opacity: 0.1;
    z-index: 2;
}

/* Responsive adjustments for the bird overlay */
@media only screen and (max-width: 1499px) and (min-width: 1200px) {
    .fraser-subbanner::before {
        width: 475px;
        height: 250px;
        top: -45px;
        bottom: 5px;
        opacity: 0.06;
    }
}

@media (max-width: 1199px) {
    .fraser-subbanner::before {
        width: 300px;
        height: 150px;
        top: -20px;
        bottom: 10px;
        opacity: 0.1;
    }
}

/* On mobile, let the banner image fill and maintain minimum height */
@media (max-width: 768px) {
    .fraser-subbanner {
        height: 180px;
        padding-bottom: 0;
        background-size: cover;
    }
    
    .fraser-subbanner::before {
        width: 200px;
        height: 120px;
        top: -10px;
        opacity: 0.1;
    }
}
