html, body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: white;
  padding: 0;
  height: 100%;

}

/* Background */
.main-background {
  background: url('../images/dog1.jpg') left top / cover no-repeat;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* Header */
header {
  background-color: #800000;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 215px;
}

/* Header layout with Book Now on far right */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 20px;
}


.logo-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  width: 100%;
}


.book-now {
  margin-left: auto;
}


/* Logo */
.logo {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  align-items: center;
  margin-bottom: 15px;
}
.logo img {
    max-height: 240px;
    height: auto;
}

.logo h1 {
  margin: 0;
}
@media (max-width: 480px) {
  .logo img {
    max-width: 150px;
  }
}

/* Hamburger Menu */
.menu-toggle {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 24px;
  justify-content: space-between;
}
.menu-toggle span {
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: all 0.4s ease;
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

/* Nav */
nav {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
  width: 100%;
}
nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}


nav ul li { margin: 10px 0; }

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: x-large;
}
nav ul li a:hover { text-decoration: underline; }
nav.active { max-height: 300px; }

/* Desktop Nav */
@media (min-width: 768px) {
  .menu-toggle { display: none; }
  nav { max-height: none !important; }
  nav ul { flex-direction: row; justify-content: center; }
  nav ul li { margin: 0 15px; }
}

/* General Content */
.content {
  flex: 1; /* allows content to grow and push footer down */
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;  /* pushes tiles to the right */
  font-size: 16pt;
}


/* Images */
.owner-img,
.equipment-img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.equipment-img { width: 150%; }

.owner3-img {
  max-width: 40%;
  height: auto;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.passport-img {
  max-width: 40%;
  height: auto;
  border-radius: 10px;
  margin: 15px 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Tiles */
.intro-tile,
.appointment-tile {
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  margin: 20px 30px 20px auto; /* auto left margin pushes right */
  text-align: center;        /* text aligns right inside the tile */
}

/* Tiles */
.intro-tile-center,
.appointment-tile-center {
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 10px;
  max-width: 500px;
  margin: 20px 0 20px auto; /* auto left margin pushes right */
  text-align: center;        /* text aligns right inside the tile */
}

.appointment-tile {
  background: rgba(128, 0, 0, 0.85);
  border-radius: 10px;
  flex: 1 1 365px;
}

.appointment-tile-center {
  background: rgba(128, 0, 0, 0.85);
  border-radius: 10px;
  flex: 1 1 365px;
}
/* Buttons */
.schedule-button {
  background-color: transparent;
  color: white;
  font-size: 1.5em;
  border: 2px solid white;
  padding: 24px 24px;
  border-radius: 10px;
  margin-top: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.schedule-button-header {
  background-color: transparent;
  color: white;
  font-size: 1.5em;
  border: 2px solid white;
  padding: 24px 24px;
  border-radius: 10px;
  margin-top: 5px;
  margin-right: 40px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}




.schedule-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}



/* Grooming Menu */
.grooming-menu {
  padding: 40px 20px;
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
}
.grooming-menu h2 {
  font-size: 2em;
  margin-bottom: 30px;
}
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.menu-card {
  background: rgba(128, 0, 0, 0.9);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
}
.menu-card:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  background: rgba(139, 0, 0, 1);
}
.menu-card h3 {
  margin-top: 0;
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffd700;
}
.menu-card ul {
  text-align: left;
  padding-left: 20px;
  margin-bottom: 15px;
}
.menu-card li { margin-bottom: 8px; }
.price {
  font-weight: bold;
  font-size: 1.2em;
  color: #fffacd;
}

/* Form Styles */
form label {
  display: block;
  font-weight: bold;
  margin: 10px 0 5px;
  text-align: left;
}
form input,
form textarea {
  width: 95%;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px; /* matches Send button */
  margin-bottom: 15px;
  box-sizing: border-box;
}
form textarea { min-height: 120px; }

/* Feedback Messages */
.feedback-message {
  margin-top: 15px;
  font-weight: bold;
  font-size: 1.1em;
  padding: 10px 15px;
  border-radius: 8px;
  display: inline-block;
}
.feedback-success {
  background: rgba(0, 128, 0, 0.7);
  color: #fffacd;
}
.feedback-error {
  background: rgba(139, 0, 0, 0.8);
  color: #ffd700;
}

/* Footer */
.footer {
  background-color: #800000;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: auto; /* pushes footer to bottom of .main-background */
  width: 100%;
}

/* Header container */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* allow wrapping on small screens */
  padding: 0px 0px;
}

/* Book Now Button */
.schedule-button-header {
  background-color: transparent;
  color: white;
  font-size: x-large;
  border: 2px solid white;
  padding: 12px 18px;
  border-radius: 8px;
  margin: 10px 0;
  cursor: pointer;
  white-space: nowrap; /* prevent breaking */
  transition: background-color 0.3s ease, transform 0.3s ease;
}
.schedule-button-header:hover {
  background-color: rgba(255,255,255,0.1);
  transform: scale(1.05);
}

/* Responsive logo + nav + button */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .logo h1 {
    font-size: 1.2em;
    text-align: left;
  }

.book-now {
    margin-left: auto;
}


.schedule-button-header {
    padding: 8px 16px;
    font-weight: bold;
    background-color: #000;
    color: #fff;
    border: none;
    cursor: pointer;
}


  nav ul {
    font-size: 1em;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .logo h1 {
    font-size: 1em;
  }
  .schedule-button-header {
    font-size: 1em;
    padding: 12px;
  }
}
