/* Timber — the store's layer on top of the Aigocy theme.
 *
 * Two jobs, and deliberately nothing else:
 *
 *  1. RE-TINT. The theme is parameterised by exactly one hex (`--brand`; see
 *     `templates/aigocy-components/README.md`, "Eight brands, one hex"), so the
 *     whole identity turns on this value. It is set to the Timber design
 *     system's primary (`design/system/tokens.json`, generated from the same
 *     wireframe this page renders), not invented here.
 *
 *  2. COMPOSE. The few places where a theme block was recomposed to fit the
 *     store's data — the process card's inline SVG instead of an icon font, a
 *     fourth column in the project cards' fact grid, the workshop panel, the
 *     capability list. Everything else is the theme's own CSS, untouched.
 *
 * Mobile-first, like the rest of the workspace: base styles target ~360px and
 * the breakpoints add up from there.
 */

:root {
  /* design/system/tokens.json → colors.primary / .secondary / .accent */
  --brand: #ff7304;
  --timber-ink: #0f0f0f;
  --timber-walnut: #ae5725;
}

/* ---- shell: the logo is an inline SVG + wordmark, not a bitmap ---------- */
.logo-site,
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: flex;
  width: 32px;
  height: 32px;
  color: var(--brand);
}

.logo-mark svg {
  width: 100%;
  height: 100%;
}

.logo-word {
  font-size: 20px;
  letter-spacing: 0.12em;
}

.tf-header .logo-word {
  color: var(--white);
}

.offcanvas-menu .logo-word {
  color: var(--white);
}

footer .logo-word {
  color: var(--primary);
}

/* ---- hero: the store's photograph, with a scrim so the copy stays AA ---- */
.section-hero .hero-image {
  background-image: none;
  background-attachment: scroll;
}

.section-hero .hero-image::after {
  position: absolute;
  content: "";
  inset: 0;
  border-radius: 40px;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.55) 0%, rgba(15, 15, 15, 0.35) 45%, rgba(15, 15, 15, 0.75) 100%);
}

.section-hero .content-wrap {
  position: relative;
  z-index: 2;
}

.section-hero .content-wrap .text {
  color: var(--neutral-200);
}

/* ---- process: store icons are inline SVG, the theme's were an icon font --
 * The theme's box-shadow swiper bleeds 8px outside its column so the cards'
 * shadows aren't clipped. At 360px the container's gutter is narrower than
 * that bleed, so it pokes past the viewport — clip it at the section edge
 * (`clip`, not `hidden`: it must not become a scroll container).
 */
.section-process {
  overflow-x: clip;
}

.process-card .icon svg {
  width: 32px;
  height: 32px;
}

.process-card .icon {
  background: linear-gradient(180deg, var(--timber-walnut) 0%, var(--brand) 100%);
  box-shadow: 0 14px 34px 0 rgba(255, 115, 4, 0.25), 0 1px 2px 0 rgba(255, 115, 4, 0.4);
  margin-bottom: 48px;
}

.process-card .content {
  margin-bottom: 48px;
}

/* ---- the dark band: quotes slide, the total sits under them ------------- */
.statistic-slider .swiper-progressbar {
  margin-bottom: 32px;
}

.statistic-slider .swiper-progressbar .text {
  min-height: 96px;
}

.statistic-total .title {
  color: var(--neutral-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.statistic-total .statistic-number {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 72px;
  line-height: 1.1;
}

.statistic-total .statistic-number .prefix {
  color: var(--brand);
}

/* The maker block is a single quote, not a swiper — the theme's testimonial
   card styling without the slider chrome. */
.swiper-testimonial_wrap .top-icon {
  margin-bottom: 16px;
}

.swiper-testimonial_wrap .desc {
  margin-bottom: 24px;
}

.swiper-testimonial_wrap .cite {
  display: flex;
  align-items: center;
  gap: 12px;
}

.swiper-testimonial_wrap .cite .line {
  width: 24px;
  height: 1px;
  background-color: var(--neutral-700);
}

.section-testimonials .testimonial-image img {
  width: 100%;
  border-radius: 40px;
  object-fit: cover;
}

/* ---- services: the accordion rows, without the collapse bodies ----------
 * The theme fills an accordion header with near-black once it is NOT
 * `.collapsed` — that is its "expanded" state. These rows never expand (the
 * store's service items are titles, nothing to open), so the fill is parked
 * off-canvas exactly as the theme parks it for a collapsed header, and the
 * card keeps the light surface the wireframe shows.
 */
.section-services .accordion-faq_item {
  padding: 0;
  border-radius: 24px;
  margin-bottom: 16px;
}

.section-services .accordion-faq_item:last-child {
  margin-bottom: 0;
}

.section-services .accordion-action.service-row {
  padding: 24px 28px;
  cursor: default;
}

.section-services .accordion-action.service-row::before {
  bottom: 110%;
}

.section-services .accordion-action.service-row .accordion-title {
  gap: 16px;
  align-items: center;
  font-size: 22px;
  line-height: 30px;
  color: var(--primary);
}

.section-services .accordion-action.service-row .accordion-title .num {
  color: var(--neutral-400);
  flex-shrink: 0;
}

@media (min-width: 48rem) {
  .section-services .accordion-action.service-row .accordion-title {
    font-size: 26px;
    line-height: 34px;
  }
}

/* ---- the compact project cards: the store's photos vary in aspect -------- */
.article-blog .blog-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* ---- projects: the theme's three fact columns, plus the summary --------- */
.featured-works-item .content .grid-text {
  width: 100%;
  flex-wrap: wrap;
}

.featured-works-item .content .grid-text .item:nth-child(1) {
  width: 100%;
}

.featured-works-item .content .grid-text .item:nth-child(n + 2) {
  width: auto;
  min-width: 140px;
  flex: 1 1 140px;
}

@media (min-width: 64rem) {
  .featured-works-item .content .grid-text {
    width: 58.22%;
    flex-wrap: nowrap;
  }

  .featured-works-item .content .grid-text .item:nth-child(1) {
    width: 40%;
  }

  .featured-works-item .content .grid-text .item:nth-child(n + 2) {
    width: 20%;
    flex: 0 1 20%;
    min-width: 0;
  }
}

/* ---- workshop: the store's photo as the panel, not the theme's earth.png - */
.section-about-us .col-left.workshop-panel {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 420px;
  padding: 40px;
  border-radius: 40px;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.section-about-us .col-left.workshop-panel::before {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 15, 0.15) 0%, rgba(15, 15, 15, 0.85) 100%);
}

.section-about-us .col-left.workshop-panel .title {
  margin-bottom: 24px;
}

.review-box .rating-stars {
  color: var(--brand);
}

.review-box .review-text {
  margin-top: 20px;
  margin-bottom: 0;
}

.capability-card .capability-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.capability-card .capability-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.capability-card .capability-list li:last-child {
  border-bottom: 0;
}

.capability-card .capability-list .icon {
  color: var(--brand);
}

.capability-card .cite {
  margin-top: 16px;
}

/* ---- contact: the store's contact rows are links ------------------------ */
.section-contact .contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-decoration: none;
}

.section-contact .contact-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 16px;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.section-contact .contact-item .icon svg {
  width: 24px;
  height: 24px;
}

.section-contact .contact-item .content {
  display: flex;
  flex-direction: column;
}

.section-contact .contact-item .text {
  color: var(--neutral-300);
}

.section-contact .contact-item:hover .icon {
  background-color: var(--brand);
}

.form-contact .form-note {
  margin: 4px 0 20px;
}

.form-contact .form-status {
  min-height: 24px;
  margin: 12px 0 0;
}

.form-contact .form-status.is-success {
  color: #12a150;
}

.form-contact .form-status.is-error {
  color: #d92d20;
}

/* ---- footer: the wordmark is text, the theme's was a PNG ---------------- */
footer .footer-image {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

footer .footer-wordmark {
  font-size: clamp(72px, 18vw, 260px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  color: var(--neutral-200);
  white-space: nowrap;
}

/* ---- project page -------------------------------------------------------
 * The theme's `v2` hero reserves 446px below the copy for an image that
 * overlaps it from the next section. This page has no such overlap — the cover
 * IS the hero background — so the reserve goes.
 */
.section-hero.v2.project-hero .content-wrap {
  padding: 180px 0 120px;
}

/* ...and the theme pulls the next section up by 100px into that reserve. */
.section-work-single {
  margin-top: 0;
}

.project-hero .sub {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 16px;
  border-radius: 99px;
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.project-hero .content-wrap .text {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  color: var(--neutral-200);
}

.work-single-facts .item {
  padding: 16px 0;
  border-bottom: 1px solid var(--neutral-200);
}

.work-single-facts .item:last-child {
  border-bottom: 0;
}

.work-single-gallery-item .img-style img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px;
}

.mt-64 {
  margin-top: 64px;
}
