/* Basic Reset & Defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

a {
  color: #007bff;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

.site-wrapper {
  max-width: 1920px; /* Mimicking full-width feel of original */
  margin: 0 auto;
  background-color: #fff;
}

/* Wayback Machine Mock Header */
.wayback-mock-header {
  background-color: #222;
  color: #fff;
  padding: 10px 20px;
  text-align: center;
  font-size: 0.9em;
}
.wayback-mock-header p {
  margin-bottom: 5px;
}
.wayback-mock-header a {
  color: #6cbfff;
}
.wayback-nav-simple a {
  margin: 0 10px;
}

/* Site Header */
.site-header {
  background-color: #fff;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  background-color: #f8f8f8;
  font-size: 0.9em;
  border-bottom: 1px solid #ddd;
}
.top-bar .villa-hc-home-link {
  font-weight: bold;
}
.contact-actions span {
  margin-left: 15px;
}
.schedule-tour-btn {
  background-color: #007bff;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
}
.schedule-tour-btn:hover {
  background-color: #0056b3;
  text-decoration: none;
}
.text-size-adjust a {
  margin: 0 2px;
  font-weight: bold;
}

.logo-nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}
.logo img {
  max-height: 60px;
}

/* Main Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
}
.main-navigation li {
  position: relative;
  margin-left: 20px;
}
.main-navigation a {
  color: #333;
  font-weight: bold;
  padding: 5px 0;
}
.main-navigation a:hover, .main-navigation li.active a {
  color: #007bff;
  border-bottom: 2px solid #007bff;
}
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  border: 1px solid #ddd;
  z-index: 100;
  min-width: 200px;
  flex-direction: column !important; /* Override parent flex */
}
.sub-menu li {
  margin-left: 0 !important; /* Override parent margin */
  width: 100%;
}
.sub-menu a {
  display: block;
  padding: 10px 15px;
  white-space: nowrap;
  border-bottom: none !important; /* Remove main nav hover style */
}
.sub-menu a:hover {
  background-color: #f0f0f0;
}
.main-navigation li:hover > .sub-menu {
  display: flex;
}
.menu-toggle {
  display: none; /* Hidden by default, shown on mobile */
  background: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1em;
  cursor: pointer;
}


/* COVID Banner & Page Title */
.covid-banner, .page-title-section, .intro-section {
  text-align: center;
  padding: 20px;
}
.covid-banner {
  background-color: #ffeeba; /* A light warning color */
  border-bottom: 1px solid #ffc107;
}
.covid-banner h2 a {
  color: #856404;
}
.page-title-section h2, .intro-section h2 {
  font-size: 2em;
  margin-bottom: 5px;
  color: #005a9c; /* Villa blue */
}
.intro-section p {
  font-size: 1.2em;
  color: #555;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  width: 100%;
  /* max-height: 710px; */ /* From image dimensions, adjust as needed */
  overflow: hidden;
  background-color: #ccc; /* Fallback */
}
.slide {
  display: none;
  position: relative; /* For positioning content */
  width: 100%;
  /* height: 710px; */
}
.slide.active {
  display: block;
}
.slide-bg {
  width: 100%;
  height: auto; /* Maintain aspect ratio, adjust if fixed height needed */
  display: block;
  object-fit: cover; /* Cover the area, might crop */
  min-height: 400px; /* Ensure some height */
  max-height: 710px;
}
.slide-content {
  position: absolute;
  top: 50%;
  left: 10%; /* Adjust as per design */
  transform: translateY(-50%);
  color: white; /* Assuming text is on dark part of image */
  display: flex;
  align-items: flex-end;
  max-width: 80%;
}
.slide-content .person-img {
  max-height: 500px; /* Adjust based on original */
  margin-right: 30px;
  /* filter: drop-shadow(2px 2px 5px rgba(0,0,0,0.5)); */ /* Optional shadow */
}
.slide-content .text-content {
  background-color: rgba(0, 0, 0, 0.3); /* Slight bg for readability */
  padding: 20px;
  border-radius: 5px;
}
.slide-content .text-content p {
  font-size: 1.5em;
  margin-bottom: 15px;
  line-height: 1.4;
  color: #fff; /* Ensure text is white */
}
.slide-content .text-content strong {
  display: block; /* Makes "I make people better" on new line */
  font-size: 1.2em; /* Slightly larger */
}
.divider-line {
  width: 60px;
  height: 3px;
  margin-bottom: 15px;
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  background-color: #e67e22; /* Villa orange */
  color: white;
  padding: 12px 25px;
  font-size: 1.1em;
  border-radius: 5px;
  text-decoration: none;
}
.slide-btn img {
  margin-left: 10px;
  width: 16px;
  height: 16px;
}
.slide-btn:hover {
  background-color: #d35400;
  text-decoration: none;
}
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
}
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }

/* Features Section */
.features-section {
  display: flex;
  justify-content: space-around;
  padding: 40px 20px;
  gap: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}
.feature-item {
  flex-basis: calc(33.333% - 40px); /* Adjust for gap */
  text-align: center;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 5px;
  background: #f9f9f9;
}
.feature-item img {
  margin-bottom: 15px;
}
.feature-item h5 {
  font-size: 1.3em;
  margin-bottom: 10px;
  color: #005a9c;
}
.feature-item p {
  font-size: 0.95em;
  margin-bottom: 10px;
}
.feature-item p a {
  font-weight: bold;
}

/* Contact Form Section */
.contact-form-section {
  padding: 40px 20px;
  background-color: #e9ecef;
  text-align: center;
}
.contact-form-section h3 {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #005a9c;
}
#questionForm {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}
.form-group {
  margin-bottom: 15px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.form-group textarea {
  resize: vertical;
}
.honeypot {
  display: none !important; /* Visually hide and make it non-interactive */
}
.submit-btn {
  background-color: #28a745; /* Green for submit */
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.submit-btn:hover {
  background-color: #218838;
}


/* Site Footer */
.site-footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 30px 20px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-logo img {
  max-height: 50px;
  margin-bottom: 15px;
}
.footer-address p {
  font-size: 0.9em;
  line-height: 1.5;
  margin-bottom: 15px;
}
.footer-links {
  text-align: right;
}
.footer-links p {
  font-size: 0.9em;
  margin-bottom: 5px;
}
.footer-links a {
  color: #adb5bd;
  margin-left: 15px;
  font-size: 0.9em;
}
.footer-links a:hover {
  color: #fff;
}

/* Modal Styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
  align-items: center; /* For vertical centering */
  justify-content: center; /* For horizontal centering */
}
.modal-content {
  background-color: #fff;
  margin: auto; /* Fallback for older browsers */
  padding: 30px;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: left;
}
.modal-content h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #005a9c;
}
.modal-content p {
  margin-bottom: 20px;
}
.modal-close-btn {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.modal-close-btn:hover,
.modal-close-btn:focus {
  color: #333;
}
#tourForm .form-group {
  margin-bottom: 12px;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
  font-size: 0.9em;
  flex-wrap: wrap;
}
.cookie-banner p {
  margin-right: 20px;
  flex-grow: 1;
  margin-bottom: 10px; /* For wrap */
}
.cookie-banner a {
  color: #6cbfff;
}
.cookie-actions button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-left: 10px;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-actions button:hover {
  background-color: #0056b3;
}
.cookie-actions #cookieMoreInfoBtn {
    background-color: #6c757d;
}
.cookie-actions #cookieMoreInfoBtn:hover {
    background-color: #5a6268;
}


/* Responsive Adjustments */
@media (max-width: 992px) {
  .logo-nav-container {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-navigation {
    width: 100%;
  }
  .main-navigation ul {
    flex-direction: column;
    width: 100%;
    display: none; /* Hidden by default on mobile */
  }
  .main-navigation ul.open {
      display: flex; /* Show when toggled */
  }
  .main-navigation li {
    margin-left: 0;
    width: 100%;
    border-bottom: 1px solid #eee;
  }
  .main-navigation li:last-child {
    border-bottom: none;
  }
  .main-navigation a {
    display: block;
    padding: 10px 0;
  }
  .sub-menu { /* Adjust sub-menu for mobile */
    position: static;
    border: none;
    box-shadow: none;
    padding-left: 15px; /* Indent sub-menu items */
    background-color: #f8f8f8;
    display: none; /* Keep hidden until parent is active/hovered, or manage with JS */
  }
  .main-navigation li:hover > .sub-menu {
    display: flex; /* Or manage with JS click */
  }
  .menu-toggle {
    display: block; /* Show hamburger menu */
    margin-top: 10px;
    align-self: flex-end;
  }

  .slide-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
  }
  .slide-content .person-img {
    max-height: 300px; /* Smaller on mobile */
    margin-right: 0;
    margin-bottom: 15px;
  }
  .slide-content .text-content p {
    font-size: 1.2em;
  }
  .slide-btn {
    padding: 10px 20px;
    font-size: 1em;
  }
  .feature-item {
    flex-basis: calc(50% - 20px); /* Two columns */
  }
}

@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-bar > div {
    margin-bottom: 5px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    text-align: center;
    margin-top: 15px;
  }
  .footer-links a {
    margin: 0 8px;
  }
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-actions {
    margin-top: 10px;
  }
}

@media (max-width: 576px) {
  .feature-item {
    flex-basis: 100%; /* Single column */
  }
  .slide-content .person-img {
    max-height: 200px;
  }
  .slide-content .text-content p {
    font-size: 1em;
  }
}