/* =========================================================
   RECREA — contact-us.css (COMPLETE / STANDALONE)
   For the Contact Us page only. Nav + footer come from the
   WordPress theme, so they are NOT included here.
   Palette (matches our-story.css / style.css):
     Espresso:   #1C0E06
     Brown:      #3D1F0E
     Coffee-mid: #8B5E3C
     Tan:        #C8A882
     Linen:      #F5EFE6
     Cream:      #FDFAF6
   ========================================================= */

/* ─────────────────────────────────────────
   RESET & BASE
   (matches our-story.css — safe to keep even
   if global-root.css / style.css already sets
   these, since values are identical)
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #FDFAF6;
  color: #1C0E06;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

#main {
  padding-bottom: 0 !important;
  padding-top: 0 !important;
}

a { text-decoration: none; color: inherit; }

.container {
  width: 90%;
  max-width: 1160px;
  margin-inline: auto;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

em { font-style: italic; font-weight: 300; }

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B5E3C;
  margin-bottom: 1.25rem;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8B5E3C;
  margin-bottom: 0.6rem;
}

/* ─────────────────────────────────────────
   SPLIT LAYOUT
───────────────────────────────────────── */
.contact-split {
  background-color: #FDFAF6;
  padding: 7rem 0;
}

.contact-split__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

/* ---- Left: headline + form ---- */
.contact-split__headline {
  font-size: clamp(2.2rem, 4.2vw, 3.2rem);
  line-height: 1.15;
  color: #1C0E06;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.contact-split__headline.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-split__sub {
  font-size: 1.02rem;
  color: #5a3e2b;
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
}

.contact-split__sub.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Right: contact info column ---- */
.contact-split__info-col {
  border-left: 1px solid rgba(200, 168, 130, 0.3);
  padding-left: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.contact-info-block {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 1s ease, transform 1s ease;
}

.contact-info-block.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-info-block__value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #1C0E06;
  display: inline-block;
  position: relative;
}

/* Underline hover only for actual links (email, instagram),
   not the static text blocks (location, response time) */
a.contact-info-block__value::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #8B5E3C;
  transition: width 0.25s ease;
}

a.contact-info-block__value:hover::after { width: 100%; }

.contact-info-block__value--static {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.97rem;
  font-weight: 400;
  color: #5a3e2b;
  line-height: 1.7;
}

/* ─────────────────────────────────────────
   CONTACT FORM 7 — FIELD STYLING
   CF7 wraps each field in <span class="wpcf7-form-control-wrap">.
   These overrides bring the default markup in line with the
   site's look. No CF7-specific markup needs to change in the
   shortcode/template — these are pure visual overrides.
───────────────────────────────────────── */
.contact-form-wrap {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 1.3s ease, transform 1.3s ease;
}

.contact-form-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact-form-wrap form.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-form-wrap label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8B5E3C;
}

.contact-form-wrap input[type="text"],
.contact-form-wrap input[type="email"],
.contact-form-wrap input[type="tel"],
.contact-form-wrap textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #1C0E06;
  background-color: #FFFFFF;
  border: 1px solid rgba(200, 168, 130, 0.4);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-wrap input[type="text"]:focus,
.contact-form-wrap input[type="email"]:focus,
.contact-form-wrap input[type="tel"]:focus,
.contact-form-wrap textarea:focus {
  border-color: #8B5E3C;
  box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.12);
}

.contact-form-wrap textarea {
  min-height: 150px;
  resize: vertical;
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
}

.contact-form-wrap input[type="text"]::placeholder,
.contact-form-wrap input[type="email"]::placeholder,
.contact-form-wrap textarea::placeholder {
  color: rgba(28, 14, 6, 0.35);
}

/* Submit button — matches .btn--primary from the rest of the site */
.contact-form-wrap input[type="submit"] {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border-radius: 2px;
  border: none;
  background-color: #1C0E06;
  color: #F5EFE6;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.25s ease;
  align-self: flex-start;
}

.contact-form-wrap input[type="submit"]:hover {
  background-color: #3D1F0E;
  transform: translateY(-1px);
}

.contact-form-wrap input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* CF7's built-in loading spinner */
.contact-form-wrap .wpcf7-spinner {
  margin-left: 0.75rem;
}

/* CF7 validation error messages (per-field) */
.contact-form-wrap .wpcf7-not-valid-tip {
  font-size: 0.78rem;
  color: #a8432f;
  margin-top: 0.3rem;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
}

.contact-form-wrap input.wpcf7-not-valid,
.contact-form-wrap textarea.wpcf7-not-valid {
  border-color: #a8432f;
}

/* CF7's overall success/failure response message */
.contact-form-wrap .wpcf7-response-output {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  border-radius: 2px;
  padding: 0.85rem 1.1rem;
  margin-top: 1rem;
  border: 1px solid rgba(200, 168, 130, 0.4);
}

.contact-form-wrap form.sent .wpcf7-response-output {
  color: #1C0E06;
  background-color: #F5EFE6;
  border-color: #8B5E3C;
}

.contact-form-wrap form.failed .wpcf7-response-output,
.contact-form-wrap form.aborted .wpcf7-response-output {
  color: #a8432f;
  background-color: #fdf2f0;
  border-color: #a8432f;
}

/* ─────────────────────────────────────────
   RESPONSIVE — 900px
───────────────────────────────────────── */
@media (max-width: 900px) {
  .contact-split { padding: 9rem 0 4rem; }

  .contact-split__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-split__info-col {
    border-left: none;
    border-top: 1px solid rgba(200, 168, 130, 0.3);
    padding-left: 0;
    padding-top: 2.5rem;
  }
}

/* ─────────────────────────────────────────
   RESPONSIVE — 600px
───────────────────────────────────────── */
@media (max-width: 600px) {
  .contact-split { padding: 8rem 0 3rem; }
  .contact-form-wrap input[type="submit"] { width: 100%; text-align: center; }
}

/* ─────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .contact-split__headline,
  .contact-split__sub,
  .contact-info-block,
  .contact-form-wrap {
    opacity: 1;
    transform: none;
    transition: none;
  }
}