/*
 * Hello Homy — art direction of the apps (design system V03) applied to the public site.
 * Loaded after landing-page-custom.min.css: it only overrides tokens and component finish, never the layout logic.
 * Tokens: canvas #FEFBF5, surface #FFF, ink #1B1E36, ink-muted #5E5D6B, sky #7CC1EE, sky-soft #EAF4FB,
 * action #2A86D1 → link #1A6FC0, line #ECE7DE, radius card 22 / tile 18 / field 14 / pill 999, Poppins.
 */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins/poppins-bold.woff2") format("woff2"); }

:root {
    --hh-font: "Poppins", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --hh-canvas: #FEFBF5;
    --hh-ink: #1B1E36;
    --hh-ink-muted: #5E5D6B;
    --hh-sky: #7CC1EE;
    --hh-sky-soft: #EAF4FB;
    --hh-action: #2A86D1;
    --hh-link: #1A6FC0;
    --hh-line: #ECE7DE;
    --hh-butter-soft: #FEF0CF;
    --hh-mint-soft: #E3F5E7;
    --hh-blush-soft: #FDECEB;
    --hh-shadow-card: 0 1px 2px rgba(27, 30, 54, .04), 0 8px 24px rgba(27, 30, 54, .06);
    --hh-shadow-cta: 0 8px 20px rgba(42, 134, 209, .28);
    --hh-radius-card: 22px;
    --hh-radius-tile: 18px;
    --hh-radius-field: 14px;

    /* The existing landing tokens, pointed at the app palette. */
    --hh-text: var(--hh-ink);
    --hh-muted: var(--hh-ink-muted);
    --hh-bg: var(--hh-canvas);
    --hh-border: var(--hh-line);
    --hh-primary: var(--hh-link);
    --hh-primary-dark: #15528F;
    --hh-primary-soft: var(--hh-sky-soft);
    --hh-shadow: var(--hh-shadow-card);
    --bs-body-font-family: var(--hh-font);
    --bs-font-sans-serif: var(--hh-font);
    --bs-body-color: var(--hh-ink);
    --bs-heading-color: var(--hh-ink);
    --bs-body-bg: var(--hh-canvas);
}

/* Typography */
body, button, input, select, textarea, .btn, .form-control, .form-select, .navbar, .dropdown-menu, .accordion-button, .hh-consent { font-family: var(--hh-font) !important; }
body { background: var(--hh-canvas); color: var(--hh-ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { color: var(--hh-ink); font-family: var(--hh-font); letter-spacing: -.3px; }
.btn { --bs-btn-font-family: var(--hh-font); }
a { color: var(--hh-link); }
.text-primary { color: var(--hh-link) !important; }
.text-body, p { color: inherit; }

/* Header */
:is(.hh-home-v2, body) .hh-site-header { background: rgba(254, 251, 245, .9); border-bottom: 1px solid rgba(236, 231, 222, .9); }
:is(.hh-home-v2, body) .hh-site-header .nav-link, :is(.hh-home-v2, body) .hh-site-header .navbar-nav a { color: var(--hh-ink); font-weight: 500; }
:is(.hh-home-v2, body) .hh-site-header .nav-link:hover, :is(.hh-home-v2, body) .hh-site-header .navbar-nav a:hover { color: var(--hh-link); }

/* Buttons: pill, action gradient, white text kept at AA contrast (≥ 4.5:1 at the darkest stop under the text). */
:is(.hh-home-v2, body) .hh-btn, .btn { border-radius: 999px; font-weight: 600; letter-spacing: 0; }
:is(.hh-home-v2, body) .hh-btn-primary, .btn-primary {
    background: linear-gradient(180deg, #2277BE 0%, var(--hh-link) 100%) !important;
    border: 0 !important; color: #fff !important; box-shadow: var(--hh-shadow-cta);
}
:is(.hh-home-v2, body) .hh-btn-primary:hover, .btn-primary:hover, .btn-primary:focus-visible { background: linear-gradient(180deg, #1D6CAE 0%, #15528F 100%) !important; }
:is(.hh-home-v2, body) .hh-btn-secondary, .btn-outline-primary, .btn-light {
    background: var(--hh-sky-soft) !important; border: 0 !important; color: #15528F !important; box-shadow: none;
}
.btn:focus-visible, :is(.hh-home-v2, body) .hh-btn:focus-visible, a:focus-visible { outline: 3px solid var(--hh-sky); outline-offset: 2px; }

/* Chips */
:is(.hh-home-v2, body) .hh-kicker, :is(.hh-home-v2, body) .hh-pill { background: var(--hh-sky-soft); border: 0; color: #15528F; font-weight: 600; letter-spacing: .2px; }
:is(.hh-home-v2, body) .hh-hero-proof span, :is(.hh-home-v2, body) .hh-store-list span { background: #fff; color: var(--hh-ink); font-weight: 500; box-shadow: var(--hh-shadow-card); }

/* Hero: the cream canvas of the apps fades into the illustration. */
:is(.hh-home-v2, body) .hh-landing-hero {
    background-color: var(--hh-canvas);
    background-image: linear-gradient(90deg, #FEFBF5 0, #FEFBF5 46%, rgba(254, 251, 245, .88) 64%, rgba(254, 251, 245, .5) 100%), var(--hh-hero-image);
}
:is(.hh-home-v2, body) .hh-hero-content h1 { font-weight: 700; letter-spacing: -1px; }
:is(.hh-home-v2, body) .hh-hero-search .search-box-wrapper { border-radius: 999px !important; border: 0; box-shadow: 0 12px 40px rgba(27, 30, 54, .10); background: #fff !important; padding-inline: 8px; }
:is(.hh-home-v2, body) .hh-hero-search .btn { border-radius: 999px; font-weight: 600; background: linear-gradient(180deg, #2277BE 0%, var(--hh-link) 100%) !important; color: #fff !important; border: 0 !important; }

/* Sections */
:is(.hh-home-v2, body) .hh-section, :is(.hh-home-v2, body) .hh-trust-strip { background: var(--hh-canvas); }
:is(.hh-home-v2, body) .hh-section-soft { background: #FBF6EC; }
:is(.hh-home-v2, body) .hh-local-section { background: #FFF6E3; }
:is(.hh-home-v2, body) .hh-feature-band h2, :is(.hh-home-v2, body) .hh-local-content h2, :is(.hh-home-v2, body) .hh-section-heading h2, :is(.hh-home-v2, body) .hh-split h2 { font-weight: 700; letter-spacing: -.6px; }
:is(.hh-home-v2, body) .hh-feature-band p, :is(.hh-home-v2, body) .hh-local-content p, :is(.hh-home-v2, body) .hh-section-heading p, :is(.hh-home-v2, body) .hh-split > div > p { color: var(--hh-ink-muted); }

/* Cards: white, very rounded, soft wide shadow, no hard outline. */
:is(.hh-home-v2, body) .hh-provider-card, :is(.hh-home-v2, body) .hh-reason-card, :is(.hh-home-v2, body) .hh-service-card, :is(.hh-home-v2, body) .hh-step, :is(.hh-home-v2, body) .hh-testimonial-card, :is(.hh-home-v2, body) .hh-trust-card, :is(.hh-home-v2, body) .hh-empty-proof, :is(.hh-home-v2, body) .hh-faq .accordion-item, .card {
    background: #fff; border: 1px solid rgba(236, 231, 222, .7) !important; border-radius: var(--hh-radius-card) !important;
    box-shadow: var(--hh-shadow-card);
}
:is(.hh-home-v2, body) .hh-service-card { transition: transform .2s ease, box-shadow .2s ease; }
:is(.hh-home-v2, body) .hh-service-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(27, 30, 54, .05), 0 16px 36px rgba(27, 30, 54, .10); }
:is(.hh-home-v2, body) .hh-provider-card h3, :is(.hh-home-v2, body) .hh-reason-card h3, :is(.hh-home-v2, body) .hh-service-title, :is(.hh-home-v2, body) .hh-step h3, :is(.hh-home-v2, body) .hh-testimonial-author, :is(.hh-home-v2, body) .hh-trust-card h2 { font-weight: 600; }
/* Service card as in the app: a large 3D tile on top, then the title. */
:is(.hh-home-v2, body) .hh-service-card { grid-template-columns: 1fr !important; align-content: start; gap: 4px; padding: 20px; }
:is(.hh-home-v2, body) .hh-service-image { width: 80px !important; height: 80px !important; border-radius: var(--hh-radius-tile); background: linear-gradient(180deg, #F6FAFD 0%, var(--hh-sky-soft) 100%); margin-bottom: 10px; }
:is(.hh-home-v2, body) .hh-service-image img { width: 68px; height: 68px; max-width: 68px !important; max-height: 68px !important; object-fit: contain; }
:is(.hh-home-v2, body) .hh-service-title { margin-top: 4px !important; font-size: 17px; }
:is(.hh-home-v2, body) .hh-card-link { color: var(--hh-link); font-weight: 600; }
:is(.hh-home-v2, body) .hh-card-link::after { content: " →"; }
:is(.hh-home-v2, body) .hh-step span { background: var(--hh-sky); color: var(--hh-ink); font-weight: 700; }
:is(.hh-home-v2, body) .hh-feature-band { background: var(--hh-sky-soft); border-radius: var(--hh-radius-card); }
:is(.hh-home-v2, body) .hh-feature-band-light { background: var(--hh-blush-soft); }
:is(.hh-home-v2, body) .hh-empty-proof img, :is(.hh-home-v2, body) .hh-feature-band img, :is(.hh-home-v2, body) .hh-split-image, :is(.hh-home-v2, body) .hh-provider-characters { border-radius: var(--hh-radius-tile) !important; box-shadow: none; }
:is(.hh-home-v2, body) .hh-city-pill { background: #fff; border: 0; border-radius: 999px; box-shadow: var(--hh-shadow-card); font-weight: 500; transition: background .2s ease, color .2s ease; }
:is(.hh-home-v2, body) .hh-city-pill:hover { background: var(--hh-sky-soft); color: #15528F; }
:is(.hh-home-v2, body) .hh-faq .accordion-button { font-weight: 600; }
:is(.hh-home-v2, body) .hh-faq .accordion-button:not(.collapsed) { background: var(--hh-sky-soft); color: var(--hh-ink); }
:is(.hh-home-v2, body) .hh-how-video video { border-radius: var(--hh-radius-card); background: var(--hh-ink); }

/* Forms */
.form-control, .form-select, .select2-container .select2-selection { border-radius: var(--hh-radius-field) !important; border-color: var(--hh-line); }
.form-control:focus, .form-select:focus { border-color: var(--hh-sky); box-shadow: 0 0 0 4px rgba(124, 193, 238, .25); }

/* Footer: night blue of the brand instead of slate. */
:is(.hh-home-v2, body) .hh-footer { background: var(--hh-ink); }
:is(.hh-home-v2, body) .hh-footer h2 { font-weight: 600; }

/* Directory pages (catalogue, providers, blog, categories): centred like the home page. */
:is(.hh-home-v2, body) .hh-directory-shell, .section-padding { background: var(--hh-canvas); }
:is(.hh-home-v2, body) .hh-directory-shell > .container, .section-padding > .container { max-width: 1200px; }
.dataTables_wrapper .pagination .page-link { border-radius: 999px !important; border: 0; margin: 0 2px; color: var(--hh-ink); }
.dataTables_wrapper .pagination .active .page-link { background: var(--hh-link); color: #fff; }

/* Editorial pages (about, help, legal). */
.hh-doc { padding: 56px 0 88px; }
.hh-doc > .container { max-width: 820px; }
.hh-doc-head { margin-bottom: 8px; }
.hh-doc-head h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -.8px; margin: 14px 0 0; }
.hh-doc-body { background: #fff; border-radius: var(--hh-radius-card); box-shadow: var(--hh-shadow-card); padding: clamp(24px, 5vw, 48px); margin-top: 24px;
    color: #34364A; font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.hh-doc-body h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; letter-spacing: -.6px; line-height: 1.2; margin: 0 0 12px; }
.hh-doc-body h2 { font-size: 22px; font-weight: 600; margin: 36px 0 12px; line-height: 1.3; }
.hh-doc-body h3 { font-size: 18px; font-weight: 600; margin: 28px 0 10px; }
.hh-doc-body h4, .hh-doc-body h5 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; }
.hh-doc-body p, .hh-doc-body li { color: #34364A; }
.hh-doc-body ul, .hh-doc-body ol { padding-left: 1.3em; }
.hh-doc-body li + li { margin-top: 6px; }
.hh-doc-body a { color: var(--hh-link); text-decoration: underline; text-underline-offset: 2px; }
.hh-doc-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; }
.hh-doc-body th, .hh-doc-body td { border-bottom: 1px solid var(--hh-line); padding: 10px 8px; text-align: left; vertical-align: top; }
.hh-doc-body > h1:first-child + p { color: var(--hh-ink-muted); font-size: 14px; }
.hh-doc-body hr { border-color: var(--hh-line); opacity: 1; margin: 32px 0; }

@media (prefers-reduced-motion: reduce) {
    .hh-service-card, .hh-city-pill { transition: none; }
    :is(.hh-home-v2, body) .hh-service-card:hover { transform: none; }
}

/* Catalogue card without a photo of its own: the category's 3D icon on a soft tile. */
.hh-service-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; width: 100%;
    border-radius: var(--hh-radius-tile); background: linear-gradient(180deg, #F6FAFD 0%, var(--hh-sky-soft) 100%); }
.hh-service-thumb img { width: 96px; height: 96px; object-fit: contain; }
.service-box-card { background: #fff !important; border-radius: var(--hh-radius-card) !important; box-shadow: var(--hh-shadow-card); padding: 12px; }
.service-box-card .service-heading, .service-box-card h5 { font-family: var(--hh-font); font-weight: 600; color: var(--hh-ink); }
.category-card { border-radius: var(--hh-radius-card); }
.category-card .img-bg { border-radius: var(--hh-radius-tile) !important; background: linear-gradient(180deg, #F6FAFD 0%, var(--hh-sky-soft) 100%) !important; }

/* Provider page: a white card in the apps' style instead of the template's purple block. */
.provider-profile-card { background: #fff !important; border-radius: var(--hh-radius-card); box-shadow: var(--hh-shadow-card); border: 1px solid rgba(236, 231, 222, .7); }
.provider-profile-card .text-white, .provider-profile-card h5, .provider-profile-card h6 { color: var(--hh-ink) !important; }
.provider-profile-card .fa-star { color: #CFAA67 !important; }
.provider-profile-card img.avatar-180 { border-color: var(--hh-sky-soft) !important; }
.hh-provider-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hh-provider-stats li { background: var(--hh-sky-soft); border-radius: var(--hh-radius-tile); padding: 14px 10px; text-align: center; }
.hh-provider-stats strong { display: block; font-size: 24px; font-weight: 700; color: #15528F; line-height: 1.1; }
.hh-provider-stats span { display: block; font-size: 13px; color: var(--hh-ink-muted); margin-top: 4px; }
.hh-empty-note { background: #fff; border-radius: var(--hh-radius-card); box-shadow: var(--hh-shadow-card); padding: 28px; }
.hh-empty-note h4 { font-weight: 600; margin: 0 0 8px; }
.hh-empty-note p { color: var(--hh-ink-muted); margin: 0 0 18px; }

/* Local pages (communes, commune × trade). */
.hh-breadcrumb { font-size: 14px; color: var(--hh-ink-muted); margin-bottom: 18px; }
.hh-breadcrumb a { color: var(--hh-link); text-decoration: none; }
.hh-local-title { font-size: clamp(32px, 4.4vw, 48px); font-weight: 700; letter-spacing: -1px; line-height: 1.1; margin: 14px 0 0; }
.hh-zone-title { font-size: 20px; font-weight: 600; margin: 8px 0 14px; }
.hh-local-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; background: #fff;
    border-radius: var(--hh-radius-card); box-shadow: var(--hh-shadow-card); padding: clamp(24px, 4vw, 44px); }
.hh-local-hero p { color: var(--hh-ink-muted); font-size: 17px; line-height: 1.7; margin: 14px 0 0; max-width: 640px; }
.hh-local-hero .hh-btn { margin-top: 22px; }
.hh-local-hero-icon { width: 160px; height: 160px; border-radius: 32px; background: linear-gradient(180deg, #F6FAFD 0%, var(--hh-sky-soft) 100%);
    display: flex; align-items: center; justify-content: center; }
.hh-local-hero-icon img { width: 120px; height: 120px; object-fit: contain; }
@media (max-width: 767.98px) { .hh-local-hero { grid-template-columns: 1fr; } .hh-local-hero-icon { display: none; } }
/* A commune name is never cut at its hyphen (« Saint- / Denis »). */
.hh-section-heading:has(.hh-local-title) { width: min(960px, 100%); }
.hh-local-title { text-wrap: balance; }

/* Phones: the hero text sits on plain cream (the illustration's big « Hello Homy » no longer runs behind it), and
   the stacked search keeps card corners instead of a pill stretched into a blob. */
@media (max-width: 767.98px) {
    :is(.hh-home-v2, body) .hh-landing-hero { background-image: linear-gradient(180deg, #FEFBF5 0, #FEFBF5 100%) !important; }
    :is(.hh-home-v2, body) .hh-hero-search .search-box-wrapper { border-radius: var(--hh-radius-card) !important; padding: 8px; }
}

/* The theme still forces Manrope/Inter on a few blocks: Poppins everywhere text is read. */
.hh-auth-page, .hh-auth-page p, .hh-auth-page h1, .hh-auth-page h2, .hh-auth-page label, .hh-auth-page a, .hh-auth-page span:not([class*="fa"]),
.iq-blog .iq-post-details, .blog-meta-data, .author-block, .booking .booking-date, .category-tab-list .nav-tabs .category-title,
table.provider-detail-info td h6, .service-box-card .price-content li, .service-user-name, .iq-testimonial .testimonial-content,
.iq-breadcrumb .breadcrumb-item { font-family: var(--hh-font) !important; }

/* Phones: on login, sign-up and password pages the form comes first, the illustration after. */
@media (max-width: 991.98px) {
    .hh-auth-shell { display: flex !important; flex-direction: column; }
    .hh-auth-panel { order: -1; }
}

.hh-legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; padding: 18px 16px 28px; font-size: 13px; }
.hh-legal-links a { color: #5E5D6B; text-decoration: none; }
.hh-legal-links a:hover { color: #1A6FC0; text-decoration: underline; }
.hh-reviews-visual { display: block; width: min(720px, 100%); border-radius: var(--hh-radius-card); margin: 0 0 28px; box-shadow: var(--hh-shadow-card); }

/* Tables in editorial pages (privacy, terms): the theme sets td { white-space: nowrap } and a 4-column table grew to
   3 800 px. Text wraps; on a narrow screen the table scrolls inside its card instead of widening the page. */
.hh-doc-body table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hh-doc-body th, .hh-doc-body td { white-space: normal !important; min-width: 140px; overflow-wrap: break-word; word-break: normal; }
.hh-doc-body thead th, .hh-doc-body tr:first-child th { background: #FBF7EF; font-weight: 600; }
