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

/* =========================================================
   Mobile / Base
   0rem+
   ========================================================= */
@media only screen and (min-width: 0rem) {

  /* =======================================================
     Shared Eyebrows
     ======================================================= */
  .contact-hero__eyebrow,
  .contact-form-wrap__eyebrow,
  .contact-info__eyebrow,
  .contact-next__eyebrow,
  .contact-closing__eyebrow {
    margin-bottom: 0.75rem;
    color: #904c32;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }

  /* =======================================================
     Scroll Reveal
     ======================================================= */
  [data-reveal] {
    opacity: 0;
    transform: translateY(1.5rem);
    transition:
      opacity 700ms ease,
      transform 800ms
      cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* =======================================================
     Hero
     ======================================================= */
  .contact-hero {
    padding:
      4rem
      0
      4.5rem;
    background: var(--color-cream);
  }

  .contact-hero__inner {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .contact-hero__content {
    max-width: 49rem;
  }

  .contact-hero__title {
    margin-bottom: 1.5rem;
    font-size:
      clamp(
        3rem,
        12vw,
        5.5rem
      );
    line-height: 0.95;
  }

  .contact-hero__title span {
    display: block;
    margin-top: 0.18em;
    color: var(--color-rust);
  }

  .contact-hero__intro {
    max-width: 46rem;
    color: var(--color-text-light);
    font-size: 1.1rem;
    line-height: 1.7;
  }

  .contact-hero__note {
    max-width: 26rem;
    padding: 1.5rem;
    border-radius:
      1.5rem
      1.5rem
      0.5rem
      1.5rem;
    background: var(--color-green-dark);
    color: var(--color-white);
    box-shadow:
      0 1rem 2rem
      rgba(38, 56, 40, 0.12);
  }

  .contact-hero__note-label {
    margin-bottom: 0.4rem;
    color: var(--color-sage-light);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .contact-hero__note-text {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.4;
  }

  /* =======================================================
     Main Contact
     ======================================================= */
  .contact-main {
    padding:
      5rem
      0;
    background: var(--color-white);
  }

  .contact-main__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  /* =======================================================
     Form Container
     ======================================================= */
  .contact-form-wrap {
    position: relative;
    overflow: hidden;
    padding:
      2rem
      1.25rem;
    border-radius: 2rem;
    background: #f6eddb;
    box-shadow:
      0 0.75rem 2rem
      rgba(38, 56, 40, 0.06);
  }

  .contact-form-wrap__header {
    position: relative;
    z-index: 2;
    max-width: 40rem;
    margin-bottom: 2rem;
  }

  .contact-form-wrap__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
  }

  .contact-form-wrap__topline
  .contact-form-wrap__eyebrow {
    margin-bottom: 0;
  }

  .contact-form-wrap__bone {
    flex-shrink: 0;
    width: clamp(5rem, 9vw, 8rem);
    height: auto;
    opacity: 0.08;
    transform: rotate(-8deg);
    pointer-events: none;
    user-select: none;
  }

  .contact-form-wrap__header h2 {
    margin-bottom: 0.75rem;
  }

  .contact-form-wrap__header p {
    color: var(--color-text-light);
    line-height: 1.65;
  }

  /* =======================================================
     Form
     ======================================================= */
  .contact-form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
  }

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

  .form-field label {
    color: var(--color-green-dark);
    font-size: 0.88rem;
    font-weight: 700;
  }

  .form-field label span {
    color: var(--color-rust);
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    width: 100%;
    padding:
      0.9rem
      1rem;
    border:
      0.0625rem solid
      rgba(38, 56, 40, 0.16);
    border-radius: 0.8rem;
    outline: none;
    background: var(--color-white);
    color: var(--color-text);
    font-size: 1rem;
    transition:
      border-color 250ms ease,
      box-shadow 250ms ease,
      background-color 250ms ease;
  }

  .form-field textarea {
    min-height: 10rem;
    resize: vertical;
  }

  .form-field input:focus,
  .form-field select:focus,
  .form-field textarea:focus {
    border-color: var(--color-rust);
    box-shadow:
      0 0 0 0.2rem
      rgba(182, 92, 56, 0.12);
    background: #fffdf9;
  }

  .form-field input::placeholder,
  .form-field textarea::placeholder {
    color:
      rgba(95, 102, 92, 0.72);
  }

  /* ---------- Submit ---------- */
  .contact-form__submit {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 0.5rem;
  }

  .contact-form__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: fit-content;
    padding:
      0.95rem
      1.45rem;
    border:
      0.125rem solid
      var(--color-rust);
    border-radius:
      var(--radius-pill);
    background:
      var(--color-rust);
    color:
      var(--color-white);
    font: inherit;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    box-shadow:
      0 0.45rem 1.15rem
      rgba(38, 56, 40, 0.12);
    transition:
      background-color 300ms ease,
      border-color 300ms ease,
      transform 300ms ease,
      box-shadow 300ms ease;
  }

  .contact-form__button:hover,
  .contact-form__button:focus-visible {
    background:
      var(--color-rust-dark);
    border-color:
      var(--color-rust-dark);
    transform:
      translateY(-0.15rem);
    box-shadow:
      0 0.7rem 1.5rem
      rgba(38, 56, 40, 0.16);
  }

  .contact-form__button:focus-visible {
    outline:
      0.15rem solid
      var(--color-green-dark);
    outline-offset:
      0.2rem;
  }

  .contact-form__button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .contact-form__button-arrow svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 300ms ease;
  }

  .contact-form__button:hover
  .contact-form__button-arrow svg,
  .contact-form__button:focus-visible
  .contact-form__button-arrow svg {
    transform:
      translateX(0.25rem);
  }

  .contact-form__submit p {
    margin: 0;
    color:
      var(--color-text-light);
    font-size: 0.75rem;
    line-height: 1.5;
  }

  /* =======================================================
     Contact Information Panel
     ======================================================= */
  .contact-info {
    padding:
      2rem
      1.5rem;
    border-radius: 2rem;
    background: var(--color-green-dark);
    color: var(--color-white);
  }

  .contact-info__eyebrow {
    color: var(--color-sage-light);
  }

  .contact-info__top {
    margin-bottom: 1.75rem;
  }

  .contact-info__top h2 {
    margin-bottom: 0.9rem;
    color: var(--color-white);
    font-size:
      clamp(
        2rem,
        8vw,
        3rem
      );
  }

  .contact-info__top > p:last-child {
    color:
      rgba(255, 255, 255, 0.78);
    line-height: 1.65;
  }

  /* =======================================================
     Direct Contact Methods
     ======================================================= */
  .contact-info__direct {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border:
      0.0625rem solid
      rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    background:
      rgba(255, 255, 255, 0.06);
    transition:
      background-color 300ms ease,
      border-color 300ms ease,
      transform 350ms ease,
      box-shadow 350ms ease;
  }

  .contact-method:hover,
  .contact-method:focus-visible {
    background:
      rgba(255, 255, 255, 0.11);
    border-color:
      rgba(255, 255, 255, 0.24);
    color: inherit;
    transform:
      translateX(0.25rem);
    box-shadow:
      0 0.5rem 1rem
      rgba(0, 0, 0, 0.08);
  }

  .contact-method__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 3.5rem;
    height: 3.5rem;
    padding: 0.75rem;
    border-radius: 50%;
    background: var(--color-rust);
  }

  .contact-method__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .contact-method__content {
    min-width: 0;
  }

  .contact-method__label {
    margin-bottom: 0.15rem;
    color:
      rgba(255, 255, 255, 0.6);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
  }

  .contact-method__value {
    margin: 0;

    color: var(--color-white);

    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;

    white-space: nowrap;
  }

  .contact-method[href^="mailto:"] .contact-method__value {
    font-size: 0.82rem;
  }
  

  /* =======================================================
     Helpful Information
     ======================================================= */
  .contact-info__items {
    display: flex;
    flex-direction: column;
  }

  .contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding:
      1.4rem
      0;
    border-top:
      0.0625rem solid
      rgba(255, 255, 255, 0.12);
  }

  .contact-info__number {
    flex-shrink: 0;
    color: var(--color-rust);
    font-family: var(--font-heading);
    font-size: 1rem;
  }

  .contact-info__item h3 {
    margin-bottom: 0.35rem;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 1rem;
  }

  .contact-info__item p {
    margin: 0;
    color:
      rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .contact-info__area {
    margin-top: 1.5rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background:
      rgba(255, 255, 255, 0.07);
  }

  .contact-info__area-label {
    margin-bottom: 0.3rem;
    color: var(--color-sage-light);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
  }

  .contact-info__area p:last-child {
    margin: 0;
    color: var(--color-white);
    line-height: 1.5;
  }

  /* =======================================================
     What Happens Next
     ======================================================= */
  .contact-next {
    padding:
      5rem
      0;
    background: var(--color-sage-light);
  }

  .contact-next__header {
    max-width: 46rem;
    margin-bottom: 3rem;
  }

  .contact-next__title {
    margin-bottom: 0.75rem;
  }

  .contact-next__intro {
    color: var(--color-text-light);
    font-size: 1.05rem;
  }

  .contact-next__steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-next__step {
    padding: 1.75rem;
    border-radius: 1.5rem;
    background:
      rgba(255, 255, 255, 0.58);
  }

  .contact-next__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    background: var(--color-rust);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.25rem;
  }

  .contact-next__step h3 {
    margin-bottom: 0.65rem;
    font-size: 1.5rem;
  }

  .contact-next__step p {
    color: var(--color-text-light);
    line-height: 1.65;
  }

  /* =======================================================
     Closing
     ======================================================= */
  .contact-closing {
    position: relative;
    overflow: hidden;
    padding:
      5rem
      0;
    background: #f3dac5;
    text-align: center;
  }

  .contact-closing__inner {
    max-width: 48rem;
  }

  .contact-closing__inner h2 {
    margin-bottom: 1rem;
    font-size:
      clamp(
        2.4rem,
        9vw,
        4rem
      );
  }

  .contact-closing__inner > p:not(.contact-closing__eyebrow) {
    max-width: 40rem;
    margin:
      0
      auto
      1.75rem;
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .contact-closing__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding:
      1rem
      1.6rem;
    border:
      0.125rem solid
      var(--color-green-dark);
    border-radius: var(--radius-pill);
    background: var(--color-green-dark);
    color: var(--color-white);
    font-weight: 700;
    transition:
      transform 350ms ease,
      box-shadow 350ms ease;
  }

  .contact-closing__button:hover,
  .contact-closing__button:focus-visible {
    color: var(--color-white);
    transform:
      translateY(-0.2rem);
    box-shadow:
      0 0.8rem 1.6rem
      rgba(38, 56, 40, 0.18);
  }

  .contact-closing__button-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .contact-closing__button-arrow svg {
    width: 1.05rem;
    height: 1.05rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 300ms ease;
  }

  .contact-closing__button:hover .contact-closing__button-arrow svg,
  .contact-closing__button:focus-visible .contact-closing__button-arrow svg {
    transform: translateY(-0.2rem);
  }
}

/* =========================================================
   Very Small Mobile
   Up to 25rem
   ========================================================= */
@media only screen and (max-width: 25rem) {
  .contact-method {
    gap: 0.6rem;
    padding: 0.75rem;
  }

  .contact-method__icon {
    width: 2.75rem;
    height: 2.75rem;

    padding: 0.6rem;
  }

  .contact-method[href^="mailto:"] .contact-method__value {
    font-size: 0.76rem;
  }
}

/* =========================================================
   Small Tablet
   37.5rem+
   ========================================================= */
@media only screen and (min-width: 37.5rem) {
  .contact-form {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .form-field {
    flex:
      1
      1
      calc(50% - 0.575rem);
  }

  .form-field--full {
    flex-basis: 100%;
  }

  .contact-form__submit {
    width: 100%;
  }

  .contact-next__steps {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-next__step {
    flex:
      1
      1
      calc(50% - 0.5rem);
  }
}

/* =========================================================
   Tablet
   48rem+
   ========================================================= */
@media only screen and (min-width: 48rem) {
  .contact-hero {
    padding:
      5rem
      0
      5.5rem;
  }

  .contact-main,
  .contact-next {
    padding:
      6rem
      0;
  }

  .contact-form-wrap {
    padding: 2.5rem;
  }

  .contact-info {
    padding: 2.5rem;
  }

.contact-closing {
    padding:
      6rem
      0;
  }
}

/* =========================================================
   Desktop
   64rem+
   ========================================================= */
@media only screen and (min-width: 64rem) {
  .contact-hero__inner {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 5rem;
  }

  .contact-hero__content {
    flex:
      1
      1
      65%;
  }

  .contact-hero__note {
    flex:
      0
      1
      28%;
    margin-bottom: 0.5rem;
  }

  .contact-main__inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
  }

  .contact-form-wrap {
    flex:
      1
      1
      65%;
    padding: 3rem;
  }

  .contact-info {
    position: sticky;
    top: 10rem;
    flex:
      1
      1
      35%;
    padding: 2.5rem;
  }

  .contact-next__steps {
    flex-wrap: nowrap;
    gap: 1.25rem;
  }

  .contact-next__step {
    flex:
      1
      1
      0;
    min-height: 14rem;
    padding: 2rem;
  }
}

/* =========================================================
   Large Desktop
   75rem+
   ========================================================= */
@media only screen and (min-width: 75rem) {
  .contact-hero__inner {
    gap: 7rem;
  }

  .contact-main__inner {
    gap: 3rem;
  }

  .contact-form-wrap {
    padding: 3.5rem;
  }

  .contact-info {
    padding: 3rem;
  }
}

/* =========================================================
   Reduced Motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .contact-form__button,
  .contact-method,
  .contact-closing__button,
  .contact-form__button-arrow svg,
  .contact-closing__button-arrow svg {
    transition: none;
  }
}
