:root {
  --ink: #2d3336;
  --muted: #697277;
  --brand: #ee924b;
  --deep: #4d5559;
  --canvas: #f6f6f4;
  --line: #e3e6e4;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: 'Open Sans', Arial, sans-serif; line-height: 1.65; }
.container { width: min(1000px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; min-height: 110px; }
.brand { display: block; line-height: 0; }
.brand img { width: min(329px, 58vw); height: auto; }
.primary-nav { display: flex; align-items: center; gap: 6px; }
.primary-nav a { padding: 11px 13px; border-radius: 4px; color: var(--ink); font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current='page'] { background: var(--brand); color: #fff; }
.menu-toggle { display: none; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px; background: #fff; font: inherit; font-weight: 700; }

.hero { margin-top: 5px; background: #333; }
.hero-slides { position: relative; width: 100%; height: min(370px, calc((100vw - 40px) * .37)); overflow: hidden; background-size: cover !important; background-position: center !important; }
.nivoslider img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.nivoslider a.nivo-imageLink { position: absolute; top: 0; left: 0; z-index: 6; display: none; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; }
.nivo-slice { position: absolute; z-index: 5; display: block; height: 100%; }
.nivo-box { position: absolute; z-index: 5; display: block; }
.nivo-caption { position: absolute; top: 59.5%; left: 0; z-index: 8; display: none; width: min(304px, 78%); min-height: 80px; padding: 19px 20px; overflow: hidden; border-radius: 0 5px 5px 0; background: #666; color: #f8ffec; font-size: clamp(1rem, 2.1vw, 1.4rem); font-weight: 400; }
.nivo-caption p { margin: 0; }
.nivo-controlNav, .nivo-directionNav { display: none; }
.static-hero .hero-slides > img { width: 100%; height: 100%; object-fit: cover; }

.services { padding-block: 64px; }
.service-card { padding: 30px 28px; background: #fff; box-shadow: 0 10px 24px rgba(22, 30, 33, .05); }
.service-card-wide { display: flex; align-items: flex-start; gap: 24px; }
.service-card-wide > img { flex: 0 0 60px; }
.service-card-pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 28px; }
.service-card-pair .service-card { border-left: 1px solid var(--line); }
.service-card img { margin-bottom: 10px; }
.service-card h1, .service-card h2, .page-content h1, .page-content h2 { margin: 0 0 16px; line-height: 1.25; }
.service-card h1, .service-card h2 { color: var(--brand); font-size: 1.45rem; }
.service-card p { font-size: .94rem; }
.service-card ul, .client-list, .timeline { padding-left: 20px; }
.service-card li { margin-bottom: 4px; font-size: .9rem; }
.text-link { color: #bd6c2f; font-weight: 700; text-decoration: none; }

.page-heading { padding: 44px 0; background: var(--deep); color: #fff; }
.page-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.2; }
.page-content { padding-block: 60px; }
.page-content h2 { margin-top: 36px; font-size: 1.4rem; }
.intro { max-width: 850px; font-size: 1.15rem; }
.profile { display: flex; align-items: flex-start; gap: 30px; margin-top: 32px; }
.profile img { width: 190px; height: 190px; border: 6px solid #fff; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 20px rgba(0, 0, 0, .12); }
.timeline li, .client-list li { margin-bottom: 8px; }
.section-kicker { margin-bottom: 8px; color: #bd6c2f; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.consulting-content > h1 { max-width: 720px; font-size: clamp(2rem, 4vw, 3.2rem); }
.consulting-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }
.consulting-grid section { padding: 25px; border-top: 3px solid var(--brand); background: #fff; }
.consulting-grid h2 { margin-top: 0; }
.contact-content { min-height: 360px; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.contact-cards a { padding: 24px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.contact-cards a:hover { border-color: var(--brand); }
.contact-cards span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .8rem; font-weight: 400; }

.site-footer { background: #686868; color: #e8ecec; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-block: 45px; }
.footer-grid h2 { margin: 0 0 12px; color: #fff; font-size: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-grid p { margin: 0; font-size: .9rem; }
.footer-grid a { color: #fff; text-decoration: none; }
.footer-nav { display: grid; gap: 5px; }
.copyright { padding: 14px 0; background: #30383c; color: #c9cece; font-size: .8rem; }

@media (max-width: 760px) {
  .header-inner { min-height: 82px; flex-wrap: wrap; gap: 12px; padding-block: 10px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 9px 0 9px 15px; }
  .service-card-pair, .consulting-grid, .contact-cards, .footer-grid { grid-template-columns: 1fr; }
  .services { padding-block: 35px; }
  .service-card-pair { gap: 18px; margin-top: 18px; }
  .service-card-wide, .profile { display: block; }
  .page-content { padding-block: 40px; }
  .footer-grid { gap: 24px; }
  .hero { margin-top: 0; }
  .nivo-caption { top: 55%; min-height: auto; padding: 13px 16px; }
}
