/* =========================================================
   Contact
   ========================================================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.contact-item .glyph {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-item .glyph svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.contact-item h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.contact-item a,
.contact-item p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.contact-item a:hover { color: var(--red); }

.contact-form {
  display: grid;
  gap: 1.1rem;
  background: var(--paper-dim);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.form-row {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr 1fr;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field textarea {
  padding: 0.8rem 0.9rem;
  border: 1.5px solid var(--hairline-strong);
  border-radius: var(--radius);
  background: var(--paper);
  transition: border-color var(--dur-fast) var(--ease);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--red);
}

.field textarea { resize: vertical; min-height: 120px; }

.form-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.form-status {
  font-size: 0.88rem;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status[data-state="ok"] { color: #1c7a3e; }
.form-status[data-state="error"] { color: var(--red); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: linear-gradient(160deg, var(--red-deep), var(--red));
  color: rgba(255, 255, 255, 0.92);
  padding-block: clamp(2.75rem, 5vw, 4rem) 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

.footer-brand img {
  height: 34px;
  filter: brightness(0) invert(1);
}

.footer-brand p {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-col a,
.footer-col p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.footer-col a:hover { color: var(--paper); }

.footer-bottom {
  margin-top: clamp(2.25rem, 4vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Back-to-top */
.to-top {
  position: fixed;
  inset-block-end: 1.5rem;
  inset-inline-end: 1.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--red);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -10px rgba(28, 22, 20, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast);
  z-index: 80;
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.to-top svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none; stroke-width: 2.2;
}
