/*----------------------------------------------------
  Evergreen Slate
  Master Stylesheet
----------------------------------------------------*/


/*====================================================
  1. RESET AND GLOBAL SETTINGS
====================================================*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #222;
  background: #fff url("../images/bg.gif") repeat;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

a {
  color: #123f73;
}

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}


/*====================================================
  2. MAIN SITE CONTAINER
====================================================*/

.site-shell {
  width: min(100% - 32px, 960px);
  margin: 24px auto;
  background: #fff;
  box-shadow: 0 2px 14px rgb(0 0 0 / 14%);
}


/*====================================================
  3. HEADER
====================================================*/

.site-header {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 360px;
  gap: 20px;
  align-items: center;
  padding: 18px 22px 8px;
  border-bottom: 1px solid #c9c9c9;
}

.site-logo img {
  display: block;
  width: 290px;
  max-width: 100%;
}

.header-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.header-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  object-fit: cover;
}

.tagline {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding: 7px 12px;
  color: #fff;
  background: #173f28;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
}


/*====================================================
  4. PAGE LAYOUT
====================================================*/

.page-layout {
  display: grid;
  grid-template-columns: 185px minmax(0, 1fr) 180px;
  gap: 24px;
  padding: 24px 22px 28px;
}


/*====================================================
  5. LEFT NAVIGATION
====================================================*/

.side-nav {
  padding-right: 18px;
  border-right: 1px solid #d7d7d7;
}

.side-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-nav li + li {
  margin-top: 8px;
}

.side-nav a {
  display: block;
  text-decoration: none;
}

.side-nav a:hover,
.side-nav a:focus {
  text-decoration: underline;
}

.contact-link {
  margin-top: 24px;
  font-weight: 700;
}


/*====================================================
  6. MAIN CONTENT AND TYPOGRAPHY
====================================================*/

main h1 {
  margin-top: 0;
  color: #173f28;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
}

main h2 {
  margin-top: 28px;
  color: #173f28;
  font-size: 1.2rem;
}


/*====================================================
  7. CONTENT IMAGES
====================================================*/

.lead-image {
  float: left;
  width: 190px;
  margin: 4px 18px 10px 0;
}

.secondary-image {
  float: right;
  width: 150px;
  margin: 4px 0 10px 18px;
}


/*====================================================
  8. CALLOUTS AND NOTICES
====================================================*/

.callout {
  clear: both;
  margin: 22px 0;
  padding: 15px 18px;
  border-left: 5px solid #173f28;
  background: #f4f1df;
  color: #123f73;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
}

.notice {
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #d5d5d5;
  background: #fafafa;
}

.notice h2 {
  margin-top: 0;
}

.news-date {
  display: block;
  margin-bottom: 4px;
  color: #666;
  font-size: 0.9rem;
  font-weight: 600;
}


/*====================================================
  9. RIGHT PRODUCT SIDEBAR
====================================================*/

.product-sidebar {
  align-self: start;
  padding: 16px;
  background: #fff9cf;
}

.product-sidebar h2 {
  margin-top: 0;
  color: #173f28;
  font-size: 1.1rem;
  text-align: center;
}

.product-card + .product-card {
  margin-top: 22px;
}

.product-card img {
  display: block;
  margin: 0 auto 8px;
}

.product-card p {
  margin: 6px 0 0;
  text-align: center;
}


/*====================================================
  10. FOOTER
====================================================*/

.site-footer {
  padding: 14px 22px;
  color: #fff;
  background: #111;
  font-size: 0.92rem;
  text-align: center;
}

.site-footer a {
  color: #fff;
}


/*====================================================
  11. TABLET LAYOUT
====================================================*/

@media (max-width: 800px) {

  .site-header {
    grid-template-columns: 1fr;
  }

  .header-gallery {
    max-width: 500px;
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .side-nav {
    padding-right: 0;
    padding-bottom: 18px;
    border-right: 0;
    border-bottom: 1px solid #d7d7d7;
  }

  .side-nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 18px;
  }
}


/*====================================================
  12. PHONE LAYOUT
====================================================*/

@media (max-width: 520px) {

  .site-shell {
    width: 100%;
    margin: 0;
  }

  .site-header,
  .page-layout,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-gallery {
    grid-template-columns: 1fr;
  }

  .side-nav ul {
    grid-template-columns: 1fr;
  }

  .lead-image,
  .secondary-image {
    float: none;
    width: 100%;
    margin: 0 0 16px;
  }
}