/* Double M Company — Rural / Industrial Saskatchewan aesthetic */
:root {
  --green-deep: #2c4a3e;
  --green-mid: #3d5c4a;
  --green-soft: #5a7a68;
  --brown: #6b4f3a;
  --brown-dark: #4a3628;
  --earth: #8b7355;
  --steel: #5c6770;
  --steel-dark: #3d454c;
  --steel-light: #8a939c;
  --cream: #f4f0e8;
  --cream-dark: #e8e2d6;
  --off-white: #faf8f4;
  --text: #2a2a28;
  --text-muted: #5a5854;
  --border: #d4cdc0;
  --shadow: rgba(42, 42, 40, 0.12);
  --max: 1100px;
  --radius: 4px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--off-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--green-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brown);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--green-soft);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--green-deep);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* Header / Nav */
.site-header {
  background: var(--green-deep);
  color: #fff;
  border-bottom: 4px solid var(--brown);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: #fff;
}

.brand:hover {
  color: var(--cream);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.78rem;
  opacity: 0.85;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-toggle:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  font-size: 0.88rem;
  border-radius: var(--radius);
  display: inline-block;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.site-nav a[aria-current="page"] {
  font-weight: 600;
}

/* Main */
main {
  flex: 1;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* Hero */
.hero {
  background:
    linear-gradient(135deg, rgba(44, 74, 62, 0.92) 0%, rgba(61, 69, 76, 0.88) 100%),
    linear-gradient(180deg, var(--steel-dark), var(--green-deep));
  color: #fff;
  padding: 3.5rem 1.25rem;
  border-bottom: 4px solid var(--brown);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero .lead {
  font-size: 1.15rem;
  max-width: 38rem;
  margin: 0 0 1.5rem;
  opacity: 0.95;
  line-height: 1.55;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-meta strong {
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  background: var(--brown);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--brown);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn:hover {
  background: var(--brown-dark);
  border-color: var(--brown-dark);
  color: #fff;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--green-deep);
  border-color: var(--green-deep);
}

.btn-outline:hover {
  background: var(--green-deep);
  color: #fff;
}

.hero-actions {
  margin-top: 1.75rem;
}

/* Sections */
.section-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  color: var(--green-deep);
  margin: 0 0 0.5rem;
  border-bottom: 3px solid var(--brown);
  padding-bottom: 0.4rem;
  display: inline-block;
}

.section-intro {
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0.75rem 0 1.75rem;
}

/* Division cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 2px 6px var(--shadow);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--green-soft);
  box-shadow: 0 4px 12px var(--shadow);
}

.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--cream-dark);
  border: 2px solid var(--steel-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  font-size: 1.1rem;
  color: var(--steel-dark);
  font-weight: 700;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  color: var(--green-deep);
}

.card h3 a {
  text-decoration: none;
  color: inherit;
}

.card h3 a:hover {
  color: var(--brown);
  text-decoration: underline;
}

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

.card .card-link {
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--brown);
}

.card .card-link:hover {
  text-decoration: underline;
}

/* About strip */
.about-strip {
  background: var(--cream);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-strip .container {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .about-strip .container {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.about-strip h2 {
  font-family: var(--font-display);
  color: var(--green-deep);
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
}

.about-strip p {
  margin: 0 0 0.85rem;
  color: var(--text);
}

.info-box {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brown);
  padding: 1.25rem;
  border-radius: var(--radius);
}

.info-box h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  color: var(--steel-dark);
}

.info-box dl {
  margin: 0;
}

.info-box dt {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.65rem;
}

.info-box dt:first-child {
  margin-top: 0;
}

.info-box dd {
  margin: 0.15rem 0 0;
}

.info-box a {
  color: var(--green-deep);
}

.note {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 1rem !important;
}

/* Page header (inner pages) */
.page-header {
  background: var(--steel-dark);
  color: #fff;
  padding: 2rem 1.25rem;
  border-bottom: 4px solid var(--brown);
}

.page-header-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  margin: 0 0 0.4rem;
}

.page-header .breadcrumb {
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
}

.page-header .breadcrumb a:hover {
  color: #fff;
}

.page-header p {
  margin: 0;
  max-width: 40rem;
  opacity: 0.92;
}

/* Content pages */
.content-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px var(--shadow);
}

.content-block h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--green-deep);
  margin: 0 0 0.85rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--cream-dark);
}

.content-block h3 {
  font-size: 1.05rem;
  color: var(--steel-dark);
  margin: 1.25rem 0 0.5rem;
}

.content-block p,
.content-block ul {
  margin: 0 0 0.85rem;
}

.content-block ul {
  padding-left: 1.25rem;
}

.content-block li {
  margin-bottom: 0.35rem;
}

.content-block li::marker {
  color: var(--brown);
}

.placeholder-photo {
  background: var(--cream-dark);
  border: 2px dashed var(--steel-light);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 1rem 0;
}

.placeholder-photo strong {
  display: block;
  color: var(--steel-dark);
  margin-bottom: 0.35rem;
}

.two-col {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 700px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

/* Contact form */
.contact-layout {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 750px) {
  .contact-layout {
    grid-template-columns: 1fr 1.2fr;
  }
}

.form-group {
  margin-bottom: 1.1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--steel-dark);
}

.form-group .hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--off-white);
  color: var(--text);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--steel-light);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: var(--steel-dark);
  color: rgba(255, 255, 255, 0.88);
  margin-top: auto;
  border-top: 4px solid var(--brown);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.3fr 1fr 1fr;
  }
}

.site-footer h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: #fff;
  margin: 0 0 0.65rem;
}

.site-footer p,
.site-footer li {
  font-size: 0.9rem;
  margin: 0 0 0.4rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.82rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    width: 100%;
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 0.5rem;
  }

  .site-nav a {
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 1rem;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
}
