/* ==================================================================
   CONTACT PAGE — enqueued only on Contact template
   Scoped via body.page-template-page-contact / body.page-id-90
   ================================================================== */

/* ---------- Contact Page Container (block, not flex) ---------- */
/* .numbo-container is display:flex in style.css — we need block for page content */
.contact-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  width: 100%;
  box-sizing: border-box;
}

/* ---------- Hero ---------- */
.contact-hero {
  background: var(--nav-bg);
  padding: 64px 0 56px;
  text-align: center;
}
.contact-hero .overline {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand-light);
  margin-bottom: 10px;
  font-weight: 500;
}
.contact-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  color: #f5f2ed;
  margin: 0;
  letter-spacing: -0.02em;
}
.contact-hero p {
  font-size: 14px;
  color: rgba(245, 242, 237, .45);
  margin: 14px auto 0;
  max-width: 560px;
  font-weight: 300;
  line-height: 1.6;
}
/* Breadcrumb inside hero (dark bg) */
.contact-hero .hero-breadcrumb {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(245, 242, 237, .4);
}
.contact-hero .hero-breadcrumb a {
  color: rgba(245, 242, 237, .5);
  text-decoration: none;
  transition: color .2s;
}
.contact-hero .hero-breadcrumb a:hover {
  color: var(--brand-light);
}
.contact-hero .hero-breadcrumb .sep {
  margin: 0 8px;
  opacity: .4;
}
.contact-hero .hero-breadcrumb .current {
  color: rgba(245, 242, 237, .7);
}

/* ---------- Form + Info (Section 2) ---------- */
.contact-main {
  padding: 5rem 0 4rem;
  background: var(--bg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Form */
.contact-form-wrap { max-width: 600px; }
.contact-form .form-row { margin-bottom: 1.5rem; }
.contact-form label {
  display: block;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.contact-form label .optional {
  text-transform: none;
  font-size: 11px;
  letter-spacing: 0;
  color: rgba(107, 107, 107, .5);
  font-weight: 400;
  margin-left: 4px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
}
.contact-form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.contact-form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}
.contact-form .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 0;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
  margin-top: 8px;
}
.contact-form .btn-submit:hover {
  background: var(--brand-dark);
}
/* Honeypot — visually hidden but accessible */
.numbo-hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
/* Form error */
.contact-form-error {
  padding: 14px 18px;
  background: #fef2f2;
  border-left: 3px solid #dc2626;
  margin-bottom: 1.5rem;
  font-size: 13px;
  color: #991b1b;
}
/* Form success */
.contact-form-success {
  padding: 32px;
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  text-align: center;
}
.contact-form-success .success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: #16a34a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-form-success .success-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
}
.contact-form-success h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 8px;
}
.contact-form-success p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* Contact Info Sidebar */
.contact-info-sidebar {}
.contact-info-sidebar > h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 24px;
  letter-spacing: -0.01em;
}
.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.info-item-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
}
.info-item-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--brand);
}
.info-item-body .info-label {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}
.info-item-body a,
.info-item-body p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
  text-decoration: none;
  transition: color .2s;
}
.info-item-body a:hover {
  color: var(--brand);
}
.info-divider {
  height: 1px;
  background: var(--border);
  margin: 28px 0;
}
.info-social { display: flex; gap: 20px; }
.info-social a {
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
  font-weight: 500;
}
.info-social a:hover {
  color: var(--brand);
}

/* ---------- Quick Connect (Section 3) ---------- */
.contact-quick {
  padding: 4rem 0;
  background: var(--bg-alt);
}
.contact-quick > .contact-container > h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  text-align: center;
  margin: 0 0 2.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.quick-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform .3s var(--ease-out), box-shadow .3s;
  text-decoration: none;
  display: block;
  color: inherit;
  border: 1px solid var(--border);
}
.quick-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.quick-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand);
}
.quick-card h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--text);
}
.quick-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 12px;
}
.quick-card .card-link {
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}

/* ---------- Why Work With Us (Section 4) ---------- */
.contact-trust {
  padding: 4rem 0;
  background: var(--brand);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.trust-item {}
.trust-item-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border: 1.5px solid rgba(255, 255, 255, .25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-item-icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, .85);
}
.trust-item h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin: 0 0 6px;
}
.trust-item p {
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Location (Section 5) ---------- */
.contact-location {
  padding: 5rem 0;
  background: var(--bg);
}
.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.location-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}
.location-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.location-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 400;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.location-text p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 12px;
}
.location-text .location-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.location-text .location-badge svg {
  width: 16px;
  height: 16px;
  stroke: var(--brand);
}

/* ---------- GeneratePress Layout Override ---------- */
/* Support both page-template-page-contact and page-id-90 (when template not applied) */
body.page-template-page-contact .entry-header,
body.page-id-90 .entry-header { display: none !important; }
body.page-template-page-contact .widget-area,
body.page-template-page-contact .sidebar,
body.page-template-page-contact .inside-right-sidebar,
body.page-template-page-contact .inside-left-sidebar,
body.page-id-90 .widget-area,
body.page-id-90 .sidebar,
body.page-id-90 .inside-right-sidebar,
body.page-id-90 .inside-left-sidebar { display: none !important; }
body.page-template-page-contact .content-area,
body.page-template-page-contact .site-content .content-area,
body.page-id-90 .content-area,
body.page-id-90 .site-content .content-area { width: 100% !important; max-width: 100% !important; }
body.page-template-page-contact .site-main,
body.page-id-90 .site-main { width: 100% !important; max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
body.page-template-page-contact .inside-article,
body.page-id-90 .inside-article { padding: 0 !important; margin: 0 !important; background: transparent !important; }
body.page-template-page-contact .entry-content,
body.page-id-90 .entry-content { padding: 0 !important; margin: 0 !important; overflow: visible !important; }
body.page-template-page-contact.separate-containers .site-content,
body.page-id-90.separate-containers .site-content { padding: 0 !important; margin: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-form-wrap { max-width: 100%; }
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .location-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-hero { padding: 48px 0 40px; }
  .contact-main { padding: 3.5rem 0 3rem; }
}
@media (max-width: 640px) {
  .quick-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contact-quick { padding: 3rem 0; }
  .contact-trust { padding: 3rem 0; }
  .contact-location { padding: 3rem 0; }
}
