/* RM Living Care Style Sheet */

* {
  transition: all 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: #f7f9fc;
  color: #333;
}

header {
  background: linear-gradient(90deg, #004080, #ff8800);
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  margin: 0;
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.2s ease;
}

nav a:hover {
  color: #ffe0b2;
  transform: scale(1.05);
}

.hero {
  background: url('assets/home-bg.jpg') no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}

.hero .btn {
  background-color: #ff8800;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  margin-top: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero .btn:hover {
  background-color: #e27000;
  transform: scale(1.05);
}

section {
  padding: 4rem 2rem;
}

section h2 {
  color: #004080;
  margin-bottom: 1rem;
}

.mission,
.services,
.about,
.careers,
.contact,
.testimonials {
  background-color: #ffffff;
  margin-bottom: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about:hover,
.services:hover,
.careers:hover,
.contact:hover,
.testimonials:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.staff-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
}

.staff-card {
  background-color: #eef4fb;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  width: 200px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.staff-card img {
  width: 100%;
  border-radius: 50%;
  height: auto;
}

blockquote {
  font-style: italic;
  background-color: #fffbf0;
  padding: 1rem;
  border-left: 5px solid #ff8800;
  margin-top: 1rem;
  border-radius: 5px;
}

.services ul {
  list-style-type: square;
  padding-left: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin-top: 1rem;
}

form input,
form textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #004080;
  box-shadow: 0 0 5px rgba(0, 64, 128, 0.3);
}

form button {
  background-color: #004080;
  color: #fff;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background-color: #002b5c;
  transform: scale(1.03);
}

footer {
  background-color: #004080;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
  position: relative;
}

.footer-logo {
  width: 230px;
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .staff-cards {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

    
}
/* Outline box for location/map */
.outlined-box {
  border: 2px solid #ff8800;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
/* Image Scroll Gallery */
.image-scroll-gallery {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.gallery-item {
  min-width: 250px;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.gallery-item p {
  margin-top: 0.5rem;
  font-style: italic;
  color: #555;
}
.contact {
  max-width: 600px;
  margin: 3rem auto; /* This centers the section horizontally */
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center; /* Center text inside */
}

.contact h2,
.contact p {
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center; /* centers all child elements */
  justify-content: center;
  text-align: center;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

form label {
  width: 100%;
  text-align: center;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  max-width: 400px;
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  box-sizing: border-box;
}

form button {
  background-color: #004080;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

form button:hover {
  background-color: #002b5c;
  transform: scale(1.03);
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="file"],
form textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
  width: 100%;
  max-width: 500px;
}

.upload-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

form label {
  font-weight: bold;
  margin-top: 1rem;
}

form button {
  background-color: #004080;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #002b5c;
}
.careers {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.careers form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 600px;
  width: 100%;
}

.careers form input,
.careers form textarea,
.careers form select,
.careers form button {
  width: 100%;
  max-width: 500px;
  margin: 0.5rem 0;
}

.upload-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.hero {
  position: relative;
  width: 100%;
  height: 450px;
  background: url('assets/home-banner.jpeg') center center / cover no-repeat;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(0, 64, 128, 0.55), rgba(255, 136, 0, 0.45));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  color: white;
  text-align: center;
  z-index: 1;
  padding: 2rem;
  backdrop-filter: blur(2px);
}

.hero-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.hero-content .tagline {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: 'Georgia', serif;
  color: #f9f9f9;
  margin-bottom: 1.5rem;
}

.hero .btn {
  background-color: #ff8800;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  margin-top: 1rem;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero .btn:hover {
  background-color: #e27000;
  transform: scale(1.05);
}
