/* PetSit AU — design system
   Warm, calm, Australian. Big type, generous space, zero clutter. */

:root {
  --sand: #fbf7f1;
  --sand-2: #f4ede3;
  --ink: #1d2321;
  --ink-2: #4d5a56;
  --ink-3: #7b8a85;
  --line: #e4dcd0;
  --card: #ffffff;

  --teal: #0f6b5c;
  --teal-2: #0b5348;
  --teal-soft: #e3f2ee;
  --coral: #e2613f;
  --coral-soft: #fdeee9;
  --gold: #e6a417;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(29, 35, 33, .04), 0 8px 24px rgba(29, 35, 33, .06);
  --shadow-lg: 0 2px 4px rgba(29, 35, 33, .05), 0 18px 48px rgba(29, 35, 33, .12);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, system-ui, sans-serif;
  --maxw: 1140px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --sand: #151918;
    --sand-2: #1d2322;
    --ink: #f2efe9;
    --ink-2: #b8c2be;
    --ink-3: #8b9591;
    --line: #2d3533;
    --card: #1e2423;
    --teal: #37b39a;
    --teal-2: #52c9b0;
    --teal-soft: #17322d;
    --coral: #f0805f;
    --coral-soft: #33211c;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.35), 0 18px 48px rgba(0,0,0,.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); letter-spacing: -0.03em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sand) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 8px; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.16rem; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--teal); color: #fff; font-size: 17px;
}
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 550; font-size: .93rem;
}
.nav a:hover { background: var(--sand-2); color: var(--ink); text-decoration: none; }
.nav a.on { color: var(--teal); background: var(--teal-soft); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; background: var(--teal); }
.nav a.btn-primary:hover { background: var(--teal-2); }
.nav a.btn-ghost, .nav a.btn-ghost:hover { color: var(--ink); background: var(--card); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 9px; padding: 7px 10px; font-size: 1.1rem; color: var(--ink); cursor: pointer; }
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--sand); border-bottom: 1px solid var(--line); padding: 10px; gap: 2px; display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a, .nav .btn { width: 100%; text-align: center; }
}
.badge-dot {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--coral); color: #fff; border-radius: 9px; font-size: .7rem; font-weight: 700; margin-left: 5px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 11px; font-weight: 650; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 2px 10px rgba(15,107,92,.25); }
.btn-primary:hover { background: var(--teal-2); color: #fff; }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 2px 10px rgba(226,97,63,.25); }
.btn-coral:hover { background: #cf5334; color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-quiet { background: transparent; color: var(--ink-2); }
.btn-quiet:hover { background: var(--sand-2); }
.btn-lg { padding: 15px 28px; font-size: 1.03rem; border-radius: 13px; }
.btn-sm { padding: 7px 13px; font-size: .85rem; border-radius: 9px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .87rem; margin-bottom: 6px; color: var(--ink-2); }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), select, textarea {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--card); color: var(--ink); font-size: .96rem; font-family: inherit;
  transition: border-color .12s, box-shadow .12s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 16px; }
.hint { font-size: .8rem; color: var(--ink-3); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* chip checkboxes */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: .88rem; cursor: pointer; user-select: none; font-weight: 550; color: var(--ink-2);
  transition: all .12s;
}
.chip input { display: none; }
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.switch { display: flex; align-items: center; gap: 10px; padding: 10px 0; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--teal); }
.switch span { font-weight: 500; font-size: .93rem; color: var(--ink); }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card-pad-lg { padding: 30px; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem;
  font-weight: 700; letter-spacing: .02em; background: var(--sand-2); color: var(--ink-2);
}
.tag-teal { background: var(--teal-soft); color: var(--teal); }
.tag-coral { background: var(--coral-soft); color: var(--coral); }
.tag-gold { background: #fdf3dd; color: #8a6206; }
@media (prefers-color-scheme: dark) { .tag-gold { background: #3a2f13; color: var(--gold); } }

/* ---------- sitter cards ---------- */
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.sitter-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.sitter-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--teal); text-decoration: none; }
.sitter-top { display: flex; gap: 13px; align-items: flex-start; }
.avatar {
  width: 54px; height: 54px; flex: 0 0 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--teal-soft); font-size: 26px;
}
.avatar-sm { width: 38px; height: 38px; flex-basis: 38px; border-radius: 11px; font-size: 19px; }
.avatar-lg { width: 86px; height: 86px; flex-basis: 86px; border-radius: 22px; font-size: 42px; }
.sitter-name { font-weight: 700; font-size: 1.06rem; color: var(--ink); letter-spacing: -.02em; }
.sitter-loc { font-size: .86rem; color: var(--ink-3); }
.stars { color: var(--gold); font-size: .87rem; font-weight: 600; }
.sitter-headline { font-size: .93rem; color: var(--ink-2); margin: 0; }
.rate { display: flex; align-items: baseline; gap: 4px; font-weight: 750; color: var(--ink); font-size: 1.25rem; letter-spacing: -.02em; }
.rate small { font-weight: 500; font-size: .8rem; color: var(--ink-3); }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* ---------- layout helpers ---------- */
.section { padding: 72px 0; }
.section-sm { padding: 44px 0; }
.center { text-align: center; }
.lede { font-size: 1.13rem; color: var(--ink-2); max-width: 62ch; }
.center .lede { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.spread { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.muted { color: var(--ink-3); }
.small { font-size: .87rem; }
.hide { display: none !important; }

/* ---------- alerts ---------- */
.alert { padding: 12px 16px; border-radius: 11px; font-size: .92rem; margin-bottom: 16px; border: 1px solid; }
.alert-err { background: var(--coral-soft); border-color: var(--coral); color: var(--coral); }
.alert-ok { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 60px; margin-top: 60px; background: var(--sand-2); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 12px; }
.foot-grid a { display: block; color: var(--ink-2); font-size: .92rem; padding: 4px 0; }

.skeleton { background: linear-gradient(90deg, var(--sand-2) 25%, var(--line) 37%, var(--sand-2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: var(--radius); height: 190px; }
@keyframes sk { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
