/* Shared composition contract for canonical Anilau marketing pages. */

.content-hero {
  position: relative;
  overflow: hidden;
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--brand-line);
}

.content-hero::after {
  content: "";
  position: absolute;
  right: -12%;
  bottom: -48%;
  width: min(38rem, 52vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(17, 86, 133, 0.055);
  pointer-events: none;
}

.content-hero-inner,
.content-section > .container,
.content-final-cta,
.content-narrow {
  position: relative;
  z-index: 1;
}

.content-hero-split .content-hero-inner,
.content-split {
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.content-hero-copy {
  min-width: 0;
}

.content-hero h1,
.content-hero-copy h1 {
  width: 100%;
  max-width: none;
  margin: 0 0 var(--space-3);
  font-size: var(--type-h1);
  font-weight: var(--type-h1-weight);
  line-height: var(--type-h1-line-height);
  letter-spacing: var(--type-h1-letter-spacing);
}

.content-hero-lead {
  max-width: 46rem;
  margin: 0;
  color: var(--brand-text-soft);
  font-size: var(--type-body);
  line-height: 1.7;
}

.content-back-link {
  display: inline-flex;
  margin-bottom: var(--space-4);
  color: var(--brand-text-soft);
  font-size: 0.94rem;
  font-weight: 700;
}

.content-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.content-hero-visual {
  margin: 0;
}

.content-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--brand-shadow-soft);
}

/* Keep all canonical section headings aligned with the service-page reference. */
body[data-page] main h2:not([data-heading-variant]) {
  font-size: var(--type-h2);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-line-height);
  letter-spacing: var(--type-h2-letter-spacing);
}

body[data-page] main h3:not([data-heading-variant]) {
  font-size: var(--type-h3);
  font-weight: var(--type-h3-weight);
  line-height: var(--type-h3-line-height);
  letter-spacing: var(--type-h3-letter-spacing);
}

.content-section {
  padding: var(--space-7) 0;
}

.content-section.section-block {
  margin: 0;
}

.content-section + .content-section {
  border-top: 1px solid var(--brand-line);
}

.content-section-heading {
  max-width: 60rem;
  margin-bottom: var(--space-5);
}

.content-section-heading h2,
.content-final-cta h2,
.content-note h2 {
  margin: 0 0 var(--space-2);
  font-size: var(--type-h2);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.content-section-heading p,
.content-final-cta p,
.content-note p {
  max-width: 52rem;
  margin: 0;
  color: var(--brand-text-soft);
  font-size: var(--type-body);
  line-height: 1.7;
}

.content-narrow,
.content-prose {
  width: min(100%, 50rem);
  margin-right: auto;
  margin-left: auto;
}

.content-list {
  border-top: 1px solid var(--brand-line);
}

.content-row {
  display: grid;
  grid-template-columns: minmax(13rem, 0.7fr) minmax(0, 1.3fr);
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--brand-line);
}

.content-row h2,
.content-row h3 {
  margin: 0;
  color: var(--brand-text);
  font-size: var(--type-h3);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.content-row p {
  margin: 0;
  color: var(--brand-text-soft);
  font-size: var(--type-body);
  line-height: 1.7;
}

.content-numbered-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: content-step;
  border-top: 1px solid var(--brand-line);
}

.content-numbered-list > li {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: var(--space-4);
  margin: 0;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--brand-line);
  counter-increment: content-step;
}

.content-numbered-list > li::before {
  content: counter(content-step, decimal-leading-zero);
  color: var(--brand-blue);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.content-numbered-list h3 {
  margin: 0 0 var(--space-1);
  font-size: var(--type-h3);
}

.content-numbered-list p {
  margin: 0;
  color: var(--brand-text-soft);
  line-height: 1.7;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--brand-text-muted);
  font-size: 0.92rem;
}

.content-note {
  padding: var(--space-5) 0 var(--space-5) var(--space-4);
  border-left: 4px solid var(--brand-blue);
}

.content-check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-check-list li {
  position: relative;
  margin: 0;
  padding: var(--space-2) 0 var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--brand-line);
  color: var(--brand-text);
  line-height: 1.65;
}

.content-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-green);
  font-weight: 800;
}

.content-faq {
  width: min(100%, 58rem);
  border-top: 1px solid var(--brand-line);
}

.content-faq details {
  border-bottom: 1px solid var(--brand-line);
}

.content-faq summary {
  position: relative;
  padding: 1.45rem 2.8rem 1.45rem 0;
  color: var(--brand-text);
  cursor: pointer;
  font-size: 1.08rem;
  font-weight: 750;
  list-style: none;
}

.content-faq summary::-webkit-details-marker {
  display: none;
}

.content-faq summary::marker {
  content: "";
}

.content-faq summary::after {
  content: "+";
  position: absolute;
  top: 1.15rem;
  right: 0;
  color: var(--brand-blue);
  font-size: 1.65rem;
  font-weight: 400;
  line-height: 1;
}

.content-faq details[open] summary::after {
  content: "−";
}

.content-faq details p {
  max-width: 50rem;
  margin: 0;
  padding: 0 2.8rem 1.5rem 0;
  color: var(--brand-text-soft);
  line-height: 1.7;
}

.content-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1.2fr);
  gap: var(--space-6);
  padding: var(--space-6);
  border-top: 5px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--brand-shadow-soft);
}

/* Cardless rows remain available for project-like catalogs. */
body[data-page="projects"] .card,
body[data-page="classifieds"] .platform-links .card {
  margin: 0 !important;
  border: 0;
  border-bottom: 1px solid var(--brand-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

body[data-page="projects"] .card:hover,
body[data-page="classifieds"] .platform-links .card:hover {
  border-color: var(--brand-blue);
  box-shadow: none;
  transform: none;
}

body[data-page="article"] .article-meta {
  margin: 0;
  color: var(--brand-text-muted);
}

body[data-page="article"] .article-tag {
  display: inline;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--brand-blue);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* Editorial pages: service-style split hero, calm readable prose, and one final conversion band. */
body[data-page="article"] .article-hero {
  min-height: min(760px, calc(100svh - 76px));
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(117, 185, 47, 0.09), transparent 24%),
    linear-gradient(180deg, #fbf8f1 0%, var(--brand-bg) 100%);
}

body[data-page="article"] .article-hero > .container {
  width: 100%;
}

body[data-page="article"] .article-shell {
  display: grid;
  grid-template-columns: minmax(440px, 0.9fr) minmax(0, 1.1fr);
  gap: 0 clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

body[data-page="article"] .article-shell > .article-back-link {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
}

body[data-page="article"] .article-shell > .jumbotron-heading {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  max-width: none;
  margin-bottom: var(--space-3);
  text-align: left !important;
}

body[data-page="article"] .article-shell > .lead {
  grid-column: 1;
  grid-row: 3;
  max-width: 46rem;
  margin-bottom: var(--space-3);
  font-size: var(--type-body);
  line-height: 1.7;
}

body[data-page="article"] .article-shell > .article-meta {
  grid-column: 1;
  grid-row: 4;
  align-self: start;
  margin-bottom: 0;
}

body[data-page="article"] .article-shell > .article-cover-figure {
  grid-column: 2;
  grid-row: 1 / span 4;
}

.article-cover-figure {
  width: 100%;
  margin: 0;
}

.article-hero-figure img {
  border-radius: var(--radius-lg);
  box-shadow: var(--brand-shadow-soft);
}

.article-body {
  width: min(100%, 50rem);
  margin: 0 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="article"] .article-content {
  padding-bottom: 0;
  background: var(--brand-bg);
}

body[data-page="article"],
body[data-page="articles"] {
  container-type: inline-size;
}

.article-body h2 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.article-body p,
.article-body li {
  font-size: var(--type-body);
  line-height: 1.72;
}

body[data-page="article"] .article-body > .article-decision-guide,
body[data-page="article"] .article-body > .article-sources,
body[data-page="article"] .article-body > .article-related,
body[data-page="article"] .article-body > .article-discussion {
  margin: var(--space-6) 0 0;
  padding: 0;
  border: 0;
  border-top: 0;
  border-bottom: 0;
  border-radius: 0;
  background: transparent;
}

.article-discussion h2 {
  margin-top: 0;
}

.article-case-figure,
.article-case-gallery {
  border-color: var(--brand-line);
  border-radius: var(--radius-md);
  box-shadow: none;
}

.article-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: var(--space-2);
  align-items: center;
  width: auto;
  margin: var(--space-5) calc(50% - 50cqw) 0;
  padding: clamp(4rem, 8vw, 7rem) max(var(--space-3), calc((100cqw - 1320px) / 2));
  border: 0;
  border-radius: 0;
  background: #1f363b;
  color: #fff;
  box-shadow: none;
}

.article-cta .feature-title {
  grid-column: 1;
  margin: 0;
}

.article-cta .feature-text {
  grid-column: 1;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-cta > .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: start;
  margin: 0;
}

.article-cta .feature-title {
  color: #fff;
}

.article-cta .btn-dark {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.article-cta .btn-dark:hover,
.article-cta .btn-dark:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--brand-blue-deep);
}

body[data-page="article"] .article-body > .article-publication-footer {
  margin-top: var(--space-6);
  padding: 0;
  border: 0;
  border-top: 0;
  border-bottom: 0;
}

.article-publication-footer .article-byline {
  margin: 0;
  color: var(--brand-text-muted);
}

/* Approved elevated surfaces for home-page panels and independent cards. */
.surface-panel {
  border: 1px solid var(--brand-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--brand-shadow-soft);
}

.surface-panel-neutral {
  background: var(--brand-surface);
}

.surface-panel-blue {
  background: var(--brand-blue-soft);
}

.surface-panel-green {
  background: var(--brand-green-soft);
}

.surface-panel-yellow {
  background: var(--brand-yellow-soft);
}

body[data-page="services"] .service-request-panel {
  margin-top: var(--space-7) !important;
  padding: var(--space-6);
  border: 0;
  border-top: 5px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--brand-shadow-soft);
}

body[data-page="services"] .service-request-panel form {
  max-width: 58rem;
}

body[data-page="services"] .service-request-panel .form-control {
  min-height: 3rem;
  border-color: rgba(35, 49, 58, 0.18);
  border-radius: var(--radius-sm);
  background: var(--brand-surface-strong);
}

body[data-page="services"] .service-request-panel textarea.form-control {
  min-height: 8.5rem;
}

body[data-page="projects"] .album .row,
body[data-page="classifieds"] .platform-links .row {
  display: block;
  margin: 0;
  border-top: 1px solid var(--brand-line);
}

body[data-page="projects"] .album .row > [class*="col-"],
body[data-page="classifieds"] .platform-links .row > [class*="col-"] {
  width: 100%;
  max-width: none;
  padding: 0;
}

body[data-page="projects"] .card-body,
body[data-page="classifieds"] .platform-links .card-body {
  display: grid;
  grid-template-columns: minmax(14rem, 0.65fr) minmax(0, 1.35fr);
  gap: var(--space-5);
  padding: var(--space-5) 0;
}

body[data-page="projects"] .card-title,
body[data-page="classifieds"] .platform-links .card-title {
  grid-row: 1 / span 3;
  margin: 0;
  font-size: var(--type-h3);
}

body[data-page="classifieds"] .jumbotron > .container {
  max-width: var(--layout-container);
}

body[data-page="classifieds"] .jumbotron > .container > p,
body[data-page="classifieds"] .jumbotron > .container > ol,
body[data-page="classifieds"] .jumbotron > .container > ul,
body[data-page="classifieds"] .jumbotron > .container > .section-heading {
  max-width: 50rem;
  margin-right: auto;
  margin-left: auto;
}

body[data-page="classifieds"] .platform-links {
  max-width: var(--layout-container);
  margin: var(--space-7) auto;
  padding: var(--space-6) 0;
  border-top: 1px solid var(--brand-line);
  border-bottom: 1px solid var(--brand-line);
}

@media (max-width: 991.98px) {
  .content-hero-split .content-hero-inner,
  .content-split,
  .content-final-cta {
    grid-template-columns: 1fr;
  }

  body[data-page="article"] .article-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="article"] .article-shell > .article-back-link,
  body[data-page="article"] .article-shell > .jumbotron-heading,
  body[data-page="article"] .article-shell > .lead,
  body[data-page="article"] .article-shell > .article-meta,
  body[data-page="article"] .article-shell > .article-cover-figure {
    grid-column: 1;
  }

  body[data-page="article"] .article-shell > .article-back-link { grid-row: 1; }
  body[data-page="article"] .article-shell > .jumbotron-heading { grid-row: 2; }
  body[data-page="article"] .article-shell > .lead { grid-row: 3; }
  body[data-page="article"] .article-shell > .article-meta { grid-row: 4; }

  body[data-page="article"] .article-shell > .article-cover-figure {
    grid-row: 5;
    margin-top: var(--space-4);
  }

  body[data-page="article"] .article-hero {
    min-height: 0;
  }

  .article-cta {
    grid-template-columns: 1fr;
  }

  .article-cta > .btn {
    grid-column: 1;
    grid-row: auto;
    margin-top: var(--space-3);
  }
}

@media (max-width: 767.98px) {
  .content-hero,
  .content-section {
    padding-top: var(--space-6);
    padding-bottom: var(--space-6);
  }

  .content-row,
  body[data-page="projects"] .card-body,
  body[data-page="classifieds"] .platform-links .card-body {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }

  body[data-page="projects"] .card-title,
  body[data-page="classifieds"] .platform-links .card-title {
    grid-row: auto;
  }

  .content-numbered-list > li {
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: var(--space-2);
  }

  .content-final-cta {
    padding: var(--space-4);
  }

}
