/* Perfectly Potty — site styles */

:root {
  --color-clay: #8b5742;
  --color-clay-dark: #6e4333;
  --color-sky: #009acd;
  --color-sky-dark: #007aa3;
  --color-ink: #3d3a3a;
  --color-muted: #6b6565;
  --color-side: #5c939a;
  --color-surface: #ffffff;
  --color-soft: #f7f4f2;
  --color-booked: #da5350;
  --color-available: #81b36a;
  --font-display: "Segoe UI", Georgia, "Times New Roman", serif;
  --font-body: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --space: 1rem;
  --radius: 0.5rem;
  --shadow: 0 0.25rem 1rem rgba(62, 40, 30, 0.12);
  --max-width: 64rem;
  --focus: 0 0 0 3px rgba(0, 154, 205, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.12), transparent 55%),
    linear-gradient(160deg, var(--color-clay-dark), var(--color-clay) 45%, #a06a52);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}

a {
  color: var(--color-sky-dark);
}

a:hover {
  color: var(--color-clay);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: var(--color-surface);
  color: var(--color-ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0;
}

.site-shell {
  background: var(--color-surface);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

@media (min-width: 48rem) {
  .page {
    padding: 1.5rem;
  }

  .site-shell {
    border-radius: calc(var(--radius) + 0.25rem);
    box-shadow: var(--shadow);
  }
}

.site-header {
  padding: 1.25rem 1.25rem 0;
}

.brand-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand-visual {
  flex: 1 1 12rem;
  max-width: 22rem;
}

.brand-visual--small {
  flex: 0 1 auto;
  max-width: 18rem;
}

.brand-visual img {
  width: 100%;
  border-radius: var(--radius);
}

.brand-contact {
  flex: 1 1 auto;
  min-width: 0;
  text-align: right;
}

.site-header > .brand-contact {
  margin-bottom: 1rem;
}

.brand-logo {
  width: min(100%, 8rem);
  flex-shrink: 0;
  margin: 0;
}

.brand-row .contact-line {
  font-size: 0.85rem;
  word-break: break-word;
}

@media (min-width: 30rem) {
  .brand-row .contact-line {
    font-size: 0.95rem;
  }
}

.site-nav .brand-logo {
  width: auto;
  height: 2.75rem;
  margin: 0;
  flex-shrink: 0;
  border-radius: 0.25rem;
}

.brand-contact h1,
.brand-contact .site-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 600;
  color: var(--color-sky);
  line-height: 1.2;
}

.contact-line {
  margin: 0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-line a {
  color: inherit;
  text-decoration: none;
}

.contact-line a:hover {
  color: var(--color-sky);
  text-decoration: underline;
}

/* Navigation */
.site-nav {
  background: var(--color-sky);
  padding: 0.65rem 1rem;
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0 auto;
  padding: 0.45rem 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.15);
}

.nav-toggle-icon {
  display: inline-block;
  width: 1.15rem;
  height: 0.85rem;
  position: relative;
}

.nav-toggle-icon span,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle-icon span {
  top: 50%;
  transform: translateY(-50%);
}

.nav-toggle-icon::before {
  top: 0;
}

.nav-toggle-icon::after {
  bottom: 0;
}

.nav-panel {
  display: none;
  width: 100%;
  flex-basis: 100%;
  padding-top: 0.75rem;
}

.nav-panel.is-open {
  display: block;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.35rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 0.25rem;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.nav-list a:focus-visible {
  box-shadow: inset 0 0 0 2px #fff;
}

.social-links {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  color: #fff;
  font-size: 1.15rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none;
}

.social-links a:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}

@media (min-width: 48rem) {
  .nav-toggle {
    display: none;
  }

  .nav-bar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1rem;
  }

  .nav-panel {
    display: flex !important;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: auto;
    padding-top: 0;
  }

  .nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.15rem 0.35rem;
  }

  .nav-list a {
    padding: 0.4rem 0.65rem;
  }

  .social-links {
    margin: 0;
    padding: 0;
    border: 0;
  }
}

/* Main content */
.site-main {
  padding: 1.5rem 1.25rem 2rem;
}

@media (min-width: 48rem) {
  .site-main {
    padding: 1.75rem 1.75rem 2.5rem;
  }
}

.page-intro {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-header,
.site-footer,
.sidebar {
  font-family: var(--font-body);
}

.content-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 56rem) {
  .content-grid {
    grid-template-columns: 1fr 11rem;
    gap: 1.75rem;
  }
}

.sidebar {
  font-size: 0.875rem;
  color: var(--color-side);
}

.sidebar h2 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--color-sky);
}

.sidebar p,
.sidebar address {
  margin: 0 0 1.25rem;
  font-style: normal;
  line-height: 1.5;
}

.sidebar a {
  color: var(--color-side);
}

.sidebar a:hover {
  color: var(--color-sky);
}

@media (max-width: 55.98rem) {
  .sidebar-desktop {
    display: none;
  }
}

h1,
h2,
h3 {
  color: var(--color-sky);
}

.primary-content h1,
.primary-content h2,
.page-content h1,
.page-content h2,
.site-main > section h1,
.site-main > section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-sky);
}

.primary-content h1,
.page-content h1,
.site-main > section h1 {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
}

.primary-content h2,
.page-content h2,
.site-main > section h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-top: 1.75rem;
}

.site-main > section > h2:first-child {
  margin-top: 0;
}

.page-content h3,
.site-main > section h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: var(--color-sky);
}

.primary-content p,
.page-content p,
.site-main > section p {
  margin: 0 0 1rem;
  font-family: var(--font-body);
  color: var(--color-muted);
}

.primary-content ul,
.page-content ul,
.site-main > section ul {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-family: var(--font-body);
  color: var(--color-muted);
}

.primary-content li,
.page-content li {
  margin-bottom: 0.4rem;
}

.note {
  font-style: italic;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem;
  margin: 1rem 0 1.25rem;
}

.gallery a {
  display: inline-block;
  line-height: 0;
  border-radius: 0.35rem;
  overflow: hidden;
}

.gallery img {
  width: auto;
  height: 6.25rem;
  max-width: 100%;
  object-fit: contain;
}

.gallery--large {
  gap: 0.5rem;
}

.gallery--large img {
  height: 9.375rem;
}

.gallery-hint {
  margin: 0 0 0.5rem;
  color: #939d9b;
  font-size: 0.75rem;
  text-align: center;
}

.video-embed {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 1.25rem auto;
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: var(--radius);
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mobile-address {
  display: block;
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-soft);
  border-radius: var(--radius);
}

@media (min-width: 56rem) {
  .mobile-address {
    display: none;
  }
}

.image-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.image-row img {
  max-height: 15rem;
  width: auto;
  border-radius: 0.35rem;
}

.image-row--2x2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
  justify-items: center;
}

.image-row--2x2 img {
  height: 12rem;
  width: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
}

.site-footer {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid #ebe4df;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--color-sky);
  font-size: 0.8rem;
}

/* Reviews carousel */
.reviews {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #ebe4df;
}

.reviews h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-sky);
  text-align: center;
}

.reviews-intro {
  margin: 0 0 1.25rem;
  color: var(--color-muted);
  text-align: center;
}

.review-carousel {
  max-width: 40rem;
  margin: 0 auto;
}

.review-viewport {
  position: relative;
  min-height: 12rem;
}

.review-slide {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--color-soft);
  border-radius: var(--radius);
}

.review-slide[hidden] {
  display: none;
}

.review-stars {
  margin: 0 0 0.75rem;
  color: #c4a035;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  line-height: 1;
}

.review-slide blockquote {
  margin: 0;
}

.review-slide blockquote p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.review-author {
  margin: 1rem 0 0;
  color: var(--color-clay);
  font-weight: 700;
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.review-nav {
  appearance: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 2px solid var(--color-sky);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-sky);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.review-nav:hover {
  background: var(--color-sky);
  color: #fff;
}

.review-dots {
  display: flex;
  gap: 0.45rem;
}

.review-dot {
  appearance: none;
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c9c0ba;
  cursor: pointer;
}

.review-dot[aria-selected="true"] {
  background: var(--color-sky);
}

/* Calendar */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-swatch {
  width: 1rem;
  height: 1rem;
  border-radius: 0.2rem;
}

.legend-swatch--booked {
  background: var(--color-booked);
}

.legend-swatch--available {
  background: var(--color-available);
}

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 999px;
  background: var(--color-sky);
  color: #fff;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-decoration: none;
}

.button:hover {
  background: var(--color-sky-dark);
  color: #fff;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.calendar-table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  -webkit-overflow-scrolling: touch;
}

.calendar-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  table-layout: fixed;
}

.calendar-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.calendar-table th,
.calendar-table td {
  padding: 0.65rem 0.35rem;
  border: 2px solid var(--color-sky);
  text-align: center;
  vertical-align: middle;
}

.calendar-table th {
  background: var(--color-soft);
  color: var(--color-sky-dark);
  font-size: 0.85rem;
}

.calendar-table td.is-available {
  background: var(--color-available);
  color: #1f3d18;
}

.calendar-table td.is-booked {
  background: var(--color-booked);
  color: #fff;
}

.calendar-table td a {
  display: block;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

.calendar-empty {
  margin: 1rem 0;
  font-weight: 700;
}

.pin-field {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}

.pin-field label {
  font-weight: 700;
}

.pin-field input {
  width: 5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #c9c0ba;
  border-radius: 0.35rem;
  font: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.error-text {
  color: var(--color-booked);
  font-style: italic;
}

.error-banner {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--color-booked);
  border-radius: var(--radius);
  background: #fff5f5;
  color: #7a1f1d;
}

.error-banner p {
  margin: 0 0 0.4rem;
  color: inherit;
}

.error-banner p:last-child {
  margin-bottom: 0;
}
