:root {
  --bg: #f4f0ec;
  --surface: #ffffff;
  --text: #161412;
  --muted: #71665e;
  --line: #ded3ca;
  --black: #000000;
  --rust: #c24c27;
  --rust-dark: #9d351c;
  --red-orange: #d44827;
  --orange: #f16a21;
  --soft: #fff5ee;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  border-bottom: 3px solid var(--orange);
  background: var(--black);
  color: #fff;
}

.topbar-inner {
  display: grid;
  grid-template-columns: 150px minmax(260px, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 72px;
}

.brand img {
  width: 132px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}

.search-strip {
  display: grid;
  grid-template-columns: 1fr 210px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  background: #fff;
  color: #746a63;
  font-size: 0.88rem;
}

.search-strip span {
  min-height: 38px;
  border-right: 1px solid #efe5dc;
  padding: 9px 13px;
}

.main-nav,
.footer-inner nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.main-nav a {
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.claim-link,
.write-review,
.quote-button {
  border-radius: 3px;
  background: linear-gradient(135deg, var(--red-orange), var(--orange));
  color: #fff !important;
  padding: 9px 14px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  background: transparent;
  color: #fff;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
}

.mobile-menu {
  padding-bottom: 12px;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 12px;
}

.mobile-menu a {
  color: #fff;
  font-weight: 800;
}

.company-heading {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.91), rgba(76, 21, 8, 0.9)),
    linear-gradient(90deg, var(--rust), var(--orange));
  border-bottom: 1px solid var(--line);
  padding: 28px 0 34px;
  color: #fff;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
  font-weight: 700;
}

.heading-row {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-start;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.rating-line strong,
.stars,
.review-stars {
  color: var(--orange);
}

.claimed-badge {
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-band {
  padding: 28px 0 48px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.company-card,
.reviews-panel,
.profile-summary,
.review-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.company-card {
  position: sticky;
  top: 24px;
  order: 2;
  padding: 20px;
  border-top: 5px solid var(--rust);
}

.company-card h2 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.company-card p,
.profile-summary p,
.review-card p,
.reviews-header p {
  color: #5d554f;
}

dl {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.quote-button {
  display: flex;
  justify-content: center;
  width: 100%;
  font-weight: 800;
  text-transform: uppercase;
}

.reviews-panel {
  padding: 24px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}

.reviews-header h2 {
  margin-bottom: 4px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 1.55rem;
}

.profile-summary {
  margin-bottom: 14px;
  padding: 16px;
  border-left: 5px solid var(--orange);
  background: var(--soft);
  box-shadow: none;
}

.reviews-list {
  display: grid;
  gap: 14px;
}

.review-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  padding: 20px;
  box-shadow: none;
  border-left: 4px solid transparent;
}

.review-card:hover {
  border-left-color: var(--orange);
}

.avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #191512;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 800;
}

.review-card-header {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 2px;
}

.review-card-header span,
.review-number {
  color: #98a1ad;
  font-size: 0.82rem;
}

.review-card h3 {
  margin: 8px 0 6px;
  font-size: 1rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #111;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (max-width: 960px) {
  .topbar-inner {
    grid-template-columns: 150px 1fr 44px;
  }

  .search-strip,
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .company-card {
    position: static;
    order: 0;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 20px, 1140px);
  }

  .topbar-inner {
    grid-template-columns: 1fr 44px;
    min-height: 64px;
  }

  .brand img {
    width: 132px;
  }

  .heading-row,
  .reviews-header,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .review-card {
    grid-template-columns: 1fr;
  }
}
