/* =====================================================================
   Cookaro — modern design layer (design-only, additive)
   New ck-* helper classes (zero collision) + conservative global polish.
   Loaded on every landing page via partials/_head.blade.php
   ===================================================================== */

:root {
    --ck-primary: var(--bs-primary, #ff5a1f);
    --ck-radius: 18px;
    --ck-radius-lg: 26px;
}

/* ---------------------------------------------------------------------
   1. Conservative global polish — applies site-wide, additive only
   --------------------------------------------------------------------- */
.main-content .btn {
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-color .18s ease;
}
.main-content .btn-primary:hover,
.main-content .btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px color-mix(in srgb, var(--ck-primary) 38%, transparent);
}
.main-content .form-control,
.main-content .form-select {
    transition: border-color .2s ease, box-shadow .2s ease;
}
.main-content .form-control:focus,
.main-content .form-select:focus {
    border-color: var(--ck-primary);
    box-shadow: 0 0 0 .22rem color-mix(in srgb, var(--ck-primary) 16%, transparent);
}
/* Smooth, modern image/card hovers wherever the theme uses these */
.main-content .service-box-card,
.main-content .iq-card,
.main-content .card {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

/* ---------------------------------------------------------------------
   2. Reusable page hero (header band for content & list pages)
   --------------------------------------------------------------------- */
.ck-page-hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 56px;
    background:
        radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--ck-primary) 14%, transparent) 0%, transparent 55%),
        radial-gradient(120% 140% at 0% 100%, color-mix(in srgb, #ffb347 16%, transparent) 0%, transparent 55%),
        var(--bs-body-bg);
    border-bottom: 1px solid var(--bs-border-color);
}
.ck-page-hero .ck-page-pill {
    display: inline-block;
    padding: .4rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .82rem;
    background: color-mix(in srgb, var(--ck-primary) 14%, transparent);
    color: var(--ck-primary);
    margin-bottom: 1rem;
}
.ck-page-hero .ck-page-title {
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}
.ck-page-hero .ck-page-sub {
    color: var(--bs-secondary-color);
    max-width: 620px;
    margin: .85rem auto 0;
    font-size: 1.05rem;
}
.ck-page-hero .ck-breadcrumb {
    list-style: none;
    display: inline-flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding: 0;
    margin: 1rem 0 0;
    font-size: .9rem;
}
.ck-page-hero .ck-breadcrumb a { color: var(--bs-secondary-color); text-decoration: none; }
.ck-page-hero .ck-breadcrumb a:hover { color: var(--ck-primary); }
.ck-page-hero .ck-breadcrumb .sep { color: var(--bs-border-color); }
.ck-page-hero .ck-breadcrumb .current { color: var(--ck-primary); font-weight: 600; }

/* ---------------------------------------------------------------------
   3. Content card + rich typography (legal / help / policy pages)
   --------------------------------------------------------------------- */
.ck-content-card {
    background: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--ck-radius-lg);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .06);
    padding: clamp(1.5rem, 4vw, 3.25rem);
}
.ck-rich { font-size: 1.02rem; line-height: 1.85; color: var(--bs-secondary-color); }
.ck-rich h1, .ck-rich h2, .ck-rich h3, .ck-rich h4, .ck-rich h5, .ck-rich h6 {
    color: var(--bs-body-color);
    font-weight: 700;
    margin: 1.8rem 0 .8rem;
    line-height: 1.3;
}
.ck-rich h1:first-child, .ck-rich h2:first-child, .ck-rich h3:first-child { margin-top: 0; }
.ck-rich p { margin-bottom: 1.1rem; }
.ck-rich ul, .ck-rich ol { padding-left: 1.25rem; margin-bottom: 1.1rem; }
.ck-rich li { margin-bottom: .5rem; }
.ck-rich a { color: var(--ck-primary); text-decoration: none; }
.ck-rich a:hover { text-decoration: underline; }
.ck-rich img { max-width: 100%; height: auto; border-radius: 14px; }
.ck-rich blockquote {
    border-left: 4px solid var(--ck-primary);
    background: color-mix(in srgb, var(--ck-primary) 6%, transparent);
    padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; margin: 1.4rem 0;
}
.ck-rich table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.ck-rich th, .ck-rich td { border: 1px solid var(--bs-border-color); padding: .7rem .9rem; }

/* ---------------------------------------------------------------------
   4. Auth page polish (login / register / provider register / forgot)
   --------------------------------------------------------------------- */
.ck-auth .form-control,
.ck-auth .form-select {
    border-radius: 12px;
    padding: .8rem 1rem;
    background: var(--bs-body-bg);
}
.ck-auth .btn-primary,
.ck-auth .btn.bg-primary {
    border-radius: 12px;
    padding: .8rem 1rem;
    font-weight: 600;
}
.ck-auth .auth-card,
.ck-auth .login-card {
    border-radius: var(--ck-radius-lg);
}

/* ---------------------------------------------------------------------
   5. Header / navigation — modern, attractive (CSS-only, no markup change)
   --------------------------------------------------------------------- */
/* Top utility bar (helpline + language) */
header .top-header {
    background: linear-gradient(90deg, var(--ck-primary), color-mix(in srgb, var(--ck-primary) 65%, #c2410c)) !important;
    padding: .4rem 0;
    font-size: .9rem;
}
header .top-header a { transition: opacity .2s ease, transform .2s ease; }
header .top-header a:hover { opacity: .88; }
header .top-header .dropdown-menu {
    border-radius: 12px;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
    padding: .4rem;
}
header .top-header .dropdown-item { border-radius: 8px; padding: .5rem .8rem; }
header .top-header .dropdown-item:hover { background: color-mix(in srgb, var(--ck-primary) 12%, transparent); color: var(--ck-primary); }

/* Main navbar — soft glass + shadow */
header .iq-navbar {
    background: color-mix(in srgb, var(--bs-body-bg) 90%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 6px 26px rgba(0, 0, 0, .06);
    border-bottom: 1px solid var(--bs-border-color);
}

/* Nav links with animated underline + brand active state */
.iq-nav-menu .nav-link {
    position: relative;
    font-weight: 600;
    padding: .5rem .15rem !important;
    margin: 0 .85rem;
    color: var(--bs-body-color);
    transition: color .2s ease;
}
.iq-nav-menu .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    height: 2px;
    width: 0;
    background: var(--ck-primary);
    border-radius: 2px;
    transition: width .25s ease;
}
.iq-nav-menu .nav-link:hover { color: var(--ck-primary); }
.iq-nav-menu .nav-link:hover::after,
.iq-nav-menu .nav-link.active::after { width: 100%; }
.iq-nav-menu .nav-link.active { color: var(--ck-primary); }

/* Login button → pill */
header .right-panel .btn-outline-primary {
    border-radius: 50px;
    padding: .55rem 1.4rem;
    font-weight: 600;
    border-width: 2px;
}
header .right-panel .btn-outline-primary:hover {
    background: var(--ck-primary);
    border-color: var(--ck-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--ck-primary) 36%, transparent);
}

/* Icon nav items (dark-mode, wishlist) — circular hover */
header .navbar-nav .theme-scheme-dropdown .nav-link,
header .navbar-nav #wishlist {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
header .navbar-nav .theme-scheme-dropdown .nav-link:hover,
header .navbar-nav #wishlist:hover {
    background: color-mix(in srgb, var(--ck-primary) 12%, transparent);
    color: var(--ck-primary);
    transform: translateY(-1px);
}

/* User avatar + dropdown */
header .user-dropdown .avatar-50 {
    border: 2px solid color-mix(in srgb, var(--ck-primary) 45%, transparent);
    padding: 1px;
}
header .user-dropdown-menu {
    border-radius: 16px;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 18px 46px rgba(0, 0, 0, .14);
    overflow: hidden;
    min-width: 240px;
}
header .user-dropdown-menu .dropdown-item { padding: .6rem 1rem; border-radius: 10px; margin: 0 .35rem; width: auto; }
header .user-dropdown-menu .dropdown-item:hover { background: color-mix(in srgb, var(--ck-primary) 10%, transparent); color: var(--ck-primary); }

/* Mobile menu toggle */
header .navbar-toggler { border: 0; }

/* ---------------------------------------------------------------------
   6. Footer — modern dark, attractive (CSS-only, no markup change)
   --------------------------------------------------------------------- */
.footer {
    position: relative;
    background: linear-gradient(180deg, #131a2b 0%, #0b1018 100%) !important;
    overflow: hidden;
}
.footer::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ck-primary), #ffb347);
}
.footer::after {
    content: "";
    position: absolute;
    width: 420px; height: 420px;
    border-radius: 50%;
    background: var(--ck-primary);
    filter: blur(120px);
    opacity: .12;
    top: -180px; right: -120px;
    pointer-events: none;
}
.footer .footer-top { padding-top: 1rem; padding-bottom: 2.25rem; position: relative; z-index: 1; }
/* Trim the large default top spacing on the inner content */
.footer .footer-top .footer-inner-box > p.mt-5 { margin-top: 1.25rem !important; }
.footer .footer-top .mt-5.pt-lg-3 { margin-top: 1.25rem !important; padding-top: 0 !important; }
.footer .footer-top .mt-5.pt-lg-5 { margin-top: 1.5rem !important; padding-top: 0 !important; }
.footer h5 { font-weight: 700; margin-bottom: 1.1rem; letter-spacing: .2px; }
.footer .readmore-btn { color: var(--ck-primary); font-weight: 600; }
.footer .footer-top .content a { color: rgba(255, 255, 255, .85); transition: color .2s ease; }
.footer .footer-top .content a:hover { color: var(--ck-primary); }
.footer .custom-border-left { border-left: 1px solid rgba(255, 255, 255, .1); }

/* Social links as pill chips */
.footer .iq-social-list-text { gap: .6rem; }
.footer .iq-social-list-text li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.footer .iq-social-list-text li a {
    display: inline-block;
    padding: .45rem 1.05rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    font-size: .85rem;
    font-weight: 500;
    transition: background-color .2s ease, transform .2s ease;
}
.footer .iq-social-list-text li a:hover { background: var(--ck-primary); transform: translateY(-2px); }

/* Popular category links as soft chips */
.footer .iq-footer-catogery-list { gap: .55rem; }
.footer .iq-footer-catogery-list li { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.footer .iq-footer-catogery-list li a {
    display: inline-block;
    padding: .38rem .95rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .85) !important;
    font-size: .84rem;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer .iq-footer-catogery-list li a:hover { background: var(--ck-primary); color: #fff !important; transform: translateY(-2px); }

/* Popular service thumbnails */
.footer .popular-service-list li a img { border-radius: 14px; transition: transform .3s ease, box-shadow .3s ease; }
.footer .popular-service-list li:hover a img { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0, 0, 0, .35); }
.footer .popular-service-text { color: rgba(255, 255, 255, .85); }

/* Bottom bar */
.footer .footer-bottom {
    background: rgba(0, 0, 0, .28);
    border-top: 1px solid rgba(255, 255, 255, .08);
    position: relative;
    z-index: 1;
}
.footer .footer-bottom p,
.footer .footer-bottom .text-white { color: rgba(255, 255, 255, .72) !important; }
.footer .footer-bottom a,
.footer .footer-bottom .link-primary { color: rgba(255, 255, 255, .85) !important; transition: color .2s ease; }
.footer .footer-bottom a:hover,
.footer .footer-bottom .link-primary:hover { color: var(--ck-primary) !important; }
/* Keep policy links on a single line */
.footer .footer-bottom .d-inline-flex { gap: .85rem !important; }
.footer .footer-bottom a,
.footer .footer-bottom .link-primary { font-size: .85rem; white-space: nowrap; }
@media (min-width: 992px) {
    .footer .footer-bottom .d-inline-flex { flex-wrap: nowrap !important; }
}

@media (max-width: 991.98px) {
    .footer .custom-border-left { border-left: 0; }
    .iq-nav-menu .nav-link { margin: .2rem 0; }
}
