/* Reset and base styles */
body {
  margin: 0;
  font-family: 'Montserrat', 'Inter', Arial, sans-serif;
  background: #f7f7f7;
  color: #222;
}

header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  padding: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 16px 0;
  flex-wrap: wrap;
}

.logo {
  height: 56px;
  margin-right: 24px;
}

.logo.large-logo {
  height: 100px;
  margin-right: 0;
}

.company-title {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #222;
}

nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding-bottom: 16px;
}

nav a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.2s;
}

nav a:hover {
  color: #0077b6;
}

/* Hero Section */
.hero-section {
  background: url('images/BackgroundVSG.jpg') center/cover no-repeat, #222;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  text-align: center; /* Center text horizontally */
  color: #fff;        /* Make text white for contrast */
  padding: 48px 16px; /* Add padding for spacing */
}

.hero-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25); /* Add subtle shadow for readability */
}

.hero-section p {
  font-size: 1.3rem;
  margin-bottom: 32px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.btn {
  background: #0077b6;
  color: #fff;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: background 0.2s;
}

.btn:hover {
  background: #023e8a;
}

/* Section Styles */
main section {
  margin: 48px auto;
  max-width: 900px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  padding: 40px 32px;
}

.info-section h2,
.grid-section h2,
.contact-section h2 {
  font-size: 2rem !important; /* Larger font size for sub headers */
  margin-bottom: 12px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* Contact Info */
.contact-info {
  font-size: 1.1rem;
  line-height: 2;
}

.contact-info i {
  color: #0077b6;
  margin-right: 8px;
}

/* Footer */
footer {
  text-align: center;
  padding: 24px 0;
  background: #222;
  color: #fff;
  font-size: 1rem;
  margin-top: 48px;
}

/* About Slideshow */
#about-slideshow {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
}
#about-slide-img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.3s;
  z-index: 1;
}
#about-slide-img.slide-left {
  transform: translateX(-100%);
  opacity: 0;
}
#about-slide-img.slide-right {
  transform: translateX(100%);
  opacity: 0;
}
#about-slide-img.slide-in-left {
  transform: translateX(100%);
  opacity: 0;
  animation: slideInLeft 0.5s forwards;
}
#about-slide-img.slide-in-right {
  transform: translateX(-100%);
  opacity: 0;
  animation: slideInRight 0.5s forwards;
}
@keyframes slideInLeft {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes slideInRight {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 700px) {
  .header-content {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    padding: 4px 0 0 0;
    max-width: 100vw;
    position: relative;
    min-height: 110px;
  }
  .logo.large-logo {
    width: 220px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block;
    position: absolute;
    left: 50%;
    top: 8px;
    transform: translateX(-50%);
    z-index: 2;
  }
  .company-title {
    display: none !important;
  }
  .header-content > div {
    margin: 0 !important;
  }
  .header-content a {
    display: none !important;
  }
  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin: 32px auto 6px auto; /* Increased top margin to move nav below logo */
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    position: relative;
    z-index: 1;
  }
  nav a {
    flex: 1 1 30%;
    min-width: 60px;
    max-width: 30vw;
    text-align: center;
    font-size: 0.85rem;
    margin: 1px 0;
    padding: 6px 0;
    background: none;
    color: #222;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
  }
  nav a:hover {
    background: #e3e9f3;
    color: #0077b6;
  }
  header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .logo.large-logo {
    margin-bottom: 2px !important;
  }
  .btn {
    font-size: 0.85rem !important;
    padding: 8px 16px !important;
    border-radius: 5px !important;
  }
  main section {
    margin: 16px auto;
    max-width: 98vw;
    padding: 12px 4px;
  }
  .info-section h2,
  .grid-section h2,
  .contact-section h2 {
    font-size: 2rem !important;      /* Larger font size for sub headers */
    margin-bottom: 12px;
    color: #0077b6 !important;       /* Blue color for sub headers */
  }
  .card-grid {
    gap: 8px;
    margin-top: 8px;
  }
  .contact-info {
    font-size: 0.85rem;
    line-height: 1.4;
  }
  footer {
    font-size: 0.85rem;
    padding: 8px 0;
    margin-top: 16px;
  }
}

@media (max-width: 800px) {
  .listings-gallery {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
  }
}

@media (max-width: 700px) {
  .listings-gallery {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .listing-card {
    max-width: 98vw !important;
    padding: 12px !important;
  }
  .listing-card img {
    height: 140px !important;
  }
  .info-section, .grid-section, .contact-section {
    padding: 16px !important;
  }
}