/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Goudy+Bookletter+1911&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IM+Fell+English+SC&display=swap');

/* Base Reset */
* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  font-family: 'Goudy Bookletter 1911', serif;
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background-image: url('/images/topo_background2.jpg');
  background-repeat: repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-color: #f5f5f5;
}

/* Header */
#site-header {
  color: #fff;
  overflow: visible;
  padding-bottom: 0;
}

.header-container {
  max-width: 1200px;
  width: 80%;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.header-logo {
  padding: 0.05rem 0;
  max-height: none;
}

.logo-img {
  max-width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 600px) {
  .logo-img {
    max-height: 120px;
  }
}

/* Contact Bar */
.contact-bar {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent; /* No background */
  padding: 0.5rem 0;
  text-align: center;
}

.contact-bar span {
  font-family: 'IM Fell English SC', serif;
  font-size: 1.8rem;
  color: #004d00; /* Match h2.section-header */
}

.contact-bar a {
  color: #004d00;
  text-decoration: none;
}

.contact-bar a:hover {
  color: #FFA500;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .contact-bar span {
    font-size: 1rem;
  }
}

/* Summary Bar */
.summary-bar {
  width: 100%;
  background: #004d00;
  overflow: hidden;
  padding: 0.5rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.summary-bar-inner {
  display: inline-flex;
  white-space: nowrap;
  animation: scroll 25s linear infinite;
}

.summary-bar-inner a {
  color: #fff;
  font-family: 'IM Fell English SC', serif;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0 1rem;
}

.summary-bar-inner a:hover {
  color: #FFA500;
  transform: scale(1.3);
  transition: transform 0.3s, color 0.3s;
}

/* Pause animation on hover for desktop only */
@media (min-width: 601px) {
  .summary-bar:hover .summary-bar-inner {
    animation-play-state: paused;
  }
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .summary-bar-inner a {
    font-size: 1rem;
    padding: 0 0.5rem;
  }
}

/* Main Content */
.page-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Intro Text */
.intro-text {
  font-family: 'Goudy Bookletter 1911', serif;
  font-size: 1.2rem;
  font-weight: bold;
  max-width: 100%;
  text-align: center;
}

.intro-subtext {
  font-family: 'Goudy Bookletter 1911', serif;
  font-size: 1.0rem;
  margin: 0 auto 0rem;
  max-width: 800px;
  text-align: center;
}

/* Section Headers */
h2.section-header {
  font-family: 'IM Fell English SC', serif;
  font-size: 1.5rem;
  color: #004d00;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid #006400;
  padding-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-header a {
  text-decoration: none;
  color: inherit;
}

.section-header a:hover {
  color: #FFA500;
}

/* Service Feature */
.service-feature {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 2rem 0;
  gap: 1rem;
}

.service-feature .service-text {
  flex: 1 1 60%;
  padding: 1rem;
}

.service-feature .service-image {
  flex: 1 1 35%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}



/* Service Gallery */
/* Service Gallery */
.service-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.25em;
  margin: 0;
  width: 100vw;
  max-width: none;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
}

/* Container for vertical images */
.service-gallery .vertical-images {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  gap: 0.25em;
}

/* Vertical images in picture */
.service-gallery .vertical-images picture:has(img.vertical) {
  flex: 0 0 calc(50% - 0.125em); /* Exactly 50% width, no growing */
  max-width: calc(50% - 0.125em);
  width: calc(50% - 0.125em);
  margin: 0;
  padding: 0;
}

/* Ensure inner vertical img fills picture */
.service-gallery .vertical-images picture img.vertical {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Horizontal images in picture */
.service-gallery picture:has(img.horizontal) {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Ensure inner horizontal img fills picture */
.service-gallery picture img.horizontal {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Vertical videos */
.service-gallery video.vertical {
  flex: 0 0 calc(50% - 0.125em); /* Two per row, like vertical images */
  max-width: calc(50% - 0.125em);
  width: calc(50% - 0.125em);
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Horizontal videos */
.service-gallery video.horizontal {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border: none;
}

/* Remove vertical-group (unused) */
.service-gallery .vertical-group {
  display: none; /* Deprecated, not needed */
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .service-gallery .vertical-images picture:has(img.vertical) {
    flex: 0 0 calc(50% - 0.125em);
    max-width: calc(50% - 0.125em);
    width: calc(50% - 0.125em);
  }
  .service-gallery video.vertical {
    flex: 0 0 calc(50% - 0.125em);
    max-width: calc(50% - 0.125em);
    width: calc(50% - 0.125em);
  }
}


/* Fullscreen Overlay */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.fullscreen-overlay img,
.fullscreen-overlay video {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

/* Map Container */
.map-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 1em;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Text and Images in Main */
main h1,
main h2,
main h3,
main h4,
main h5,
main h6,
main p,
main ul,
main li {
  padding: 0;
  margin: 0.5em 0;
}

main ul {
  padding-left: 1.5rem;
}

main img:not(.service-gallery img) {
  width: 100%;
  margin: 0;
  padding: 0;
  display: block;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: #FFA500;
  text-decoration: underline;
}

.service-link {
  display: block;
  margin-bottom: 2rem;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .page-content {
    padding: 0 0.5rem;
  }

  .service-feature {
    flex-direction: column;
    text-align: center;
  }

  .service-feature .service-text,
  .service-feature .service-image {
    flex: 1 1 100%;
  }
}

.pdf-container {
  width: 100%;
  max-width: 800px; /* Adjust max-width as needed */
  margin: 0 auto; /* Center the container */
  padding: 1rem;
}

.pdf-viewer {
  width: 100%;
  height: 600px; /* Default height for desktop */
  border: none;
  display: block;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 768px) {
  .pdf-viewer {
    height: 400px; /* Smaller height for tablets */
  }
}

@media screen and (max-width: 480px) {
  .pdf-viewer {
    height: 300px; /* Smaller height for mobile */
  }
}

.highlight-link {
  display: inline-flex; /* Use flexbox for better alignment */
  align-items: top; /* Vertically center text and icon */
  padding: 0.5rem 0.5rem; /* Larger padding for prominence */
  background-color: transparent; /**/
  border: 2px solid #d32f2f;
  color: white;
  text-decoration: none;
  border-radius: 8px; /* Slightly larger radius */
  font-weight: bold;
  font-size: 1.1rem; /* Slightly larger text */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Subtle shadow for depth */
  transition: transform 0.2s, border-color 0.3s, color 0.3s;
}

.highlight-link:hover {
  background-color: #b71c1c; /* Darker red on hover */
  transform: scale(1.05); /* Slight zoom effect */
}

.link-icon {
  width: 145px; /* Adjust size as needed */
  height: 32px;
  vertical-align: middle;
  margin-right: 0.0rem;
}
