/*
  Little Socks Pet Hotel
  Main design file

  This CSS controls colors, spacing, layout, buttons, cards, and mobile responsiveness.
  You can change the colors in :root to update the whole website.
*/

:root {
  --cream: #FFF8EF;
  --soft-brown: #3F9B0B;   /* was #8B5E3C — now green */
  --sage: #8FAF8F;
  --terracotta: #3F9B0B;   /* was #C96F4A — now green */
  --charcoal: #000000;     /* was #2F2F2F — now pure black */
  --light-tan: #A4F577;    /* was #F3E3D3 — now light green */
  --white: #FFFFFF;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --radius: 24px;
}

/* Makes sizing more predictable */
* {
  box-sizing: border-box;
}

/* Smooth scrolling when clicking page links */
html {
  scroll-behavior: smooth;
}

/* Main body styles */
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.6;
}

/* Headings use a warmer, more classic type style */
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--charcoal);
}

h1 {
  font-size: 1.25rem;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 16px;
}

a {
  color: var(--soft-brown);
}

/* Header and navigation — sticky bar at the top of every page.
   Background color: #19BDFF (change the hex below to update it).
   Padding: 40px top/bottom. Font size: 0.875rem (14px). */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #19BDFF;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  padding: 40px 6vw;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000000;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.875rem;
}

.logo-mark {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: #000000;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav a:hover,
.nav a.active {
  background: rgba(255, 255, 255, 0.4);
  color: #000000;
}

.nav a.nav-cta {
  background: var(--terracotta);
  color: var(--white);
  border: 2px solid var(--terracotta);
}

.nav a.nav-cta:hover {
  background: #2d7208;
  color: var(--white);
  border-color: #2d7208;
}
/* Hero sections */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 48px;
  padding: 72px 6vw;
  min-height: 72vh;
}

.hero-copy {
  font-size: 1.2rem;
  max-width: 720px;
}

.hero-card {
  min-height: 460px;
  box-shadow: var(--shadow);
  transform: rotate(1.5deg);
}

.hero-profile-card {
  /* Learning note: this keeps the image visible at native proportions (no cropping). */
  min-height: 0;
  width: min(50vw, 420px);
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  transform: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-profile-image {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.hero-profile-button {
  min-width: 220px;
}

.page-hero {
  padding: 72px 6vw 48px;
  background:
    radial-gradient(circle at top right, rgba(143, 175, 143, 0.24), transparent 34%),
    var(--cream);
}

.page-hero p {
  max-width: 760px;
  font-size: 1.15rem;
}

/* Reusable sections */
.section {
  padding: 72px 6vw;
}

.section.soft {
  background: var(--light-tan);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.eyebrow {
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 12px;
}

/* Buttons */
.button-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(47, 47, 47, 0.14);
}

.button.primary {
  background: var(--terracotta);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  color: var(--soft-brown);
  border-color: rgba(139, 94, 60, 0.22);
}

.button.large {
  width: 100%;
  margin-top: 12px;
}

.text-link {
  font-weight: 800;
}

/* Cards and grids */
.cards,
.rate-grid,
.gallery-grid {
  display: grid;
  gap: 22px;
}

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

.rate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.rate-card,
.content-box,
.contact-card {
  background: var(--white);
  border: 1px solid rgba(139, 94, 60, 0.16);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 26px rgba(47, 47, 47, 0.07);
}

.rate-card {
  display: flex;
  flex-direction: column;
}

.rate-card.detailed {
  min-height: 330px;
}

.price {
  color: var(--soft-brown);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1;
  font-weight: 800;
  margin-bottom: 18px;
}

.price span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  margin-left: 4px;
  color: var(--charcoal);
  font-weight: 700;
}

.center {
  text-align: center;
  margin-top: 28px;
}

.center-note,
.small-note {
  color: rgba(47, 47, 47, 0.72);
}

.center-note {
  text-align: center;
  margin-top: 24px;
}

.small-note {
  font-size: 0.92rem;
}

/* Gallery placeholders */
.gallery-grid.preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.profile-story {
  display: grid;
  gap: 24px;
}

.profile-story-block {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: center;
}

.profile-story-block.reverse {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
}

.profile-story-block.reverse .profile-story-image {
  order: 2;
}

.profile-story-block.reverse .content-box {
  order: 1;
}

.profile-story-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--white);
}

.photo-placeholder {
  min-height: 240px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 175, 143, 0.35), rgba(201, 111, 74, 0.22)),
    var(--light-tan);
  border: 2px dashed rgba(139, 94, 60, 0.35);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--soft-brown);
  font-weight: 800;
  padding: 24px;
}

/* If you later use real images, this class helps them look polished */
.gallery-grid img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Slideshow styles */
.slideshow-container {
  width: 100%;
  max-width: 1100px;     /* caps width on very wide monitors */
  margin: 0 auto 24px;   /* centers it and adds spacing below */
  position: relative;
}

.slideshow {
  /* Fixed height prevents the slideshow from filling the full screen.
     Change 380px to make it taller or shorter.
     The max-width above controls how wide it can get. */
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  /* transition controls the fade animation speed
     1s = 1 second (old speed)
     2s = 2 seconds (new speed - slower, smoother fade)
     Change this value to adjust fade speed */
  transition: opacity 2s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.fade {
  /* animation controls the fade-in effect when each image appears
     1s = 1 second (old speed)
     2s = 2 seconds (new speed - matches the transition speed above)
     Keep this the same as the transition value for consistent fading */
  animation: fade 2s ease-in-out;
}

@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* =====================================================
   Rover badge in header
   - White box so it stands out against the blue header
   - Stars are the uploaded gold star image
   - It links to your Rover profile when clicked
   ===================================================== */
.rover-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  gap: 2px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--white);
  transition: background 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.rover-badge:hover {
  background: rgba(255, 255, 255, 0.85);
  transform: translateY(-1px);
}

/* The gold star row */
.rover-stars {
  display: flex;
  gap: 4px;
  line-height: 1;
}

.rover-stars .star-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  display: block;
}

/* The small text beneath the stars */
.rover-label {
  font-size: 0.875rem;
  font-weight: 800;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =====================================================
   Reviews carousel section
   - Shows one review at a time
   - Previous/Next buttons allow clicking through
   - Review data is controlled in script.js
   ===================================================== */
.reviews-carousel {
  max-width: 820px;
  margin: 0 auto;
}

/* The white card that holds each review */
.review-card {
  background: var(--white);
  border: 1px solid rgba(139, 94, 60, 0.16);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: opacity 0.4s ease;
}

/* Gold stars inside each review card */
.review-stars {
  display: flex;
  gap: 8px;
}

.review-stars .star-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

/* The review text itself � blockquote removes default browser margin */
.review-text {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--charcoal);
  font-style: italic;
}

/* Reviewer name and service type row */
.review-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.review-name {
  font-weight: 800;
  color: var(--soft-brown);
}

.review-service {
  font-size: 0.88rem;
  color: rgba(47, 47, 47, 0.6);
  background: var(--light-tan);
  padding: 2px 10px;
  border-radius: 999px;
}

/* Previous / Next navigation row */
.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

/* Previous and Next buttons */
.reviews-btn {
  background: var(--white);
  color: var(--soft-brown);
  border: 2px solid rgba(139, 94, 60, 0.22);
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reviews-btn:hover {
  background: var(--light-tan);
  transform: translateY(-2px);
}

/* "X of 20" counter between the buttons */
.review-counter {
  font-size: 0.9rem;
  color: rgba(47, 47, 47, 0.6);
  min-width: 60px;
  text-align: center;
}

/* Mobile adjustments for the rover badge */
@media (max-width: 980px) {
  .rover-badge {
    order: -1;
  }
}

@media (max-width: 640px) {
  .review-card {
    padding: 24px 20px;
  }
}
/* Pickup/drop-off formula */
.formula-box {
  margin-top: 22px;
  padding: 20px;
  border-radius: 18px;
  background: var(--cream);
  border: 1px solid rgba(139, 94, 60, 0.18);
}

/* Booking page layout */
.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
  align-items: start;
}

.contact-card a {
  word-break: break-word;
}

/* Call-to-action block.
   Background: #19BDFF (matches the header color).
   Text is black. The booking button is green (#3F9B0B). */
.cta {
  margin: 40px 6vw 72px;
  padding: 48px;
  border-radius: 32px;
  background: #19BDFF;
  color: #000000;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta h2 {
  color: #000000;
}

.cta p {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cta .button.primary {
  background: #3F9B0B;
  color: var(--white);
  border-color: #3F9B0B;
}

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 6vw;
  background: var(--charcoal);
  color: var(--white);
}

.site-footer p {
  margin-bottom: 0;
}

.site-footer a {
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}

/* Mobile layout */
@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;   /* allow wrap only on very small screens */
    gap: 12px;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    min-height: 320px;
    transform: none;
  }

  .hero-profile-card {
    width: min(100%, 420px);
  }

  .cards.three,
  .rate-grid,
  .gallery-grid.preview,
  .gallery-grid.large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-story-block,
  .profile-story-block.reverse {
    grid-template-columns: 1fr;
  }

  .profile-story-block.reverse .profile-story-image,
  .profile-story-block.reverse .content-box {
    order: initial;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section,
  .hero,
  .page-hero {
    padding-left: 22px;
    padding-right: 22px;
  }

  .nav a {
    padding: 6px 10px;
    font-size: 0.875rem;
  }

  .cards.three,
  .rate-grid,
  .gallery-grid.preview,
  .gallery-grid.large,
  .profile-story-block,
  .profile-story-block.reverse {
    grid-template-columns: 1fr;
  }

  .cta {
    margin-left: 22px;
    margin-right: 22px;
    padding: 34px 22px;
  }

  .site-footer {
    flex-direction: column;
    padding-left: 22px;
    padding-right: 22px;
  }
}
