/* layout.css — ValReparo · sections, grids, cards, forms, cookie banner */

main { display: block; }

.section { padding: 64px 0; }
.section--tight { padding: 48px 0; }
.section--dark {
  background: var(--primary-deep);
  color: var(--text-onDark);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--alt { background: #fff; }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* breadcrumbs (visual only) */
.crumbs {
  font-size: .9rem;
  color: var(--text-soft);
  padding: 18px 0 0;
}
.crumbs a { color: var(--text-soft); }
.crumbs span[aria-current] { color: var(--text); }

/* grids */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: 1fr; }
.grid--svc { grid-template-columns: 1fr; }

@media (min-width: 700px) {
  .grid--2 { grid-template-columns: 1fr 1fr; }
  .grid--svc { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--svc { grid-template-columns: repeat(3, 1fr); }
}

/* cards */
.card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-bottom: .4rem; }

.svc-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.svc-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.svc-card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-card__body h3 { margin-bottom: .35rem; }
.svc-card__body p { font-size: .98rem; color: var(--text-soft); flex: 1; }
.svc-card__link {
  margin-top: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* feature list with thin red marker */
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.feat-list li { position: relative; padding-left: 30px; margin: 0; }
.feat-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.feat-list strong { display: block; color: var(--primary-deep); }
.section--dark .feat-list strong { color: #fff; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--ff-display); font-size: clamp(2rem, 5vw, 2.8rem); color: #fff; line-height: 1; }
.stat__num span { color: var(--accent); }
.stat__label { font-size: .95rem; color: var(--text-onDark); margin-top: 8px; }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 22px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-display); font-weight: 700;
  color: #fff; background: var(--primary); border-radius: 50%;
}
.steps h3 { font-size: 1.15rem; }

/* price table */
.price-table { margin: 24px 0; font-size: 1rem; }
.price-table caption { text-align: left; font-weight: 600; margin-bottom: 10px; color: var(--text-soft); }
.price-table th, .price-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.price-table thead th { background: var(--primary-deep); color: #fff; }
.price-table tbody tr:nth-child(even) { background: #fff; }
.price-table td:last-child { font-weight: 600; white-space: nowrap; }

/* team */
.team-grid { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.member img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); margin-bottom: 14px; }
.member h3 { margin-bottom: .15rem; }
.member__role { color: var(--accent); font-weight: 600; font-size: .92rem; margin-bottom: .6rem; }
.member p { font-size: .95rem; color: var(--text-soft); }

/* faq */
.faq { max-width: 820px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 600;
  font-family: var(--ff-display);
  color: var(--primary-deep);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details > p { padding: 16px 0 18px; margin: 0; color: var(--text-soft); }

/* contact layout */
.contact-grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.1fr .9fr; } }
.contact-block { margin-bottom: 26px; }
.contact-block h3 { font-size: 1.1rem; margin-bottom: .25rem; }
.contact-block a { font-weight: 600; }

/* form */
.form { display: grid; gap: 16px; max-width: 460px; }
.form label { font-weight: 600; font-size: .95rem; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
}
.form input:focus-visible { border-color: var(--primary-light); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--text-soft); }
.form .consent input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--text-soft); }
.form-status { font-size: .95rem; font-weight: 600; min-height: 1.2em; }
.form-status[data-state="error"] { color: var(--accent); }

/* cookie banner — bottom strip full width */
.consent-tray {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  background: var(--primary-deep);
  color: var(--text-onDark);
  border-top: 3px solid var(--accent);
  padding: 16px 0;
  animation: tray-up .3s var(--ease);
}
.consent-tray[hidden] { display: none; }
.consent-tray__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
@media (min-width: 860px) {
  .consent-tray__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.consent-tray p { margin: 0; font-size: .92rem; max-width: 70ch; }
.consent-tray a { color: #fff; text-decoration: underline; }
.consent-tray__actions { display: flex; gap: 12px; flex-shrink: 0; }
.consent-tray__actions button {
  min-height: 44px;
  padding: 10px 22px;
  font: 600 .95rem var(--ff-body);
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
}
.consent-tray__actions button[data-action="ok"] { background: var(--accent); color: #fff; }
.consent-tray__actions button[data-action="nope"] { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }

@keyframes tray-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* css-only reveal */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.section > .container > * { } /* no-op anchor */
.reveal-seq > * {
  opacity: 0;
  animation: rise-in .6s var(--ease) forwards;
}
.reveal-seq > *:nth-child(1) { animation-delay: .05s; }
.reveal-seq > *:nth-child(2) { animation-delay: .15s; }
.reveal-seq > *:nth-child(3) { animation-delay: .25s; }
.reveal-seq > *:nth-child(4) { animation-delay: .35s; }
.reveal-seq > *:nth-child(5) { animation-delay: .45s; }
.reveal-seq > *:nth-child(6) { animation-delay: .55s; }
@media (prefers-reduced-motion: reduce) {
  .reveal-seq > * { opacity: 1; animation: none; }
}

.cta-band {
  background: linear-gradient(120deg, var(--primary-deep), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  display: grid;
  gap: 20px;
  align-items: center;
}
@media (min-width: 820px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin: 0; }
.cta-band p { margin: 8px 0 0; color: var(--text-onDark); }

.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
