:root {
  --ink: #333333;
  --ink-soft: #4a4a4a;
  --panel-dark: #3d3d3d;
  --section-tint: #eaf1f8;
  --section-tint-alt: #eef5ec;
  --accent-green-dark: #2e7d32;
  --accent-green-mid: #66bb6a;
  --accent-green-light: #a5d6a7;
  --accent-brown: #6d4c2f;
  --max-width: 1100px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.65;
  font-size: 18px;
  background: #ffffff;
}

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER ---------- */

header {
  padding: 40px 0 20px;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-img {
  height: 60px;
  width: auto;
}

.brand-text h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-text p {
  margin: -2px 0 0;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.1;
}

nav {
  display: none;
  gap: 32px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav a.active {
  color: #c0554b;
  border-bottom-color: #c0554b;
}

nav a:hover { border-bottom-color: var(--accent-green-mid); }

.menu-btn {
  border: 1px solid var(--ink);
  background: none;
  padding: 8px 12px;
  cursor: pointer;
  display: inline-flex;
}

.menu-btn svg { width: 22px; height: 22px; }

#mobileNav {
  display: none;
  flex-direction: column;
  gap: 4px;
  margin-top: 16px;
}

#mobileNav.open { display: flex; }

#mobileNav a {
  color: var(--ink);
  text-decoration: none;
  padding: 10px 4px;
  border-bottom: 1px solid #eee;
}

@media (min-width: 760px) {
  nav { display: flex; }
  .menu-btn { display: none; }
}

/* ---------- HERO ---------- */

.hero {
  padding: 20px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-grid p {
  font-size: 19px;
  color: var(--ink-soft);
}

.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-img img { filter: grayscale(60%) contrast(1.05); }

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
  }
}

/* ---------- SERVICES ---------- */

.services {
  background: var(--section-tint);
  padding: 60px 0 70px;
  position: relative;
}

.services h2, .about h2 {
  text-align: center;
  font-size: 30px;
  margin: 0 0 40px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 760px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  padding: 0 24px 28px;
  text-align: center;
  overflow: hidden;
}

.card img {
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-top: 0;
  height: 190px;
  object-fit: cover;
  filter: grayscale(85%);
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

.card h3 {
  font-size: 22px;
  margin: 22px 0 12px;
}

.card p {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- REFERENCES ---------- */

.references {
  background: var(--section-tint-alt);
  padding: 70px 0 80px;
  border-top: 1px solid #dbe9d6;
}

.references-intro {
  text-align: center;
  max-width: 620px;
  margin: -20px auto 44px;
  color: var(--ink-soft);
  font-size: 17px;
  font-style: italic;
  position: relative;
  padding-bottom: 18px;
}

.references-intro::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent-green-mid);
  border-radius: 2px;
}

.ref-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 760px) {
  .ref-grid { grid-template-columns: 1fr 1fr; }
}

.ref-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  padding: 24px 26px 22px;
}

.ref-logo {
  width: auto;
  height: 44px;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
}

.ref-card h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.ref-role {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.ref-meta {
  margin: 0 0 12px;
  font-size: 14px;
  color: #7c7c7c;
}

.ref-toggle {
  background: none;
  border: none;
  padding: 0;
  color: #c0554b;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ref-toggle:hover { text-decoration: underline; }

.ref-details {
  display: none;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #eee;
}

.ref-details p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.ref-details p:last-child { margin-bottom: 0; }

.ref-card.expanded .ref-details { display: block; }

/* ---------- ABOUT ---------- */

.about {
  padding: 70px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

.about-grid p {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0 0 20px;
}

.about-photo img {
  border-radius: var(--radius);
  filter: grayscale(100%);
  max-width: 80%;
  margin: 0 auto;
}

@media (min-width: 860px) {
  .about-grid {
    grid-template-columns: 1.5fr 1fr;
  }
  .about-photo { order: 2; }
  .about-text { order: 1; }
}

/* ---------- FOOTER ---------- */

footer {
  background: var(--panel-dark);
  color: #f2f2f2;
  padding: 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

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

footer h3 {
  font-size: 22px;
  margin: 0 0 18px;
  font-weight: 700;
}

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

footer li {
  padding: 6px 0;
  color: #dedede;
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dedede;
}

.contact-line svg { width: 20px; height: 16px; flex-shrink: 0; }

.contact-line a {
  color: #dedede;
  text-decoration: none;
}

.contact-line a:hover { text-decoration: underline; }

.bottom-bar {
  text-align: center;
  font-size: 13px;
  color: #9a9a9a;
  padding-top: 36px;
  margin-top: 36px;
  border-top: 1px solid #545454;
}
