/* ==========================================================================
   components.css — reusable UI pieces (buttons, cards, lists, FAQ, form…)
   ========================================================================== */

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}
.btn .icon { width: 1.05em; height: 1.05em; stroke-width: 2.25; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); filter: brightness(0.96); }
}
.btn--gold { background: var(--gold); border-color: var(--gold); color: #152b3d; }
.btn--navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn--ghost { background: transparent; border-color: rgb(255 255 255 / 0.6); color: var(--white); }
.btn[disabled],
.btn[aria-disabled="true"] { opacity: 0.65; cursor: progress; transform: none; }

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
}
.on-dark .eyebrow,
.hero .eyebrow { color: var(--gold); }

.section-head { max-width: 690px; margin-bottom: 40px; }
.section-head h2 {
  margin: 14px 0;
  font-size: clamp(1.75rem, 3.6vw, 2.7rem);
  letter-spacing: -0.03em;
  color: var(--navy);
}
.section-head p { color: var(--muted); }

/* ---------- Check list ---------- */
.ticklist { display: grid; gap: 14px; margin: 26px 0; }
.ticklist li { display: flex; align-items: flex-start; gap: 12px; }
.ticklist .check {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--green-bg);
  color: var(--green-ink);
}
.ticklist .check .icon { width: 14px; height: 14px; stroke-width: 3; }

/* ---------- Photo with offset gold frame ---------- */
.photo-frame {
  position: relative;
  isolation: isolate;
  margin: 0 20px 20px 0;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--line);
}
.photo-frame::after {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  z-index: -1;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}
@media (max-width: 900px) {
  .photo-frame img { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Icon tile ---------- */
.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--radius);
  background: var(--gold-tint);
  color: var(--navy);
}
.icon-tile .icon { width: 24px; height: 24px; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) {
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d1bd9c; }
}
.card .icon-tile { margin-bottom: 22px; }
.card h3 { margin-bottom: 10px; font-size: 1.125rem; color: var(--navy); }
.card p { margin-bottom: 18px; font-size: var(--fs-sm); color: var(--muted); }
.card__link {
  margin-top: auto;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--gold-ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s ease;
}
.card__link:hover { text-decoration-color: currentColor; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .cards { grid-template-columns: 1fr; } .card { padding: 24px; } }

/* ---------- Sectors ---------- */
.sectors {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sector {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.35;
}
.sector .icon { width: 22px; height: 22px; color: var(--gold-ink); }
@media (max-width: 900px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 380px) { .sectors { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  padding-top: 18px;
  border-top: 2px solid var(--gold);
  counter-increment: step;
}
.step::before {
  content: "0" counter(step);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.12em;
  color: var(--gold-ink);
}
.step h3 { margin: 10px 0 8px; font-size: 1.0625rem; color: var(--navy); }
.step p { font-size: var(--fs-sm); color: var(--muted); }
@media (max-width: 900px) { .process { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; } }
@media (max-width: 480px) { .process { grid-template-columns: 1fr; } }

/* ---------- FAQ (native <details>) ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 16px 0;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: none;
  margin-right: 4px;
  border-right: 2px solid var(--gold-ink);
  border-bottom: 2px solid var(--gold-ink);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding-bottom: 18px; font-size: var(--fs-sm); color: var(--muted); }

/* ---------- Contact box ---------- */
.contact-box {
  padding: 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
}
.contact-box h3 { margin-bottom: 12px; font-size: 1.4rem; }
.contact-box > p { color: var(--on-dark); font-size: var(--fs-sm); }
.contact-box address { margin-top: 24px; font-style: normal; }
.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 0;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: var(--fs-sm);
}
.contact-line .icon { margin-top: 2px; color: var(--gold); }
.contact-line__label { display: block; color: var(--on-dark-muted); font-size: var(--fs-xs); }
.contact-line a,
.contact-line strong { font-weight: 700; color: var(--white); overflow-wrap: anywhere; }
.contact-line a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 580px) { .contact-box { padding: 24px; } }

/* ---------- Form ---------- */
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 16px;
  align-content: start;
}
.form__note { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label,
.field .label { font-size: var(--fs-sm); font-weight: 700; color: var(--navy); }
.field .req { color: var(--danger); }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font-size: 1rem; /* 16px prevents iOS zoom on focus */
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102b46' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(202 166 106 / 0.55);
}
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { font-size: var(--fs-xs); font-weight: 600; color: var(--danger); }
.field__error:empty { display: none; }

.field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.field--check input {
  width: 22px;
  height: 22px;
  min-height: 0;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--navy);
}
.field--check label { flex: 1 1 0; min-width: 0; font-weight: 500; color: var(--ink); }
.field--check label a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__error { flex-basis: 100%; }
.field--check { flex-wrap: wrap; }

/* Honeypot: hidden from people and assistive tech, visible to bots */
.hp { display: none !important; }

.form__actions { grid-column: 1 / -1; }
.form__actions .btn { width: 100%; }
@media (min-width: 581px) { .form__actions .btn { width: auto; min-width: 220px; } }

.form__status {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.form__status:empty { display: none; }
.form__status[data-state="success"] { background: var(--success-bg); color: var(--green-ink); }
.form__status[data-state="error"] { background: var(--danger-bg); color: var(--danger); }
.form__status[data-state="info"] { background: var(--gold-tint); color: var(--ink); }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }
.form__status:focus { outline: none; }

@media (max-width: 580px) {
  .form { grid-template-columns: 1fr; }
}

/* ---------- Language switch ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--navy);
}
.lang-switch .icon { width: 16px; height: 16px; }
@media (hover: hover) { .lang-switch:hover { border-color: var(--gold); } }

/* ---------- Small print ---------- */
.disclaimer { margin-top: 14px; font-size: var(--fs-xs); color: var(--muted); }

/* ---------- Long-form text (privacy notice) ---------- */
.prose { max-width: 760px; }
.prose h1 { margin: 14px 0 10px; font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -0.03em; color: var(--navy); }
.prose h2 { margin: 40px 0 12px; font-size: 1.35rem; color: var(--navy); }
.prose p,
.prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { color: var(--muted); font-size: var(--fs-sm); }
.notice {
  margin: 24px 0;
  padding: 16px 18px;
  border-left: 4px solid var(--gold);
  background: var(--gold-tint);
  font-size: var(--fs-sm);
}
