@font-face {
  font-family: "Fredoka";
  src: url("../assets/fonts/fredoka.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Lato";
  src: url("../assets/fonts/lato.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

:root {
  --primary: #4c8ebf;
  --secondary: #1a3c5a;
  --light: #f5f7fa;
  --dark: #333333;
  --accent: #6caedb;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
}

html,
body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

body {
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* Ensure sections are not hidden by fixed header */
section {
  scroll-margin-top: 80px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-family: "Fredoka", sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--secondary);
}

.logo-img {
  width: 40px;
  height: 40px;
  margin-right: 10px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: var(--primary);
}

.cta-button {
  background-color: var(--primary);
  color: white;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: var(--accent);
}

.mobile-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("../assets/images/hero.png") no-repeat center;
  background-size: cover;
  color: white;
  padding: 100px 0;
  text-align: center;
  padding-top: 200px; /* Increased to ensure content clears header */
}

.hero .container {
  margin-top: 20px; /* Additional clearance for hero content */
}

.hero h1 {
  font-family: "Fredoka", sans-serif;
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Services Section */
.services {
  padding: 80px 0;
  text-align: center;
}

.section-title {
  font-family: "Fredoka", sans-serif;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.service-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 50px;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 22px;
  margin-bottom: 15px;
}

.service-card p {
  color: #666;
  margin-bottom: 20px;
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.about-content h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  margin-bottom: 20px;
  color: #555;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: center;
}

.feature-icon {
  font-size: 20px;
  color: var(--secondary);
  margin-right: 10px;
}

.about-content .cta-button {
  display: block;
  margin: 30px auto 0;
}

/* Testimonials */
.testimonials {
  padding: 80px 0;
  background-color: #f1f8f2;
  text-align: center;
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
}

.testimonial-card {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin: 20px;
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.client-info {
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-right: 15px;
}

.client-name {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  margin-bottom: 5px;
}

.client-role {
  color: #777;
  font-size: 14px;
}

/* Pricing */
.pricing {
  padding: 80px 0;
  text-align: center;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

.pricing-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card.featured {
  transform: scale(1.05);
  border: 2px solid var(--primary);
  position: relative;
}

.pricing-card.featured:before {
  content: "Most Popular";
  font-family: "Fredoka", sans-serif;
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card h3 {
  font-family: "Fredoka", sans-serif;
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 15px;
}

.price {
  font-family: "Fredoka", sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--dark);
}

.price span {
  font-size: 16px;
  font-weight: 400;
  color: #777;
}

.pricing-features {
  margin: 30px 0;
  text-align: left;
}

.pricing-features li {
  margin-bottom: 10px;
  list-style: none;
  display: flex;
  align-items: center;
}

.pricing-features li:before {
  content: "✓";
  color: var(--primary);
  font-weight: bold;
  margin-right: 10px;
}

/* Happy Paws Gallery */
.happy-paws {
  padding: 80px 0;
  background-color: var(--light);
  text-align: center;
}

.pet-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin: 0 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pet-img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* Contact */
.contact {
  padding: 80px 0;
  background-color: white;
}

.contact-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
}

.contact-info {
  text-align: center;
}

.contact-info h2 {
  font-family: "Fredoka", sans-serif;
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 20px;
  color: #555;
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-icon i {
  font-size: 18px;
}

.contact-form {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
}

textarea.form-control {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

/* Footer */
footer {
  background-color: #333;
  color: white;
  padding: 60px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-col h3 {
  font-family: "Fredoka", sans-serif;
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary);
}

.footer-col p {
  color: #bbb;
  margin-bottom: 15px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bbb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: var(--primary);
}

.social-icon i {
  font-size: 18px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 14px;
}

.footer-bottom a[href="https://codedvisiondesign.co.uk"]
{
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a[href="https://codedvisiondesign.co.uk"]:hover
{
  color: white;
}

/* Floating Chatbot Widget */
#petperson-chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.petperson-chatbot-bubble {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4c8ebf 60%, #6caedb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  animation: chatbot-bounce 2s infinite;
  transition: background 0.3s, transform 0.2s;
}

.petperson-chatbot-bubble:hover {
  background: linear-gradient(135deg, #6caedb 60%, #4c8ebf 100%);
  transform: scale(1.1) rotate(-5deg);
}

@keyframes chatbot-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-8px);
  }
  40% {
    transform: translateY(0);
  }
  60% {
    transform: translateY(-4px);
  }
  80% {
    transform: translateY(0);
  }
}

.petperson-chatbot-window {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  max-width: 95vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(76, 142, 191, 0.18);
  overflow: hidden;
  display: none;
  flex-direction: column;
  z-index: 1001;
  animation: chatbot-fadein 0.3s;
}

@keyframes chatbot-fadein {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.petperson-chatbot-header {
  background: linear-gradient(135deg, #4c8ebf 60%, #6caedb 100%);
  color: #fff;
  padding: 16px;
  font-family: "Fredoka", sans-serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.petperson-chatbot-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

.petperson-chatbot-body {
  padding: 16px;
  background: #f5f7fa;
  height: 320px;
  overflow-y: auto;
  font-size: 15px;
  color: #333;
}

.petperson-chatbot-input {
  display: flex;
  border-top: 1px solid #e0e0e0;
  background: #fff;
}

.petperson-chatbot-input input {
  flex: 1;
  border: none;
  padding: 12px;
  font-size: 15px;
  border-radius: 0 0 0 16px;
  outline: none;
}

.petperson-chatbot-input button {
  background: #4c8ebf;
  color: #fff;
  border: none;
  padding: 0 18px;
  font-size: 18px;
  border-radius: 0 0 16px 0;
  cursor: pointer;
  transition: background 0.2s;
}

.petperson-chatbot-input button:hover {
  background: #6caedb;
}

.petperson-chatbot-message {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-end;
}

.petperson-chatbot-message.user {
  justify-content: flex-end;
}

.petperson-chatbot-message.bot {
  justify-content: flex-start;
}

.petperson-chatbot-message .bubble {
  max-width: 80%;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
}

.petperson-chatbot-message.user .bubble {
  background: #4c8ebf;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.petperson-chatbot-message.bot .bubble {
  background: #eaf4fa;
  color: #333;
  border-bottom-left-radius: 4px;
}

.petperson-chatbot-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.petperson-chatbot-actions button {
  background: #fff;
  color: #4c8ebf;
  border: 1px solid #4c8ebf;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.petperson-chatbot-actions button.selected,
.petperson-chatbot-actions button:hover {
  background: #4c8ebf;
  color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
  .services-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  .glide__arrows {
    display: none;
  }

  .contact-grid {
    align-items: center;
    justify-content: center;
  }

  .contact-info {
    text-align: center;
  }
}

@media (max-width: 576px) {
  .services-grid,
  .pricing-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }
}

/* Glide.js Carousel */
.glide,
.gallery-glide {
  margin-top: 50px;
  position: relative;
}

.gallery-glide .glide__slide {
  height: 450px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.gallery-glide .glide__slide:hover {
  transform: translateY(-5px);
}

.gallery-glide .pet-card {
  height: 100%;
  width: 100%;
}

.gallery-glide .pet-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-glide .pet-img:hover {
  transform: scale(1.05);
}

.gallery-glide .glide__arrows {
  position: absolute;
  width: 100%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  z-index: 2;
}

.gallery-glide .glide__arrow {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.gallery-glide .glide__arrow:hover {
  background-color: var(--accent);
  opacity: 1;
  transform: scale(1.1);
}

.gallery-glide .glide__bullets {
  position: absolute;
  z-index: 2;
  bottom: -2em;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  list-style: none;
}

.gallery-glide .glide__bullet {
  background-color: #ccc;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.gallery-glide .glide__bullet--active {
  background-color: var(--primary);
  transform: scale(1.2);
}

.glide__track {
  overflow: hidden;
}

.glide__slides {
  display: flex;
  list-style: none;
}

.glide__slide {
  flex-shrink: 0;
}

/* Custom Plan Section */
.custom-plan {
  margin-top: 50px;
  text-align: center;
}

.custom-plan p {
  margin-bottom: 20px;
}

.custom-plan .cta-button {
  display: inline-block;
}

/* Contact Section Hyperlinks */
.contact-details .contact-item a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-details .contact-item a:hover {
  color: rgb(80, 80, 80);
}

/* Review CTA */
.review-cta {
  margin-top: 30px;
  text-align: center;
}

/* Footer Policy Links */
.footer-bottom a.footer-policy {
  color: #999;
  text-decoration: none;
}

/* Floating WhatsApp Button */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  background-color: #1da851;
}

.whatsapp-fab i {
  color: white;
}
