:root {
  color-scheme: light;
  --ink: #18231f;
  --muted: #5d6a63;
  --line: #dce4dd;
  --paper: #fbfbf7;
  --panel: #ffffff;
  --sage: #3f6d57;
  --sage-dark: #254b3b;
  --sky: #d8edf2;
  --clay: #c06f45;
  --gold: #f4c76a;
  --danger: #9a3412;
  --shadow: 0 24px 70px rgba(24, 35, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  color: #fff;
  background: linear-gradient(180deg, rgba(11, 22, 18, 0.74), rgba(11, 22, 18, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-weight: 800;
  background: var(--gold);
  color: #2a2411;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.78);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 112px clamp(18px, 5vw, 76px) 84px;
  overflow: hidden;
  color: #fff;
}

.hero picture,
.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 20, 16, 0.86), rgba(8, 20, 16, 0.52) 46%, rgba(8, 20, 16, 0.08)),
    linear-gradient(0deg, rgba(8, 20, 16, 0.46), rgba(8, 20, 16, 0.04) 42%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--clay);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.75rem, 7vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
  line-height: 1.62;
}

.hero-actions,
.dashboard-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--sage);
  color: #fff;
  box-shadow: 0 14px 38px rgba(37, 75, 59, 0.24);
}

.hero .button.primary {
  background: var(--gold);
  color: #251f10;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  color: var(--sage-dark);
}

.wide {
  width: 100%;
}

.care-band,
.booking-section,
.portal-section {
  padding: clamp(58px, 8vw, 104px) clamp(18px, 5vw, 76px);
}

.care-band {
  background: var(--sky);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article,
.portal-panel,
.login-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 34px rgba(24, 35, 31, 0.08);
}

.feature-grid article {
  padding: 26px;
}

.feature-grid p,
.booking-copy p,
.portal-section p,
.request-card p {
  color: var(--muted);
  line-height: 1.6;
}

.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #f7efe0;
  color: var(--clay);
  font-weight: 900;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.booking-copy {
  position: sticky;
  top: 96px;
}

.trust-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.booking-form,
.dashboard {
  padding: clamp(20px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--sage-dark);
  font-size: 0.88rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd8cf;
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(63, 109, 87, 0.18);
  border-color: var(--sage);
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--sage-dark);
  font-weight: 700;
  line-height: 1.45;
}

.form-status.error {
  color: var(--danger);
}

.session-note {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(63, 109, 87, 0.28);
  border-radius: 8px;
  background: #eef7f1;
  color: var(--sage-dark);
  font-weight: 800;
  line-height: 1.45;
}

.portal-section {
  background: #eef1ed;
}

.customer-account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
  padding: 22px;
  border: 1px solid rgba(63, 109, 87, 0.22);
  border-radius: 8px;
  background: #fff;
}

.customer-account-bar h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.portal-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.portal-panel,
.login-card {
  padding: 26px;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 26px clamp(18px, 5vw, 76px);
  color: #fff;
  background: var(--sage-dark);
}

.dashboard-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #edf7f1, #f8f1e4 48%, #e8f5f8);
}

.dashboard-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0;
}

.login-card {
  width: min(460px, 100%);
  margin: 12vh auto 0;
}

.dashboard-top {
  justify-content: space-between;
  margin-bottom: 22px;
}

.dashboard-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--sage-dark);
  font-weight: 800;
}

.back-link:hover {
  text-decoration: underline;
}

.dashboard-top h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.account-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.account-panel.full {
  margin-top: 18px;
}

.account-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin: 0;
}

.request-list {
  display: grid;
  gap: 14px;
}

.pet-list {
  display: grid;
  gap: 14px;
}

.request-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.request-card header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.status-pill {
  align-self: start;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef7f1;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.request-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.staff-actions .button {
  min-height: 40px;
  padding-inline: 12px;
  font-size: 0.88rem;
}

.request-meta strong {
  display: block;
  color: var(--ink);
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 760px;
  }

  .feature-grid,
  .booking-section,
  .portal-panels,
  .account-grid {
    grid-template-columns: 1fr;
  }

  .customer-account-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .booking-copy {
    position: static;
  }

  .form-grid.two,
  .form-grid.three,
  .request-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .brand small {
    display: none;
  }

  h1 {
    font-size: 2.7rem;
  }

  .hero-actions .button {
    width: 100%;
  }
}
