/* ─── Contact page — scoped styles ──────────────────────────────────────────
   Relies on style.css for: .navbar, .final-cta__btn, .site-footer__* tokens,
   and the shared .faq-* accordion component.
   Everything here is prefixed .contact- or .touch- to avoid collisions.
──────────────────────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Rothefight';
  src: url('assets/fonts/ROTHEFIGHT.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* ─── Hero: photo, washed out, heading on top ───────────────────────────── */

.contact-hero {
  position: relative;
  /* Runs full-bleed behind the fixed navbar (body has no top padding on this
     page) — extra height keeps plenty of photo visible below the overlap. */
  height: clamp(420px, 48vw, 620px);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('assets/images/hero/interior-real-estate-photography-living-room-skylights.jpg');
  background-size: cover;
  background-position: center 65%;
  overflow: hidden;
}

/* Dark wash over the photo so it reads as moody background texture and the
   white heading stays legible on top of it. */
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 15, 14, 0.52);
}

.contact-hero__heading {
  position: relative;
  z-index: 1;
  font-family: 'Rothefight', sans-serif;
  font-weight: normal;
  font-size: clamp(64px, 15vw, 180px);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
  user-select: none;
}

/* ─── Intro: heading + friendly subtext ──────────────────────────────────── */

.contact-intro {
  background: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) 24px clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}

.contact-intro__heading {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-style: normal;
  letter-spacing: -0.01em;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  color: #2e2c2c;
  line-height: 1.15;
  max-width: 30ch;
  margin: 0 auto 1.1rem;
}

.contact-intro__body {
  font-size: 1.02rem;
  line-height: 1.7;
  color: #55514c;
  max-width: 56ch;
  margin: 0 auto;
}

/* ─── FAQ section wrapper (component styles live in style.css) ──────────── */

.contact-faq {
  background: #fff;
  padding: 0 24px clamp(3rem, 6vw, 5rem);
}

.contact-faq__inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact-faq__heading {
  font-family: 'Cormorant', serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: #2e2c2c;
  text-align: center;
  margin: 0 0 1.75rem;
}

/* ─── Touch section: call card + expandable email card ──────────────────── */

.contact-touch {
  background: #fff;
  padding: 0 24px clamp(3.5rem, 7vw, 6rem);
}

.contact-touch__grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  /* Stretch keeps both cards the same height while condensed. Once the email
     card expands, .contact-touch__grid--expanded switches this to "start" so
     the call card doesn't stretch to match the now much-taller email card. */
  align-items: stretch;
}

.contact-touch__grid--expanded {
  align-items: start;
}

.touch-card {
  display: flex;
  flex-direction: column;
  background: #1a1816;
  border-radius: 20px;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  color: #fff;
}

.touch-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  margin-bottom: 1rem;
}

.touch-card__heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.6rem;
}

.touch-card__body {
  font-size: 0.94rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  margin: 0 0 1.5rem;
  max-width: 40ch;
}

.touch-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 100px;
  background: #fff;
  color: #1a1816;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  /* Pinned to the bottom of the card so a stretched (taller) card doesn't
     leave the button floating mid-way with empty space beneath it. */
  margin-top: auto;
}

.touch-card__btn:hover {
  transform: translateY(-2px);
}

.touch-card__btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Whole email card is clickable until expanded */
.touch-card--email {
  cursor: pointer;
}

.touch-card--email.touch-card--open {
  cursor: default;
}

.touch-card__direct {
  margin: 0.9rem 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.touch-card__direct a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Expandable form, revealed inside the email card ── */

.touch-card__form-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.touch-card--open .touch-card__form-wrap {
  max-height: 900px;
}

.touch-card__form-card {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 20px;
  padding: 1.5rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.contact-form__field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b6560;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  font-family: inherit;
  font-size: 0.96rem;
  color: #2e2c2c;
  background: #f7f5f2;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: #2e2c2c;
  background: #fff;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form__field--error input,
.contact-form__field--error select,
.contact-form__field--error textarea {
  border-color: #a13f3f;
}

.contact-form__field-error {
  min-height: 1em;
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #a13f3f;
}

.contact-form__field-error:empty {
  display: none;
}

/* Honeypot — visually hidden, still reachable by bots that don't respect CSS */
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 100px;
  background: #2e2c2c;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease;
}

.contact-form__submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #1a1816;
}

.contact-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.contact-form__status {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  line-height: 1.5;
  min-height: 1.3em;
}

.contact-form__status[data-state="success"] { color: #2f6b3f; }
.contact-form__status[data-state="error"]   { color: #a13f3f; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

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

@media (max-width: 560px) {
  .contact-form__row {
    grid-template-columns: 1fr;
  }
  .contact-form__field {
    margin-bottom: 0.85rem;
  }
}

/* ─── Final CTA overrides (contact page) — match services.html pattern ───── */

.final-cta {
  background: #fff;
}

.final-cta__content {
  padding-top: 1rem;
}

.final-cta__heading {
  margin-bottom: 2.25rem;
}

.final-cta__image-wrap {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────────────────────────
   RTL OVERRIDES — Arabic (applied when <html dir="rtl">)
   ───────────────────────────────────────────────────────────────────────────── */

[dir="rtl"] .contact-hero__heading {
  font-family: 'Noto Naskh Arabic', serif;
  font-size: clamp(2.4rem, 8vw, 6rem);
  letter-spacing: 0;
}

[dir="rtl"] .contact-intro__heading,
[dir="rtl"] .contact-faq__heading {
  font-family: 'Noto Naskh Arabic', serif;
  letter-spacing: 0;
}
