/* =============================================================================
   S V N & Co. — site-specific overrides on top of the FinWice theme (styles.css)
   ========================================================================== */

/* ---------- Background images set per element via style="--bg: url(...)" ---------- */
.page-title.has-bg::before,
.page-title-home .page-title-inner.has-bg::before {
    background-image: var(--bg);
}
.page-title.has-bg::before { opacity: .3; }
.page-title-home .page-title-inner.has-bg::before { opacity: .5; }

/* Template arrows were <div>s; ours are <button>s for accessibility */
button.tf-btn-arrow {
    border: 0;
    color: var(--white);
    cursor: pointer;
}

/* Logo placeholders keep a sensible box */
.header .logo img,
.logo-footer img,
.logo-mobile img,
.logo-search img {
    max-height: 56px;
    width: auto;
}

/* ---------- Semantic headings styled with .hN keep the theme's responsive scale ---------- */
@media (max-width: 991px) {
    .h1 { font-size: 50px !important; line-height: 55px !important; }
    .h2 { font-size: 45px !important; line-height: 50px !important; }
    .h3 { font-size: 40px !important; line-height: 45px !important; }
    .h4 { font-size: 30px !important; line-height: 35px !important; }
}
@media (max-width: 575px) {
    .h1 { font-size: 38px !important; line-height: 46px !important; }
    .h3 { font-size: 32px !important; line-height: 40px !important; }
}

/* Hero headings use <br>; let them wrap naturally on small screens */
@media (max-width: 767px) {
    .page-title-home .page-title-content .h1 br { display: none; }
}

/* ---------- Home: services tabs (7 tabs) ---------- */
@media (min-width: 992px) {
    .services-tabs .wg-tab ul {
        width: auto;
        flex-wrap: wrap;
        row-gap: 12px;
        column-gap: 32px;
    }
}
.services-tabs .wg-tab ul li a { white-space: nowrap; }

/* ---------- Services grid ---------- */
.services-grid .services-item {
    display: flex;
    flex-direction: column;
}
.services-grid .services-content {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.services-grid .title-services { display: inline-block; margin-bottom: 12px; }
.service-points {
    margin: 16px 0 24px;
    padding: 0;
    list-style: none;
}
.service-points li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 24px;
}
.service-points li i {
    color: var(--primary);
    margin-top: 4px;
    font-size: 16px;
}
.service-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--on-suface-container);
}
.service-more:hover { color: var(--primary); }

/* ---------- Service detail ---------- */
.service-step {
    height: 100%;
    padding: 24px;
    border: 1px solid var(--outline);
    border-radius: 8px;
    transition: border-color .3s ease;
}
.service-step:hover { border-color: var(--primary); }
.mt-8 { margin-top: 8px; }
.mb-8 { margin-bottom: 8px; }
.mb-24 { margin-bottom: 24px; }

/* ---------- Testimonials ---------- */
.testimonial-item blockquote { margin: 0; }

/* ---------- Footer CTA (replaces the template's newsletter box) ---------- */
.footer-cta .footer-cta-phone {
    display: inline-block;
    margin: 8px 0 12px;
    font-size: 28px;
    line-height: 36px;
    font-weight: 500;
    color: var(--white);
}
.footer-cta .footer-cta-phone:hover { color: var(--color-text-1); }
.footer-cta .text { margin-bottom: 20px; color: var(--on-suface-variant-2); }

/* ---------- Enquiry form ---------- */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.form-contact-us input[type=tel],
.form-contact-us select.form-select-plain,
.form-contact-home.style-border input[type=tel],
.form-contact-home.style-border select.form-select-plain {
    width: 100%;
    background-color: var(--white);
    border: 1px solid var(--outline);
    border-radius: 4px;
    color: var(--on-suface-container);
}
.form-contact-us input[type=tel],
.form-contact-us select.form-select-plain { padding: 9px 16px; }
.form-contact-home.style-border input[type=tel],
.form-contact-home.style-border select.form-select-plain {
    padding: 11px 16px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 22px;
}
select.form-select-plain {
    appearance: none;
    -webkit-appearance: none;
    height: 100%;
    min-height: 46px;
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2324283E' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
    outline: none;
}
.form-contact-us .cols {
    display: flex;
}
@media (max-width: 575px) {
    .form-contact-us .cols { flex-direction: column; gap: 12px; }
    .form-contact-us .cols fieldset { max-width: 100%; }
}
.js-enquiry-form .is-invalid {
    border-color: var(--error) !important;
}
.js-enquiry-form .field-error {
    display: block;
    color: var(--error);
    font-size: 13px;
    line-height: 18px;
    margin-top: 4px;
}
.form-alert {
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 4px;
    font-size: 15px;
    line-height: 22px;
}
.form-alert.is-success { background: #E6F4F1; color: #1F5C51; border: 1px solid #B5DED5; }
.form-alert.is-error   { background: #FBEAEA; color: var(--error); border: 1px solid #F0C2C2; }
.js-enquiry-form button[disabled] { opacity: .6; cursor: wait; }

/* ---------- Contact map ---------- */
.contact-map {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
}

/* ---------- Legal pages ---------- */
.legal-content h2 { margin: 32px 0 12px; }
.legal-content p,
.legal-content ul { margin-bottom: 16px; color: var(--on-suface-variant-1); }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content a { color: var(--primary); }

/* ---------- 404 ---------- */
.display-404 {
    font-size: 160px;
    line-height: 1;
    font-weight: 600;
    margin-bottom: 16px;
}

/* ---------- WhatsApp button (left side; back-to-top lives on the right) ---------- */
.whatsapp-float {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
    transition: transform .3s ease;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.08); }
@media (max-width: 767px) {
    .whatsapp-float { left: 16px; bottom: 16px; width: 50px; height: 50px; }
}

/* ---------- Blog (WordPress theme) ---------- */
.blog-grid { row-gap: 40px; }
.blog-grid .tf-post-grid { height: 100%; }
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 48px;
}
.blog-pagination .page-numbers {
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--outline);
    border-radius: 999px;
    color: var(--on-suface-container);
}
.blog-pagination .page-numbers.current,
.blog-pagination .page-numbers:hover {
    background: var(--on-suface-container);
    border-color: var(--on-suface-container);
    color: var(--white);
}
.entry-content { font-size: 17px; line-height: 30px; color: var(--on-suface-variant-1); }
.entry-content > * + * { margin-top: 20px; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--on-suface-container); margin-top: 36px; }
.entry-content h2 { font-size: 32px; line-height: 40px; }
.entry-content h3 { font-size: 26px; line-height: 34px; }
.entry-content h4 { font-size: 22px; line-height: 30px; }
.entry-content ul, .entry-content ol { padding-left: 22px; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content img { border-radius: 8px; }
.entry-content blockquote {
    border-left: 3px solid var(--primary);
    padding: 8px 0 8px 20px;
    color: var(--on-suface-container);
    font-style: italic;
}
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--outline); padding: 10px 12px; }
.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin: 16px 0 32px;
    color: var(--on-suface-variant-1);
}
.blog-post-meta span { display: inline-flex; align-items: center; gap: 8px; }
.blog-featured { margin-bottom: 40px; border-radius: 8px; overflow: hidden; }
.blog-featured img { width: 100%; }
.blog-search { display: flex; gap: 8px; max-width: 520px; margin: 0 auto 48px; }
.blog-search input {
    flex: 1;
    border: 1px solid var(--outline) !important;
    border-radius: 999px;
    padding: 10px 20px !important;
}
