/* ==========================================================
   PAGES: About, Contact, 404
   (The page header .page-hero lives in gallery.css, so these
   pages link both files.)
   ========================================================== */

.section--alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

/* ==========================================================
   ABOUT: story
   ========================================================== */
.about-split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-photo {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: radial-gradient(120% 80% at 20% 10%, #2e2a25 0%, #161513 60%, #0f0f0f 100%);
}
.about-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text h2 {
  margin-top: 1rem;
}
.about-text p {
  max-width: 54ch;
  margin-top: 1.5rem;
  color: var(--text-muted);
}
.about-sign {
  margin-top: 2rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.75rem;
  color: var(--gold-light);
}

@media (min-width: 901px) {
  .about-split {
    grid-template-columns: 5fr 6fr;
  }
}

/* ---------- Three pillars ---------- */
.pillars {
  display: grid;
  gap: 2rem;
}
.pillar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.pillar > span {
  font-size: var(--fs-small);
  letter-spacing: 0.3em;
  color: var(--accent);
}
.pillar h3 {
  margin-top: 0.75rem;
}
.pillar p {
  margin-top: 0.75rem;
  color: var(--text-muted);
}
@media (min-width: 901px) {
  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

/* ---------- Services list ---------- */
.services {
  border-bottom: 1px solid var(--line);
}
.service {
  display: grid;
  gap: 0.5rem 2rem;
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}
.service-num {
  font-size: var(--fs-small);
  letter-spacing: 0.3em;
  color: var(--accent);
}
.service h3 {
  transition: color 0.4s ease;
}
.service p {
  color: var(--text-muted);
  max-width: 48ch;
}
.service-go {
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: transform 0.5s var(--ease);
}
.service:hover h3 {
  color: var(--gold-light);
  font-style: italic;
}
.service:hover .service-go {
  transform: translateX(8px);
}

@media (min-width: 901px) {
  .service {
    grid-template-columns: 4rem 1fr 1.4fr auto;
    align-items: center;
  }
}

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  gap: 2rem;
  counter-reset: step;
}
.step {
  counter-increment: step;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  color: var(--gold-light);
}
.step h3 {
  margin-top: 1rem;
  font-size: 1.5rem;
}
.step p {
  margin-top: 0.6rem;
  color: var(--text-muted);
}
@media (min-width: 601px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 901px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}

/* ---------- Call to action ---------- */
.page-cta {
  text-align: center;
}
.page-cta h2 {
  max-width: 16ch;
  margin: 1.25rem auto 0;
}
.page-cta p {
  max-width: 48ch;
  margin: 1.5rem auto 0;
  color: var(--text-muted);
}
.page-cta .btn {
  margin-top: 2.5rem;
}

/* ==========================================================
   CONTACT
   ========================================================== */
.contact-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}
@media (min-width: 901px) {
  .contact-grid {
    grid-template-columns: 4fr 7fr;
    gap: clamp(3rem, 6vw, 7rem);
  }
}

.contact-info p {
  max-width: 40ch;
  color: var(--text-muted);
}
.contact-info dl {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}
.contact-info dt {
  font-size: var(--fs-small);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
}
.contact-info dd {
  margin-top: 0.5rem;
}
.contact-info dd a {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.contact-info dd a:hover {
  border-color: var(--accent);
}

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  gap: 1.75rem;
}
@media (min-width: 601px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2.5rem;
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.field label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field label i {
  font-style: normal;
  color: var(--accent);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 0;
  font: inherit;
  color: var(--text);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(247, 245, 242, 0.25);
  border-radius: 0;
  transition: border-color 0.3s ease;
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}
.field input::placeholder,
.field textarea::placeholder {
  color: rgba(247, 245, 242, 0.3);
}
.field input[type="date"] {
  color-scheme: dark;
}
.field select {
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23b8975a' stroke-width='1.2'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.25rem center;
  padding-right: 2rem;
}
.field select:invalid {
  color: rgba(247, 245, 242, 0.3);
}
.field select option {
  background: var(--charcoal);
  color: var(--text);
}

/* Spam trap: hidden from people, visible to bots */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}
.form-actions .btn[disabled] {
  opacity: 0.5;
  pointer-events: none;
}
.form-status {
  min-height: 1.5em;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.form-status.is-error {
  color: #e39a8a;
}

/* ---------- Thank-you message ---------- */
.form-thanks {
  padding-block: clamp(1rem, 4vw, 3rem);
}
.form-thanks:focus {
  outline: none;
}
.form-thanks h2 {
  margin-top: 1rem;
}
.form-thanks p {
  max-width: 44ch;
  margin-top: 1.25rem;
  color: var(--text-muted);
}
.form-thanks .link-arrow {
  margin-top: 2rem;
}

/* ==========================================================
   404
   ========================================================== */
.nf {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 2rem) var(--gutter) 3rem;
  text-align: center;
}
.nf-code {
  font-family: var(--font-display);
  font-size: clamp(7rem, 3rem + 25vw, 18rem);
  line-height: 0.9;
  color: transparent;
  -webkit-text-stroke: 1px rgba(247, 245, 242, 0.4);
}
.nf h1 {
  margin-top: 1.5rem;
  font-size: var(--fs-h2);
}
.nf p {
  max-width: 40ch;
  margin-top: 1.25rem;
  color: var(--text-muted);
}
.nf-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2.5rem;
}