/* ==================== COMPONENTS ==================== */

/* ---------- Eyebrow + section headings ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-eyebrow);
  color: var(--terracotta-d);
}
.h-section {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: var(--fs-h2);
  color: var(--ink);
  line-height: 1.32;
}
.h-section--light { color: var(--on-dark); }

/* short decorative rule */
.rule { width: 56px; height: 2px; background: var(--terracotta); border: 0; }
.rule--center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-mid);
  font-size: 0.76rem;
  line-height: 1;
  padding: 1.05rem 2.4rem;
  border-radius: 0;
  border: 1px solid transparent;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease),
              border-color 0.35s var(--ease), transform 0.35s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn--solid { background: var(--black); color: var(--on-dark); }
.btn--solid:hover { background: var(--terracotta); color: var(--white); }

.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--cream); }

.btn--light { background: transparent; border-color: rgba(255,255,255,0.75); color: #fff; }
.btn--light:hover { background: #fff; color: var(--ink); }

.btn--lg { padding: 1.2rem 2.9rem; font-size: 0.8rem; }

/* ---------- Brand / logo ---------- */
.brand { display: inline-flex; align-items: center; gap: 0.85rem; color: inherit; }
.brand__mark {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.02em;
  transition: width 0.35s var(--ease), height 0.35s var(--ease);
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 1.06rem;
  color: currentColor;
}
.brand__tag {
  margin-top: 0.4rem;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.52rem;
  color: var(--terracotta);
}

/* ---------- Media placeholder system ---------- */
.media {
  --m1: #cabda6;             /* overridden inline per slot for variety */
  --m2: #9a8a72;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background:
    radial-gradient(135% 95% at 72% 16%, rgba(255,255,255,0.34), rgba(255,255,255,0) 55%),
    linear-gradient(147deg, var(--m1) 0%, var(--m2) 100%);
  color: rgba(255,255,255,0.92);
}
.media::before {                 /* subtle texture + soft light streak */
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background:
    repeating-linear-gradient(116deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 10px),
    linear-gradient(90deg, rgba(255,255,255,0.14), transparent 22%, transparent 76%, rgba(0,0,0,0.12));
  mix-blend-mode: soft-light;
  opacity: 0.75;
}
.media::after {                  /* thin inner frame */
  content: "";
  position: absolute; inset: 14px; z-index: 1;
  border: 1px solid rgba(255,255,255,0.30);
  pointer-events: none;
}
.media > * { position: relative; z-index: 2; }
.media__cam {
  width: 30px; height: 30px; opacity: 0.85;
  background: center/contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}
.media__label {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-mid);
  font-size: 0.66rem;
  color: rgba(255,255,255,0.92);
  text-align: center;
  padding-inline: 1rem;
  max-width: 90%;
}
/* aspect-ratio variants */
.media--portrait { aspect-ratio: 4 / 5; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x4 { aspect-ratio: 3 / 4; }
.media--wide { aspect-ratio: 21 / 9; }
.media--feature { aspect-ratio: 16 / 7; }
/* when a real <img> replaces a slot, keep it covering the box */
img.media { object-fit: cover; }
/* full-bleed hero: no inner frame, fills its host */
.media--hero { width: 100%; height: 100%; }
.media--hero::after { display: none; }
.media--hero .media__label { font-size: 0.72rem; letter-spacing: var(--ls-wide); opacity: 0.85; }

/* ---------- Project card ---------- */
.project-card { display: block; color: inherit; }
.project-card__frame { overflow: hidden; }
.project-card .media { transition: transform 0.7s var(--ease), filter 0.5s var(--ease); }
.project-card:hover .media { transform: scale(1.04); filter: brightness(1.05); }
.project-card__name {
  margin-top: 1rem;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-mid);
  font-size: 0.92rem;
  color: var(--ink);
  transition: color 0.3s var(--ease);
}
.project-card:hover .project-card__name { color: var(--terracotta); }
.project-card__cat {
  margin-top: 0.4rem;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-size: 0.66rem;
  color: var(--muted);
}

/* ---------- Service card ---------- */
.service-card { color: inherit; }
.service-card .media { transition: filter 0.5s var(--ease); }
.service-card:hover .media { filter: brightness(1.06); }
.service-card__name {
  margin-top: 1.1rem;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-mid);
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.service-card__desc {
  margin-top: 0.7rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- Carousel chrome ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; flex: 0 0 auto; width: clamp(248px, 80vw, 300px); }
.carousel__nav {
  display: flex; gap: 0.75rem; justify-content: center; align-items: center;
  margin-top: 2rem;
}
.carousel__btn {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-2);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
}
.carousel__btn:hover { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.carousel__btn:disabled { opacity: 0.3; cursor: default; }
.carousel__btn:disabled:hover { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.carousel__dots { display: flex; gap: 0.5rem; align-items: center; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hairline-2); transition: background-color 0.3s, transform 0.3s; }
.carousel__dot.is-active { background: var(--terracotta); transform: scale(1.3); }

/* ---------- Process step ---------- */
.process-step { text-align: center; position: relative; }
.process-step__num {
  width: 64px; height: 64px; margin: 0 auto 1.3rem;
  display: grid; place-items: center;
  border: 1px solid var(--terracotta);
  border-radius: 50%;
  color: var(--terracotta);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.3rem;
  background: var(--cream);
  position: relative; z-index: 1;
}
.process-step__title {
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-mid);
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.process-step__desc { font-size: 0.92rem; line-height: 1.7; color: var(--text); max-width: 230px; margin-inline: auto; }

/* ---------- Award badge ---------- */
.awards-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: flex-start;
}
.award-badge { width: 116px; text-align: center; }
.award-badge__seal {
  width: 92px; height: 92px; margin: 0 auto 0.8rem;
  border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, var(--cream-2), var(--cream-deep));
  border: 2px solid var(--greige);
  box-shadow: inset 0 0 0 4px rgba(167,154,138,0.18);
  color: var(--greige-dark);
}
.award-badge__seal span { display: block; font-family: var(--font-head); }
.award-badge__year { font-size: 1.05rem; font-weight: 600; color: var(--terracotta-d); letter-spacing: 0.04em; }
.award-badge__mini { font-size: 0.5rem; text-transform: uppercase; letter-spacing: 0.2em; margin-top: 2px; }
.award-badge__label {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  font-size: 0.62rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Accordion (FAQ) ---------- */
.accordion { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--hairline); }
.accordion__item { border-bottom: 1px solid var(--hairline); }
.accordion__header {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0.25rem;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-tight);
  font-size: 0.86rem;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.accordion__header::-webkit-details-marker { display: none; }
.accordion__header:hover { color: var(--terracotta); }
.accordion__icon { position: relative; flex: 0 0 auto; width: 16px; height: 16px; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.accordion__icon::before { top: 50%; left: 0; width: 100%; height: 1.5px; transform: translateY(-50%); }
.accordion__icon::after  { left: 50%; top: 0; width: 1.5px; height: 100%; transform: translateX(-50%); }
.accordion__item[open] .accordion__icon::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.accordion__item[open] .accordion__header { color: var(--terracotta); }
.accordion__body { padding: 0 0.25rem 1.6rem; }
.accordion__body p { color: var(--text); font-size: 0.98rem; line-height: 1.75; max-width: 90%; }

/* ---------- Contact form (underline inputs) ---------- */
.cform { max-width: 720px; margin-inline: auto; }
.cform__field { position: relative; margin-bottom: 1.7rem; }
.cform__input {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hairline-2);
  padding: 0.85rem 0.2rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  transition: border-color 0.3s var(--ease);
}
.cform__input::placeholder {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: var(--ls-mid);
  font-size: 0.7rem;
  color: var(--muted);
}
.cform__input:focus { outline: none; border-bottom-color: var(--terracotta); }
.cform__field.has-error .cform__input { border-bottom-color: #b3402b; }
.cform__error { display: block; min-height: 1rem; margin-top: 0.45rem; font-size: 0.7rem; color: #b3402b; letter-spacing: 0.02em; }
.cform__actions { text-align: center; margin-top: 2.4rem; }
.cform__success { text-align: center; padding: 2.5rem 0; color: var(--greige-dark); }
.cform__success svg { margin: 0 auto 1rem; color: var(--greige-dark); }
.cform__success h3 { text-transform: uppercase; letter-spacing: var(--ls-mid); font-size: 1.05rem; color: var(--ink); margin-bottom: 0.6rem; }
.cform__success p { color: var(--text); }

/* ---------- Social icons ---------- */
.social { display: flex; gap: 0.6rem; }
.social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--hairline-2);
  border-radius: 50%;
  color: var(--ink-soft);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social a:hover { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy); color: var(--cream);
  padding: 10px 18px;
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: var(--ls-mid); font-size: 0.72rem;
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 12px; }
