:root {
  --primary-color: #1e2a33;
  --accent-color: #f28c28;
  --background-color: #ffffff;
  --text-color: #222222;
  --font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-family); color: var(--text-color);
  background: var(--background-color); line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--primary-color); }
h1, h2, h3 { line-height: 1.2; }
.container { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.section { padding: 3rem 0; }
.section h2 { color: var(--primary-color); margin-top: 0; }

.cards-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card { border: 1px solid #e3e3e3; border-top: 4px solid var(--accent-color); border-radius: 8px;
  padding: 1.5rem; background: #fff; }
.card h3 { margin: 0 0 .5rem; color: var(--primary-color); }
.card p { margin: 0; }
/* Fixed column count: flex instead of grid so an incomplete last row is centered. */
.cards-columns { display: flex; flex-wrap: wrap; justify-content: center; }
.cards-columns > .card { flex: 0 1 calc((100% - (var(--columns) - 1) * 1.5rem) / var(--columns)); }
@media (max-width: 40rem) { .cards-columns > .card { flex-basis: 100%; } }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; font-size: 1.1rem; }
.contact-list strong { display: inline-block; min-width: 6rem; color: var(--primary-color); }

.site-footer { background: var(--primary-color); color: #fff; padding: 2rem 0; margin-top: 3rem;
  text-align: center; font-size: .9rem; }
.site-footer p { margin: .25rem 0; opacity: .85; }
.site-footer a { color: inherit; }

.form { display: grid; gap: 1rem; max-width: 40rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; color: var(--primary-color); }
.form input, .form textarea { font: inherit; padding: .6rem .75rem; border: 1px solid #ccc; border-radius: 6px; }
.form textarea { min-height: 8rem; resize: vertical; }
.form-button { justify-self: start; font: inherit; font-weight: 700; padding: .8rem 1.6rem; border: 0;
  border-radius: 6px; background: var(--accent-color); color: var(--text-color); cursor: pointer; }
.form-button:hover { filter: brightness(1.1); }
.form-note { margin-top: 1.5rem; }
.form-note a { color: var(--primary-color); font-weight: 700; }

.site-header { background: var(--primary-color); color: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; padding-block: 1rem; }
.site-header .brand { display: flex; align-items: center; gap: .75rem; color: inherit;
  text-decoration: none; font-weight: 700; font-size: 1.25rem; }
.site-header .brand img { height: 48px; width: auto; }
.site-header nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.site-header nav a { color: inherit; text-decoration: none; opacity: .85; }
.site-header nav a:hover, .site-header nav a[aria-current] { opacity: 1;
  border-bottom: 2px solid var(--accent-color); }

.hero { background: var(--primary-color); color: #fff; text-align: center; padding: 5rem 0; }
.hero-image { background-size: cover; background-position: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 1rem; }
.hero p { font-size: 1.25rem; max-width: 40rem; margin: 0 auto 2rem; opacity: .9; }
.button { display: inline-block; background: var(--accent-color); color: var(--text-color);
  padding: .8rem 1.6rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.button:hover { filter: brightness(1.1); }

.text-section .container { max-width: 48rem; }
