@font-face {
    font-family: Careys;
    src: url("fonts/Axiforma-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: Careys;
    src: url("fonts/Axiforma-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: Careys;
    src: url("fonts/Axiforma-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}
:root {
    --ink: #242825;
    --text: #494d47;
    --amber: #88591d;
    --logo-orange: #d68c26;
    --gold: #d79d49;
    --cream: #f6f2e9;
    --paper: #fcfbf8;
    --line: #dfded6;
    --gutter: max(5vw, calc((100vw - 1240px) / 2));
    --space: clamp(3rem, 6vw, 6.25rem);
    --round: 18px;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: white; font: 400 1rem/1.7 Careys, system-ui, sans-serif; }
h1, h2, h3 { margin: 0 0 .65em; color: var(--ink); line-height: 1.15; letter-spacing: -.045em; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { margin: .6em 0 1em; }
p:last-child { margin-bottom: 0; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
a { color: var(--amber); text-underline-offset: .2em; }
img { max-width: 100%; height: auto; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #9a630c; outline-offset: 4px; }
.skip-link { position: fixed; z-index: 2000; top: 8px; left: 8px; padding: 10px 18px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); }
.warning-strip { background: white; padding: 7px 4vw; text-align: center; color: #41443e; border-bottom: 1px solid #eeece6; font: 400 .77rem/1.45 system-ui, sans-serif; }
header .warning-strip { background: var(--logo-orange); color: #fff; border-color: transparent; }
header .warning-strip a { color: inherit; }
.warning-strip p { margin: 0; }
header .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-inline: var(--gutter); min-height: 78px; }
.logo-wrapper a, .logo { display: block; }
.logo { width: 142px; }
.nav-links, .resource-list { list-style: none; margin: 0; padding: 0; }
.nav-links { display: flex; align-items: center; gap: clamp(4px, 1.1vw, 20px); }
.nav-links > li > a, .resources summary, .menu-toggle {
    display: flex; align-items: center; gap: 9px; padding: 11px 14px;
    color: var(--ink); font-size: .89rem; font-weight: 600; line-height: 1.35;
    border-radius: 9px; text-decoration: none;
}
.nav-links > li > a:hover, .resources summary:hover, .resources[open] summary, .nav-links a[aria-current="page"] { background: var(--cream); color: var(--amber); }
.resources { position: relative; }
.resources summary { list-style: none; }
.resources summary::-webkit-details-marker { display: none; }
.chevron { width: 8px; height: 8px; flex: none; display: inline-block; border: solid currentColor; border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); }
.resources[open] .chevron, [aria-expanded="true"] .chevron { transform: translateY(2px) rotate(225deg); }
.resource-list {
    position: absolute; right: 0; top: calc(100% + 10px); width: 315px;
    padding: 7px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 15px 38px #22251c23, 0 2px 6px #22251c09;
}
.resource-list a { display: flex; align-items: center; gap: 13px; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.resource-list a:hover, .resource-list a:focus-visible { background: var(--paper); }
.resource-list strong, .resource-list small { display: block; }
.resource-list strong { font-size: .92rem; }
.resource-list small { font-size: .74rem; color: var(--text); }
.resource-icon, .contact-icon, .icon-circle { flex: none; display: grid; place-items: center; color: var(--amber); background: var(--cream); width: 40px; height: 40px; border-radius: 12px; }
.menu-toggle { display: none; background: white; border: 1px solid var(--line); }

/* Page introductions */
.page-intro { padding: clamp(32px, 5vw, 76px) var(--gutter); background: var(--cream); border-bottom: 1px solid var(--line); }
.intro-inner { display: grid; gap: clamp(24px, 6vw, 92px); align-items: center; }
.intro-inner:has(.page-photo) { grid-template-columns: 1fr .92fr; }
.intro-copy nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--text); font-size: .78rem; }
.intro-copy nav a { color: inherit; }
.intro-copy h1 { font-size: clamp(2.55rem, 4.7vw, 4.7rem); letter-spacing: -.065em; margin: 0; max-width: 18ch; line-height: 1.055; }
.intro-copy p { margin: 22px 0 0; max-width: 54ch; font-size: clamp(1rem, 1.3vw, 1.16rem); }
.page-photo { display: block; width: 100%; aspect-ratio: 1.72; object-fit: cover; border-radius: 4px 36px 4px 36px; }
.action, .custom-button3, .external-button, .submit-btn, .view-more-faqs {
    display: inline-flex; align-items: center; justify-content: center; gap: 14px;
    border: 0; border-radius: 9px; padding: 13px 20px;
    background: var(--ink); color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none;
}
.action { margin-top: 22px; }
:is(.action, .custom-button3, .external-button, .submit-btn, .view-more-faqs):hover { background: #54432b; }
.accent-text, .highlight { color: var(--amber); }

/* Homepage */
main .careys-home-hero { padding-top: clamp(50px, 6vw, 100px); min-height: auto; }
.careys-home-hero h1, .careys-home-hero .hero-postcode-checker h2 { color: white; }
.careys-home-hero p, .careys-home-hero h2 { margin-block-end: 0; }
.hero2, .hero3, .hero4, .offer-section, .hero5, .hero4-hiw-page,
.contact-options, .benefits-section, .contact-section, .debt-support-section, .hero2-debt-page {
    padding: var(--space) var(--gutter);
}
.hero2 h2, .offer-section h2, .hero2-debt-page h2 { margin-bottom: clamp(24px, 3vw, 44px); }
.comparison-grid2 { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 18px; }
.comparison-box2 { grid-column: span 2; }
.comparison-box2:nth-last-child(-n+2) { grid-column: span 3; }
.comparison-box2, .offer-card, .debt-resource, .debt-1, .contact-options [class^="contact-box"], .benefit {
    min-width: 0; padding: clamp(22px, 2.5vw, 38px); border: 1px solid var(--line); border-radius: var(--round); background: white;
}
.comparison-box2:nth-child(1), .comparison-box2:nth-child(5) { background: var(--paper); }
.logo-icon { display: block; width: 42px; height: 42px; object-fit: contain; margin-bottom: 22px; }
.hero3 { background: var(--ink); color: #fffaf1; display: grid; grid-template-columns: .8fr 1.4fr; column-gap: 7vw; }
.hero3 h2, .hero4-hiw-page h2 { color: inherit; }
.review { display: flex; flex-direction: column-reverse; }
.review-text { font-size: clamp(1.1rem, 1.6vw, 1.5rem); line-height: 1.6; letter-spacing: -.02em; margin: 0; }
.customer-name { color: #e8c998; font-size: .88rem; margin: 18px 0; }
.review-controls { grid-column: 2; display: flex; gap: 13px; align-items: center; margin-top: 8px; }
.review-controls button { border: 1px solid #858980; border-radius: 50%; width: 42px; height: 42px; color: white; background: transparent; }
.review-controls button:hover { background: #41453e; }
.review-count { font-size: .8rem; }
.how-it-works-wrapper { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: 7vw; }
/* The screen opening and camera cutout follow the original 682 × 1396 iPhone template. */
.application-phone {
    position: relative;
    width: min(100%, 355px);
    aspect-ratio: 682 / 1396;
    place-self: center;
    background: url("images/Smartphone2.png") center / contain no-repeat;
}
.application-phone img {
    position: absolute;
    inset: 2.44% 5.13% 2.22% 4.69%;
    width: 90.18%;
    height: 95.34%;
    border-radius: 14.1% / 6.5%;
}
.application-phone::after {
    content: "";
    position: absolute;
    inset: 0;
    background: inherit;
    clip-path: inset(3.86% 35.93% 92.19% 35.78% round 999px);
    pointer-events: none;
}
.how-it-works-1 { display: flex; align-items: flex-start; padding: 20px 0; gap: 18px; border-top: 1px solid var(--line); }
.logo-icon2 { width: 34px; height: 34px; object-fit: contain; }
.how-it-works-1 .Logo-container { flex: none; }
.info-container strong { color: var(--ink); font-size: 1.12rem; }
.offer-section, .hero2-debt-page { background: var(--paper); }
.offer-container, .contact-options .contact-container, .benefits-section, .debt-wrapper-right, .debt-resources-wrapper {
    display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px;
}
.offer-card { border-top: 3px solid var(--gold); }
.hero5 { display: grid; grid-template-columns: .72fr 1.28fr; gap: 22px 6vw; align-items: start; }
.view-more-faqs { grid-column: 2; justify-self: start; }
.hero4-hiw-page { color: white; background: #35392f; }
.hero4-hiw-page p { margin: 0; color: #e3e3d8; }
.hero4-hiw-page h2 { margin-bottom: .3em; }

/* Resources, contact and recruitment */
.faq-layout { padding: var(--space) var(--gutter); display: grid; grid-template-columns: minmax(200px,.55fr) minmax(0,1.45fr); gap: clamp(28px,6vw,85px); align-items: start; }
.topic-nav { display: grid; gap: 2px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--round); position: sticky; top: 135px; }
.topic-nav h2 { font-size: 1.2rem; margin: 0 0 9px; }
.topic-nav a { font-size: .86rem; line-height: 1.5; padding: 9px 0; color: var(--text); text-decoration: none; border-top: 1px solid var(--line); }
.topic-nav a:hover { color: var(--amber); text-decoration: underline; }
.question-group { scroll-margin-top: 140px; margin-bottom: 52px; }
.question-group:last-child { margin-bottom: 0; }
.question-group h2 { font-size: clamp(1.45rem, 2.3vw, 2.2rem); }
.faq-wrapper, .faq-container { border-top: 1px solid var(--line); }
.faq-box, .faq-item { border-bottom: 1px solid var(--line); }
.faq-toggle, .faq-question { width: 100%; padding: 22px 7px; text-align: left; background: transparent; color: var(--ink); border: 0; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-weight: 600; }
:is(.faq-toggle, .faq-question):hover { color: var(--amber); }
.faq-response, .faq-answer { display: none; padding: 0 10px 22px; }
.active > :is(.faq-response, .faq-answer) { display: block; }
.contact-divider { display: none; }
.contact-icon, .icon-circle { margin-bottom: 20px; width: 46px; height: 46px; }
.faq-link { margin-top: 28px; }
.debt-1 { display: flex; flex-direction: column; align-items: start; }
.debt-1 .Logo-container { display: flex; align-items: center; height: 56px; margin: 0 0 16px !important; }
.debt-1 img, .debt-resource .logo-container img { width: auto; max-width: 150px; max-height: 55px; }
.debt-1 .custom-button3 { margin-top: auto; }
.debt-1 .info-container { padding-bottom: 22px; }
.debt-resource { overflow: hidden; padding: 0; }
.debt-resource .info-container { padding: 22px; }
.debt-resource .logo-container { padding: 22px 22px 0; }
.debt-resource .logo-container:has(img[src$=".jpg"]) { padding: 0; }
.debt-resource img[src$=".jpg"] { display: block; width: 100%; max-width: none; max-height: none; aspect-ratio: 1.8; object-fit: cover; }
.hero3-debt-page, .join-us-section, .image-section-about, .image-section-privacy { padding: var(--space) max(6vw, calc((100vw - 780px)/2)); }
.hero3-debt-page, .join-us-section { background: var(--paper); }
.debt-info-hero3 > h2:not(:first-child), .text-container-privacy h2:not(:first-child) { margin-top: 1.6em; }
.text-container-privacy { overflow-wrap: anywhere; }
.text-container-privacy h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
.text-container-privacy h3 { margin-top: 1.6em; font-size: 1.15rem; }
.policy-table { max-width: 100%; overflow-x: auto; margin-block: 22px; }
.policy-table table { min-width: 500px; font-size: .88rem; }
.policy-table :is(td,th) { border: 1px solid var(--line); padding: 12px 16px; vertical-align: top; }
.policy-table th { background: var(--cream); text-align: left; }
.contact-section .contact-container { display: grid; grid-template-columns: .85fr 1.15fr; gap: 6vw; }
.contact-form { padding: clamp(20px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--round); background: var(--paper); }
.contact-form form, .inline-fields { display: grid; gap: 14px; }
.inline-fields { grid-template-columns: 1fr 1fr; }
.contact-form :is(input, textarea) { width: 100%; min-width: 0; border: 1px solid #babdb4; border-radius: 8px; background: white; color: var(--ink); padding: 12px 15px; }
.contact-form textarea { min-height: 110px; resize: vertical; }
.submit-btn { justify-self: start; }
.note { font-size: .82rem; }

/* Footer and cookie preferences */
.footer { padding: clamp(42px,6vw,78px) var(--gutter) 25px; background: var(--ink); color: #dddfd6; }
.footer-container { display: grid; grid-template-columns: 1.2fr .68fr 1.15fr .8fr; gap: clamp(20px, 4vw, 58px); }
.footer h3 { color: white; font-size: 1rem; letter-spacing: -.015em; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer :is(li, p) { font-size: .88rem; margin: 0 0 8px; }
.footer a { color: #dddfd6; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: white; }
.footer-column-contact p { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .65rem; overflow-wrap: anywhere; }
.footer-column-contact svg { width: 1.1rem; height: 1.1rem; margin-top: .17rem; color: var(--gold); }
.footer-bottom { display: flex; align-items: center; gap: 24px; margin-top: 32px; border-top: 1px solid #56594f; padding-top: 24px; }
.footer-bottom p { font-size: .76rem; margin: 0; }
.logo-cca-footer { width: 66px; padding: 4px; background: white; border-radius: 4px; }
.footer-notice { padding: 14px 5vw; background: var(--cream); }
#cookie-banner, #cookie-settings-modal {
    display: none; position: fixed; z-index: 1000; left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px));
    max-height: calc(100dvh - 32px); overflow: auto; padding: 23px; background: white;
    border: 1px solid var(--line); border-radius: var(--round); box-shadow: 0 12px 50px #1d211d33; font-size: .84rem;
}
#cookie-settings-modal { z-index: 1001; }
.cookie-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.cookie-btn { padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper); font-weight: 600; }
.cookie-accept, .cookie-save { background: var(--ink); color: white; }
@media (max-width: 950px) {
    .comparison-grid2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .comparison-box2, .comparison-box2:nth-last-child(-n+2) { grid-column: auto; }
    .comparison-box2:last-child { grid-column: 1/-1; }
    .footer-container { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    header { position: relative; }
    header .container { min-height: 64px; }
    .logo { width: 118px; }
    .warning-strip { font-size: .72rem; }
    .menu-toggle { display: flex; }
    .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 12px 5vw 18px; background: white; border-block: 1px solid var(--line); box-shadow: 0 15px 20px #20251d12; max-height: 70dvh; overflow-y: auto; }
    .menu-toggle[aria-expanded="true"] + .nav-links { display: grid; }
    .nav-links > li > a, .resources summary { padding: 14px; }
    .resources summary { justify-content: space-between; }
    .resource-list { position: static; width: auto; margin: 2px 4px 8px; box-shadow: none; }
    .intro-inner:has(.page-photo), .hero3, .hero5, .how-it-works-wrapper, .contact-section .contact-container, .faq-layout { grid-template-columns: 1fr; }
    .intro-copy nav { margin-bottom: 16px; }
    .page-photo { max-height: 280px; }
    .comparison-grid2, .offer-container, .debt-resources-wrapper, .debt-wrapper-right, .contact-options .contact-container, .benefits-section { grid-template-columns: 1fr; }
    .review-controls, .view-more-faqs { grid-column: auto; }
    .application-phone { width: min(85%, 300px); }
    .topic-nav { position: static; }
    .question-group { scroll-margin-top: 20px; }
    .footer-bottom { align-items: flex-start; }
}
@media (max-width: 480px) {
    .footer-container, .inline-fields { grid-template-columns: 1fr; }
    .footer-column-contact { overflow-wrap: anywhere; }
}

