/* Digital Data Services: the only stylesheet. Brand values first. */
:root {
  --green: #029046;        /* Forest Green: buttons, links, accents */
  --green-bright: #4cb74b; /* Bright Green: hover */
  --green-dark: #1d2d24;   /* Dark Green: footer, headings */
  --mint: #99d4bf;
  --grey: #85919b;
  --grey-light: #f3f5f4;
  --text: #1f2421;
  --white: #ffffff;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1140px;
  --radius: 6px;
}

@font-face { font-family: "Montserrat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/montserrat-latin-700-normal.woff2") format("woff2"); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.6; color: var(--text); background: var(--white); }
img { max-width: 100%; height: auto; }
a { color: var(--green); }
a:hover, a:focus { color: var(--green-dark); }
h1, h2, h3 { font-weight: 700; line-height: 1.25; color: var(--green-dark); }
h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); margin: 0 0 .5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 .75rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
.lead { font-size: 1.15rem; font-weight: 500; }

.wrap, main > section { max-width: var(--wrap); margin: 0 auto; padding-left: 1.25rem; padding-right: 1.25rem; }
main > section { padding-top: 2.5rem; padding-bottom: 2.5rem; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid #e3e7e5; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .75rem; padding-bottom: .75rem; flex-wrap: wrap; }
.site-header .logo img { display: block; width: 140px; height: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav li { position: relative; }
.site-nav a { display: block; padding: .4rem 0; text-decoration: none; color: var(--green-dark); font-weight: 500; }
.site-nav a:hover, .site-nav a:focus { color: var(--green); }
.site-nav li ul { display: none; position: absolute; left: -1rem; top: 100%; z-index: 10; min-width: 16rem; list-style: none; margin: 0; padding: .5rem 1rem; background: var(--white); border: 1px solid #e3e7e5; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.site-nav li:hover > ul, .site-nav li:focus-within > ul { display: block; }

/* hero and bands */
main > section.hero, main > section.band { max-width: none; color: var(--white); background: var(--green-dark) url("../images/hero-map.jpg") center / cover no-repeat; padding: 4rem max(1.25rem, calc((100% - var(--wrap)) / 2 + 1.25rem)); }
.hero h1, .hero h2, .hero h3, .band h1, .band h2, .band h3 { color: var(--white); }
.hero p { max-width: 46rem; }
.hero-logo img { width: min(420px, 80%); height: auto; }

/* layout */
.grid { display: grid; gap: 2rem; align-items: start; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid + .grid { margin-top: 2rem; }
.card { padding: 1.25rem; background: var(--grey-light); border-radius: var(--radius); margin-bottom: 1.25rem; }
.grid img[src$="-logo.png"] { max-width: 220px; }
.card img { display: block; border-radius: var(--radius); margin-bottom: .75rem; }
.card h2 a, .card h3 a { color: inherit; text-decoration: none; }
.card h2 a:hover, .card h3 a:hover { color: var(--green); }

.button { display: inline-block; padding: .65rem 1.25rem; background: var(--green); color: var(--white); text-decoration: none; font-weight: 500; border-radius: var(--radius); }
.button:hover, .button:focus { background: var(--green-dark); color: var(--white); }

.logo-wall { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 1.25rem; align-items: center; }
.logo-wall img { display: block; margin: 0 auto; max-height: 90px; width: auto; }

.contact-list { list-style: none; padding: 0; }
.contact-list li { margin-bottom: .4rem; }

details { border-bottom: 1px solid #e3e7e5; padding: .75rem 0; }
summary { cursor: pointer; font-weight: 500; color: var(--green-dark); }
details[open] summary { margin-bottom: .5rem; }

/* footer */
.site-footer { background: var(--green-dark); color: var(--white); font-size: .875rem; margin-top: 2rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; }
.site-footer img { width: 160px; height: auto; }
.site-footer a { color: var(--white); }
.site-footer a:hover, .site-footer a:focus { color: var(--mint); }
.footer-links { margin: 0 0 .5rem; }

/* 404 */
.not-found ul { padding-left: 1.25rem; }

@media (max-width: 860px) {
  .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .site-nav li ul { display: none !important; }
}
@media (max-width: 600px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; }
  .site-header .logo img { width: 110px; }
  .site-nav > ul { gap: 0 1rem; }
}
.price { font-weight: 700; color: var(--green); margin: 0 0 .75rem; }
.grid > .card { margin-bottom: 0; }
.rates { border-collapse: collapse; width: 100%; max-width: 32rem; margin: 1rem 0; }
.rates th, .rates td { text-align: left; padding: .45rem .75rem; border-bottom: 1px solid #e3e7e5; }
.rates th { background: var(--grey-light); color: var(--green-dark); }
.rates td:last-child, .rates th:last-child { text-align: right; }
.person { grid-template-columns: 180px 1fr; margin-bottom: 2rem; }
.person img { border-radius: var(--radius); }
.role { font-weight: 500; color: var(--green); margin-top: -.25rem; }
@media (max-width: 600px) { .person { grid-template-columns: 1fr; } .person img { max-width: 180px; } }
