/* ==========================================================================
   Paws in Motion — Global Styles
   Colour palette: green + blue (friendly, trustworthy, outdoorsy)
   ========================================================================== */

:root {
  --color-green: #2f9e58;
  --color-green-dark: #227a43;
  --color-blue: #2b7de9;
  --color-blue-dark: #1e5fb8;
  --color-text: #1f2a24;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9f6;
  --radius: 12px;
  --max-width: 1100px;
  --font-base: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 0;
}

a {
  color: var(--color-blue-dark);
}

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid #e5e5e5;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--color-green-dark);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
}

.site-nav a[aria-current="page"] {
  color: var(--color-green-dark);
  border-bottom: 2px solid var(--color-green);
}

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

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-blue) 100%);
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.hero h1 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.tagline {
  font-size: 1.1rem;
  max-width: 40ch;
  margin: 0 auto 1.75rem;
  opacity: 0.95;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: white;
  color: var(--color-green-dark);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.hero-buttons {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cta .hero-buttons {
  justify-content: center;
}

/* on light CTA sections, recolour the secondary button so it's visible */
.cta .btn-primary {
  background: var(--color-green);
  color: white;
}

.cta .btn-secondary {
  color: var(--color-green-dark);
  border-color: var(--color-green);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--color-green-dark);
  color: white;
  padding: 1rem 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1rem;
  text-align: center;
}

.trust-item {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-item span {
  font-size: 1.2rem;
}

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.step {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-green), var(--color-blue));
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(43, 125, 233, 0.3);
}

/* ---------- Sections ---------- */
.section {
  padding: 3.5rem 0;
}

.section:nth-of-type(even) {
  background: var(--color-bg-alt);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.hours-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  max-width: 400px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #e5e5e5;
  padding-bottom: 0.5rem;
}

.hours-list span {
  font-weight: 600;
  color: var(--color-green-dark);
}

.cta {
  text-align: center;
}

.cta .btn-primary {
  background: var(--color-green);
  color: white;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-text);
  color: #eef5f0;
  text-align: center;
  padding: 2rem 0;
  font-size: 0.9rem;
}

.footer-slogan {
  opacity: 0.7;
  margin-top: 0.25rem;
}

/* ---------- Logo icon ---------- */
.logo-icon {
  width: 28px;
  height: 28px;
}

/* ---------- Hero with illustration ---------- */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  text-align: left;
}

.hero-text {
  flex: 1;
}

.hero-illustration {
  width: 380px;
  max-width: 45%;
  flex-shrink: 0;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ---------- Secondary page hero (no illustration) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-green) 0%, var(--color-blue) 100%);
  color: white;
  text-align: center;
  padding: 3rem 0;
}

/* ---------- Service detail blocks ---------- */
.service-detail {
  padding: 1.5rem 0;
  border-bottom: 1px solid #e5e5e5;
}

.service-detail:last-child {
  border-bottom: none;
}

/* ---------- Note box ---------- */
.note-box-section {
  padding-top: 0;
  padding-bottom: 0;
}

.note-box {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}

.safety-notice {
  background: #fff4e5;
  border: 2px solid #f0932b;
  border-left: 6px solid #f0932b;
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0;
  font-weight: 700;
  color: #6b3e00;
}

.safety-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
  max-width: 640px;
}

.safety-list li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  border-bottom: 1px solid #e5e5e5;
}

.safety-list li::before {
  content: "🐾";
  position: absolute;
  left: 0;
  top: 0.55rem;
}

/* ---------- Price table ---------- */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.price-table th,
.price-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e5e5e5;
}

.price-table th {
  background: var(--color-bg-alt);
  color: var(--color-green-dark);
}

.price-note {
  margin-top: 1.25rem;
  color: #555;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.muted {
  color: #888;
  font-size: 0.9rem;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.gallery-card {
  border-radius: var(--radius);
  padding: 2.5rem 1rem;
  text-align: center;
  color: white;
  transition: transform 0.15s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
}

.gallery-card span {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.gallery-card p {
  margin: 0;
  font-weight: 600;
}

.gallery-green {
  background: linear-gradient(135deg, var(--color-green), var(--color-green-dark));
}

.gallery-blue {
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-dark));
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  margin: 0;
  font-style: italic;
}

.testimonial-card footer {
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-green-dark);
}

/* ---------- FAQ accordion ---------- */
.faq-list {
  max-width: 700px;
}

.faq-item {
  border: 1px solid #e5e5e5;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
}

.faq-item[open] summary {
  color: var(--color-green-dark);
  margin-bottom: 0.5rem;
}

/* ---------- Legal pages ---------- */
.legal-text h2 {
  color: var(--color-green-dark);
  margin-top: 2rem;
}

/* ---------- Footer links ---------- */
.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: #cfe9d9;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  text-align: left;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand .footer-slogan {
  margin-top: 0.35rem;
}

.footer-contact p {
  margin: 0.2rem 0;
  font-size: 0.9rem;
}

.footer-contact a {
  color: #cfe9d9;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-legal {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.85;
}

.footer-legal a {
  color: #cfe9d9;
}

.footer-nav {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 2;
}

.footer-nav a {
  color: #eef5f0;
  text-decoration: none;
  margin: 0 0.15rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Decorations — paw prints, borders and happy touches
   ========================================================================== */

/* Soft paw-print pattern behind the whole page */
body {
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='%232f9e58' fill-opacity='0.05'%3E%3Cellipse cx='60' cy='70' rx='16' ry='13'/%3E%3Cellipse cx='42' cy='52' rx='6.5' ry='9'/%3E%3Cellipse cx='56' cy='40' rx='6.5' ry='9'/%3E%3Cellipse cx='72' cy='41' rx='6.5' ry='9'/%3E%3Cellipse cx='84' cy='56' rx='6' ry='8'/%3E%3C/g%3E%3C/svg%3E");
}

/* Colourful decorative frame around the whole window */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  border: 7px solid transparent;
  border-image: linear-gradient(135deg, var(--color-green), var(--color-blue)) 1;
  pointer-events: none;
  z-index: 50;
}

/* Cheerful paw-print strip just under the header */
.site-header::after {
  content: "";
  display: block;
  height: 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='10' viewBox='0 0 40 10'%3E%3Cg fill='%232b7de9'%3E%3Cellipse cx='20' cy='7' rx='3.2' ry='2.6'/%3E%3Cellipse cx='16' cy='3.5' rx='1.3' ry='1.8'/%3E%3Cellipse cx='20' cy='2.5' rx='1.3' ry='1.8'/%3E%3Cellipse cx='24' cy='3.5' rx='1.3' ry='1.8'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.6;
}

.hero {
  position: relative;
  overflow: hidden;
}

/* Cards get a happy little wiggle on hover */
.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px) rotate(-1deg);
  box-shadow: 0 10px 24px rgba(47, 158, 88, 0.18);
}

/* A friendly paw trail above the footer text */
.site-footer::before {
  content: "🐾  🐾  🐾";
  display: block;
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

/* Section headings get a small paw before them */
.section h2::before,
.services-teaser h2::before {
  content: "🐾 ";
  font-size: 0.9em;
}

/* Bright paw prints marching down both side edges */
body::after {
  content: "";
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 49;
  background-image:
    url("../images/decorations/paw-bright.svg"),
    url("../images/decorations/paw-bright.svg");
  background-repeat: repeat-y, repeat-y;
  background-position: left 14px top 16px, right 14px top 54px;
  background-size: 34px, 34px;
}

/* Mountain, tree and dog scene along the bottom of the hero */
.hero {
  background-image:
    url("../images/decorations/mountains.svg"),
    linear-gradient(135deg, var(--color-green) 0%, var(--color-blue) 100%);
  background-repeat: no-repeat, no-repeat;
  background-position: bottom center, center;
  background-size: 100% 220px, cover;
  padding-bottom: 5.5rem;
}

/* ---------- Make the writing POP ---------- */
.hero h1 {
  text-shadow: 2px 3px 0 rgba(0, 0, 0, 0.18);
  font-size: 2.6rem;
}

.hero .tagline {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.page-hero h1 {
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.section h2,
.services-teaser h2 {
  text-shadow: 1px 1px 0 rgba(47, 158, 88, 0.15);
  font-size: 1.7rem;
}

.card h3 {
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.06);
}

/* ---------- Contact page: ambient colour-shifting name cards ---------- */
.contact-card {
  color: #000000;
  border: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
  /* wide multi-colour gradient that slowly slides across the card */
  background: linear-gradient(270deg, #33c96b, #2b7de9, #8e44ad, #2b7de9, #33c96b);
  background-size: 1000% 1000%;
  animation: ambientGlow 9s ease infinite;
}

/* stagger each card so they aren't all the same colour at once */
.contact-card:nth-of-type(2) { animation-delay: -2.25s; }
.contact-card:nth-of-type(3) { animation-delay: -4.5s; }
.contact-card:nth-of-type(4) { animation-delay: -6.75s; }

.contact-card:hover {
  transform: translateY(-4px) rotate(-1deg);
}

@keyframes ambientGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.contact-card h2 {
  color: #000000;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.55);
}

.contact-card a {
  color: #000000;
  font-weight: 700;
  text-decoration: underline;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.55);
}

.contact-card p {
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.45);
}

.contact-card .muted {
  color: #1a1a1a;
}

/* respect users who prefer no motion */
@media (prefers-reduced-motion: reduce) {
  .contact-card { animation: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    width: 100%;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
  }

  .site-nav li {
    padding: 0.5rem 0;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-illustration {
    max-width: 70%;
  }

  /* hide the side paws on narrow screens so text has room */
  body::after {
    display: none;
  }
}

/* ---------- Team member photos ---------- */
.team-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.team-photos figure {
  margin: 0;
  flex: 1 1 45%;
  min-width: 120px;
}

.team-photos img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
}

.team-photos figcaption {
  text-align: center;
  font-weight: 600;
  color: var(--color-green-dark);
  margin-top: 0.4rem;
}

/* Tall portrait photos: narrower, taller, and show the top (head) */
.team-photos figure.portrait {
  flex: 0 0 auto;
  max-width: 200px;
}

.team-photos figure.portrait img {
  height: 300px;
  object-position: top;
}

/* ---------- Best friends feature photo ---------- */
.best-friends {
  text-align: center;
}

.friends-photo {
  margin: 1.5rem auto 0;
  max-width: 340px;
}

.friends-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: block;
}

.friends-photo figcaption {
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--color-green-dark);
}

/* ---------- Booking form ---------- */
.booking-wrap {
  max-width: 620px;
}

.booking-form {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-weight: 600;
  color: var(--color-green-dark);
}

.form-row .req {
  color: #e0483a;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfd8d3;
  border-radius: var(--radius);
  background: #fff;
  width: 100%;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px rgba(47, 158, 88, 0.15);
}

.booking-form textarea {
  resize: vertical;
}

.booking-form .btn-primary {
  background: var(--color-green);
  color: #fff;
  justify-self: start;
  cursor: pointer;
  border: none;
}

.booking-note {
  margin-top: 1.5rem;
}

.hidden-field {
  display: none;
}

/* Fix: only show the decorative side paws when the screen is wide enough
   that they sit in the empty margins, never over the text. */
body::after { display: none; }
@media (min-width: 1250px) {
  body::after { display: block; }
}
