:root {
  --navy: #173c8a;
  --blue: #0b4a9c;
  --text: #5f5f5f;
  --text-dark: #333;
  --muted: #8a8a8a;
  --bg: #f3f3f3;
  --panel: #fff;
  --line: #e2e2e2;
  --footer: #dedede;
  --accent: #e5ad4a;
  --sidebar-w: 260px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Raleway", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--blue); text-decoration: none; }
a:hover, a:focus-visible { color: var(--navy); text-decoration: underline; }

h1, h2, h3, h4 { font-weight: 500; line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 2.2rem; color: var(--navy); font-weight: 600; }
h2 { font-size: 1.75rem; color: #4a4a4a; }
h3 { font-size: 1.35rem; color: #4a4a4a; }

p { margin: 0 0 1.4em; }
strong { font-weight: 600; color: var(--text-dark); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Sidebar ---------- */

.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--panel);
  padding: 55px 25px 30px;
  overflow-y: auto;
  z-index: 20;
}

.brand { display: block; margin: 0 0 60px 5px; }
.brand img { width: 198px; }

.nav-toggle { display: none; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a {
  display: block;
  padding: 6px 0;
  font-weight: 500;
  font-size: 14.5px;
  color: var(--text-dark);
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--blue); text-decoration: none; }
.main-nav a[aria-current="page"], .main-nav .is-section > a { color: var(--blue); }

.main-nav .sub-menu { margin: 2px 0 6px; }
.main-nav .sub-menu a {
  display: block;
  padding: 3px 0;
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text);
}

.sidebar-contact { margin-top: 30px; font-size: 13px; line-height: 1.8; }
.sidebar-contact .phone { display: block; font-size: 15px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.sidebar-contact address { font-style: normal; }
.sidebar-icons { margin-top: 26px; width: 210px; }

/* ---------- Main ---------- */

.site { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.content {
  max-width: 1070px;
  padding: 80px 60px 60px 115px;
}

.page-title { margin-bottom: 22px; }

.banner { margin-bottom: 30px; border-bottom: 3px solid var(--navy); }

.lead { font-size: 1.15rem; }

/* three image strip (About, Testimonials) */
.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}
.image-row img {
  width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
  border-bottom: 3px solid var(--navy);
}

/* service bullet lists */
.service-list {
  columns: 3; column-gap: 30px;
  margin: 0 0 1.4em; padding-left: 20px;
}
.service-list li { break-inside: avoid; margin-bottom: .2em; }

/* ---------- Home slider ---------- */

.hero { position: relative; aspect-ratio: 16 / 9; max-height: 90vh; width: 100%; overflow: hidden; background: #dfe3e8; }
.hero .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity 1s ease;
}
.hero .slide.is-active { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 50px; height: 50px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.55); color: #444;
  font-size: 22px; line-height: 50px;
}
.hero-btn:hover, .hero-btn:focus-visible { background: rgba(255,255,255,.85); }
.hero-btn.prev { left: 0; }
.hero-btn.next { right: 0; }
.hero-dots { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; gap: 10px; }
.hero-dots button {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 0; background: rgba(255,255,255,.6);
}
.hero-dots button[aria-current="true"] { background: #fff; }

.welcome { padding: 80px 60px 70px 115px; max-width: 1070px; }
.welcome h1 { font-size: 2rem; margin-bottom: 1em; }
.welcome p { font-size: 1.45rem; font-weight: 400; line-height: 1.4; color: #666; }

/* ---------- Services grid ---------- */

.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; }
.service-tile {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 460 / 124; background: #333;
}
.service-tile img { width: 100%; height: 100%; object-fit: cover; opacity: .45; transition: opacity .3s, transform .4s; }
.service-tile span {
  position: absolute; left: 40px; bottom: 26px;
  color: #fff; font-size: 1.4rem; font-weight: 400;
}
.service-tile:hover, .service-tile:focus-visible { text-decoration: none; }
.service-tile:hover img, .service-tile:focus-visible img { opacity: .7; transform: scale(1.03); }

/* ---------- Resources ---------- */

.resource-cols { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; margin-top: 10px; }
.resource-cols h2 { font-size: 1.45rem; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { margin-bottom: .1em; }
.link-list a { color: var(--text); }
.link-list a:hover, .link-list a:focus-visible { color: var(--blue); }
.link-list .file-type { font-size: .75em; color: var(--muted); margin-left: .35em; text-transform: uppercase; }
.link-list.two-col { columns: 2; column-gap: 30px; }

/* ---------- Testimonials ---------- */

.testimonial { padding: 30px 0; border-bottom: 2px solid var(--line); }
.testimonial:first-of-type { padding-top: 10px; }
.testimonial img { max-height: 140px; width: auto; margin-bottom: 26px; }
.testimonial blockquote { margin: 0; font-style: italic; }
.testimonial blockquote.plain { font-style: normal; }
.testimonial blockquote p { margin-bottom: .9em; }
.testimonial figcaption { text-align: right; font-style: italic; font-weight: 600; color: #4a4a4a; }

/* ---------- Contact ---------- */

.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-form label { display: block; margin-bottom: 6px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%; margin-bottom: 20px;
  padding: 10px 12px; border: 1px solid #d6d6d6; background: #fff;
  font: inherit; color: var(--text-dark);
}
.contact-form textarea { min-height: 210px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.contact-form .req { color: #b03030; }
.hp-field { position: absolute; left: -9999px; }
.btn {
  display: inline-block; border: 0; cursor: pointer;
  padding: 11px 23px; background: var(--accent); color: #fff;
  font: 600 13px/1.4 "Raleway", Arial, sans-serif; letter-spacing: 2px; text-transform: uppercase;
}
.btn:hover, .btn:focus-visible { background: #d39a33; }
.btn:disabled { opacity: .7; cursor: wait; }
.form-status { margin: 16px 0 0; font-weight: 400; }
.form-status:empty { display: none; }
.form-status.is-success { color: #2e7d32; }
.form-status.is-error { color: #b03030; }
.map { width: 100%; height: 510px; border: 0; background: #f6f6f6; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer);
  padding: 22px 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 400;
}
.site-footer a { color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .content, .welcome { padding-left: 60px; }
}

@media (max-width: 900px) {
  .sidebar {
    position: sticky; bottom: auto; width: 100%;
    padding: 14px 16px;
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    overflow: visible;
  }
  .brand { margin: 0; }
  .brand img { width: 150px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px;
    background: none; border: 1px solid #ccc; padding: 8px 12px; cursor: pointer;
    font: 500 14px "Raleway", Arial, sans-serif; color: var(--text-dark);
  }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative;
  }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle .bars::before { top: -6px; }
  .nav-toggle .bars::after { top: 6px; }
  .sidebar-panel { display: none; flex-basis: 100%; padding-top: 14px; }
  .sidebar.is-open .sidebar-panel { display: block; }
  .main-nav > ul > li > a { padding: 9px 0; border-bottom: 1px solid #f0f0f0; }
  .main-nav .sub-menu { padding-left: 14px; }
  .sidebar-icons { width: 170px; }

  .site { margin-left: 0; min-height: 0; }
  .content { padding: 40px 16px; }
  .welcome { padding: 40px 16px; }
  .welcome p { font-size: 1.15rem; }
  h1 { font-size: 1.85rem; }
  .contact-cols, .resource-cols { grid-template-columns: 1fr; }
  .map { height: 340px; }
  .service-list { columns: 2; }
}

@media (max-width: 600px) {
  .image-row { grid-template-columns: 1fr; gap: 16px; }
  .service-grid { grid-template-columns: 1fr; gap: 16px; }
  .service-tile span { left: 22px; bottom: 18px; font-size: 1.2rem; }
  .service-list, .link-list.two-col { columns: 1; }
  .hero-btn { width: 40px; height: 40px; line-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero .slide, .service-tile img { transition: none; }
}
