/* ============================================================
   Harbour Bridge Press — Full Colour Theme Override
   Primary Red : #bc1d23
   Dark Navy   : #1c2055
   White       : #ffffff
   ============================================================ */

/* === CSS variable overrides (catches all var() usage) === */
:root {
    --c4: #bc1d23;          /* was teal, now red   */
    --c5: #1c2055;          /* was dark, stays navy*/
    --c1: linear-gradient(90deg, #bc1d23 0%, #1c2055 100%);
    --c2: linear-gradient(90deg, #e84a50 0%, #bc1d23 100%);
    --c3: linear-gradient(180deg, rgba(188,29,35,0.12) 0%, rgba(188,29,35,0.22) 70%);
    /* undefined vars used in contact/btn — define them now */
    --white:           #ffffff;
    --primary_color:   #1c2055;
    --secondary_color: #bc1d23;
    --heaing_color:    #1c2055;
}

/* ── Logo sizing ── */
.logo img,
.res_logo img {
    height: 90px !important;
    width: auto !important;
    max-width: 340px !important;
    object-fit: contain !important;
}

/* ── Header ── */
.header_main {
    background: #1c2055 !important;
    border-bottom: none !important;
}

/* accent icons / labels in top header */
.header_right li span,
.header_right li a i { color: #bc1d23 !important; }

/* ── Nav pill ── */
.nav_menu {
    background: linear-gradient(90deg, #1c2055 0%, #bc1d23 50%, #1c2055 100%) !important;
    border-bottom-color: #bc1d23 !important;
    width: 100% !important;
}
.nav_menu li a { color: #fff !important; }
.nav_menu li a:hover { color: #f8b4b6 !important; }

/* ── Dropdown menu ── */
ul.dropdown_menu {
    background: #1c2055 !important;
    border: 1px solid rgba(188,29,35,0.3) !important;
}
ul.dropdown_menu li a { color: rgba(255,255,255,0.9) !important; }
ul.dropdown_menu li a:hover { color: #f8b4b6 !important; background: rgba(188,29,35,0.15) !important; }

/* ── Buttons — all states ── */
.themebtn {
    color: #fff !important;
}
.themebtn--alt {
    background: #bc1d23 !important;
    border-color: #bc1d23 !important;
    color: #fff !important;
}
.themebtn--alt:hover {
    background: #9e1219 !important;
    border-color: #9e1219 !important;
    color: #fff !important;
}
.themebtn:not(.themebtn--alt):hover {
    background: #bc1d23 !important;
    border-color: #bc1d23 !important;
    color: #fff !important;
}
/* service section secondary phone button */
.service__btns .themebtn:nth-child(2) {
    background: #1c2055 !important;
    border-color: #fff !important;
    color: #fff !important;
}
.service__btns .themebtn:nth-child(2):hover {
    background: #bc1d23 !important;
    border-color: #bc1d23 !important;
    color: #fff !important;
}
/* form box button hover (banner & popup) */
.banner_formBox button:hover,
.banner_formBox .themebtn:hover {
    background: #9e1219 !important;
    border-color: #9e1219 !important;
    color: #fff !important;
}
/* full-width popup submit */
.themebtn--full {
    background: linear-gradient(90deg, #bc1d23, #1c2055) !important;
    color: #fff !important;
    border: none !important;
}
.themebtn--full:hover {
    background: linear-gradient(90deg, #9e1219, #141638) !important;
    color: #fff !important;
}
/* contact page submit button */
.btn_form input[type="submit"] {
    background: #bc1d23 !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 40px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn_form input[type="submit"]:hover {
    background: #9e1219 !important;
    color: #fff !important;
}

/* ── Banner heading accent word ── */
.banner__con .heading span { color: #bc1d23 !important; }

/* ── Sections that had teal backgrounds ── */
/* about--alt (was teal tint) */
.about--alt { background: #f5f5f8 !important; }

/* faqs (was teal tint) */
.faqs { background: #f5f5f8 !important; }

/* services dark band */
.services { background: #1c2055 !important; }
/* ensure service heading text stays white */
.services .heading--white { color: #fff !important; }

/* manuscript / CTA sections */
.menuscript { background: #1c2055 !important; }
.getintouch { background: #1c2055 !important; }

/* portfolio strip accent */
.portfolio,
.hbp-portfolio-new { background: #f5f5f8 !important; }
.port_main:before { background: #bc1d23 !important; }

/* testimonial section */
.testimonial { background: #fff !important; }
/* old test_main teal card (used on testimonial.php inner page) */
.test_main { background: #1c2055 !important; }
.test_main p { color: #fff !important; }

/* ── Animated line accent (service boxes) ── */
.line:before { background: #bc1d23 !important; }

/* ── Accordion ── */
.accordion-button:not(.collapsed) {
    color: #bc1d23 !important;
    background: #fff8f8 !important;
    box-shadow: none !important;
}
.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(188,29,35,0.18) !important;
}

/* ── Sub-heading gradient text ── */
.sub_heading {
    background: linear-gradient(90deg, #bc1d23, #1c2055) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

/* ── Footer ── */
.footer { background: #1c2055 !important; }
.copy_right { background: #141638 !important; }
.footer_menu li a { color: rgba(255,255,255,0.75) !important; }
.footer_menu li a:hover { color: #f8b4b6 !important; }
.footer_cont li a { color: rgba(255,255,255,0.85) !important; }
.footer_cont li a:hover { color: #f8b4b6 !important; }
.copy_con p { color: rgba(255,255,255,0.6) !important; }
.privacy li a { color: rgba(255,255,255,0.7) !important; }
.privacy li a:hover { color: #f8b4b6 !important; }

/* ── Popup close button hover ── */
.popup-close-btn:hover { background: #bc1d23 !important; color: #fff !important; }

/* ── Popup input focus ring ── */
.popup-input-group input:focus,
.popup-input-group textarea:focus {
    border-color: #bc1d23 !important;
    box-shadow: 0 0 0 3px rgba(188,29,35,0.12) !important;
}

/* ── Contact page ── */
.con_detail_hme ul li span { color: #1c2055 !important; }
.con_detail_hme ul li a { color: #bc1d23 !important; }

/* ── Scrollbar thumb ── */
::-webkit-scrollbar-thumb { background: #bc1d23 !important; }

/* ── Responsive header ── */
.main_responsive { background: #1c2055 !important; }
.responsive_menu { background: #1c2055 !important; }
.res_menu li a { color: #fff !important; }
.res_menu li a:hover { color: #f8b4b6 !important; }
.cross_btn i { color: #fff !important; }
.res_menuBtn i { color: #fff !important; }

/* ── Stray inline-style teal catch ── */
[style*="#00b3a8"] { background-color: #1c2055 !important; }
[style*="#00b4a7"] { background-color: #bc1d23 !important; }

/* ============================================================
   Harbour Bridge Press — New Sections Only
   ============================================================ */

/* === Portfolio Marquee (replaces broken Slick slider) === */
.hbp-portfolio-new .port__con {
    padding: 20px 0 40px;
}

.hbp-marquee-wrap {
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
    /* fade edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.hbp-marquee-track {
    display: flex;
    gap: 16px;
    width: max-content;
    will-change: transform;
}

/* left-to-right scroll (row 1) */
.hbp-marquee--left .hbp-marquee-track {
    animation: hbp-scroll-left 40s linear infinite;
}

/* right-to-left scroll (row 2) */
.hbp-marquee--right .hbp-marquee-track {
    animation: hbp-scroll-right 45s linear infinite;
}

/* pause on hover */
.hbp-marquee-wrap:hover .hbp-marquee-track {
    animation-play-state: paused;
}

@keyframes hbp-scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes hbp-scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.hbp-book-card {
    display: block;
    flex-shrink: 0;
    width: 160px;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.hbp-book-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}

.hbp-book-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hbp-book-card:hover img {
    transform: scale(1.06);
}

@media (max-width: 767px) {
    .hbp-book-card {
        width: 120px;
        height: 170px;
    }
    .hbp-marquee-track { gap: 12px; }
}


/* === New Section: Statistics === */
.hbp-stats {
    background: #1c2055;
    padding: 80px 0;
}

.hbp-stat-item {
    text-align: center;
    padding: 30px 20px;
    position: relative;
}

.hbp-stat-item::after {
    content: '';
    position: absolute;
    right: 0; top: 20%; bottom: 20%;
    width: 1px;
    background: rgba(188,29,35,0.25);
}

.hbp-stat-item:last-child::after { display: none; }

.hbp-stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #bc1d23;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
}

.hbp-stat-label {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

/* === New Section: Why Choose Us === */
.hbp-why {
    background: #f9f5f5;
    padding: 80px 0;
}

.hbp-why-card {
    padding: 32px 24px;
    border-radius: 12px;
    border: 1px solid #e8d5d5;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    margin-bottom: 24px;
}

.hbp-why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(28,32,85,0.1);
}

.hbp-why-icon {
    width: 52px; height: 52px;
    border-radius: 10px;
    background: rgba(188,29,35,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.5rem;
    color: #bc1d23;
}

.hbp-why-title {
    font-weight: 700;
    color: #1c2055;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.hbp-why-desc {
    color: #6b6b6b;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* === New Section: Publishing Process === */
.hbp-process {
    background: #fff;
    padding: 80px 0;
}

.hbp-process-step {
    text-align: center;
    padding: 36px 20px;
    border-radius: 12px;
    border: 1px solid #e8d5d5;
    background: #f9f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    margin-bottom: 24px;
}

.hbp-process-step:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 36px rgba(28,32,85,0.1);
    border-color: #bc1d23;
}

.hbp-step-number {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #bc1d23;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.hbp-step-title {
    font-weight: 700;
    color: #1c2055;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.hbp-step-desc {
    color: #6b6b6b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* === Testimonial Marquee (replaces broken Slick slider) === */
.hbp-testimonial-new {
    padding: 60px 0 70px;
    overflow: hidden;
}

.hbp-testimonial-new .test_head {
    margin-bottom: 48px;
}

.hbp-test-marquee-wrap {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 6%, black 94%, transparent 100%);
    cursor: default;
}

.hbp-test-track {
    display: flex;
    gap: 24px;
    width: max-content;
    padding: 12px 0;
}

.hbp-test-track--left {
    animation: hbp-test-left 50s linear infinite;
}

.hbp-test-marquee-wrap:hover .hbp-test-track {
    animation-play-state: paused;
}

@keyframes hbp-test-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hbp-test-card {
    flex-shrink: 0;
    width: 320px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 26px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #e8d5d5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hbp-test-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}

.hbp-test-stars {
    color: #bc1d23;
    font-size: 1rem;
    letter-spacing: 2px;
}

.hbp-test-text {
    color: #444;
    font-size: 0.88rem;
    line-height: 1.7;
    flex: 1;
    margin: 0;
    font-style: italic;
}

.hbp-test-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
    border-top: 1px solid #fdf3f3;
    padding-top: 14px;
}

.hbp-test-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1c2055, #2a3080);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.hbp-test-author strong {
    display: block;
    color: #1c2055;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
}

.hbp-test-author span {
    display: block;
    color: #888;
    font-size: 0.78rem;
}

@media (max-width: 767px) {
    .hbp-test-card {
        width: 270px;
        padding: 22px 18px;
    }
}

/* === Contact Info Box (contact.php) === */
.contact_info_box {
    background: #f9f5f5;
    border-radius: 12px;
    padding: 32px 24px;
    border: 1px solid #e8d5d5;
    height: 100%;
}

.contact_info_box h3 {
    font-weight: 700;
    color: #1c2055;
    margin-bottom: 10px;
}

.contact_info_box > p {
    color: #6b6b6b;
    margin-bottom: 24px;
    font-size: 0.93rem;
    line-height: 1.6;
}

.contact_detail_item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8d5d5;
}

.contact_detail_item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact_detail_item i {
    font-size: 1.3rem;
    color: #bc1d23;
    margin-top: 2px;
    flex-shrink: 0;
}

.contact_detail_item strong {
    display: block;
    color: #1c2055;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.contact_detail_item a,
.contact_detail_item span {
    color: #6b6b6b;
    font-size: 0.88rem;
    text-decoration: none;
    display: block;
}

.contact_detail_item a:hover { color: #bc1d23; }

/* === Inline form error messages === */
.hbp-inline-msg {
    margin-top: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
}

/* === Responsive === */
@media (max-width: 767px) {
    .hbp-stats { padding: 50px 0; }
    .hbp-why, .hbp-process { padding: 50px 0; }
    .hbp-stat-item::after { display: none; }
    .hbp-stat-item { border-bottom: 1px solid rgba(188,29,35,0.15); padding: 20px; }
    .hbp-stat-item:last-child { border-bottom: none; }
}
