/* -----------------------------------
   1) Base Colors & Resets
----------------------------------- */
:root {
  --primary-color: #46C8F5;      /* Light Blue */
  --secondary-color: #333333;    /* Dark Gray */
  --accent-color: #999999;       /* Light Gray */
  --background-color: #F8F9FA;   /* Soft off-white */
  --text-color: #333333;         /* Standard text color */
  --very-light-blue: #E6F7FF;
  --button-light-blue: #B3E5FC; /* Very light blue for buttons */
}

/* Box-sizing and Smooth Scrolling */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding: 10rem;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* Flex Layout for Body to Enable Sticky Footer */
body {
  display: flex;
  flex-direction: column;
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.6;
}

/* Main Content Area */
main {
  flex: 1 0 auto;
  padding: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

/* -----------------------------------
   2) Header / Navigation
----------------------------------- */
header {
  text-align: center;
  padding: 1rem 0;
}

nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--secondary-color);
  padding: 1rem 0;
}

nav img {
  max-width: 200px;
  height: auto;
  margin-bottom: 1rem;
}

nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

nav li a {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

nav li a:hover {
  text-decoration: underline;
}

/* -----------------------------------
   3) Hero Section (Responsive)
----------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: 4rem 1rem;
  background: url('hero-image.jpg') no-repeat center center/cover;
  color: white;
  overflow: hidden;
  min-height: 25vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px black;
}

.hero p {
  font-size: 1.5rem;
  text-shadow: 1px 1px 2px black;
}

@media (max-width: 992px) {
  .hero {
    padding: 3rem 1rem;
    min-height: 50vh;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1rem;
    min-height: 45vh;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 1rem;
    min-height: 40vh;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* -----------------------------------
   4) Services Section (Flex Layout)
----------------------------------- */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.service-item {
  background: #fff;
  border: 1px solid var(--accent-color);
  border-radius: 8px;
  padding: 16px;
  width: 100%;
  max-width: 650px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  box-sizing: border-box;
}

.service-item h3 {
  background: var(--primary-color);
  color: #fff;
  margin: 0;
  padding: 8px 16px;
  font-size: 1.5rem;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.service-item p {
  padding: 8px 16px;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
}

@media (min-width: 768px) {
  .service-item {
    flex: 1 1 calc(33.333% - 3rem);
    margin: 1rem;
  }
}

@media (min-width: 1024px) {
  .service-item {
    flex: 1 1 calc(25% - 3rem);
  }
}

.service-item img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* -----------------------------------
   5) Override List Alignment Within Service Items
----------------------------------- */
.service-item ul,
.service-item ol {
  background-color: var(--very-light-blue);
  border-radius: 4px;
  padding-left: 3rem;
  text-align: left;
  margin: 0.5rem 0;
}

.service-item li {
  margin-bottom: 4px;
  font-size: 1rem;
  line-height: 1.6;
}

.service-item ul li::marker,
.service-item ol li::marker {
  color: var(--primary-color);
  font-size: 1rem;
}

.service-item ul ul,
.service-item ol ol,
.service-item ul ol,
.service-item ol ul {
  padding-left: 1.5rem;
}

/* -----------------------------------
   6) Jump To Buttons Styling
----------------------------------- */
.jump-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.jump-button {
  display: inline-block;
  background-color: var(--button-light-blue);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.jump-button:hover {
  background-color: #1E90FF;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.jump-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* -----------------------------------
   7) Footer (Sticky)
----------------------------------- */
footer {
  flex-shrink: 0;
  background: var(--secondary-color);
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}

footer p {
  margin: 0;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: #ffc107;
}

/* -----------------------------------
   8) Responsive Adjustments
----------------------------------- */
@media (max-width: 768px) {
  .contact-container {
    max-width: 1000px;
    padding: 1rem;
  }
  form {
    max-width: 100%;
  }
  .form-control {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  textarea.form-control {
    height: 180px;
  }
  .button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 0.5rem;
  }
  form {
    padding: 0.5rem;
  }
  .form-control {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }
  textarea.form-control {
    height: 150px;
  }
  .button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .services-container {
    gap: 1rem;
  }
  .service-item {
    max-width: 100%;
    flex: 1 1 100%;
  }
  .service-item h3 {
    font-size: 1.25rem;
    padding: 6px 12px;
  }
  .service-item p {
    font-size: 0.95rem;
    padding: 6px 12px;
    margin-top: 4px;
  }
  .jump-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  .jump-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
}

/* -----------------------------------
    Contact Form Styling
----------------------------------- */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin: 0 auto;
  padding: 1rem;
  max-width: 800px;
  width: 100%;
  font-family: inherit;
}

.form-control {
  display: block;
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  text-align: left;
  font-family: inherit;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
}

textarea.form-control {
  resize: none;
  font-family: inherit;
  height: 200px;
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: #f9f9f9;
}

.button {
  font-family: inherit;
  padding: 0.75rem 1.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  background-color: #B3E5FC;
  color: #333333;
  border: 2px solid #46C8F5;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.button:hover {
  background-color: #1E90FF;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
