@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

/* Homepage only: Handy Cash hero structure, with Careys branding. */
.careys-home-hero { --font-sans:'Instrument Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif; font-family:var(--font-sans); }



.careys-home-hero {
    position: relative;
    isolation: isolate;
    min-height: 760px;
    box-sizing: border-box;
    background: #242825 url(images/careys-doorstep.webp) calc(50% + 3vw) center / cover no-repeat;
    color: white;
    padding: clamp(180px, 13vw, 220px) clamp(24px, 5vw, 80px) clamp(90px, 8vw, 130px);
}

.careys-home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, #141713ed 0%, #151814cd 25%, #191c1899 37%, #191c1820 48%, #191c1815 66%, #191c185e 100%),
        linear-gradient(0deg, #191c186b, transparent 65%);
}

.careys-home-hero .container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(430px, 0.85fr);
    align-items: center;
    gap: clamp(48px, 7vw, 110px);
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.careys-home-hero .hero-copy {
    max-width: 720px;
    text-align: left;
}

.careys-home-hero .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.careys-home-hero h1 {
    max-width: 700px;
    margin: 24px 0 22px;
    font-size: clamp(3.25rem, 5.6vw, 5.7rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.careys-home-hero h1 span {
    color: #edc58b;
}

.careys-home-hero .hero-copy > p {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1.05rem, 1.35vw, 1.25rem);
    line-height: 1.65;
}

.careys-home-hero .hero-trust-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: min(100%, 660px);
    margin: 30px 0 0;
    padding: 0;
    list-style: none;
}

.careys-home-hero .hero-trust-points li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-height: 62px;
    box-sizing: border-box;
    padding: 11px 12px;
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}

.careys-home-hero .hero-trust-points li::before {
    content: '✓';
    display: grid;
    flex: 0 0 auto;
    width: 19px;
    height: 19px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #e7b66c, #b1782b);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(10, 0, 25, 0.24);
}

.careys-home-hero .hero-trust-copy {
    display: block;
    min-width: 0;
}

.careys-home-hero .hero-trust-copy strong, .careys-home-hero .hero-trust-copy small {
    display: block;
}

.careys-home-hero .hero-trust-copy strong {
    font-size: 0.83rem;
    line-height: 1.25;
}

.careys-home-hero .hero-trust-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.65rem;
    line-height: 1.3;
}

@media (max-width: 680px) {
    .careys-home-hero .hero-trust-points {
        grid-template-columns: 1fr;
        width: min(100%, 440px);
        margin-right: auto;
        margin-left: auto;
    }

    .careys-home-hero .hero-trust-points li {
        min-height: 0;
        text-align: left;
    }
}

.careys-home-hero .loan-calculator {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    max-width: 560px;
    margin: 0 0 0 auto;
    padding: clamp(26px, 2.6vw, 38px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    color: #212529 !important;
    box-shadow: 0 28px 80px rgba(24, 21, 17, 0.34);
    backdrop-filter: blur(16px);
    text-align: left;
}

.careys-home-hero .calculator-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.careys-home-hero .calculator-kicker {
    display: block;
    margin-bottom: 5px;
    color: #855918;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.careys-home-hero .calculator-heading h2 {
    margin: 0;
    color: #212529;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.careys-home-hero .calculator-badge {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: #fcf1df;
    color: #855918;
    font-size: 0.78rem;
    font-weight: 700;
}

.careys-home-hero .loan-calculator > label {
    margin-bottom: 9px;
    color: #5c544a;
    font-size: 0.82rem;
    font-weight: 700;
}


.careys-home-hero #loanAmount {
    box-sizing: border-box;
    width: 100%;
    text-align: left;
    border: 1px solid #e9dfd0;
    border-radius: 13px;
    padding: 13px 16px;
    margin: 0;
    background: #fcfaf6;
    color: #212529;
    font-size: 2rem;
    font-family: var(--font-sans);
    font-weight: 700;
}



.careys-home-hero .slider-container {
    position: relative;
    margin: 28px 2px 30px;
}

.careys-home-hero #loanSlider {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    margin: 0 0 15px;
    width: 100%;
    height: 6px;
    background: #e5d9c7;
    border-radius: 999px;
    outline: none;
    transition: background 0.3s ease-in-out;
}


.careys-home-hero #loanSlider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    background: white;
    border: 5px solid #cf9033;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.2s ease-in-out;
}


.careys-home-hero #loanSlider::-moz-range-thumb {
    width: 14px;
    height: 14px;
    background: white;
    border: 5px solid #cf9033;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.2s ease-in-out;
}


.careys-home-hero #loanSlider:focus::-webkit-slider-thumb, .careys-home-hero #loanSlider:focus::-moz-range-thumb, .careys-home-hero #loanSlider:active::-webkit-slider-thumb, .careys-home-hero #loanSlider:active::-moz-range-thumb {
    transform: scale(1.2);
    box-shadow: 0px 0px 10px rgba(146, 92, 27, 0.5);
}




.careys-home-hero .min-value, .careys-home-hero .max-value {
    font-size: 14px;
    color: #666;
    position: absolute;
    bottom: -20px;
}

.careys-home-hero .min-value {
    left: 0;
}

.careys-home-hero .max-value {
    right: 0;
}


.careys-home-hero .get-started2 {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 700;
    background: var(--logo-orange);
    color: #fff;
    border: none;
    border-radius: 14px;
    margin-top: 0;
    cursor: pointer;
    font-family: var(--font-sans);
    box-shadow: 0 10px 24px rgba(146, 92, 27, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.careys-home-hero .get-started2:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(33, 37, 41, 0.28);
}

.careys-home-hero .get-started2 i{
    font-size: 15px;
}



.careys-home-hero .info-text {
    margin-top: 26px !important;
    color: #212529 !important;
    text-align: left;
}

.careys-home-hero #apr-header{
    display: block;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8dfd4;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.careys-home-hero .representative-example {
    margin: 16px 0 0;
    color: #504b42;
    font-size: 0.76rem;
    line-height: 1.55;
}

.careys-home-hero .calculator-notes {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 12px;
    margin-top: 16px;
}

.careys-home-hero .calculator-notes p {
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background: #faf5ed;
    color: #58524b;
    font-size: 0.7rem;
    line-height: 1.45;
}

.careys-home-hero .loan-term {
    background: #cf9033;
    color: white;
    border: none;
    padding: 10px 15px;
    margin: 5px 5px -4px 5px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-family: var(--font-sans);
}


.careys-home-hero .loan-term:hover {
    background: #212529;
    transform: scale(1.05);
}





@media (max-width: 768px) {
   

    .careys-home-hero .loan-calculator {
        width: 100%;
        max-width: 560px;
        margin: 0 auto;
        padding: 24px;
        text-align: left;
    }
    
    .careys-home-hero #loanAmount {
        font-size: 1.7rem;
    }

    .careys-home-hero .get-started2 {
        font-size: 1rem;
        padding: 14px;
    }

    .careys-home-hero {
        min-height: auto;
        padding: 170px 20px 72px;
        background-position: 65% center;
    }

    .careys-home-hero::before {
        background: linear-gradient(180deg, rgba(25, 22, 17, 0.86) 0%, rgba(33, 37, 41, 0.72) 42%, rgba(24, 21, 17, 0.92) 100%);
    }

    .careys-home-hero .container {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .careys-home-hero .hero-copy {
        max-width: 620px;
        margin: 0 auto;
        text-align: center;
    }

    .careys-home-hero h1 {
        margin: 20px auto 18px;
        font-size: clamp(2.7rem, 12vw, 4.4rem);
    }

    .careys-home-hero .hero-copy > p {
        margin: 0 auto;
        font-size: 1rem;
        line-height: 1.55;
    }

    .careys-home-hero .hero-trust-points {
        justify-content: center;
        margin-top: 26px;
    }

    .careys-home-hero .calculator-notes {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 1050px) {
    main .careys-home-hero {
        --photo-height: clamp(215px, 44vw, 420px);
        min-height: auto;
        padding-top: var(--photo-height);
        background-size: max(100%, calc(var(--photo-height) * 1.78)) auto;
        background-position: 40% top;
    }

    .careys-home-hero::before {
        background: linear-gradient(to bottom, transparent 0, transparent calc(var(--photo-height) * .68), #242825 var(--photo-height));
    }

    .careys-home-hero .container {
        grid-template-columns: 1fr;
        max-width: 760px;
        gap: 52px;
    }

    .careys-home-hero .hero-copy {
        max-width: 680px;
        margin: 0 auto;
        text-align: center;
    }

    .careys-home-hero .hero-copy > p {
        margin: 0 auto;
    }

    .careys-home-hero .hero-trust-points {
        justify-content: center;
    }

    .careys-home-hero .loan-calculator {
        margin: 0 auto;
    }
}
.careys-home-hero .loan-calculator {
    scroll-margin-top: 140px;
    transition: min-height 220ms ease, box-shadow 220ms ease;
}

.careys-home-hero .loan-calculator.is-showing-details {
    min-height: 610px;
    box-shadow: 0 32px 88px rgba(24, 21, 17, 0.4);
}

.careys-home-hero .calculator-view {
    width: 100%;
}

.careys-home-hero .calculator-view.is-active {
    animation: calculator-view-in 260ms ease both;
}

.careys-home-hero .calculator-view[hidden] {
    display: none;
}

@keyframes calculator-view-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.careys-home-hero .calculator-selector-view > label {
    display: block;
    margin-bottom: 9px;
    color: #5c544a;
    font-size: 0.82rem;
    font-weight: 700;
}

.careys-home-hero .calculator-details-view:focus {
    outline: none;
}

.careys-home-hero .calculator-details-topbar {
    display: flex;
    margin-bottom: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.careys-home-hero .calculator-back {
    display: inline-flex;
    padding: 7px 0;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #855918;
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.careys-home-hero .calculator-back span {
    font-size: 1.1rem;
    transition: transform 180ms ease;
}

.careys-home-hero .calculator-back:hover span {
    transform: translateX(-3px);
}

.careys-home-hero .calculator-details-view > h2 {
    margin: 4px 0 22px;
    color: #212529;
    font-size: clamp(1.7rem, 2.5vw, 2.15rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.careys-home-hero .loan-term-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px;
    border-radius: 13px;
    background: #f8f1e8;
}

.careys-home-hero .calculator-details-view .loan-term {
    min-height: 42px;
    margin: 0;
    padding: 9px 14px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    box-shadow: none;
    color: #665e54;
    font-family: var(--font-sans);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.careys-home-hero .calculator-details-view .loan-term:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.58);
    color: #212529;
}

.careys-home-hero .calculator-details-view .loan-term.is-active {
    background: #fff;
    box-shadow: 0 5px 15px rgba(33, 37, 41, 0.1);
    color: #895b1d;
}

.careys-home-hero .calculator-payment-highlight {
    display: grid;
    padding: 19px 20px;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, #2e2519, #9b6826);
    box-shadow: 0 14px 30px rgba(102, 67, 25, 0.2);
    color: #fff;
}

.careys-home-hero .calculator-payment-highlight > span {
    align-self: center;
    color: #f6dfba;
    font-size: 0.82rem;
    font-weight: 700;
}

.careys-home-hero .calculator-payment-highlight strong {
    grid-row: span 2;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.careys-home-hero .calculator-payment-highlight small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.74rem;
}

.careys-home-hero .calculator-detail-list {
    margin: 16px 0 0;
}

.careys-home-hero .calculator-detail-list > div {
    display: flex;
    padding: 11px 2px;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e9e2d7;
}

.careys-home-hero .calculator-detail-list dt {
    color: #665e54;
    font-size: 0.8rem;
}

.careys-home-hero .calculator-detail-list dd {
    margin: 0;
    color: #212529;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: right;
}

.careys-home-hero .calculator-detail-list .calculator-detail-total dt, .careys-home-hero .calculator-detail-list .calculator-detail-total dd {
    color: #895b1d;
    font-weight: 800;
}

.careys-home-hero .calculator-details-note {
    margin: 15px 0 0;
    padding: 11px 13px;
    border-radius: 10px;
    background: #faf5ed;
    color: #665e54;
    font-size: 0.7rem;
    line-height: 1.45;
}

@media (max-width: 768px) {
    .careys-home-hero .loan-calculator.is-showing-details {
        min-height: 580px;
    }

    .careys-home-hero .calculator-payment-highlight strong {
        font-size: 1.8rem;
    }
}

@media (max-width: 420px) {
    .careys-home-hero .calculator-details-topbar {
        margin-bottom: 20px;
    }

    .careys-home-hero .calculator-details-view > h2 {
        font-size: 1.65rem;
    }

    .careys-home-hero .calculator-payment-highlight {
        padding: 17px;
    }

    .careys-home-hero .calculator-detail-list > div {
        padding: 10px 1px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .careys-home-hero .loan-calculator, .careys-home-hero .calculator-view, .careys-home-hero .calculator-back span, .careys-home-hero .calculator-details-view .loan-term {
        animation: none;
        transition: none;
    }
}

.careys-home-hero .calculator-details-view .loan-term { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-width:0; }
.careys-home-hero .calculator-details-view .loan-term small { font-size:.7rem; font-weight:500; }
.careys-home-hero .hero-postcode-checker { margin-top:32px; padding:24px; border:1px solid rgba(255,255,255,.3); border-radius:18px; background:rgba(255,255,255,.1); max-width:540px; text-align:left; }
.careys-home-hero .hero-postcode-checker h2 { margin:0 0 8px; font-size:22px; line-height:1.3; color:white; }
.careys-home-hero .hero-postcode-checker p { margin:0 0 18px; font-size:15px; line-height:1.6; color:white; }
.careys-home-hero .hero-postcode-checker label { display:block; margin-bottom:8px; font-size:14px; font-weight:600; color:white; }
.careys-home-hero .postcode-checker-controls { display:flex; gap:10px; }
.careys-home-hero .postcode-checker-controls input { width:100%; min-width:0; padding:14px 16px; border:1px solid #e5d9ef; border-radius:9px; background:white; color:#352c39; font:inherit; text-transform:uppercase; }
.careys-home-hero .postcode-checker-controls button { flex-shrink:0; border:0; border-radius:9px; padding:14px 18px; background:white; color:#212529; font:inherit; font-weight:700; cursor:pointer; }
.careys-home-hero .postcode-checker-controls button:hover { background:#f8eddf; }
.careys-home-hero .postcode-checker-controls :focus-visible { outline:3px solid #e8bd7b; outline-offset:3px; }
.careys-home-hero .hero-postcode-checker .postcode-check-result { margin:16px 0 0; padding:12px 14px; border-radius:9px; background:rgba(255,255,255,.15); font-weight:600; }
@media(max-width:600px) { .careys-home-hero .hero-postcode-checker { padding:20px; } .careys-home-hero .postcode-checker-controls { flex-direction:column; } }
.careys-home-hero p { font-family:var(--font-sans); }
.careys-home-hero .loan-term-selector { grid-template-columns:repeat(2,minmax(0,1fr)); }
.careys-home-hero .loan-term[hidden] { display:none; }
.careys-home-hero :focus-visible { outline:3px solid #cf9033; outline-offset:4px; }

.careys-home-hero .postcode-checker-controls input { box-sizing:border-box; }
