:root {
  --primary: #0b222f;
  --accent: #1072ba;
}
* {
  font-family: "Open Sans", serif;
}

.heading {
  font-size: 2.8rem;
  font-weight: 800;
}

body {
  margin: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Open Sans", serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: normal;
  font-variation-settings: "wdth" 100;
}
header {
  background-color: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  border-bottom: 5px solid var(--accent);
}
.left-header h3,
p {
  margin: 0;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;

}

nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin: 0 10px;
}
nav ul li a {
  color: #fff;
  font-size: 1.4rem;
  text-decoration: none;
}
nav ul li a:hover {
  color: var(--accent);
}
.section {
  padding: 60px 20px;
  text-align: center;
}
.health-report {
  width: 100vw;
  padding: 20px 0;
  font-size: 1.4rem;
  background-color: var(--accent);
  text-align: center;
}
.health-report a {
  color: white;
  border: 2px solid white;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
}

#home {
  background-color: var(--primary);
  color: #fff;
  text-align: center;
  padding: 100px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#home h1 {
  font-size: 2rem;
  margin-bottom: 50px;
}
#home p {
  font-size: 1.5em;
  margin-bottom: 50px;
  width: 90%;
  max-width: 800px;
  text-align: center;
}
.main-btn {
  background: #fff;
  text-align: center;
  color: var(--primary);
  width: 200px;
  padding: 10px 30px;
  text-decoration: none;
  font-size: 1.2em;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

.manage-btn {
  margin-bottom: 20px;
  display: none;
}

.accent {
  color: var(--accent);
}

.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.mission {
  margin-left: 35px;
}
.about-details {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.about-text {
  text-align: start;
  font-size: 1.3rem;
  width: 700px;
}

.ryan-img {
  border-radius: 10px;
  margin-right: 20px;
}
#services {
  background-color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;  
  color: var(--primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 1200px;
  width: 100%;
}
.service-item {
  border-radius: 10px;
  text-align: center;
  background-size: cover;         /* Ensures it fills the box */
  background-position: center;    /* Keeps image centered */
  background-repeat: no-repeat;   /* Prevents tiling */
  color: white;                   /* Optional, improves readability over image */
  padding: 10px;
  min-height: 300px;
  position: relative;
  overflow: hidden;

  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px var(--accent);
}
.service-item h3 {
  font-size: 1.8rem;
  margin-bottom: 30px;
}
.service-item p {
  font-size: 1.5rem;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6); /* semi-transparent overlay */
  z-index: 0;
}

.service-item > * {
  position: relative;
  z-index: 1;
}

.service-item:hover {
  filter: drop-shadow(10px 10px 10px var(--primary));
  border-color: var(--primary);
  cursor: default;
}

#contact {
  background-color: var(--accent);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.contact-section {
  width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-icons {
  width: 100%;
  border-radius: 10px;
}
.contact-button {
  transition: background 0.3s ease;
  border: 1px solid transparent;
  border-radius: 10px;
  margin: 10px 0;
  padding: 10px;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.contact-button:hover {
  background-color: white;
  color: var(--primary);
  border-color: var(--primary);
}

.contact-icons img {
  height: 75px;
  margin-right  : 20px;
}
.contact-button span {
  font-size: 1.7rem;
}

.contact-form {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.contact-form label {
  margin-top: 10px;
}
.contact-form input,
.contact-form textarea {
  margin-top: 5px;
  padding: 10px 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1.2rem;
}
.contact-form textarea {
  height: 150px;
}
.contact-form button {
  margin-top: 25px;
  font-size: 1.2rem;
  background: #fff;
  color: black;
  padding: 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 10px 0;
  background: var(--accent);
  color: #fff;
}

.post-submit {
  text-align: center;
  font-size: 1.5rem;
  margin: 20px;
}

.hidden {
  display: none;
}

.error-message {
  font-size: 1.5rem;
  background-color: red;
  padding: 10px 0;
  border-radius: 10px;
}
@media (hover: hover) and (pointer: fine) {
  #home .btn:hover {
    background: var(--accent);
    color: #fff;
  }
  .main-btn:hover {
    background-color: var(--accent);
    color: white;
  }
  .contact-form button:hover {
    color: white;
    background: var(--primary);
  }
  .contact-internal:hover {
    cursor: pointer;
    color: var(--primary);
    border-color: var(--accent);
  }
  .health-report a:hover {
    border-color: var(--primary);
    color: var(--primary);
  }
}

@media only screen and (max-width: 1150px) {
  .post-submit {
    font-size: 1.2rem;
  }
  header {
    position: static;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  nav {
    margin-top: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
  }
  header ul {
    display: none;
  }

  .manage-btn {
    display: block;
  }

  .health-report {
    padding: 25px 0;
  }

  .health-report a {
    margin-top: 20px;
    font-size: 1.2rem;    
    border: none;
  }

  .logo {
    margin: 15px 0;
    font-size: 1.4rem;
    text-align: center;
    width: 100%;
  }
  .hero-logo {
    width: 250px;
  }
  #home h1 {
    max-width: 250px;
    font-size: 1.4rem;
    margin-bottom: 40px;
  }
  #home p {
    font-size: 1.2rem;
  }

  .book-online-btn {
    position: fixed;
    background-color: var(--accent);
    color: white;
    border-radius: 0;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 2000;
  }

  .about-details {
    flex-direction: column;
  }
  .mission {
    margin-left: 0;
  }
  .ryan-img {
  height: 325px;
  }
  .about-text {
    font-size: 1.35rem;
    width: 90%;
    max-width: 500px;
    margin: 40px 0;
  }
  .services-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
  }
  .service-item {
    border: none;
    margin: 15px 0;
  }
  .service-item h3 {
    font-size: 1.4rem;
  }
  .service-item p {
    font-size: 1.2rem;
  }

  .contact-header {
    width: 100%;
    max-width: 800px;
  }
  .contact-section {
    max-width: 600px;
    width: 100%;
  }

  .contact-icons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 20px;
  }
  .contact-icons img {
    width: 100px;
    height: auto;
    margin: 0;
  }
  .contact-button {
    margin: 0;
    padding: 0;
  }

  .contact-button span {
    display: none;
  }

  .error-message {
    font-size: 1.2rem;
  }
}
