/* Page-specific styles */

/* Hero — full-bleed photo */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  padding-block: clamp(3.5rem, 12vw, 7rem) 0;
  border-bottom: 0;
  min-height: clamp(28rem, 78vh, 42rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2rem), 0 100%);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(118deg, rgba(44, 51, 64, 0.72) 0%, rgba(44, 51, 64, 0.32) 48%, rgba(44, 51, 64, 0.08) 100%),
    linear-gradient(180deg, rgba(36, 48, 64, 0.08) 0%, rgba(36, 48, 64, 0.42) 100%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 1px;
  background: var(--color-accent-line);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  flex: 1;
  width: min(100% - 2rem, var(--container-width));
  margin-inline: auto;
  padding-bottom: var(--space-8);
}

.hero__content {
  max-width: 38rem;
}

.hero__content h1 {
  color: var(--color-text-inverse);
  margin-bottom: var(--space-4);
  max-width: 16ch;
  font-size: clamp(1.75rem, 4.2vw, 2.65rem);
  line-height: 1.08;
  position: relative;
  padding-left: var(--space-4);
}

.hero__content h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-accent-hover));
}

.hero__content .lead {
  color: var(--color-text-inverse-muted);
  margin-bottom: var(--space-6);
  max-width: 36ch;
}

.hero__panel {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: var(--space-4) var(--space-3);
  background: var(--color-background);
  border-top: 1px solid var(--color-accent-line);
}

.hero__panel-inner {
  display: grid;
  gap: var(--space-3);
  max-width: 52rem;
  margin-inline: auto;
}

.hero__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}

.hero__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.4rem;
  padding: var(--space-2) var(--space-2);
  text-align: center;
}

.hero__trust-item + .hero__trust-item {
  border-left: 0;
}

.hero__trust-item--highlight {
  padding: var(--space-3) var(--space-3);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.hero__trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent-dark);
}

.hero__trust-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.hero__trust-label {
  font-size: 0.72rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  line-height: 1.3;
  max-width: 9.5rem;
  letter-spacing: 0;
}

.hero__trust-item:not(.hero__trust-item--highlight) .hero__trust-label {
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}

.hero__reviews {
  padding-top: 0;
  border-top: 0;
  width: 100%;
}

.hero__reviews-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
  width: 100%;
  padding: 0.65rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.hero__reviews-divider {
  width: 1px;
  height: 0.75rem;
  background: var(--color-border-strong);
}

.hero__reviews-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: 0;
}

.hero__reviews-score {
  font-size: 0.8125rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.hero__reviews-stars {
  color: var(--color-accent);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1;
}

.hero__reviews-star-half {
  opacity: 0.4;
}

.hero__reviews-meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.hero__reviews-meta strong {
  color: var(--color-text);
  font-weight: var(--fw-semibold);
}

.hero__reviews-meta a {
  color: var(--color-accent-dark);
  font-weight: var(--fw-semibold);
  text-decoration: none;
}

.hero__reviews-meta a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.hero__credit {
  position: absolute;
  right: var(--space-4);
  bottom: var(--space-3);
  z-index: 2;
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  color: rgba(242, 242, 240, 0.55);
}

/* Page hero — light band */
.page-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(212, 160, 23, 0.12), transparent 55%),
    var(--color-surface-alt);
  color: var(--color-text);
  padding-block: clamp(2rem, 4.5vw, 3rem);
  border-bottom: 1px solid var(--color-border);
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -8%;
  width: min(42vw, 22rem);
  height: 180%;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.18), transparent 70%);
  transform: rotate(-12deg);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 5rem;
  height: 3px;
  background: var(--color-accent);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  color: var(--color-text);
  margin-bottom: var(--space-2);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  max-width: 22ch;
}

.page-hero .lead {
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  max-width: 42rem;
}

.page-hero .breadcrumbs {
  padding-block: var(--space-2) var(--space-3);
}

.page-hero .breadcrumbs a,
.page-hero .breadcrumbs [aria-current="page"],
.page-hero .breadcrumbs li:not(:last-child)::after {
  color: var(--color-text-muted);
}

.page-hero .breadcrumbs [aria-current="page"] {
  color: var(--color-text);
}

.split {
  display: grid;
  gap: var(--space-10);
  align-items: start;
}

.split__media {
  border: 0;
  border-top: 1px solid var(--color-accent-line);
  border-radius: 0;
  overflow: hidden;
  background: var(--color-surface-alt);
  min-height: 14rem;
}

.split__media picture {
  display: block;
}

.split__media svg,
.split__media img {
  width: 100%;
  height: 100%;
  min-height: 14rem;
  object-fit: cover;
}

/* About home — professional split composition */
.about-home {
  background:
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
  position: relative;
  overflow: hidden;
}

.about-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-line), transparent);
  pointer-events: none;
}

.about-home__grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.about-home__media {
  display: grid;
  gap: var(--space-5);
}

.about-home__frame {
  position: relative;
  isolation: isolate;
}

.about-home__frame::before,
.about-home__frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-color: var(--color-accent);
  border-style: solid;
  pointer-events: none;
}

.about-home__frame::before {
  top: -0.35rem;
  left: -0.35rem;
  border-width: 2px 0 0 2px;
}

.about-home__frame::after {
  right: -0.35rem;
  bottom: -0.35rem;
  border-width: 0 2px 2px 0;
}

.about-home__frame img {
  width: 100%;
  height: clamp(16rem, 48vw, 26rem);
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

.about-home__accent {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(36, 48, 64, 0.55));
  pointer-events: none;
}

.about-home__caption {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-3);
  z-index: 2;
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(242, 242, 240, 0.72);
}

.about-home__highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  list-style: none;
  margin: 0;
  padding: 0;
}

.about-home__highlights li {
  padding: var(--space-4) var(--space-3);
  border-right: 1px solid var(--color-border);
  text-align: center;
}

.about-home__highlights li:last-child {
  border-right: 0;
}

.about-home__hl-value {
  display: block;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: var(--fw-bold);
  color: var(--color-accent-dark);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.about-home__hl-label {
  display: block;
  margin-top: var(--space-1);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.about-home__content .eyebrow {
  margin-bottom: var(--space-4);
}

.about-home__text {
  margin-top: var(--space-4);
  color: var(--color-text-muted);
  max-width: 38rem;
}

.about-home__points {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.about-home__points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.about-home__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border: 1px solid var(--color-accent-dark);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--color-background);
  background: var(--color-accent);
}

@media (min-width: 900px) {
  .about-home__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-12);
  }

  .about-home__frame img {
    height: 28rem;
  }
}

/* About page — intro + stat rings */
.about-intro {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.about-intro__frame {
  position: relative;
  isolation: isolate;
}

.about-intro__frame::before,
.about-intro__frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 2.75rem;
  height: 2.75rem;
  border-color: var(--color-accent);
  border-style: solid;
  pointer-events: none;
}

.about-intro__frame::before {
  top: -0.35rem;
  left: -0.35rem;
  border-width: 2px 0 0 2px;
}

.about-intro__frame::after {
  right: -0.35rem;
  bottom: -0.35rem;
  border-width: 0 2px 2px 0;
}

.about-intro__frame img {
  width: 100%;
  height: clamp(16rem, 42vw, 24rem);
  object-fit: cover;
  object-position: center;
  display: block;
}

.about-intro__caption {
  margin: var(--space-3) 0 0;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.about-stats {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.about-stats__content .section-heading {
  margin-bottom: 0;
  text-align: left;
}

.about-stats__rings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6) var(--space-4);
  max-width: 20rem;
  margin-inline: auto;
}

.stat-ring {
  position: relative;
  width: 100%;
  max-width: 8.5rem;
  margin-inline: auto;
  aspect-ratio: 1;
}

.stat-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  display: block;
}

.stat-ring__track {
  fill: none;
  stroke: var(--color-border-strong);
  stroke-width: 7;
}

.stat-ring__fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-ring__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3);
}

.stat-ring__value {
  font-size: clamp(0.95rem, 2.5vw, 1.2rem);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  line-height: 1.1;
}

.stat-ring__value--compact {
  font-size: clamp(0.78rem, 2vw, 0.95rem);
  letter-spacing: 0.01em;
}

.stat-ring__label {
  font-size: 0.62rem;
  font-weight: var(--fw-medium);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.25;
  margin-top: 0.2rem;
  max-width: 5.5rem;
}

@media (min-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }

  .about-stats {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-12);
  }

  .about-stats__rings {
    max-width: 24rem;
    margin-inline: 0 0;
    margin-left: auto;
    gap: var(--space-8);
  }

  .stat-ring {
    max-width: 9.5rem;
  }
}

.service-layout {
  display: grid;
  gap: var(--space-10);
}

.content-block + .content-block {
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.content-block h2 {
  margin-bottom: var(--space-4);
}

.content-block ul {
  list-style: disc;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
}

.content-block li + li {
  margin-top: var(--space-2);
}

.checklist {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--color-text-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 1px;
  background: var(--color-accent-dark);
}

/* Contact — open panels */
.contact-layout {
  display: grid;
  gap: var(--space-10);
}

.contact-card {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-6) 0 0;
}

.contact-card h2 {
  margin-bottom: var(--space-4);
  font-size: var(--fs-xl);
}

.contact-list {
  display: grid;
  gap: var(--space-4);
}

.contact-list dt {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.contact-list dd a {
  font-weight: var(--fw-semibold);
  text-decoration: none;
  color: var(--color-text);
}

.contact-list dd a:hover {
  color: var(--color-accent-dark);
}

.contact-form-wrap {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-6) 0 0;
}

.status-page {
  padding-block: clamp(3rem, 8vw, 6rem);
  text-align: center;
}

.status-page h1 {
  margin-bottom: var(--space-4);
}

.status-page .lead {
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.status-code {
  display: inline-block;
  font-size: var(--fs-5xl);
  font-weight: var(--fw-bold);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.04em;
}

.legal-content {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  padding: var(--space-8) 0 0;
}

.legal-content h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: var(--fs-xl);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--color-text-muted);
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: var(--space-3);
}

.team-section[hidden] {
  display: none !important;
}

.projects-section[hidden] {
  display: none !important;
}

/* Services showcase — bento grid on home + hub */
.services-showcase {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
}

.services-showcase::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-accent-line), transparent);
  pointer-events: none;
}

.services-showcase::after {
  content: "";
  position: absolute;
  right: -12%;
  top: 10%;
  width: min(36vw, 24rem);
  height: min(36vw, 24rem);
  background: radial-gradient(circle, rgba(212, 160, 23, 0.1), transparent 68%);
  pointer-events: none;
}

.services-bento {
  counter-reset: service-card;
  position: relative;
  z-index: 1;
}

.services-showcase .service-card {
  position: relative;
  background: transparent;
  border: 0;
  border-top: 0;
  padding: 0;
  box-shadow: none;
  transition: transform var(--transition-base);
}

.services-showcase .service-card::before {
  counter-increment: service-card;
  content: counter(service-card, decimal-leading-zero);
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 2;
  padding: 0.2rem 0.4rem;
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  color: var(--color-text-inverse);
  background: rgba(31, 37, 48, 0.55);
}

.services-showcase .service-card:hover,
.services-showcase .service-card:focus-within {
  border-color: transparent;
  box-shadow: none;
  transform: translateY(-2px);
}

.services-showcase .service-card__media {
  margin: 0 0 var(--space-3);
  aspect-ratio: 4 / 3;
}

.services-showcase .service-card--featured {
  grid-column: auto;
}

.services-showcase .service-card--featured .service-card__media {
  aspect-ratio: 4 / 3;
}

.services-showcase .service-card h3 {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  margin-bottom: var(--space-2);
  color: var(--color-text);
  font-weight: var(--fw-semibold);
  line-height: 1.3;
}

.services-showcase .service-card .card__link {
  margin-top: 0;
}
