/* Contact page styles — scoped to #contact-main */
#contact-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
  padding-block: var(--space-4xl) var(--space-4xl);
}

/* Section base spacing */
#contact-main > section {
  width: 100%;
}

/* Contact Hero */
.contact-hero {
  display: flex;
  justify-content: center;
  padding-inline: var(--container-gutter);
}

.contact-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-lg);
  max-width: 720px;
  width: 100%;
}

.contact-hero__inner .eyebrow {
  margin-block-end: 0;
}

.contact-hero__inner h1 {
  margin-block-end: 0;
  max-width: 15ch;
}

.contact-hero__lead {
  max-width: 60ch;
  margin-block-end: 0;
}

.contact-hero__note {
  max-width: 60ch;
  margin-block-end: 0;
  color: var(--color-bone);
  font-size: var(--text-small);
}

.contact-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-block-start: var(--space-md);
}

.contact-hero__actions .btn {
  min-width: 200px;
}

/* Contact Channels */
.contact-channels {
  padding-inline: var(--container-gutter);
}

.contact-channels__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 720px;
  margin-inline: auto;
  margin-block-end: var(--space-2xl);
  text-align: center;
}

.contact-channels__header .eyebrow {
  margin-block-end: 0;
}

.contact-channels__header h2 {
  margin-block-end: 0;
}

.contact-channels__header p {
  margin-block-end: 0;
  max-width: 60ch;
  margin-inline: auto;
}

.contact-channels__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
  max-width: var(--container-max);
  margin-inline: auto;
}

.channel-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  background-color: var(--color-charcoal);
  border: var(--border-width) var(--border-style) var(--color-moss);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  min-width: 0;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.channel-card:hover,
.channel-card:focus-within {
  border-color: var(--color-brass);
  background-color: var(--color-forest);
}

.channel-card__icon {
  width: 48px;
  height: 48px;
  color: var(--color-brass);
  flex-shrink: 0;
}

.channel-card__icon svg {
  width: 100%;
  height: 100%;
}

.channel-card h3 {
  margin-block-end: 0;
}

.channel-card p {
  margin-block-end: 0;
  max-width: 45ch;
}

.channel-card__note {
  color: var(--color-bone);
  font-size: var(--text-small);
}

.channel-card__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-block-start: auto;
}

.channel-card__links a {
  font-weight: 500;
  word-break: break-word;
}

/* Venue Address & Hours */
.venue-info {
  padding-inline: var(--container-gutter);
}

.venue-info__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 720px;
  margin-inline: auto;
  margin-block-end: var(--space-2xl);
  text-align: center;
}

.venue-info__header .eyebrow {
  margin-block-end: 0;
}

.venue-info__header h2 {
  margin-block-end: 0;
}

.venue-info__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-2xl);
  max-width: var(--container-max);
  margin-inline: auto;
}

.address-block,
.hours-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-width: 0;
  padding: var(--space-xl);
  background-color: var(--color-charcoal);
  border: var(--border-width) var(--border-style) var(--color-moss);
  border-radius: var(--radius-md);
}

.address-block h3,
.hours-block h3 {
  margin-block-end: 0;
}

.address-block p,
.hours-block p {
  margin-block-end: 0;
  max-width: 55ch;
}

.address-block a {
  margin-block-start: auto;
  font-weight: 500;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-block-end: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: var(--space-sm);
  border-block-end: 1px solid var(--color-moss);
  font-size: var(--text-small);
  color: var(--color-bone);
}

.hours-list li:last-child {
  border-block-end: none;
}

.hours-list li span:first-child {
  font-weight: 500;
  color: var(--color-cream);
}

.hours-list li span:last-child {
  text-align: end;
  white-space: nowrap;
}

/* Map Placeholder */
.map-section {
  padding-inline: var(--container-gutter);
}

.map-section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 720px;
  margin-inline: auto;
  margin-block-end: var(--space-lg);
  text-align: left;
}

.map-section__header .eyebrow {
  margin-block-end: 0;
}

.map-section__header h2 {
  margin-block-end: 0;
}

.map-section__header p {
  margin-block-end: 0;
  max-width: 60ch;
}

.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  min-height: 400px;
  background-color: var(--color-forest);
  border: var(--border-width) var(--border-style) var(--color-moss);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.55)),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(184, 115, 51, 0.12) 39px, rgba(184, 115, 51, 0.12) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(184, 115, 51, 0.12) 39px, rgba(184, 115, 51, 0.12) 40px);
  pointer-events: none;
}

.map-placeholder__pin {
  width: 64px;
  height: 64px;
  color: var(--color-brass);
  z-index: 1;
  animation: map-pin-pulse 2.4s ease-in-out infinite;
}

.map-placeholder__pin svg {
  width: 100%;
  height: 100%;
}

.map-placeholder p {
  margin-block-end: 0;
  z-index: 1;
  font-weight: 500;
  color: var(--color-cream);
}

.map-placeholder a {
  z-index: 1;
  font-weight: 500;
}

@keyframes map-pin-pulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 1;
  }
  50% {
    transform: translateY(-8px);
    opacity: 0.8;
  }
}

/* Contact Form */
.contact-form-section {
  padding-inline: var(--container-gutter);
}

.contact-form-section__header {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 640px;
  margin-inline: auto;
  margin-block-end: var(--space-lg);
  text-align: left;
}

.contact-form-section__header .eyebrow {
  margin-block-end: 0;
}

.contact-form-section__header h2 {
  margin-block-end: 0;
}

.contact-form-section__header p {
  margin-block-end: 0;
  max-width: 50ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 640px;
  margin-inline: auto;
  background-color: var(--color-charcoal);
  border: var(--border-width) var(--border-style) var(--color-moss);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  min-width: 0;
}

.form-field label {
  margin-block-end: 0;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  max-width: 100%;
}

.form-error {
  min-height: 1.2em;
  color: var(--color-gold);
  font-size: var(--text-small);
  margin-block-end: 0;
}

.form-field.has-error input,
.form-field.has-error textarea,
.form-field.has-error select {
  border-color: var(--color-gold);
}

.form-status {
  min-height: 1.5em;
  font-size: var(--text-small);
  color: var(--color-bone);
}

.form-status.success {
  color: var(--color-gold);
}

.form-status.error {
  color: var(--color-gold);
}

.contact-form__submit {
  align-self: flex-start;
  min-width: 180px;
}

/* Age Notice */
.age-notice {
  padding-inline: var(--container-gutter);
}

.age-notice__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 720px;
  margin-inline: auto;
  background-color: var(--color-wine);
  border: var(--border-width) var(--border-style) var(--color-moss);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: left;
}

.age-notice__inner .eyebrow {
  margin-block-end: 0;
  color: var(--color-gold);
}

.age-notice__inner h2 {
  margin-block-end: 0;
}

.age-notice__inner p {
  margin-block-end: 0;
  max-width: 60ch;
}

/* Independent Status */
.independent-status {
  padding-inline: var(--container-gutter);
}

.independent-status__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 720px;
  margin-inline: auto;
  padding-inline-start: var(--space-lg);
  border-inline-start: 2px solid var(--color-brass);
  text-align: left;
}

.independent-status__inner .eyebrow {
  margin-block-end: 0;
}

.independent-status__inner h2 {
  margin-block-end: 0;
}

.independent-status__inner p {
  margin-block-end: 0;
  max-width: 60ch;
}

/* Final CTA */
.final-cta {
  padding-inline: var(--container-gutter);
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

.final-cta__inner .eyebrow {
  margin-block-end: 0;
}

.final-cta__inner h2 {
  margin-block-end: 0;
}

.final-cta__inner p {
  margin-block-end: 0;
  max-width: 60ch;
}

.final-cta__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-block-start: var(--space-md);
}

.final-cta__actions .btn {
  min-width: 180px;
}

/* Scroll reveal */
#contact-main > section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

#contact-main > section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  #contact-main > section {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .map-placeholder__pin {
    animation: none;
  }
}

/* Tablet breakpoint */
@media (max-width: 1024px) {
  .contact-channels__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .channel-card:last-child {
    grid-column: 1 / -1;
  }

  .venue-info__grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Mobile breakpoint */
@media (max-width: 767px) {
  #contact-main {
    gap: var(--space-3xl);
    padding-block: var(--space-3xl) var(--space-3xl);
  }

  .contact-hero__inner h1 {
    max-width: 100%;
  }

  .contact-hero__actions,
  .final-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .contact-hero__actions .btn,
  .final-cta__actions .btn {
    width: 100%;
    min-width: 0;
  }

  .contact-channels__grid {
    grid-template-columns: 1fr;
  }

  .channel-card:last-child {
    grid-column: auto;
  }

  .map-placeholder {
    min-height: 300px;
    padding: var(--space-lg);
  }

  .contact-form {
    padding: var(--space-md);
  }

  .contact-form__submit {
    width: 100%;
    align-self: stretch;
  }

  .hours-list li {
    flex-direction: column;
    gap: var(--space-xs);
  }

  .hours-list li span:last-child {
    text-align: start;
    white-space: normal;
  }
}
