/* Inner pages — ASV theme */
.page-main {
  padding-top: 88px;
}

.page-hero {
  position: relative;
  min-height: min(42vh, 520px);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem 1.5rem 3rem;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: page-hero-zoom 18s ease-in-out infinite alternate;
}

@keyframes page-hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.06);
  }
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 8, 10, 0.88) 0%,
    rgba(92, 10, 18, 0.72) 45%,
    rgba(26, 18, 20, 0.5) 100%
  );
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.page-hero__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-400);
  margin: 0 0 0.65rem;
}

.page-hero__title {
  font-family: var(--font-hero);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 0.75rem;
  text-wrap: balance;
  max-width: 18ch;
}

.page-hero__lead {
  margin: 0;
  max-width: 52ch;
  color: rgba(250, 246, 243, 0.88);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-section {
  padding: clamp(3rem, 6vw, 5rem) 1.5rem;
}

.page-section--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(212, 36, 54, 0.04) 50%, transparent 100%);
}

.page-section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  margin: 0 0 1rem;
  color: var(--ink);
}

.page-section__lead {
  margin: 0 0 2rem;
  max-width: 65ch;
  color: var(--muted);
}

.prose {
  max-width: 65ch;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1.1rem;
}

.prose strong {
  color: var(--ink);
}

.prose__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-700);
  margin: 1.35rem 0 0.6rem;
}

.prose-list {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.prose-list li {
  margin-bottom: 0.45rem;
}

.prose-list li:last-child {
  margin-bottom: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(212, 36, 54, 0.1);
  box-shadow: 0 6px 28px rgba(92, 10, 18, 0.06);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--red-800);
}

.value-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
}

.img-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.img-frame img {
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.map-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  min-height: 260px;
  background: rgba(92, 10, 18, 0.06);
}

.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Gallery */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.gallery-page-grid figure {
  margin: 0;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 0;
  box-shadow: 0 8px 28px rgba(92, 10, 18, 0.1);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s;
}

.gallery-page-grid figure:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 44px rgba(92, 10, 18, 0.18);
}

.gallery-page-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Masonry-style tall cells — desktop only */
.gallery-page-grid .tall {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 280px;
}

@media (max-width: 1100px) {
  .gallery-page-grid .tall {
    grid-row: span 1;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

@media (max-width: 900px) {
  .gallery-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .gallery-page-grid figure,
  .gallery-page-grid .tall {
    grid-row: span 1;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .gallery-page-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

/* Services page — detail list */
.service-detail {
  display: grid;
  gap: 1.5rem;
}

.service-detail article {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(212, 36, 54, 0.1);
  box-shadow: 0 6px 24px rgba(92, 10, 18, 0.06);
  transition: box-shadow 0.35s;
}

.service-detail article:hover {
  box-shadow: 0 14px 40px rgba(92, 10, 18, 0.1);
}

.service-detail .sd-img {
  aspect-ratio: 4/3;
  min-height: 200px;
}

.service-detail .sd-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail .sd-body {
  padding: 1.5rem 1.5rem 1.5rem 0;
}

.service-detail h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.service-detail p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.service-detail p + p {
  margin-top: 0.75rem;
}

@media (max-width: 800px) {
  .service-detail article {
    grid-template-columns: 1fr;
  }

  .service-detail .sd-body {
    padding: 0 1.25rem 1.35rem;
  }

  .service-detail .sd-img {
    min-height: 180px;
  }
}

/* Process steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  counter-reset: step;
  position: relative;
  padding: 0.35rem 0;
}

@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  background: var(--white);
  padding: 1.5rem 1.15rem 1.45rem;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(212, 36, 54, 0.1);
  text-align: center;
  box-shadow: 0 6px 28px rgba(92, 10, 18, 0.06);
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    border-color 0.35s;
  overflow: hidden;
}

.process-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red-600), var(--gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-out);
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(92, 10, 18, 0.12);
  border-color: rgba(212, 36, 54, 0.22);
}

.process-step:hover::after {
  transform: scaleX(1);
}

.process-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 0.95rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--red-500), var(--red-900));
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-body);
  letter-spacing: -0.02em;
  box-shadow:
    0 6px 18px rgba(180, 24, 40, 0.35),
    0 0 0 4px rgba(255, 255, 255, 0.95),
    0 0 0 5px rgba(212, 36, 54, 0.18);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0 0 0.55rem;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.process-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.58;
}

/* Contact page */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  border: 1px solid rgba(212, 36, 54, 0.12);
  box-shadow: 0 8px 32px rgba(92, 10, 18, 0.08);
}

.contact-card:first-child .contact-list {
  flex: 1 1 auto;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.contact-list p {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.contact-list a {
  font-weight: 600;
}

.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(212, 36, 54, 0.2);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--cream);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(212, 36, 54, 0.15);
}

.contact-form textarea {
  min-height: 140px;
  max-height: 280px;
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Form card: fill column height — grow textarea, pin helper text under button */
.contact-card--form .contact-form {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.contact-card--form .contact-form textarea {
  flex: 1 1 auto;
  min-height: 160px;
  max-height: none;
  resize: vertical;
  margin-bottom: 0.75rem;
}

.contact-card__note {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-card--form .contact-card__note {
  margin-top: auto;
  padding-top: 1rem;
  flex-shrink: 0;
}

.contact-card__aside {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(212, 36, 54, 0.12);
}

.contact-card__aside-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-700);
}

.contact-card__bullets {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.contact-card__bullets li {
  margin-bottom: 0.35rem;
}

.contact-card__bullets li:last-child {
  margin-bottom: 0;
}

.contact-card__aside-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
}

.contact-alert {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.contact-alert--success {
  background: rgba(46, 125, 50, 0.12);
  border: 1px solid rgba(46, 125, 50, 0.35);
  color: #1b5e20;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.contact-alert--success.contact-alert--fade-out {
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}

.contact-alert--error {
  background: rgba(180, 24, 40, 0.1);
  border: 1px solid rgba(180, 24, 40, 0.35);
  color: var(--red-900);
}

.contact-support-band {
  text-align: center;
}

.contact-support-inner {
  max-width: 640px;
  margin: 0 auto;
}

.contact-support-lead {
  margin-left: auto;
  margin-right: auto;
}

.page-main .btn-primary {
  display: inline-flex;
  background: linear-gradient(135deg, var(--red-500), var(--red-800));
  color: var(--white);
  box-shadow: 0 10px 32px rgba(180, 24, 40, 0.45);
}

.page-main .btn-primary:hover {
  color: var(--white);
}

/* Stories page — reuse testimonial styles; extra grid */
.stories-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

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