/* ==========================================================================
   Travelinsure.net.au — static rebuild
   Colours carried over from the original WordPress theme:
   primary blue #3b69a1, darker blues #315a8b / #154182, footer #252525
   ========================================================================== */

:root {
    --blue: #3b69a1;
    --blue-light: #4178ba;
    --blue-dark: #315a8b;
    --blue-deep: #194f90;
    --ink: #333;
    --muted: #666;
    --line: #e2e6ec;
    --bg-soft: #f4f6f9;
    --footer-bg: #252525;
    --radius: 8px;
    --container: 1140px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
}

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

h1, h2, h3, h4 { font-family: Arial, Helvetica, sans-serif; font-weight: normal; line-height: 1.25; margin: 0 0 .6em; }
h2 { font-size: 30px; color: var(--blue-dark); }
h3 { font-size: 22px; color: var(--blue-dark); }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-block;
    padding: 12px 26px;
    border: 0;
    border-radius: 5px;
    background: var(--blue);
    color: #fff !important;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease;
}
.btn:hover { background: var(--blue-dark); }

.btn-cta {
    background: #e8b012;
    color: #222 !important;
    font-weight: bold;
}
.btn-cta:hover { background: #d6a208; }

.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff !important;
}
.btn-outline:hover { background: rgba(255, 255, 255, .15); }

.btn-block { display: block; width: 100%; text-align: center; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.above-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
    flex-wrap: wrap;
}
.above-nav .logo img { display: block; width: 301px; max-width: 100%; }

.header-contact {
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: center;
    color: var(--blue-deep);
}
.header-contact .nib-logo { width: 100px; height: auto; display: block; }
.phone-div { line-height: 1.3; font-size: 14px; }
.phone-div a {
    display: block;
    font-size: 27px;
    font-weight: bold;
    color: var(--blue-deep);
    text-decoration: none;
    letter-spacing: .5px;
}

/* Navbar */
.navbar { background: var(--blue); }
.nav-container { display: flex; align-items: center; justify-content: space-between; }

#menu-main {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
#menu-main a {
    display: block;
    padding: 13px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
}
#menu-main a:hover { text-decoration: underline; }
#menu-main .active a { background: var(--blue-dark); }

/* Highlighted "Request a Quote" nav item */
#menu-main .nav-quote a { background: #0092e2; font-weight: bold; }
#menu-main .nav-quote a:hover { background: #007fc4; }
#menu-main .nav-quote.active a { background: #007fc4; }

@media (min-width: 768px) {
    .nav-container nav, .nav-collapse, #menu-main { width: 100%; }
    #menu-main .nav-quote { margin-left: auto; }
}

.btn-navbar {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 4px;
    padding: 8px 10px;
    margin: 8px 0;
    cursor: pointer;
}
.btn-navbar .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 4px 0;
}

/* Notice strip (home page, under the nav) */
.notice-bar {
    background: #e8b012;
    color: #222;
    text-align: center;
    padding: 10px 20px;
    font-size: 15px;
}
.notice-bar a { color: #222; font-weight: bold; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    background-size: cover;
    background-position: 50% 50%;
    margin-bottom: 40px;
}
.hero .tint {
    background: linear-gradient(to right, rgba(10, 25, 47, .55), rgba(10, 25, 47, .25));
    padding: 70px 0;
}
.hero-inner {
    display: flex;
    align-items: center;
    gap: 40px;
}
.hero-copy { flex: 1 1 60%; color: #fff; }
.hero-copy h1 {
    font-size: 40px;
    margin: 0 0 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .4);
}
.sellpoints ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 19px;
}
.sellpoints li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 10px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}
.sellpoints li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M256 8C119 8 8 119 8 256s111 248 248 248 248-111 248-248S393 8 256 8zm141.7 189.7L233.6 361.9c-4.7 4.7-12.3 4.7-17 0l-90.3-90.3c-4.7-4.7-4.7-12.3 0-17l22.6-22.6c4.7-4.7 12.3-4.7 17 0l59.2 59.2 132.9-132.9c4.7-4.7 12.3-4.7 17 0l22.6 22.6c4.8 4.7 4.8 12.3.1 16.8z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* CTA card that replaces the old quote widget */
.cta-card {
    flex: 0 0 340px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    padding: 28px;
    text-align: center;
}
.cta-card h3 { margin-top: 0; color: var(--blue-dark); font-size: 22px; }
.cta-card p { color: var(--muted); font-size: 15px; margin: 12px 0; }
.cta-card hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.cta-card .phone-cta {
    display: block;
    font-size: 26px;
    font-weight: bold;
    color: var(--blue-deep);
    text-decoration: none;
    margin-top: 4px;
}
.cta-card .phone-note { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Slim hero variant for inner pages */
.hero-slim .tint { padding: 55px 0; }
.hero-slim h1 {
    color: #fff;
    font-size: 34px;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

/* --------------------------------------------------------------------------
   Content
   -------------------------------------------------------------------------- */
.content { padding-bottom: 50px; }
.content > :last-child { margin-bottom: 0; }

.lead-block { text-align: center; max-width: 820px; margin: 0 auto 40px; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0 0 40px;
}
.card-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: 0 2px 8px rgba(20, 40, 70, .06);
    display: flex;
    flex-direction: column;
}
.card p:last-of-type { margin-bottom: 0; }
.card .btn { margin-top: auto; align-self: flex-start; }
.card p + .btn, .card ul + .btn { margin-top: 18px; }

.doc-links {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}
.card .doc-links .btn { margin-top: 0; }

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; fill: #fff; }

.card h3 small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }

/* Benefits band (home page — the six original segments) */
.benefits-band {
    background: var(--bg-soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 55px 0 60px;
    margin-bottom: 50px;
}
.benefits-band h2 {
    text-align: center;
    margin-bottom: 40px;
}
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 36px;
}
.benefit { text-align: center; }
.benefit .card-icon { margin: 0 auto 16px; }
.benefit h3 { font-size: 20px; }
.benefit p { font-size: 15px; color: var(--muted); margin: 0; }

/* Full-width CTA banner */
.cta-banner {
    background: var(--blue);
    border-radius: var(--radius);
    color: #fff;
    padding: 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.cta-banner h2 { color: #fff; margin: 0 0 6px; font-size: 26px; }
.cta-banner p { margin: 0; opacity: .9; }
.cta-banner .actions { display: flex; gap: 14px; flex-wrap: wrap; }

.footnotes { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: start;
}
.box1, .box2, .box3 {
    color: #fff;
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}
.box1 h4, .box2 h4, .box3 h4 { color: #fff; font-size: 18px; margin-bottom: 8px; }
.box1 p:last-child, .box2 p:last-child, .box3 p:last-child { margin-bottom: 0; }
.box1 a, .box2 a, .box3 a { color: #fff; }
.box1 { background: var(--blue-light); }
.box2 { background: var(--blue); }
.box3 { background: var(--blue-dark); }

.contact-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: 0 2px 8px rgba(20, 40, 70, .06);
}
.contact-form label { display: block; font-weight: bold; margin-bottom: 6px; }
.contact-form .field { margin-bottom: 18px; }
.contact-form h3 { margin: 4px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.contact-form .field + h3 { margin-top: 30px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.radio-group { display: flex; gap: 8px 24px; flex-wrap: wrap; padding-top: 4px; }
.radio-group label { font-weight: normal; display: flex; align-items: center; gap: 8px; margin: 0; }
.form-note { font-size: 13px; color: var(--muted); margin-top: -12px; margin-bottom: 18px; }
.quote-form { max-width: 780px; margin: 0 auto; }
.contact-form input[type=text],
.contact-form input[type=email],
.contact-form input[type=tel],
.contact-form input[type=date],
.contact-form select {
    width: 100%;
    height: 46px;
    padding: 0 12px;
    border: 1px solid #c6ccd6;
    border-radius: 5px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #c6ccd6;
    border-radius: 5px;
    font: inherit;
    color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--blue-light);
    outline-offset: 0;
    border-color: var(--blue-light);
}
.required { color: #d10b1d; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.form-success {
    display: none;
    background: #e6f4e7;
    border: 1px solid #97c099;
    color: #013f0b;
    border-radius: 5px;
    padding: 14px 16px;
    margin-bottom: 20px;
}
.form-success.visible { display: block; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer[role=contentinfo] {
    background: var(--footer-bg);
    color: #fff;
    padding: 45px 0 55px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: start;
}
.footer-details { text-align: center; }
.footer-details img { width: 301px; max-width: 100%; }
.footer-details hr { border: 0; border-top: 1px solid #3a3a3a; margin: 18px 0; }
.footer-details a { color: #fff; text-decoration: none; }
.footer-details a:hover { text-decoration: underline; }

.footer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}
.footer-logos .nib-white { height: 56px; width: auto; }

.disclaimer {
    font-size: 12px;
    line-height: 1.55;
    color: #b1b1b1;
}
.disclaimer p { margin: 0 0 14px; }
.disclaimer p:last-child { margin-bottom: 0; }
.disclaimer-heading {
    font-weight: 700;
    color: #d9d9d9;
    margin-bottom: 4px !important;
}

/* Mobile split bar (call / quote) */
.split-bar { display: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 979px) {
    .hero-inner { flex-direction: column; align-items: stretch; }
    .cta-card { flex-basis: auto; max-width: 420px; margin: 0 auto; width: 100%; }
    .hero-copy h1 { font-size: 32px; }
    .card-grid, .card-grid.two-col { grid-template-columns: 1fr 1fr; }
    .benefit-grid { grid-template-columns: 1fr 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .above-nav { justify-content: center; text-align: center; }
    .header-contact { justify-content: center; }

    .btn-navbar { display: block; }
    .nav-container { flex-wrap: wrap; }
    .nav-collapse { display: none; width: 100%; }
    .nav-collapse.open { display: block; }
    #menu-main { flex-direction: column; }
    #menu-main a { border-top: 1px solid rgba(255, 255, 255, .15); padding: 12px 6px; }

    .hero .tint { padding: 45px 0; }
    .hero-copy h1 { font-size: 26px; }
    .sellpoints ul { font-size: 16px; }
    .hero-slim h1 { font-size: 26px; }

    .card-grid, .card-grid.two-col { grid-template-columns: 1fr; }
    .benefit-grid { grid-template-columns: 1fr; gap: 32px; }

    .cta-banner { text-align: center; justify-content: center; }

    .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
    body { padding-bottom: 46px; }

    .field-row { grid-template-columns: 1fr; gap: 0; }

    .split-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        z-index: 100;
        border-top: 1px dotted #fff;
    }
    .split-bar a {
        width: 50%;
        padding: 12px 0;
        text-align: center;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
    }
    .split-bar .call { background: var(--blue); }
    .split-bar .enquire { background: var(--blue-dark); }
}
