@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
:root {
  font-family: Inter, system-ui, sans-serif;
  color: #172b49;
  background: #f5f8fc;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: #135bb5;
}
a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 3px solid #175cbd;
  outline-offset: 3px;
}
img {
  max-width: 100%;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5ebf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
}
.brand img {
  display: block;
  width: 172px;
  max-height: 56px;
  object-fit: contain;
}
.site-header nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.site-header nav a {
  text-decoration: none;
  font-weight: 600;
  color: #233c5e;
}
.site-header nav a:hover {
  text-decoration: underline;
}
.profile-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}
.back-link {
  display: inline-block;
  margin: 0 0 19px;
  text-decoration: none;
  font-weight: 600;
}
.back-link:hover {
  text-decoration: underline;
}
.profile-card {
  background: #fff;
  border: 1px solid #e3eaf2;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 45px #193b6710;
}
.hero-cover {
  height: 286px;
  background: linear-gradient(125deg, #0c315f, #1767bc 65%, #76bfe6);
  position: relative;
}
.hero-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-placeholder {
  height: 100%;
  background:
    radial-gradient(circle at 83% 25%, #ffffff30 0 110px, transparent 112px),
    linear-gradient(125deg, #0c315f, #1767bc 65%, #76bfe6);
}
.profile-body {
  padding: 0 44px 50px;
}
.identity {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  margin-top: -55px;
  position: relative;
}
.logo-frame {
  width: 116px;
  height: 116px;
  flex: none;
  border: 5px solid white;
  border-radius: 25px;
  background: #e5f1ff;
  box-shadow: 0 5px 20px #0d33552b;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
  grid-area: 1/1;
}
.initials {
  grid-area: 1/1;
  font-size: 2rem;
  font-weight: 800;
  color: #135bb5;
}
.identity-copy {
  padding: 59px 0 0;
  min-width: 0;
}
.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 800;
  color: #1261bd;
  margin: 0 0 3px;
}
h1 {
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
  margin: 0 0 8px;
  color: #122e53;
}
.headline {
  font-size: 1.08rem;
  color: #47617e;
  margin: 0 0 10px;
}
.rating,
.review-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 0;
}
.rating span:last-child,
.review-summary span:last-child {
  color: #526985;
}
.stars {
  font-size: 1.18rem;
  letter-spacing: 0.07em;
  color: #e3e8f0;
  position: relative;
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}
.stars:before {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--rating) / 5 * 100%);
  overflow: hidden;
  white-space: nowrap;
  color: #edab25;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 22px 0;
  color: #3b5574;
  font-weight: 500;
}
.facts span:not(:first-child):before {
  content: "•";
  margin-right: 20px;
  color: #a5b9cc;
}
.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  border: 1px solid #cfe1f8;
  border-radius: 15px;
  background: linear-gradient(110deg, #edf5ff, #f8fbff);
  margin: 20px 0 10px;
}
.contact-panel strong {
  font-size: 1.2rem;
  color: #122e53;
}
.contact-panel p {
  margin: 3px 0 0;
  color: #49617e;
}
.primary-button {
  display: inline-block;
  border: 0;
  border-radius: 10px;
  padding: 13px 22px;
  background: #0864cd;
  color: white;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  min-height: 48px;
  min-width: 190px;
  font: inherit;
  font-weight: 700;
}
.primary-button:hover:not(:disabled) {
  background: #074d9f;
}
.primary-button:disabled {
  background: #637f9f;
  cursor: not-allowed;
}
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 1fr);
  gap: 48px;
}
.profile-section {
  border-top: 1px solid #e2e9f1;
  margin-top: 31px;
  padding-top: 27px;
}
.profile-section h2 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 16px;
  color: #17375e;
}
.profile-section p {
  margin: 0 0 12px;
}
.about-copy {
  max-width: 68ch;
  overflow-wrap: anywhere;
  color: #3c5270;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.portfolio-grid a {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #eaf1f7;
}
.portfolio-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-grid a:hover img {
  transform: scale(1.035);
}
.service-list,
.work-list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.service-list li {
  padding: 11px 14px;
  border: 1px solid #dce8f6;
  background: #f7faff;
  border-radius: 9px;
  font-weight: 600;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
}
.more-services {
  margin-top: 14px;
}
.more-services summary {
  cursor: pointer;
  color: #075bb7;
  font-weight: 700;
  min-height: 44px;
  padding: 8px 0;
}
.more-services .service-list {
  margin: 8px 0;
}
.collapse-hint {
  font-size: 0.85rem;
  color: #526985;
}
.review-summary {
  margin-bottom: 16px;
}
.review-card {
  margin: 0;
  padding: 19px;
  border: 1px solid #e2e9f2;
  border-radius: 13px;
  background: #fbfcff;
}
.review-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review-source {
  color: #506988;
  font-size: 0.9rem;
}
.review-card > p:last-child {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}
.review-card > p p {
  margin: 0;
}
.work-list {
  display: block;
}
.work-list li {
  padding: 6px 0;
}
.work-list li:before {
  content: "✓";
  color: #0864cd;
  font-weight: 800;
  margin-right: 10px;
}
.profile-side p {
  color: #49617e;
}
.hours-list,
.details-list {
  margin: 0;
}
.hours-list div,
.details-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid #edf1f6;
}
.hours-list dt,
.details-list dt {
  color: #526985;
}
.hours-list dd,
.details-list dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.site-footer {
  background: #102e52;
  color: #d9e5f4;
  padding: 50px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 35px;
}
.site-footer img {
  width: 150px;
  filter: brightness(0) invert(1);
}
.site-footer h2 {
  font-size: 1rem;
  color: white;
  margin: 0 0 15px;
}
.site-footer a,
.site-footer span {
  display: block;
  color: #d9e5f4;
  margin: 8px 0;
}
.site-footer p {
  max-width: 32ch;
  font-size: 0.9rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 800px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .site-header {
    padding: 12px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .brand img {
    width: 140px;
    max-height: 42px;
  }
  .site-header nav {
    gap: 8px 17px;
    font-size: 0.82rem;
  }
  .profile-shell {
    padding: 16px 12px 48px;
  }
  .profile-card {
    border-radius: 16px;
  }
  .hero-cover {
    height: 174px;
  }
  .profile-body {
    padding: 0 19px 34px;
  }
  .identity {
    margin-top: -45px;
    display: block;
  }
  .logo-frame {
    height: 92px;
    width: 92px;
    border-radius: 21px;
  }
  .identity-copy {
    padding: 13px 0 0;
  }
  .identity-copy h1 {
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
  }
  .headline {
    font-size: 1rem;
  }
  .facts {
    margin: 18px 0;
    display: grid;
    gap: 6px;
  }
  .facts span:not(:first-child):before {
    display: none;
  }
  .contact-panel {
    display: block;
    padding: 18px;
    margin: 19px 0 6px;
  }
  .contact-panel .primary-button {
    width: 100%;
    margin-top: 15px;
  }
  .profile-section {
    margin-top: 24px;
    padding-top: 22px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .service-list {
    grid-template-columns: 1fr;
  }
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 34px 22px;
    gap: 22px;
  }
  .site-footer > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 600px) {
  .site-footer {
    grid-template-columns: 1fr;
  }
  .site-footer > div:first-child {
    grid-column: auto;
  }
  .site-footer a {
    overflow-wrap: anywhere;
  }
}
.more-services .show-fewer {
  display: none;
}
.more-services[open] .show-all {
  display: none;
}
.more-services[open] .show-fewer {
  display: inline;
}
