/* ==========================================================
   Ruffin' It Dog Walking Services - site styles
   Change the colours below to restyle the whole site.
   ========================================================== */

@font-face {
  font-family: "Casanova";
  src: url("../fonts/Casanova.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "RedHatDisplay";
  src: url("../fonts/RedHatDisplay.ttf") format("truetype");
  font-display: swap;
}

:root {
  --green: #5ab808;        /* brand green: buttons, "Ruffin' It" highlights, names */
  --green-dark: #4a9a06;   /* button hover */
  --text: #404040;         /* body text */
  --heading: #353535;      /* page titles */
  --band: #111111;         /* "Book Now" strip */
  --footer: #1e1e1e;       /* footer */
  --nav-bg: rgba(0, 0, 0, 0.45);
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "RedHatDisplay", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  font-size: 17px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }

h1, h2, h3 { font-weight: 500; line-height: 1.25; }

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

.serif { font-family: "Casanova", Georgia, serif; }
.green { color: var(--green); }

/* ---------- Navigation ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(2px);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px;
}
.site-nav .brand img { width: 50px; height: 50px; border-radius: 50%; }
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px 18px;
  margin: 0; padding: 0;
}
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--green); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 26px; height: 3px;
  margin: 5px 0;
  background: #fff;
  border-radius: 2px;
}

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.9);
    padding: 8px 0;
  }
  .site-nav.open ul { display: flex; }
  .site-nav li a { display: block; padding: 10px 20px; }
}

/* ---------- Hero slideshow (home) ---------- */
.hero {
  position: relative;
  height: min(85vh, 760px);
  overflow: hidden;
  background: #222;
  border-bottom: 2px solid #222;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero img.active { opacity: 1; }

/* ---------- Page banner (inner pages) ---------- */
.banner {
  height: 300px;
  background: url("../img/banner-panorama.jpg") center 40% / cover no-repeat;
}
@media (max-width: 700px) { .banner { height: 180px; } }

.page-title {
  font-family: "Casanova", Georgia, serif;
  font-size: 38px;
  color: var(--heading);
  margin: 40px 0 30px;
}

main, main.container { padding-bottom: 60px; }

/* ---------- Home ---------- */
.intro { text-align: center; padding-top: 40px; }
.intro .logo { width: min(540px, 90%); margin: 0 auto 30px; }
.intro p { font-size: 15px; margin: 0 0 20px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0 50px;
  text-align: center;
}
.services-grid h2 { font-size: 26px; margin: 0 0 18px; }
.services-grid .icon { width: 70px; margin: 0 auto 18px; }
.services-grid p { margin: 0 0 26px; min-height: 52px; }

.btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 12px 24px;
  border: 2px solid var(--green);
  transition: background 0.2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn.block { display: block; }
.btn.outline { background: transparent; }
.btn.outline:hover { background: var(--green); }

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 30px;
  margin: 20px 0 30px;
}
.badges img { height: 66px; width: auto; }

.reviews { padding: 70px 0 50px; }
.review { display: none; }
.review.active { display: block; }
.review h3 { font-size: 18px; margin: 0; }
.review .by { margin: 0 0 24px; }
.review .by span { color: var(--green); }
.review p { font-size: 18px; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.dots button {
  width: 10px; height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #333;
  cursor: pointer;
}
.dots button.active { background: var(--green); }

/* ---------- "Book Now" band ---------- */
.cta-band { background: var(--band); color: #fff; padding: 26px 0; }
.cta-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.cta-band p { margin: 0; font-size: 24px; font-family: Arial, sans-serif; }

/* ---------- Services ---------- */
.prose h2 { font-size: 28px; margin: 34px 0 10px; }
.prose ul { padding-left: 40px; }
.list-plain { list-style: none; padding-left: 22px !important; }
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.pricing h3 { font-size: 22px; margin: 10px 0 18px; }
.pricing img { width: 90px; margin: 0 auto 14px; }
.pricing .price { font-weight: 600; }
.map { margin: 30px auto 0; max-width: min(880px, 100%); }

/* ---------- About ---------- */
.paws { list-style: none; padding: 0 0 0 90px; }
.paws li {
  position: relative;
  padding-left: 54px;
  margin-bottom: 28px;
  min-height: 36px;
}
.paws li::before {
  content: "";
  position: absolute;
  left: 0; top: -4px;
  width: 36px; height: 36px;
  background: url("../img/paw.png") center / contain no-repeat;
}
@media (max-width: 700px) { .paws { padding-left: 0; } }

/* ---------- Meet the team ---------- */
.person img { margin: 10px auto 30px; max-width: 590px; width: 100%; }
.person h2 { font-size: 28px; margin: 0 0 8px; }
.person p { font-size: 15px; }
.quote {
  border-left: 3px solid #ddd;
  margin: 30px 0;
  padding: 4px 0 4px 28px;
  font-style: normal;
}

/* ---------- Testimonials ---------- */
.testimonial {
  border-left: 3px solid #ddd;
  margin: 50px 0 70px;
  padding: 0 0 0 28px;
  font-size: 15px;
}
.testimonial footer {
  color: var(--green);
  font-weight: 700;
  margin-top: 20px;
}
.testimonial footer::before { content: "— "; }

/* ---------- Gallery ---------- */
.gallery-title { text-align: center; padding-top: 70px; }
.gallery-title .page-title { font-size: 52px; color: var(--green); margin: 10px 0 40px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.gallery-grid a {
  display: block;
  border: 1px solid #ccc;
  padding: 4px;
  background: #fff;
}
.gallery-grid img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.gallery-grid a:hover { border-color: var(--green); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
  padding: 10px 18px;
}
.lightbox .close { top: 10px; right: 10px; }
.lightbox .prev { left: 6px; }
.lightbox .next { right: 6px; }

/* ---------- Contact form ---------- */
.contact-form { max-width: 760px; margin: 0 auto; }
.contact-form label { display: block; font-weight: 500; margin: 18px 0 8px; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  margin-bottom: 10px;
  color: var(--text);
}
.contact-form select { background: #eee; }
.contact-form textarea { min-height: 200px; }
.contact-form button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  font: inherit;
  background: var(--green);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.contact-form button:hover { background: var(--green-dark); }
.contact-form button:disabled { opacity: 0.7; cursor: default; }
.form-status { font-weight: 600; color: var(--green-dark); margin: 14px 0 0; }
.service-area-note { text-align: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #fff; padding: 40px 0 16px; margin-top: 40px; }
.cta-band + .site-footer { margin-top: 40px; }
.social { display: flex; justify-content: center; gap: 50px; margin-bottom: 30px; }
.social svg { width: 46px; height: 46px; fill: #fff; }
.social a:hover svg { fill: var(--green); }
.site-footer .legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  font-family: Arial, sans-serif;
}
