/* google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Lora:ital,wght@0,400..700;1,400..700&family=Manufacturing+Consent&family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Oswald:wght@200..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

/* Reset + General */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #f9f9f9;
}

ul {
  list-style: none;
}

/* Main navbar wrapper */
.navbar-wrapper {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 1); /* faded white */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Container with max width */
.navbar-container {
  max-width: 1366px;
  min-height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 25px;
  gap: 20px;
  flex-wrap: wrap;
}

/* Logo */
.logo img {
  display: block;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 15px;
  list-style: none;
}

.social-links a {
  color: navy;
  font-size: 1.1rem;
  transition: 0.3s;
}

.social-links a:hover {
  color: orange;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 25px;
  list-style: none;
  flex: 1;
  justify-content: center;
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background-color: red;
  left: 0;
  bottom: -4px;
  transition: 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdowns */
.dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: white;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  display: none;
  flex-direction: column;
  border-radius: 6px;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.dropdown-menu li {
  padding: 10px 20px;
}

.dropdown-menu li a {
  color: #333;
  display: block;
}

.dropdown:hover .dropdown-menu {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Use ::before for pointer/triangle */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 25px;
  border-width: 0 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent white transparent;
}

/* Search Box */
.searchBox {
  display: flex;
  align-items: center;
  gap: 5px;
}

.searchBox input {
  padding: 6px 10px;
  border: 1px solid #ccc;
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 0.9rem;
}

.searchBox button {
  padding: 6px 10px;
  background: navy;
  color: white;
  border: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.searchBox button:hover {
  background: orange;
}

/* LOCATION HERO SECTION */
.location-hero-section {
  background: linear-gradient(to right, #fceabb, #f8b500);
  color: #111;
  padding: 100px 20px;
  text-align: center;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: bold;
}

.hero-subtext {
  font-size: 1.2rem;
  color: #333;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* LOCATION SERVICE SECTION */
.location-service-section {
  position: relative;
  background: linear-gradient(135deg, #fdf6ec, #ffe5b4);
  padding: 5rem 2rem;
  text-align: center;
  overflow: hidden;
  border-radius: 12px;
  margin: 4rem auto;
  max-width: 1000px;
  transition: background 0.4s ease;
}

.location-service-section::before,
.location-service-section::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 60px;
  background-color: rgba(139, 69, 19, 0.1);
  border-radius: 50%;
  z-index: 0;
  transition: all 0.5s ease-in-out;
}

.location-service-section::before {
  top: -20px;
  left: -20px;
}

.location-service-section::after {
  bottom: -20px;
  right: -20px;
}

.location-service-section:hover::before,
.location-service-section:hover::after {
  transform: scale(1.5);
  background-color: rgba(139, 69, 19, 0.2);
}

.location-service-container {
  position: relative;
  z-index: 2;
}

.location-service-icon {
  font-size: 4rem;
  color: brown;
  margin-bottom: 1rem;
  animation: bounce 2s infinite;
}

.location-service-container h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #222;
  font-weight: bold;
}

.location-address {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #333;
}

.service-times h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: #333;
}

.service-times ul {
  list-style: none;
  padding: 0;
  color: #555;
}

.service-times li {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

.service-times li:hover {
  color: brown;
  transform: scale(1.05);
}

/* Bounce animation */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* PLANNING VISIT CTA */
.plan-visit-cta {
  background: linear-gradient(135deg, #fceabb, #f8b500);
  color: #2b2b2b;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
}

.plan-visit-cta .cta-icon-wrapper {
  font-size: 4rem;
  color: #2b2b2b;
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite;
}

.plan-visit-cta h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.plan-visit-cta p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

.cta-button {
  display: inline-block;
  background-color: #2b2b2b;
  color: #fff;
  padding: 14px 32px;
  font-size: 1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button span {
  position: relative;
  z-index: 2; /* keeps text above the background */
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #f8b500;
  transition: all 0.3s ease;
  z-index: 1;
}

.cta-button:hover::before {
  left: 0;
}

.cta-button:hover span {
  color: #2b2b2b;
  font-weight: bold;
}

.cta-button::after {
  content: "➜";
  margin-left: 10px;
  transition: transform 0.3s ease;
  display: inline-block;
  position: relative;
  z-index: 2;
}

.cta-button:hover::after {
  transform: translateX(5px);
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* -------------- */
/* ------------- */
/* ----FOOTER---- */
/* ---------------- */
/* ------------------ */
.site-footer {
  background: #0a0a33;
  color: #f0f0f0;
  padding: 60px 20px 30px;
  font-family: "Lora", serif;
}

.footer-container {
  max-width: 1300px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}

.footer-column h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: orange;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: #f0f0f0;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.footer-column ul li a:hover {
  color: orange;
}

.footer-logo img {
  width: 100px;
  margin-bottom: 20px;
}

.footer-logo p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-socials {
  margin-top: 15px;
}

.footer-socials a {
  display: inline-block;
  margin-right: 10px;
  font-size: 1.2rem;
  color: #f0f0f0;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: orange;
}

.footer-bottom {
  border-top: 1px solid #444;
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

/* ========== Mobile Navbar ========== */
@media (max-width: 1200px) {
  /* Make social icons smaller */
  .social-links a {
    font-size: 0.9rem;
  }

  /* Hide search box on mobile */
  .searchBox {
    display: none;
  }

  /* Hide nav links by default */
  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 100px;
    left: 0;
    width: 100%;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 998;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
  }

  .nav-links.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Hamburger Button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
  }

  .hamburger span {
    height: 3px;
    background: #333;
    border-radius: 2px;
    transition: 0.3s;
  }

  /* Animate hamburger to "X" when active */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }

  /* Dropdown menus should stack full width */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    box-shadow: none;
    padding: 0;
  }

  .dropdown-menu li {
    padding: 12px 20px;
    border-top: 1px solid #eee;
  }

  /* Show when active */
  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .dropdown.open .dropdown-menu {
    max-height: 500px; /* large enough to fit content */
  }
}

/* ========================= */
/* Location Page Responsiveness */
/* ========================= */

/* Tablets (up to 1024px) */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-subtext {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .location-service-section {
    margin: 3rem 1rem;
    padding: 3rem 1.5rem;
  }

  .location-service-container h2 {
    font-size: 2rem;
  }

  .service-times h3 {
    font-size: 1.5rem;
  }

  .plan-visit-cta {
    padding: 3rem 1.5rem;
    min-height: auto;
  }

  .plan-visit-cta h2 {
    font-size: 2rem;
  }

  .plan-visit-cta p {
    font-size: 1rem;
  }
}

/* Mobile devices (up to 768px) */
@media (max-width: 768px) {
  .location-hero-section {
    padding: 70px 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .location-service-section {
    margin: 2rem 1rem;
    padding: 2.5rem 1rem;
  }

  .location-service-icon {
    font-size: 3rem;
  }

  .location-service-container h2 {
    font-size: 1.6rem;
  }

  .location-address {
    font-size: 1rem;
  }

  .service-times h3 {
    font-size: 1.3rem;
  }

  .service-times li {
    font-size: 1rem;
  }

  .plan-visit-cta h2 {
    font-size: 1.6rem;
  }

  .plan-visit-cta p {
    font-size: 0.95rem;
    padding: 0 0.5rem;
  }

  .cta-button {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}

/* Small phones (up to 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtext {
    font-size: 0.9rem;
  }

  .location-service-container h2 {
    font-size: 1.4rem;
  }

  .service-times h3 {
    font-size: 1.2rem;
  }

  .service-times li {
    font-size: 0.9rem;
  }

  .plan-visit-cta h2 {
    font-size: 1.4rem;
  }

  .plan-visit-cta p {
    font-size: 0.85rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 0.85rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }
}

mark.search-highlight {
  background: rgba(255, 243, 128, 0.95); /* soft yellow */
  color: #111;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: 600;
  transition: background 1s ease;
}

/* wrapper used to replace original text nodes */
.search-wrapper {
  /* no extra styles needed, but kept for clarity */
}

@media (max-width: 900px) {
  .navbar-container {
    min-height: 75px;
    padding: 10px 18px;
    gap: 0;
    flex-wrap: nowrap;
  }

  .logo {
    flex: 1;
  }

  .logo img {
    width: 110px;
  }

  .social-links,
  .searchBox {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
  }

  .nav-links.active {
    display: flex;
  }
}
