/* ═══════════════════════════════════════════════════════════════
   HAUSFEEN — Production CSS
   Brand: #2CCCD3 primary, #0F2E36 dark, #FFD447 accent
   Design: Sharp edges, shadows > borders, editorial minimal
   ═══════════════════════════════════════════════════════════════ */

:root {
    --pri: #2CCCD3; --pri-dk: #1A9EA5; --pri-lt: #E8F8F9; --pri-10: rgba(44,204,211,0.08);
    --dk: #0F2E36; --dk-lt: #1A3D47; --dk-90: rgba(15,46,54,0.9);
    --acc: #FFD447; --acc-lt: #FFF8E1; --acc-dk: #B8960A;
    --bg: #F7F9FA; --w: #fff;
    --g50: #F5F6F7; --g100: #EAECEE; --g200: #D2D7DB;
    --g300: #8A939B; --g400: #576068; --g500: #2D363E;
    --green: #0B7D5C; --green-lt: #D1FAE5;
    --red: #C62917; --red-lt: #FEE2E2;
    --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --sh-sm: 0 1px 4px rgba(15,46,54,0.06);
    --sh-md: 0 4px 20px rgba(15,46,54,0.08);
    --sh-lg: 0 12px 40px rgba(15,46,54,0.12);
    --sh-xl: 0 24px 64px rgba(15,46,54,0.16);
    --sh-card: 0 2px 10px rgba(15,46,54,0.06);
    --sh-card-hover: 0 16px 48px rgba(15,46,54,0.12);
    --radius-sm: 0; --radius-md: 0; --radius-lg: 0;
    --transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 100%; scroll-behavior: smooth; }
html.text-large { font-size: 118%; }
html.text-xlarge { font-size: 140%; }
body { font-family: var(--font); font-size: 1rem; color: var(--g400); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--dk); }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); font-size: 0.95rem; }
h1, h2, h3, h4 { color: var(--dk); line-height: 1.2; letter-spacing: -0.02em; }
::selection { background: rgba(44,204,211,0.2); }

/* ─── Focus & A11y ─── */
*:focus-visible { outline: 2px solid var(--pri); outline-offset: 2px; }
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; z-index: 300; background: var(--pri); color: #fff; padding: 0.5rem 1rem; font-size: 1rem; }
.skip-link:focus { left: 0; width: auto; height: auto; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* ─── Layout ─── */
.container { max-width: 1120px; margin: 0 auto; padding-left: 2rem; padding-right: 2rem; }

/* ═══ NAVBAR ═══ */
.navbar { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--sh-sm); }
.navbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.navbar-left { display: flex; align-items: center; gap: 2.5rem; }
.navbar-right { display: flex; align-items: center; gap: 0.5rem; }
.logo { font-size: 1.2rem; font-weight: 800; color: var(--dk); letter-spacing: -0.03em; display: flex; align-items: center; }
.logo img { height: 36px; }
.logo span { color: var(--pri); }
.nav-links { display: flex; gap: 0; }
.nav-link { display: inline-flex; align-items: center; padding: 0.4rem 0.85rem; font-size: 0.82rem; font-weight: 500; color: var(--g400); border: none; background: none; border-bottom: 2px solid transparent; min-height: 44px; transition: var(--transition); }
.nav-link:hover { color: var(--dk); }
.nav-link.active { color: var(--dk); font-weight: 700; border-bottom-color: var(--acc); }
.nav-link-muted { font-size: 0.85rem; color: var(--g300); min-height: 44px; display: flex; align-items: center; padding: 0 0.5rem; }
.nav-icon { color: var(--g300); display: flex; align-items: center; min-width: 44px; min-height: 44px; justify-content: center; position: relative; transition: color 0.15s; }
.nav-icon:hover { color: var(--dk); }
.avatar-small { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--pri), var(--pri-dk)); color: #fff; font-weight: 700; font-size: 0.7rem; display: flex; align-items: center; justify-content: center; border: none; transition: transform 0.15s; }
.avatar-small:hover { transform: scale(1.06); }

/* A11y Toolbar */
.a11y-toolbar { display: flex; gap: 2px; background: var(--g50); padding: 2px; margin-right: 0.3rem; }
.a11y-btn { padding: 4px 8px; border: none; background: transparent; color: var(--g300); font-weight: 500; min-width: 28px; min-height: 28px; font-size: 12px; transition: var(--transition); }
.a11y-btn.active { background: var(--w); color: var(--dk); font-weight: 700; box-shadow: var(--sh-sm); }

/* Badge Dot */
.badge-dot { position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; background: var(--red); color: #fff; font-size: 0.6rem; font-weight: 700; border-radius: 99px; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }

/* User Dropdown */
.user-menu { position: relative; }
.user-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: var(--w); box-shadow: var(--sh-lg); min-width: 200px; z-index: 200; border: 1px solid var(--g100); }
.user-dropdown.open { display: block; }
.user-dropdown a { display: block; padding: 0.6rem 1rem; font-size: 0.82rem; color: var(--g500); transition: background 0.1s; }
.user-dropdown a:hover { background: var(--g50); color: var(--dk); }

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--g400); padding: 8px; min-width: 44px; min-height: 44px; }

/* ═══ BUTTONS ═══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.8rem 1.6rem; font-size: 0.88rem; font-weight: 600; border: none; border-radius: 0; min-height: 44px; transition: var(--transition); letter-spacing: -0.01em; }
.btn-primary { background: var(--pri); color: #fff; box-shadow: 0 2px 12px rgba(44,204,211,0.25); }
.btn-primary:hover { background: var(--pri-dk); box-shadow: 0 4px 20px rgba(44,204,211,0.35); transform: translateY(-1px); }
.btn-gold { background: var(--acc); color: var(--dk); box-shadow: 0 2px 12px rgba(255,212,71,0.3); }
.btn-gold:hover { background: #e6c23e; transform: translateY(-1px); }
.btn-dark { background: var(--dk); color: #fff; }
.btn-dark:hover { background: var(--dk-lt); }
.btn-outline { background: transparent; border: 1.5px solid var(--pri); color: var(--pri-dk); }
.btn-outline:hover { background: var(--pri-lt); }
.btn-ghost { background: transparent; color: var(--g400); border: 1px solid var(--g200); }
.btn-ghost:hover { background: var(--g50); color: var(--dk); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; min-height: 36px; }
.btn-lg { padding: 1rem 2rem; font-size: 0.95rem; }
.btn-full { width: 100%; }

/* ═══ CARDS ═══ */
.card { background: var(--w); box-shadow: var(--sh-card); transition: var(--transition); overflow: hidden; }
.card:hover { box-shadow: var(--sh-card-hover); transform: translateY(-4px); }
.card a { display: block; text-decoration: none; color: inherit; }

/* ═══ TAGS ═══ */
.tag { display: inline-block; font-size: 0.72rem; font-weight: 500; color: var(--g400); background: var(--g50); padding: 0.3rem 0.6rem; letter-spacing: 0.01em; border: 1px solid var(--g100); }
.tag-pri { background: var(--pri-lt); color: var(--pri-dk); border-color: transparent; }

/* ═══ BADGES ═══ */
.gold-badge { display: inline-flex; align-items: center; gap: 5px; background: var(--acc-lt); padding: 0.25rem 0.65rem; margin-bottom: 0.6rem; }
.gold-badge span { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc-dk); }
.verified { display: inline-flex; align-items: center; gap: 3px; font-size: 0.7rem; font-weight: 700; color: var(--pri-dk); background: var(--pri-lt); padding: 0.15rem 0.45rem; }
.section-overline { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pri-dk); }

/* ═══ STAT BAR ═══ */
.stat-bar { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--w); box-shadow: var(--sh-md); }
.stat-cell { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid var(--g100); }
.stat-cell:last-child { border-right: none; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--dk); letter-spacing: -0.02em; }
.stat-label { font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--g300); margin-top: 3px; }

/* ═══ SEARCH BAR ═══ */
.search-bar { display: flex; box-shadow: var(--sh-lg); overflow: hidden; }
.search-bar input { border: none; outline: none; flex: 1; font-size: 0.95rem; color: var(--dk); background: var(--w); min-width: 0; padding: 1rem 1.1rem; }
.search-bar input::placeholder { color: var(--g300); }
.search-bar .search-btn { padding: 1rem 2rem; border: none; background: var(--pri); color: #fff; font-weight: 700; font-size: 0.92rem; cursor: pointer; white-space: nowrap; min-height: 44px; transition: background 0.15s; }
.search-bar .search-btn:hover { background: var(--pri-dk); }

/* ═══ HERO ═══ */
.hero { background: var(--w); }
.hero > .container { display: flex; align-items: stretch; min-height: 540px; }
.hero-left { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 3rem 5rem 3rem 0; }
.hero-right { width: 42%; flex-shrink: 0; overflow: hidden; position: relative; background: linear-gradient(145deg, var(--dk) 0%, rgba(44,204,211,0.25) 100%); min-height: 420px; }

/* ═══ STEPS ═══ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.step-number { width: 46px; height: 46px; background: var(--acc); display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 800; color: var(--dk); margin-bottom: 1rem; }

/* ═══ STATS DARK ═══ */
.stats-dark { background: var(--dk); }

/* ═══ CTA BAR ═══ */
.cta-bar { display: flex; justify-content: space-between; align-items: center; padding: 2.8rem 0; flex-wrap: wrap; gap: 1.2rem; }

/* ═══ CARDS GRID ═══ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }

/* ═══ JOB ROW ═══ */
.job-row { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.3rem; background: var(--w); box-shadow: var(--sh-sm); margin-bottom: 2px; transition: var(--transition); }
.job-row:hover { box-shadow: var(--sh-md); }

/* ═══ SECTION TITLES ═══ */
.section-title { font-size: 1.5rem; font-weight: 700; color: var(--dk); margin: 0.5rem 0 2.2rem; letter-spacing: -0.025em; }

/* ═══ FORMS ═══ */
.form-group { margin-bottom: 1.1rem; }
.form-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--g300); margin-bottom: 0.45rem; }
.form-input { width: 100%; padding: 0.8rem 0.95rem; border: 1px solid var(--g200); background: var(--w); font-size: 0.95rem; color: var(--dk); transition: var(--transition); }
.form-input:focus { border-color: var(--pri); outline: none; box-shadow: 0 0 0 3px rgba(44,204,211,0.1); }
.form-input::placeholder { color: var(--g300); }
select.form-input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A939B' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 2.5rem; }

.alert { padding: 0.9rem 1.1rem; font-size: 0.88rem; margin-bottom: 1.1rem; font-weight: 500; }
.alert-error { background: var(--red-lt); color: var(--red); }
.alert-success { background: var(--green-lt); color: var(--green); }

/* ═══ PROGRESS ═══ */
.progress { display: flex; gap: 4px; margin-bottom: 2.2rem; }
.progress-step { flex: 1; height: 3px; background: var(--g100); transition: background 0.3s; }
.progress-step.active { background: var(--acc); }

/* ═══ AVAILABILITY DAYS ═══ */
.day { width: 44px; padding: 0.65rem 0; text-align: center; font-size: 0.8rem; font-weight: 600; transition: var(--transition); }
.day-available { background: var(--acc-lt); border: 1.5px solid var(--acc); color: var(--acc-dk); }
.day-unavailable { background: var(--g50); border: 1px solid var(--g100); color: var(--g300); }

/* ═══ FILTER BUTTONS ═══ */
.filter-btn { padding: 0.4rem 0.9rem; font-size: 0.78rem; font-weight: 600; border: 1px solid var(--g200); background: transparent; color: var(--g400); min-height: 36px; transition: var(--transition); cursor: pointer; }
.filter-btn:hover { border-color: var(--g300); color: var(--dk); }
.filter-btn.active { background: var(--dk); color: #fff; border-color: var(--dk); }

/* ═══ TRUST SECTION ═══ */
.trust-grid { display: grid; grid-template-columns: 1fr 40%; gap: 3.5rem; align-items: center; }
.trust-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.trust-icon { width: 36px; height: 36px; background: var(--pri-lt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.trust-item h3 { font-size: 0.92rem; font-weight: 700; color: var(--dk); margin-bottom: 3px; }
.trust-item p { font-size: 0.85rem; color: var(--g400); line-height: 1.55; margin: 0; }

/* ═══ FOOTER ═══ */
.footer { border-top: 1px solid var(--g100); padding: 3.5rem 0 1.5rem; background: var(--w); }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { font-size: 0.82rem; color: var(--g300); margin-top: 0.5rem; max-width: 240px; line-height: 1.55; }
.footer-nav { display: flex; gap: 3.5rem; }
.footer-nav h4 { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--g300); margin-bottom: 0.7rem; }
.footer-nav a { display: block; font-size: 0.82rem; color: var(--g400); margin-bottom: 0.45rem; transition: color 0.15s; }
.footer-nav a:hover { color: var(--dk); }
.footer-bottom { border-top: 1px solid var(--g100); padding-top: 1.2rem; font-size: 0.75rem; color: var(--g300); }

/* ═══ MESSAGES ═══ */
.msg-list { max-height: 500px; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.msg-bubble { max-width: 75%; padding: 0.7rem 1rem; font-size: 0.88rem; line-height: 1.5; }
.msg-mine { background: var(--pri); color: #fff; margin-left: auto; }
.msg-other { background: var(--g50); color: var(--dk); }
.msg-time { font-size: 0.68rem; color: var(--g300); margin-top: 3px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 900px) {
    .hero > .container { flex-direction: column; min-height: auto; }
    .hero-left { padding: 2.5rem 0; }
    .hero-right { width: 100%; max-height: 320px; min-height: 260px; }
    .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .stat-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-cell:nth-child(2) { border-right: none; }
    .cta-bar { flex-direction: column; text-align: center; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-grid img { display: none; }
}

@media (max-width: 600px) {
    .container { padding-left: 1rem; padding-right: 1rem; }
    .mobile-menu-btn { display: flex; align-items: center; justify-content: center; }
    .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--w); box-shadow: var(--sh-md); flex-direction: column; padding: 0.5rem 0; z-index: 200; }
    .nav-links.open { display: flex; }
    .nav-links .nav-link { padding: 0.8rem 1.5rem; border-bottom: none; width: 100%; }
    .search-bar { flex-direction: column; }
    .search-bar .search-btn { width: 100%; }
    .cards-grid { grid-template-columns: 1fr; }
    .stat-bar { grid-template-columns: 1fr; }
    .stat-cell { border-right: none !important; border-bottom: 1px solid var(--g100); }
    .stat-cell:last-child { border-bottom: none; }
    .footer-nav { flex-direction: column; gap: 1.5rem; }
    .hero-right { max-height: 220px; }
    .a11y-toolbar { display: none; }
    .hero-left { padding: 2rem 0; }
    h1 { font-size: 1.5rem !important; }
}

/* ─── Pricing Grid Responsive ─── */
@media (max-width: 900px) {
    .container table { font-size: 0.78rem; }
}
@media (max-width: 600px) {
    [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
    .container table th, .container table td { padding: 0.5rem 0.6rem; font-size: 0.75rem; }
}

/* ─── Search Sidebar Responsive ─── */
@media (max-width: 900px) {
    [style*="grid-template-columns:260px 1fr"] { grid-template-columns: 1fr !important; }
    [style*="grid-template-columns:260px 1fr"] > aside { position: static !important; }
}

/* ─── Dashboard Grid Responsive ─── */
@media (max-width: 900px) {
    [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* ─── Messages Full Height Responsive ─── */
@media (max-width: 600px) {
    [style*="width:320px"] { width: 100% !important; display: none !important; }
}
