/* ===== Emerald Harbor Marine One-Pager (Bootstrap 5) ===== */
:root{
  --ehm-teal:#006C64;
  --ehm-dark:#000000;
  --ehm-gray:#E5E5E5;
  --ehm-text:#000000;
}

html{ scroll-behavior:smooth; }
body{
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 14pt;
  color: var(--ehm-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography helpers */
.brand-title{
  font-weight:800;
  letter-spacing:.03em;
  line-height:1.1;
  font-size: large;
}

/* ==== HERO ==== */
.hero{
  position: relative;
  min-height: 275px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-background{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(85%); /* subtle darken for contrast */
}
.hero-logo-wrap{ position: relative; z-index: 1; text-align: center; }
.hero-logo{height: 175px;width: auto;}

/* ==== CONTACT BAR (TOP) ==== */
.contact-bar{
  background: #fff;
}
.contact-bar .container{
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}
.contact-links{
  font-weight: 600;
  text-align: center;
  font-size: 15pt;
}
.contact-links a{
  color: #000000;
  text-decoration: none;
}
.contact-links a:hover{ text-decoration: underline; }
.contact-links .sep{
  display: inline-block;
  margin: 0 .45rem;
  opacity: .9;
}
.contact-address{
  color: var(--ehm-dark);
  font-size: 15pt
}



/* ==== SECTION STYLES ==== */
.section-title{
  color: #006c64;
  text-transform: uppercase;
  font-weight: 800;
  text-align: center;
  margin: 10px;
  font-size: 16pt;
}
.who-we-are{
  padding-bottom: 40px;
  background: #fff;
  padding-top: 30px;
  padding-left: 20px;
  padding-right: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.who-we-are .container{
  margin: 0 auto;
  padding-left:50px;
  padding-right:50px
  
}
.lead{ font-size: 14pt; }
.lead-tight{ line-height: 1.75; text-align: center; }

/* ==== SERVICES ==== */
section.services {
  background-color: #E5E5E5;
  padding-top: 20px;
  padding-bottom: 30px;
}

.services-grid {
  padding-top:10px;
  display: grid;
  gap: 7px 10px;
  grid-template-columns: repeat(2, minmax(0,1fr)); /* default 2-col */
  text-align: center;
  font-size:14pt;
  font-weight: 500;
  color: #000000;
  line-height:1.25;
  background-color: var(--ehm-gray);
}

/* ==== PRODUCTS / BRANDS ==== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* two columns */
  justify-items: center;                 /* center categories horizontally */
  align-content: space-between;          /* TOP row sticks to top, LAST row sticks to bottom */
  gap: 40px 20px;                        /* vertical & horizontal gaps */
  min-height: 100%;                      /* ensures spacing distributes */
}

.category {
  text-align: center;
}

.category-title {
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.vendor-list {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}

/* Mobile fallback */
@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: 1fr;
    align-content: start;  /* just stack normally */
  }
}

/* ==== MOBILE STACKING ==== */
@media (max-width: 800px) {
  .services-grid,
  .category-grid {
    grid-template-columns: 1fr; /* collapse to single column */
  }
}

/* ==== PRODUCTS / BRANDS (2-column lists, centered) ==== */
.products{
  background: #fff;
  padding: 48px 0;
}
.products .container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.products-intro{ text-align: center; margin-bottom: 24px; }
.category-grid{
  padding-top: 50px;
  display: grid;
  gap: 50px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}
.category{
  border: none;
  border-radius: 0;
  padding: 0;
  background: transparent;
  text-align: center;
}
.category-title{
  font-weight: 700;
  text-transform: uppercase;
  font-size: larger;
  color: #000;
  margin-bottom: .35rem;
}
.vendor-list{
  list-style: none;
  padding-left: 0;
  margin: 0;
  text-align: center;
  font-size: 14pt;
}
.vendor-list li{ padding: .18rem 0; font-size: large; }

/* ==== LOGO GRID ==== */
.logo-grid {
  background:#fff;
  padding: 10px 10px;
  max-width: 800px;
  /* margin: auto; */
  margin: auto;
  /* width: 800px; */
  align-items: start;
}
.logo-grid .container {
  max-width: 80%;
  /* width:100%; */
  margin:0 auto;
  padding: 20px 16px;
}

.logo-tiles {
  margin-bottom: 50px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr); /* 3x3 by default */
  justify-items: center;
  justify-content: center;
  /* grid-area: auto; */
  align-items: stretch;
}

.logo-tile {
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 20px 30px;
  aspect-ratio: 2.5;
}
.logo-tile img {
  max-width:100%;
  max-height:100px;
  display:block;
  object-fit:contain;
}

/* Stack logos under 800px */
@media (max-width: 800px) {
  .logo-tiles {
    display:block;
  }
}

/* ==== CONTACT BAR (FOOTER) ==== */
.contact-bar-footer{
  background: #fff;
  /* font-size: larger; */
  border-top: 3px solid #e6eceb; /* light line above */
  margin: 50px auto;
}

.contact-bar-footer {
    max-width: 900px;
    padding-bottom: 50px;
}
.contact-bar-footer .container{
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}
/* scope footer-specific text so it doesn't override the top bar */
.contact-bar-footer .contact-links {
  font-weight: 600;
  text-align: center;
  font-size: 15pt;
}
.contact-bar-footer .contact-links a{
  color: #000000;
  text-decoration: none;
}

.contact-bar-footer .contact-links a:hover{ 
  text-decoration: underline;
}

.contact-bar-footer .contact-address{ 
  color: var(--ehm-dark);
  font-size: 15pt
}

.c-logo{
  padding-top: 8px;
  max-height: 100px;
}
/* ==== COPYRIGHT ==== */
/*.ehm-copy{
  color: #5b6b71;
  text-align: center;
  font-size: .92rem;
  margin: 24px 0 12px;

}

/* === PRODUCTS: packed top, last item bottom, equal-height columns === */
.products {background:#fff;padding: 30px 0;max-width: 800px;margin: 0 auto;}
.products .container { max-width:1100px; margin:0 auto; padding:0 16px; }

/* Two columns; one row; both columns share tallest height automatically */
.products .category-grid{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;             /* horizontal gap only */
  padding-top: 20px;
}

/* Column as flex stack: pack items at top */
.products .category-col{
  display:flex;
  flex-direction:column;
  gap: 24px;               /* spacing between categories */
}

/* Pin the LAST item to the bottom of each column */
.products .category-col > .category:last-child{
  margin-top:auto;
}

/* Cards & typography */
.products .category{
  text-align:center;
  margin:0; padding:0;
}

.products .category-title{
  font-weight:800;
  text-transform:uppercase;
  margin:0 0 1px;
  font-size:16pt !important;   /* headline size per spec */
  color:#000;
}

.products .vendor-list{
  list-style:none;
  padding:0;
  margin:0;
  font-size:14pt !important;   /* body size per spec */
  line-height:1.5;
}

.products .vendor-list li{ padding:.18rem 0; }

/* Mobile: stack columns, remove divider */
@media (max-width: 800px){
  .products .category{
    padding: 10px 0;
  }
  .products .category-grid{
    grid-template-columns: 1fr;
  }
  .products .category-grid::before{ display:none; }
  .products .category-col{
    display:block; /* normal flow on mobile */
  }
  .contact-bar-footer .contact-address {
    padding: 0 10px;
  }
  .contact-bar-footer{
    margin: auto;
  }
  .c-logo{
    max-height: 80px;
  }
}