/* =====================================================
   Wanda Hoskins
   Your Dog's Home Away From Home
   Main Stylesheet
===================================================== */

/* ------------------------------
   Base
------------------------------ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: 'Nunito', sans-serif;

  background: #fff9f1;

  color: #444;

  line-height: 1.7;
}

img {
  max-width: 100%;

  display: block;
}

p {
  margin: 0 0 1rem;
}

/* ------------------------------
   Header / Hero
------------------------------ */

header {
  position: relative;

  overflow: hidden;

  background: linear-gradient(135deg, #fdbb63, #ffd77a);

  padding: 70px 25px;

  color: white;
}

.hero {
  max-width: 1100px;

  margin: auto;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 40px;

  position: relative;

  z-index: 5;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;

  text-align: center;
}

.hero-image img {
  max-width: 450px;

  margin: auto;

  border-radius: 30px;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
}

header h1 {
  font-size: 3.5rem;

  font-weight: 800;
}

header h2 {
  font-size: 2rem;

  margin-top: 10px;
}

.tagline {
  font-size: 1.3rem;

  margin: 25px 0;
}

/* ------------------------------
 Buttons
------------------------------ */

.btn-primary {
  display: inline-block;

  background: #ff914d;

  color: white;

  padding: 16px 35px;

  border-radius: 50px;

  text-decoration: none;

  font-size: 1.15rem;

  font-weight: bold;

  border: none;

  cursor: pointer;

  transition: 0.3s;
}

.btn-primary:hover {
  background: #e86d25;

  transform: translateY(-3px);
}

/* ------------------------------
 Main Content
------------------------------ */

main {
  max-width: 1100px;

  margin: auto;

  padding: 50px 25px;
}

.card {
  background: white;

  border-radius: 25px;

  padding: 40px;

  margin-bottom: 40px;

  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.card h2 {
  color: #ff914d;

  margin-bottom: 20px;

  font-size: 2rem;
}

.section-intro {
  margin-bottom: 30px;
}

/* ------------------------------
 Wanda Section
------------------------------ */

.meet-wanda {
  display: flex;

  gap: 40px;

  align-items: center;
}

.wanda-photo {
  flex: 0 0 300px;
}

.wanda-photo img {
  border-radius: 50%;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ------------------------------
 Features
------------------------------ */

.feature-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));

  gap: 25px;
}

.feature {
  background: #fff4e7;

  border-radius: 18px;

  padding: 25px;

  text-align: center;
}

.feature .icon {
  font-size: 3rem;
}

.feature h3 {
  color: #d87000;

  margin: 10px 0;
}

/* ------------------------------
 Testimonials
------------------------------ */

.testimonial-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 25px;
}

.testimonial {
  background: #fff8ee;

  border-radius: 20px;

  padding: 25px;

  text-align: center;
}

.testimonial img {
  width: 130px;

  height: 130px;

  -o-object-fit: cover;

  object-fit: cover;

  border-radius: 50%;

  margin: 0 auto 15px;

  border: 5px solid #ffd77a;
}

.testimonial h3 {
  color: #d87000;
}

.stars {
  margin: 10px;
}

/* ------------------------------
 Contact Form
------------------------------ */

form {
  margin-top: 25px;
}

label {
  display: block;

  font-weight: bold;

  margin-bottom: 5px;
}

input,
textarea {
  width: 100%;

  padding: 14px;

  border-radius: 12px;

  border: 1px solid #ddd;

  font-family: inherit;

  font-size: 16px;

  margin-bottom: 18px;
}

textarea {
  resize: vertical;
}

.two-column {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 20px;
}

.hidden {
  display: none;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;

  margin-top: 1rem;
}

.form-actions .btn {
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .form-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/*****************************
Floating Paw Prints
*****************************/

header {
  position: relative;
  overflow: hidden;
}

.floating-paw {
  position: absolute;

  opacity: 0;

  pointer-events: none;

  -webkit-user-select: none;

  -moz-user-select: none;

  -ms-user-select: none;

  user-select: none;

  z-index: 1;

  -webkit-animation-name: pawFloat;

  animation-name: pawFloat;

  -webkit-animation-fill-mode: forwards;

  animation-fill-mode: forwards;

  -webkit-animation-timing-function: ease-in-out;

  animation-timing-function: ease-in-out;
}

@-webkit-keyframes pawFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }

  15% {
    opacity: 0.12;
  }

  70% {
    opacity: 0.08;
  }

  100% {
    opacity: 0;

    transform: translate(var(--dx), var(--dy)) scale(1.25);
  }
}

@keyframes pawFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }

  15% {
    opacity: 0.12;
  }

  70% {
    opacity: 0.08;
  }

  100% {
    opacity: 0;

    transform: translate(var(--dx), var(--dy)) scale(1.25);
  }
}

.hero {
  position: relative;
  z-index: 5;
}

/* Mouse trail paws */

.mouse-paw {
  position: absolute;

  pointer-events: none;

  opacity: 0.18;

  -webkit-animation: mouseTrail 3s forwards ease-out;

  animation: mouseTrail 3s forwards ease-out;

  z-index: 3;
}

@-webkit-keyframes mouseTrail {
  0% {
    opacity: 0.18;
    transform: scale(0.8);
  }

  40% {
    opacity: 0.12;
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(1.15);
  }
}

@keyframes mouseTrail {
  0% {
    opacity: 0.18;
    transform: scale(0.8);
  }

  40% {
    opacity: 0.12;
  }

  100% {
    opacity: 0;
    transform: translateY(-12px) scale(1.15);
  }
}

/* =====================================================
   Walking Dog
===================================================== */

.welcome-dog {
  position: absolute;

  left: -250px;

  width: 220px;
  height: auto;

  z-index: 10;

  pointer-events: none;

  -webkit-animation: dogCrossHero 9s linear forwards;

  animation: dogCrossHero 9s linear forwards;
}

/* Dog moves across hero */

@-webkit-keyframes dogCrossHero {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100vw + 500px));
  }
}

@keyframes dogCrossHero {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(100vw + 500px));
  }
}

/* Paw prints */

.welcome-paw {
  position: absolute;

  font-size: 18px;
  opacity: 0.22;

  z-index: 9;

  pointer-events: none;

  -webkit-animation: welcomePawFade 3s ease-out forwards;

  animation: welcomePawFade 3s ease-out forwards;
}

@-webkit-keyframes welcomePawFade {
  from {
    opacity: 0.24;
  }

  to {
    opacity: 0;

    transform: translateY(-12px) scale(1.15);
  }
}

@keyframes welcomePawFade {
  from {
    opacity: 0.24;
  }

  to {
    opacity: 0;

    transform: translateY(-12px) scale(1.15);
  }
}

/* Mobile */

@media (max-width: 850px) {
  .welcome-dog {
    left: -190px;

    width: 165px;

    -webkit-animation-duration: 7s;

    animation-duration: 7s;
  }
}

@media (max-width: 600px) {
  .welcome-dog {
    left: -160px;

    width: 140px;

    -webkit-animation-duration: 6.5s;

    animation-duration: 6.5s;
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .welcome-dog,
  .welcome-paw {
    display: none;
  }
}

/* =====================================================
   Mascot - Smaller Screens
===================================================== */

@media (max-width: 850px) {
  .welcome-dog {
    left: -180px;
    width: 145px;
    -webkit-animation-duration: 7s;
    animation-duration: 7s;
  }

  .welcome-paw {
    font-size: 16px;
  }
}

/* =====================================================
   Reduced Motion
===================================================== */

@media (prefers-reduced-motion: reduce) {
  .welcome-dog,
  .welcome-paw {
    display: none;
  }
}

/* ------------------------------
 Footer
------------------------------ */

footer {
  text-align: center;

  background: #ffe8bf;

  padding: 45px 25px;
}

footer h2 {
  color: #d87000;
}

.copyright {
  margin-top: 20px;

  color: #777;
}

.service-area {
  margin-top: 20px;
  font-size: 0.85rem;
}

/* ===========================================
   Sending Overlay
=========================================== */

.sending-overlay {
  position: fixed;

  inset: 0;

  background: rgba(255, 249, 241, 0.96);

  display: flex;

  justify-content: center;

  align-items: center;

  z-index: 9999;

  opacity: 0;

  visibility: hidden;

  transition: 0.35s;
}

.sending-overlay.show {
  opacity: 1;

  visibility: visible;
}

.sending-box {
  background: white;

  padding: 50px;

  border-radius: 25px;

  width: min(500px, 92%);

  text-align: center;

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.sending-box h2 {
  color: #ff914d;

  margin: 20px 0;
}

.sending-box p {
  color: #666;

  margin-bottom: 30px;
}

.loading-paws {
  display: flex;

  justify-content: center;

  gap: 15px;

  font-size: 28px;
}

.loading-paws span {
  -webkit-animation: bounce 1.2s infinite;
  animation: bounce 1.2s infinite;
}

.loading-paws span:nth-child(2) {
  -webkit-animation-delay: 0.15s;
  animation-delay: 0.15s;
}

.loading-paws span:nth-child(3) {
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
}

.loading-paws span:nth-child(4) {
  -webkit-animation-delay: 0.45s;
  animation-delay: 0.45s;
}

@-webkit-keyframes bounce {
  0%,
  100% {
    transform: translateY(0);

    opacity: 0.4;
  }

  50% {
    transform: translateY(-10px);

    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);

    opacity: 0.4;
  }

  50% {
    transform: translateY(-10px);

    opacity: 1;
  }
}

/* running dog */

.dog-run {
  font-size: 64px;

  -webkit-animation: runDog 1s infinite alternate;

  animation: runDog 1s infinite alternate;
}

@-webkit-keyframes runDog {
  from {
    transform: translateX(-10px);
  }

  to {
    transform: translateX(10px);
  }
}

@keyframes runDog {
  from {
    transform: translateX(-10px);
  }

  to {
    transform: translateX(10px);
  }
}

/* ------------------------------
 Mobile
------------------------------ */

@media (max-width: 850px) {
  .hero {
    flex-direction: column;

    text-align: center;
  }

  header h1 {
    font-size: 2.6rem;
  }

  header h2 {
    font-size: 1.5rem;
  }

  .meet-wanda {
    flex-direction: column;
  }

  .two-column {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 25px;
  }
}
