/* ============================================================
   CONTACT PAGE — contact.css
   Matches the Hiroshi Architects plain-white reference layout.
   Inherits design tokens from style.css.
============================================================ */

/* ----------------------------------------
   PAGE-LEVEL HEADER (always visible, white)
---------------------------------------- */
/* ----------------------------------------
   PAGE-LEVEL HEADER (standardized)
---------------------------------------- */

/* ----------------------------------------
   PAGE TITLE — "Contact Us" on white
---------------------------------------- */
.ct-page-title {
  background: var(--white);
  padding: calc(var(--header-height) + 60px) 0 30px;
}

.ct-page-title-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
}

.ct-title {
  font-family: var(--font-h);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  color: var(--black);
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ----------------------------------------
   CONTACT BODY — 2-column grid
---------------------------------------- */
.ct-body {
  padding: 20px 0 80px;
  background: var(--white);
}

.ct-body-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ---- LEFT column ---- */
.ct-left {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.ct-intro-text {
  font-family: var(--font-b);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1.75;
  max-width: 480px;
}

/* FORM */
.ct-form {
  display: flex;
  flex-direction: column;
}

.ct-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 32px;
}

.ct-form-field {
  display: flex;
  flex-direction: column;
}

.ct-form-field label {
  font-family: var(--font-h);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 8px;
}

.ct-form-field input,
.ct-form-field textarea {
  font-family: var(--font-b);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-light);
  outline: none;
  padding: 8px 0;
  transition: border-color 0.3s var(--ease);
  resize: none;
  width: 100%;
}

.ct-form-field input:focus,
.ct-form-field textarea:focus {
  border-color: var(--black);
}

.ct-form-field textarea {
  min-height: 110px;
  line-height: 1.7;
}

.ct-form-field--full {
  margin-bottom: 32px;
}

/* Submit */
.ct-form-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ct-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-h);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--black);
  background: transparent;
  border: 1px solid var(--black);
  padding: 14px 32px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease);
}

.ct-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
  z-index: 0;
}

.ct-submit-btn:hover::before { transform: scaleX(1); }

.ct-submit-btn span,
.ct-submit-btn svg {
  position: relative;
  z-index: 1;
  transition: color 0.35s var(--ease);
}

.ct-submit-btn:hover { color: var(--white); }

.ct-form-note {
  font-family: var(--font-b);
  font-size: 0.85rem;
  color: var(--gray-mid);
  font-weight: 300;
}

.ct-form-note.success { color: #2d7a3a; }
.ct-form-note.error   { color: #b02020; }

/* ---- RIGHT column — info panels ---- */
.ct-right {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ct-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 36px 0;
}

.ct-info-row:first-child { padding-top: 0; }

.ct-info-divider {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 0;
}

.ct-info-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Label — small all-caps terracotta (matches reference) */
.ct-info-label {
  font-family: var(--font-h);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #b5743a;
  display: block;
}

.ct-info-address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ct-info-address p,
.ct-info-hours p {
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gray-dark);
  line-height: 1.65;
}

.ct-info-address a,
.ct-info-hours a {
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--gray-dark);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.ct-info-address a:hover { color: var(--black); }

.ct-info-hours {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* Accent text for hours */
.ct-accent {
  color: #b5743a !important;
  font-weight: 400 !important;
}

/* ----------------------------------------
   MAP SECTION
---------------------------------------- */
.ct-map-section {
  background: var(--white);
  border-top: 1px solid var(--gray-light);
}

.ct-map-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.ct-map-embed iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: none;
  filter: grayscale(25%);
  transition: filter 0.4s var(--ease);
}

.ct-map-embed:hover iframe {
  filter: grayscale(0%);
}


/* ----------------------------------------
   BACK TO TOP
---------------------------------------- */
#back-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 44px;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  pointer-events: none;
  color: var(--black);
}

#back-top.visible {
  opacity: 1;
  pointer-events: all;
}

#back-top:hover { transform: translateY(-3px); }

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 1024px) {
  .ct-page-title-inner,
  .ct-body-inner {
    padding-left: 40px;
    padding-right: 40px;
  }

  .ct-body-inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 768px) {
  .ct-page-title {
    padding-top: calc(var(--header-height-mobile) + 40px);
  }

  .ct-page-title-inner,
  .ct-body-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .ct-form-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .ct-info-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }


}
