:root {
  --ink: #0f0f0f;
  --muted: #5c5c5c;
  --paper: #ffffff;
  --panel: #ffffff;
  --green: #77b86a;
  --blue: #50a8d7;
  --yellow: #f1cb3f;
  --line: #e7e7e7;
  --shadow: 0 18px 44px rgba(15, 15, 15, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(220, 238, 205, 0.96);
  border-bottom: 2px solid #7bad75;
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

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

.brand strong,
.main-nav a,
h1,
h2,
h3 {
  font-family: Oswald, Arial, sans-serif;
  text-transform: uppercase;
}

.brand small {
  color: var(--muted);
  font-size: 0.82rem;
}

.main-nav {
  display: flex;
  gap: 8px;
}

.main-nav a,
.nav-button,
.primary-link,
.primary-button,
.secondary-button {
  border-radius: 8px;
  text-decoration: none;
}

.main-nav a,
.nav-button {
  padding: 8px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 700;
  font-family: Oswald, Arial, sans-serif;
  text-transform: uppercase;
  cursor: pointer;
}

.main-nav a:hover,
.nav-button:hover {
  background: transparent;
  border-bottom-color: #0f0f0f;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 82px clamp(20px, 7vw, 92px);
  background: #f7f7f7;
  border-bottom: 4px solid #0f0f0f;
}

.paw-field {
  position: absolute;
  inset: 0;
  opacity: 1;
  background-image: url("/assets/paws-bg.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.18));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #0f0f0f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 7.1vw, 5.7rem);
  line-height: 1.14;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 560px;
  color: #232323;
  font-size: 1.12rem;
}

.primary-link,
.primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  color: #0f0f0f;
  background: var(--yellow);
  box-shadow: 5px 5px 0 #0f0f0f;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  width: 100%;
}

.secondary-button {
  padding: 10px 14px;
  border: 2px solid #0f0f0f;
  color: var(--ink);
  background: var(--panel);
  font-weight: 800;
  cursor: pointer;
}

.danger-button {
  padding: 10px 14px;
  border: 2px solid #b42318;
  border-radius: 8px;
  color: #ffffff;
  background: #b42318;
  font-weight: 800;
  cursor: pointer;
}

.profile-section,
.pricing-section,
.planner-section {
  padding: 72px clamp(20px, 7vw, 92px);
}

.admin-page {
  min-height: calc(100vh - 77px);
  background: #f7f7f7;
}

.admin-login {
  max-width: 560px;
  padding: 72px clamp(20px, 7vw, 92px);
}

.login-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 2px solid #0f0f0f;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 7px 7px 0 #0f0f0f;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.login-form input {
  width: 100%;
  border: 1px solid #cbd7d2;
  border-radius: 2px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdfb;
}

.profile-section {
  display: grid;
  grid-template-columns: minmax(240px, 390px) minmax(0, 690px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  background: #ffffff;
}

.profile-photo-wrap {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 8px solid #e8f0e8;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.profile-photo-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-copy p {
  color: var(--muted);
}

.legal-page {
  padding: 72px clamp(20px, 7vw, 92px);
  background: #ffffff;
}

.legal-content {
  max-width: 920px;
}

.legal-content h1 {
  max-width: none;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.legal-content h2 {
  margin-top: 34px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.legal-content p {
  color: var(--muted);
}

.legal-content a {
  color: #0f0f0f;
  font-weight: 800;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 9px solid var(--green);
  border-radius: 2px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(15, 15, 15, 0.08);
  text-align: left;
  cursor: pointer;
}

.service-card:nth-child(2) {
  border-top-color: var(--blue);
}

.service-card:nth-child(3) {
  border-top-color: var(--yellow);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 7px 7px 0 #0f0f0f;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  line-height: 1.2;
}

.price {
  margin-top: auto;
  font-size: 1.55rem;
  font-weight: 900;
}

.duration {
  color: var(--muted);
  font-size: 0.92rem;
}

.payment-methods {
  margin-top: 8px;
  color: #273d26;
  font-size: 0.9rem;
  font-weight: 800;
}

.planner-section {
  background: #f4f4f4;
  border-top: 4px solid #0f0f0f;
}

.admin-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  padding: 6px;
  border: 2px solid #0f0f0f;
  border-radius: 8px;
  background: #ffffff;
}

.admin-tab {
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font-family: Oswald, Arial, sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.admin-tab.active {
  background: var(--yellow);
  box-shadow: 3px 3px 0 #0f0f0f;
}

.admin-tab-panel {
  display: block;
}

.planner-tools {
  margin-bottom: 16px;
}

.visits-panel {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 20px;
  border: 2px solid #0f0f0f;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 7px 7px 0 #0f0f0f;
}

.visits-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.visits-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(42px, 1fr);
  gap: 8px;
  min-height: 230px;
  overflow-x: auto;
  padding: 8px 4px 2px;
  align-items: end;
}

.visit-bar {
  display: grid;
  grid-template-rows: 24px 160px 22px;
  gap: 7px;
  min-width: 42px;
  text-align: center;
}

.visit-bar strong {
  color: #0f0f0f;
  font-size: 0.86rem;
  line-height: 1;
}

.visit-bar span {
  display: block;
  align-self: end;
  width: 100%;
  min-height: 10px;
  border: 2px solid #0f0f0f;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, var(--yellow), var(--green));
}

.visit-bar small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.visits-empty {
  padding: 18px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.pricing-admin-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-form {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 2px solid #0f0f0f;
  border-radius: 2px;
  background: #ffffff;
  box-shadow: 7px 7px 0 #0f0f0f;
}

.admin-form h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
}

.admin-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.payment-methods-field {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px;
  border: 1px solid #cbd7d2;
  border-radius: 2px;
  background: #fbfdfb;
}

.payment-methods-field legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 800;
}

.payment-methods-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.admin-form .payment-methods-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.admin-form input,
.admin-form textarea {
  width: 100%;
  border: 1px solid #cbd7d2;
  border-radius: 2px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdfb;
}

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

.admin-form-actions .primary-button,
.admin-form-actions .secondary-button {
  width: auto;
  flex: 1 1 160px;
}

.services-admin-list {
  display: grid;
  gap: 12px;
}

.service-admin-item {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.55fr) minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
  background: var(--panel);
}

.service-admin-item strong,
.service-admin-item span {
  display: block;
}

.service-admin-item span,
.service-admin-item li {
  color: var(--muted);
  font-size: 0.92rem;
}

.service-admin-item ul {
  margin: 0;
  padding-left: 18px;
}

.planner-list {
  display: grid;
  gap: 12px;
}

.planner-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(140px, 0.8fr) minmax(180px, 1.2fr) auto;
  gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
  background: var(--panel);
}

.planner-item strong,
.planner-item span {
  display: block;
}

.planner-item span {
  color: var(--muted);
  font-size: 0.92rem;
}

.planner-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.service-dialog {
  width: min(980px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.service-dialog::backdrop {
  background: rgba(20, 33, 34, 0.42);
}

.dialog-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
}

.service-details,
.booking-panel {
  padding: clamp(22px, 4vw, 36px);
}

.service-details {
  background: #f7f7f7;
}

.service-meta {
  color: #0f0f0f;
  font-weight: 800;
}

.booking-panel {
  background: #ffffff;
}

.booking-panel label {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
}

.booking-panel .consent-field {
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.booking-panel input,
.booking-panel select,
.booking-panel textarea {
  width: 100%;
  border: 1px solid #cbd7d2;
  border-radius: 2px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fbfdfb;
}

.booking-panel .consent-field input {
  width: 18px;
  height: 18px;
}

.admin-dialog {
  width: min(640px, calc(100% - 28px));
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: #0f0f0f;
  font-weight: 700;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, auto) minmax(240px, 1fr);
  gap: 8px 24px;
  align-items: center;
  padding: 24px clamp(20px, 7vw, 92px) 18px;
  border-top: 4px solid #0f0f0f;
  background: #0f0f0f;
  color: #ffffff;
}

.footer-brand strong,
.footer-brand span,
.footer-brand a,
.footer-copy {
  display: block;
  margin: 0;
}

.footer-brand {
  display: grid;
  grid-column: 1;
  grid-row: 1 / span 2;
  gap: 2px;
  align-self: center;
}

.footer-brand span,
.footer-copy {
  color: #aaa400;
  font-size: 0.92rem;
}

.footer-brand a {
  color: #ffffff;
  font-weight: 800;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  grid-column: 2;
  grid-row: 2;
  gap: 10px 16px;
  justify-content: center;
  justify-self: center;
  text-align: center;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-social {
  display: flex;
  grid-column: 2;
  grid-row: 1;
  gap: 18px;
  justify-self: center;
  justify-content: center;
}

.footer-social a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  text-decoration: none;
}

.social-icon {
  width: 36px;
  height: 36px;
  color: #aaa400;
  fill: currentColor;
  stroke: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
  font-family: Oswald, Arial, sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.footer-social a[aria-label="Instagram"] .social-icon {
  fill: none;
  stroke: currentColor;
}

.footer-copy {
  grid-column: 1 / -1;
  grid-row: 3;
  justify-self: center;
  width: 100%;
  padding-top: 10px;
  text-align: center;
  font-size: clamp(0.68rem, 2.7vw, 0.92rem);
  white-space: nowrap;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .planner-item,
  .service-admin-item,
  .pricing-admin-grid,
  .dialog-grid,
  .profile-section {
    grid-template-columns: 1fr;
  }

  .planner-actions {
    justify-content: flex-start;
  }

  .site-footer {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-brand,
  .footer-social,
  .footer-legal,
  .footer-copy {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
  }

  .main-nav a {
    padding-inline: 8px;
  }

  .hero {
    min-height: 68vh;
    padding-top: 54px;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.8rem);
    line-height: 1.16;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}
