:root {
  --header-height: 96px;
  --bg: #ffffff;
  --accent: #2c6ef0;
  --petol-color: #055298;
  --muted: #666;
  --shadow: 0 2px 8px rgba(18, 23, 34, 0.08);
  --gap: 20px;
}

* {
  box-sizing: border-box
}

html,
body {
  height: fit-content;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #111;
  background: linear-gradient(#f7f8fb, #fff);
  line-height: 1.45;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--bg);
  box-shadow: var(--shadow);
  z-index: 1000;
}

.site-header .logo img {
  max-height: 52px;
  /* image won't exceed header target height */
  width: auto;
  display: block;
  object-fit: contain;
}

.header-inner {
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: 0 18px;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
}

.main-nav a:hover {
  color: #111;
  background: rgba(44, 110, 240, 0.08)
}

.main-nav a[aria-current="page"] {
  color: #0b1220;
  background: rgba(44, 110, 240, 0.12);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04) inset;
}

.search form {
  display: flex;
  gap: 8px;
  align-items: center
}

.search input[type="search"] {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 160px;
}

.search button {
  padding: 8px 12px;
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  cursor: pointer;
}

/* ensure page content is not hidden behind fixed header */
main {
  padding-top: calc(var(--header-height) + 1px);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero {
  padding: 2px 18px;
  width: 100%;
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
}

.content {
  padding: 12px 18px 120px
}

/* Company heading in content: centered, large */
.content h2 {
  text-align: center;
  color: var(--petol-color);
  font-size: 2rem;
  line-height: 1.1;
  margin: 20px 0;
  font-weight: 700;
}

@media (max-width:520px) {
  .content h2 {
    font-size: 1.4rem
  }
}

.content-title p {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  margin: 0 0 24px 0;
}

.documents-grid {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.documents-grid img {
  width: 100%;
  height: 90%;
  display: block;
  border: 1px solid #ccc;

}

.documents-leaflet {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.documents-leaflet img{
  max-width: 524px;
}

/* Responsive tweaks */
@media (max-width:740px) {
  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .search {
    display: none
  }

  .main-nav ul {
    gap: 12px;
    font-size: 0.95rem
  }
}

@media (max-width:420px) {
  .main-nav ul {
    display: none
  }
}

/* Feature cards strip */
.features {
  padding: 28px 18px;
}

.features-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.feature-card {
  background: linear-gradient(180deg, #fff, #fbfdff);
  padding: 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  /* background: rgba(44, 110, 240, 0.06); */
  color: var(--petol-color);
  /* icon artwork is recolored in the SVG files to match the petol-color theme */
}

.feature-icon img {
  width: 36px;
  height: 36px;
  display: block
}

.feature-icon.gold {
  background: rgba(212, 175, 55, 0.12);
}

.feature-icon.wink {
  background: rgba(255, 223, 186, 0.10);
}

.feature-card h3 {
  margin: 0;
  font-size: 1.05rem
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem
}

@media (max-width:900px) {
  .features-inner {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (max-width:520px) {
  .features-inner {
    grid-template-columns: repeat(1, 1fr)
  }

  .feature-card {
    padding: 14px
  }

  .feature-icon {
    width: 52px;
    height: 52px
  }
}

/* Contact Page Layout */
.contact-content {
  display: flex;
  justify-content: space-between;
  gap: 20px; /* Add some space between the sections */
}

.contact-details,
.contact-form,
.contact-map {
  flex: 1; /* Allow all sections to grow and shrink equally */
  min-width: 0; /* Prevent overflow issues */
}

/* Responsive adjustments for smaller screens */
@media (max-width: 900px) {
  .contact-content {
    flex-direction: column;
  }
}

/* Prettier Company Details */
.contact-details p {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  margin: 0 0 1rem;
}

.contact-details p strong {
  font-weight: 600;
  text-align: right;
}

/* General Section Styling */
.contact-details,
.contact-form,
.contact-map {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

/* Form Styling */
.contact-form .form-row {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(44, 110, 240, 0.2);
}

.contact-form .form-actions {
  text-align: right;
}

.contact-form button[type="submit"] {
  background-color: var(--accent);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button[type="submit"]:hover {
  background-color: #1a5bbf;
}

/* Products two-column layout */
.content-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.categories {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.categories h2 {
  margin-top: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.categories ul {
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.categories a {
  text-decoration: none;
  color: #333;
  padding: 8px 10px;
  border-radius: 6px;
  display: block;
}

.categories a:hover {
  background: rgba(44,110,240,0.06);
}

.products h2 {
  margin-top: 0;
  color: var(--petol-color);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow);
  text-align: center;
}

.product-card a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.product-name {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}

@media (max-width:900px) {
  .content-inner {
    grid-template-columns: 1fr;
  }

  .categories {
    order: 2;
  }
}

/* product page details */
.product-page {
  max-width: 860px;
  margin: 28px auto;
  padding: 12px;
}

.product-page .product-details {
  margin: 12px 0 18px 0;
  padding-left: 18px;
}

.product-page .product-details li {
  margin: 6px 0;
}

/* Improve readability for job/customer lists in the homepage content */
.job-list,
.customer-list {
  /* list-style: none; */
  /* margin: 0 0 1rem 0; */
  /* padding: 0; */
}

.job-list li,
.customer-list li {
  position: relative;
  padding-left: 18px; /* space for the custom bullet */
  margin-bottom: 0.6rem; /* spacing between items */
  line-height: 1.45;
  color: var(--muted);
}

/* .job-list li::before,
.customer-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
} */

/* Gallery styles */
.gallery {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 14px 0 18px 0;
}

.gallery-main {
  flex: 1 1 60%;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: var(--shadow);
}

.gallery-main img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  display: block;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 120px;
}

.gallery-thumbs img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
}

.gallery-thumbs img.active {
  border-color: var(--accent);
}

@media (max-width:900px) {
  .gallery {
    flex-direction: column;
  }

  .gallery-thumbs {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
  }

  .gallery-thumbs img {
    height: 64px;
    width: 96px;
  }
}