@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
body {
  font-family: Poppins; /* Change this to your desired font for the rest of the text */
  margin: 0;
  padding: 0;
  position: relative; /* Ensure the pseudo-element is positioned correctly */
}

body::before {
  content: ""; /* Create a pseudo-element */
  position: fixed; /* Fix it to the viewport */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./src/sjc_bg4.jpg'); /* Add the background image */
  background-size: cover; /* Ensure the image covers the entire page */
  background-position: center; /* Center the image */
  background-attachment: fixed; /* Keep the background fixed during scrolling */
  filter: blur(5px); /* Apply a blur effect to the background */
  z-index: -1; /* Place it behind all content */
}

/* Header */
header {
  background-color: #550d0b;
  color: white;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 80px;
  margin-right: 15px;
}

.header-text h1 {
  font-family: "Old English Text MT", serif; /* Set Old English Text MT for the header title */
  font-size: 2em;
  margin: 0;
}

.header-text p {
  font-size: 12px;
  margin: 0;
}

nav {
  margin-left: auto;
}

nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 18px;
  font-weight: bold;
  font-size: 1.15rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  outline: none;
}

nav a:hover,
nav a:focus {
  background: #FFD700;
  color: #550d0b;
}

nav a.active {
  background: #FFD700;
  color: #550d0b;
  box-shadow: 0 2px 8px #ffd70033;
}

/* Contact Section */
.contact-container {
    text-align: center;
    padding: 60px 20px;
    background-color: #fff;
    margin: 0px auto;
    max-width: 1200px;
    border-radius: 0px;
}

.contact-container h1 {
    font-size: 2.5em;
    color: #550d0b;
    margin-bottom: 10px;
}

.contact-description {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    justify-content: space-around;
    margin-bottom: 30px;
}

.contact-details div {
    text-align: center;
    max-width: 200px;
}

/* Change the color of the icons to #550d0b */
.contact-details div i {
    font-size: 3.5em;
    color: #550d0b; /* Update the color to match your desired value */
    margin-bottom: 10px;
}

.contact-details div p {
    margin: 5px 0;
}

.map {
    flex: 1.5; /* Adjust the flex value to make the map medium-sized */
    height: 100%; /* Ensure the map stretches to the full height */
    max-width: 600px; /* Limit the maximum width of the map */
    margin: 0 auto; /* Center the map horizontally */
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
}

/* Ensure the form matches the height of the map and is closer to it */
.map-and-form {
    display: flex;
    flex-wrap: nowrap; /* Ensure the map and form stay on the same row */
    justify-content: space-between; /* Reduce spacing between the map and form */
    align-items: stretch; /* Ensure both map and form stretch to the same height */
    gap: 10px; /* Reduce the gap between the map and the form */
    margin-top: 30px;
    height: 400px; /* Set a consistent height for the container */
}

.map img {
    width: 100%;
    height: auto; /* Maintain the aspect ratio of the image */
    object-fit: cover; /* Ensure the image scales properly */
    border: none; /* Remove any border */
    border-radius: 0; /* Remove rounded corners */
    box-shadow: none; /* Remove box shadow */
    margin: 0; /* Remove any margin */
    padding: 0; /* Remove any padding */
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1; /* Make the form take up less space */
    max-width: 500px; /* Limit the form's width */
    height: 100%; /* Ensure the form stretches to the full height of the container */
    justify-content: center; /* Center the form content vertically */
    margin: 0; /* Remove the top margin to align it closer to the map */
    
}

.contact-form h2 {
    font-size: 1.8em;
    color: #550d0b;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    max-width: 450px;
    margin: 10px 0;
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    color: #550d0b; /* Optional: Change text color */
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none; /* Remove default outline */
    border: 2px solid #550d0b; /* Highlight border on focus */
    box-shadow: 0 0 5px rgba(85, 13, 11, 0.5); /* Add subtle shadow on focus */
}

.contact-form button {
    background-color: #550d0b;
    color: #fff;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #ffb902; /* Change background color on hover */
  color: 
  #550d0b; /* Invert text color */
}

/* === RESPONSIVENESS FOR CONTACT US PAGE === */

/* --- For Large Tablets and Small Laptops (≤1024px) --- */
@media (max-width: 1024px) {
  .header-text h1 {
    font-size: 1.8em;
  }

  .header-text p {
    font-size: 11px;
  }

  nav a {
    margin: 0 8px;
    font-size: 1rem;
  }

  .contact-container {
    padding: 50px 15px;
  }

  .contact-details {
    gap: 20px;
  }

  .map-and-form {
    gap: 25px;
    height: 350px;
  }

  iframe {
    height: 350px;
  }

  .contact-form h2 {
    font-size: 1.6em;
  }

  .contact-form input,
  .contact-form textarea {
    max-width: 400px;
    padding: 12px;
  }

  .contact-form button {
    font-size: 0.95em;
  }
}

/* --- For Tablets (≤768px) --- */
@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 15px;
  }

  .logo img {
    height: 60px;
  }

  .header-text h1 {
    font-size: 1.5em;
  }

  .header-text p {
    font-size: 10px;
  }

  nav {
    display: none; /* hide desktop nav */
  }

  .contact-container {
    padding: 20px 15px;
  }

  .contact-container h1 {
    font-size: 2em;
  }

  .contact-description {
    font-size: 1.2em;
  }

  .contact-details {
    flex-direction: row;
    align-items: center;
    gap: 25px;
  }

  .map-and-form {
    flex-direction: column; /* stack map and form vertically */
    height: auto;
    gap: 25px;
  }

  .map {
    width: 100%;
    max-width: 100%;
  }

  iframe {
    width: 100%;
    height: 300px;
  }

  .contact-form {
    width: 95%;
    max-width: 100%;
    padding: 0 10px;
  }

  .contact-form input,
  .contact-form textarea {
    width: 100%;
    max-width: 100%;
    font-size: 0.95em;
  }

  .contact-form button {
    width: 100%;
    padding: 12px;
  }

  .burger-menu {
    display: flex;
    margin-left: auto; /* pushes burger to the right */
    margin-right: 10px; /* small spacing from right edge */
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .burger-menu span {
    background-color: #FFD700; /* gold color for consistency */
    width: 28px;
    height: 3px;
    border-radius: 2px;
    margin: 4px 0;
    transition: 0.3s;
  }
}

/* --- For Mobile Phones (≤480px) --- */
@media (max-width: 480px) {
  header {
    padding: 8px 10px;
  }

  .logo img {
    height: 50px;
  }

  .header-text h1 {
    font-size: 1.3em;
  }

  .header-text p {
    font-size: 9px;
  }

  .contact-container h1 {
    font-size: 1.8em;
  }

  .contact-description {
    font-size: 1em;
  }

  .contact-details {
    flex-direction: column;
  }

  .contact-details div i {
    font-size: 2.8em;
  }

  .contact-details div p {
    font-size: 0.9em;
  }

  .map-and-form {
    gap: 20px;
  }

  iframe {
    height: 250px;
  }

  .contact-form h2 {
    font-size: 1.3em;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 10px;
    font-size: 0.9em;
  }

  .contact-form button {
    padding: 10px;
    font-size: 0.9em;
  }
}

/* --- For Small Phones (≤360px) --- */
@media (max-width: 360px) {
  .header-text h1 {
    font-size: 1.1em;
  }

  .contact-container h1 {
    font-size: 1.5em;
  }

  .contact-description {
    font-size: 0.9em;
  }

  .contact-form h2 {
    font-size: 1.1em;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.85em;
    padding: 8px;
  }

  .contact-form button {
    font-size: 0.85em;
    padding: 8px 12px;
  }
}

/* === BURGER MENU FIX === */
.burger-menu {
  display: none; /* Hidden by default (desktop) */
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  z-index: 1001;
}

.burger-menu span {
  width: 28px;
  height: 3px;
  background: #FFD700; /* Golden color */
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Active animation (X icon) */
.burger-menu.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.burger-menu.active span:nth-child(2) {
  opacity: 0;
}
.burger-menu.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background: #550d0b; /* Match header color */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 80px;
  transition: right 0.3s ease;
  z-index: 1000;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav a {
  color: #FFD700;
  text-decoration: none;
  padding: 15px 20px;
  font-size: 1.1em;
  width: 100%;
  transition: background 0.3s;
}

.mobile-nav a:hover {
  background: #FFD700;
  color: #550d0b;
}

/* Backdrop */
.backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
}

.backdrop.active {
  display: block;
}

/* === LAPTOP (≤1024px) === */
@media (max-width: 1024px) {
  .contact-container {
    padding: 50px 20px;
  }
  .contact-details {
    gap: 25px;
  }
  .map-and-form {
    gap: 20px;
    height: 350px;
  }
  iframe {
    height: 350px;
  }
  .contact-form input,
  .contact-form textarea {
    max-width: 400px;
  }
}

/* === TABLET (≤768px) === */
@media (max-width: 768px) {
  header {
    padding: 12px 18px;
  }
  .header-text h1 {
    font-size: 1.5em;
  }
  nav {
    display: none;
  }
  .burger-menu {
    display: flex;
  }
  .map-and-form {
    flex-direction: column;
    height: auto;
  }
  iframe {
    height: 300px;
  }
  /* Highlight active link in sidebar */
.mobile-nav a.active {
  background-color: #FFD700;
  color: #550d0b;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

/* Optional: hover fix for consistency */
.mobile-nav a:hover {
  background-color: #FFD700;
  color: #550d0b;
}

}

/* === MOBILE LARGE (≤425px) === */
@media (max-width: 425px) {
  header {
    padding: 10px;
  }
  .header-text h1 {
    font-size: 1.3em;
  }
  .contact-container h1 {
    font-size: 1.8em;
  }
  .contact-details {
    flex-direction: column;
    gap: 10px;
  }
  iframe {
    height: 260px;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.9em;
    padding: 10px;
  }
}

/* === MOBILE MEDIUM (≤375px) === */
@media (max-width: 375px) {
  .header-text h1 {
    font-size: 1.1em;
  }
  .contact-container h1 {
    font-size: 1.6em;
  }
  .contact-form h2 {
    font-size: 1.2em;
  }
  iframe {
    height: 240px;
  }
}

/* === MOBILE SMALL (≤320px) === */
@media (max-width: 320px) {
  .header-text h1 {
    font-size: 1em;
  }
  .contact-container h1 {
    font-size: 1.4em;
  }
  .contact-description {
    font-size: 0.85em;
  }
  .contact-form input,
  .contact-form textarea {
    font-size: 0.8em;
    padding: 8px;
  }
  .contact-form button {
    font-size: 0.8em;
    padding: 10px 12px;
  }
}
