/* ============================================
   Liv's Cat Care — Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --max-width: 1200px;
  --gutter: 5vw;
  --mobile-gutter: 5vw;
  --color-bg: #ffffff;
  --color-bg-alt: #d4eef8;
  --color-text: #1a2e3a;
  --color-text-mid: #3a5566;
  --color-text-muted: #7a9aaa;
  --color-accent: #2a7aaa;
  --color-accent-light: #d4eef8;
  --color-accent-border: #9acde8;
  --color-green: #1e6fa0;
  --color-green-light: #d4eef8;
  --color-amber: #1a6090;
  --color-amber-light: #e0f2fb;
  --color-border: #c0dcea;
  --color-nav-bg: #ffffff;
  --nav-height: 68px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, .section-heading {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---- Nav ---- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
}

.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.nav-logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links li a {
  display: block;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-mid);
  transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--color-text);
}

.nav-links li a.btn-nav {
  background: var(--color-text);
  color: #fff;
  padding: 8px 18px;
  margin-left: 8px;
  transition: background 0.2s;
}

.nav-links li a.btn-nav:hover {
  background: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-nav-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 99;
  padding: 12px var(--mobile-gutter) 20px;
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-menu ul li a {
  display: block;
  padding: 12px 0;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu ul li:last-child a {
  border-bottom: none;
  background: var(--color-text);
  color: #fff;
  text-align: center;
  padding: 12px;
  margin-top: 8px;
}

/* ---- Shared ---- */

.section {
  padding: 80px var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  padding: 80px var(--gutter);
}

.section-alt {
  background: var(--color-bg-alt);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.section-heading {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subheading {
  font-size: 1.0625rem;
  color: var(--color-text-mid);
  line-height: 1.75;
  max-width: 600px;
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-radius: 0;
  font-family: inherit;
}

.btn:hover {
  background: var(--color-text);
  color: #fff;
}

.btn-filled {
  background: var(--color-text);
  color: #fff;
}

.btn-filled:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-accent {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: #1a5e8a;
  border-color: #1a5e8a;
}

/* ============================================
   HERO
   ============================================ */

#home {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(88vh - var(--nav-height));
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-content h1 span {
  color: var(--color-accent);
}

.hero-content p {
  font-size: 1.0625rem;
  color: var(--color-text-mid);
  margin-bottom: 14px;
  max-width: 520px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 380px;
  width: 100%;
  border-radius: 50%;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   ABOUT
   ============================================ */

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 0.9375rem;
  color: var(--color-text-mid);
  line-height: 1.8;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-self: center;
}

.about-photos img {
  width: 100%;
  border-radius: 8px;
  display: block;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 3/4;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.badge {
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  color: var(--color-text);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
}

/* ============================================
   SERVICES
   ============================================ */

.services-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: stretch;
}

.services-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--color-accent);
  display: flex;
  flex-direction: column;
}

.services-card-title {
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 20px;
}

.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 28px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--color-text-mid);
}

.checklist li::before {
  content: "✓";
  color: var(--color-green);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table th {
  background: var(--color-text);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.pricing-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
  vertical-align: top;
}

.pricing-table tr:last-child td { border-bottom: none; }
.pricing-table tr:nth-child(even) td { background: #fafafa; }

.area-name { font-weight: 700; color: var(--color-text); }
.area-desc { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 2px; }
.price { font-weight: 800; color: var(--color-text); }

.pricing-note {
  font-size: 0.825rem;
  color: var(--color-text-muted);
  margin-top: 14px;
  line-height: 1.6;
}

/* ============================================
   AVAILABILITY CALENDAR
   ============================================ */

.cal-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.cal-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 32px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.cal-nav-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--color-border);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: 1.25rem;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s;
}

.cal-nav-btn:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-border);
}

.cal-month-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text);
}

.cal-day-headers {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 6px;
}

.cal-day-label {
  text-align: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-text-muted);
  padding: 4px 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  min-height: 42px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
  transition: transform 0.1s;
}

.cal-cell.available {
  background: #fff;
  border-color: var(--color-border);
  color: var(--color-text);
}

.cal-cell.available .cal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-green);
}

.cal-cell.today {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
  font-weight: 800;
}

.cal-cell.unavailable {
  background: var(--color-amber-light);
  border-color: #f5d0b0;
  color: var(--color-amber);
}

.cal-cell.unavailable span:first-child {
  text-decoration: line-through;
}

.cal-cell.past {
  background: #f8f8f8;
  border-color: #eee;
  color: #bbb;
  opacity: 0.6;
}

.cal-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}

.review-card {
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  border-radius: 10px;
  padding: 28px;
}

.stars {
  color: var(--color-accent);
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.9375rem;
  color: var(--color-text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 16px;
}

.review-author {
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
}

.cats-heading {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.cat-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--color-accent-light);
}

.cat-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.cat-item:hover img { transform: scale(1.06); }

.cat-item-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 20px 8px 7px;
  text-align: center;
}

/* ============================================
   CONTACT / BOOKING
   ============================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
}

.form-group label .req { color: #dc2626; }

.form-group input,
.form-group textarea,
.form-group select {
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text);
  width: 100%;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.availability-feedback {
  padding: 14px 18px;
  border-radius: 8px;
  border: 1.5px solid;
  font-size: 0.875rem;
  display: none;
}

.availability-feedback.ok {
  border-color: #a3d9b8;
  background: #f0faf4;
  color: var(--color-green);
  display: block;
}

.availability-feedback.warn {
  border-color: #f5c49a;
  background: var(--color-amber-light);
  color: var(--color-amber);
  display: block;
}

.form-submit .btn { width: 100%; justify-content: center; font-size: 0.875rem; padding: 14px; }

.form-success {
  display: none;
  background: var(--color-accent-light);
  border: 1.5px solid var(--color-accent-border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
}

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.form-success p {
  color: var(--color-text-mid);
  font-size: 0.9375rem;
}

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 24px;
}

.contact-info-card h3 {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.info-value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-mid);
}

.info-value a {
  color: var(--color-text-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
}

.info-value a:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.unavail-card {
  background: var(--color-amber-light);
  border: 1px solid #9acde8;
  border-radius: 12px;
  padding: 20px 24px;
}

.unavail-card h3 {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-amber);
  margin-bottom: 12px;
}

.unavail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.unavail-list li {
  font-size: 0.8375rem;
  color: var(--color-text-mid);
  padding-left: 14px;
  position: relative;
}

.unavail-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--color-text-muted);
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 28px var(--gutter);
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.site-footer a {
  color: var(--color-text-mid);
  text-decoration: none;
}

.site-footer a:hover { color: var(--color-accent); }

/* ============================================
   ADMIN PAGE
   ============================================ */

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
}

.admin-login-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.admin-login-card h1 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-login-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 28px;
}

.admin-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px var(--gutter);
}

.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

.admin-cal-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 24px;
}

.admin-instructions {
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent-border);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.875rem;
  color: var(--color-text-mid);
  margin-bottom: 24px;
}

.admin-cell {
  cursor: pointer;
  user-select: none;
}

.admin-cell:hover {
  transform: scale(1.08);
  z-index: 1;
}

.admin-cell.unavailable {
  background: var(--color-amber-light) !important;
  border-color: #f5c49a !important;
  color: var(--color-amber) !important;
}

.admin-saved-msg {
  display: none;
  background: var(--color-green-light);
  border: 1px solid #a3d9b8;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 0.875rem;
  color: var(--color-green);
  font-weight: 600;
  text-align: center;
  margin-top: 16px;
}

.admin-saved-msg.show { display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
  #home {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px var(--mobile-gutter);
    min-height: auto;
    gap: 36px;
  }

  .hero-content p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-image img { max-width: 240px; }

  .about-inner,
  .services-inner,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

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

  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  .section, .section-full { padding: 56px var(--mobile-gutter); }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.75rem; }
  .section-heading { font-size: 1.5rem; }
  .admin-wrap { padding: 24px var(--mobile-gutter); }
}
