/* ============================================================
   contact.css — PortfolixHub contact page styles
   ============================================================ */

/* ── PAGE WRAPPER ── */
.page { padding-top: 0; }

/* ── CONTACT HERO STRIP ── */
.contact-hero {
  background: var(--black);
  padding: 80px var(--pad) 72px;
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Subtle grid texture */
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Glowing orb */
.contact-hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, .06) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 20px;
}

.hero-eyebrow span {
  width: 24px;
  height: 1px;
  background: rgba(255, 255, 255, .25);
  display: block;
}

.contact-hero h1 {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: .95;
  color: var(--white);
  max-width: 700px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.contact-hero h1 em {
  font-style: normal;
  color: rgba(255, 255, 255, .25);
}

.contact-hero p {
  font-size: 15px;
  color: rgba(255, 255, 255, .65);
  line-height: 1.65;
  max-width: 440px;
  position: relative;
  z-index: 1;
}

/* ── STATS DIVIDER STRIP ── */
.divider-strip {
  background: var(--black);
  padding: 28px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.strip-stat { display: flex; align-items: baseline; gap: 6px; }
.strip-num { font-size: 28px; font-weight: 800; letter-spacing: -.04em; color: var(--white); }
.strip-desc { font-size: 13px; color: rgba(255, 255, 255, .55); }
.strip-sep { width: 1px; height: 36px; background: rgba(255, 255, 255, .1); flex-shrink: 0; }

/* ── MAIN CONTACT GRID ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 0;
  min-height: calc(100vh - var(--nav) - 240px);
}

/* ── LEFT PANEL — INFO ── */
.contact-left {
  padding: 64px var(--pad) 64px clamp(24px, 5vw, 80px);
  border-right: 1px solid var(--g200);
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.info-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--g200);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.info-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--g200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--g500);
  transition: background .2s, border-color .2s, color .2s;
}

.info-icon svg {
  width: 18px;
  height: 18px;
  color: inherit;
}

.info-item:hover .info-icon {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.info-text-label { font-size: 12px; color: var(--g400); margin-bottom: 2px; letter-spacing: .01em; }

.info-text-val {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -.01em;
  line-height: 1.4;
}

.info-text-val a { color: var(--black); text-decoration: none; transition: color .15s; }
.info-text-val a:hover { color: var(--g500); }

/* Hours table */
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--g100);
  font-size: 13.5px;
}

.hours-row:last-child { border-bottom: none; }
.hours-day { color: var(--g600); }
.hours-time { color: var(--black); font-weight: 500; }
.hours-time.closed { color: var(--g400); font-weight: 400; }

.badge-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  background: #f0fdf4;
  color: #16a34a;
  padding: 3px 9px;
  border-radius: 100px;
  margin-left: 8px;
}

.badge-open::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  display: block;
}

/* Social links */
.social-links { display: flex; gap: 10px; flex-wrap: wrap; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--g200);
  border-radius: 100px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--g600);
  text-decoration: none;
  transition: border-color .2s, background .2s, color .2s, transform .2s;
  cursor: none;
}

.social-link:hover {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  transform: translateY(-2px);
}

.social-link svg { width: 14px; height: 14px; flex-shrink: 0; }

/* Map embed */
.map-block {
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--g200);
  position: relative;
  background: var(--g50);
  height: 200px;
}

.map-block iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  filter: grayscale(80%) contrast(1.05);
}

.map-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: var(--white);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-overlay-icon {
  width: 32px;
  height: 32px;
  background: var(--black);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}

.map-overlay-icon svg {
  width: 16px;
  height: 16px;
  color: inherit;
}

.map-overlay-text p  { font-size: 12px; font-weight: 600; letter-spacing: -.01em; }
.map-overlay-text span { font-size: 11px; color: var(--g400); }

/* ── RIGHT PANEL — FORM ── */
.contact-right { padding: 64px clamp(24px, 5vw, 80px) 64px 56px; }

.form-header { margin-bottom: 40px; }

.form-header h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

.form-header p { font-size: 14px; color: var(--g500); line-height: 1.6; }

/* Inquiry type tabs */
.inquiry-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.inq-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--g200);
  font-size: 13px;
  font-weight: 500;
  color: var(--g600);
  background: transparent;
  font-family: 'Bricolage Grotesque', sans-serif;
  cursor: none;
  transition: all .2s cubic-bezier(.16, 1, .3, 1);
  letter-spacing: -.01em;
}

.inq-tab:hover { border-color: var(--g400); }
.inq-tab.active { background: var(--black); border-color: var(--black); color: var(--white); }

/* Form fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-row.full { grid-template-columns: 1fr; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--g500);
}

.field input,
.field textarea,
.field select {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14.5px;
  color: var(--black);
  background: var(--g50);
  border: 1.5px solid var(--g200);
  border-radius: 10px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  letter-spacing: -.01em;
  resize: none;
  width: 100%;
  appearance: none;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--g400); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(10, 10, 10, .06);
}

.field textarea { height: 140px; line-height: 1.6; }

.field select {
  cursor: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23a3a3a3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.field-meta {
  display: flex;
  justify-content: flex-end;
  font-size: 11px;
  color: var(--g400);
  margin-top: 4px;
}

/* Form bottom */
.form-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.form-note {
  font-size: 12.5px;
  color: var(--g400);
  line-height: 1.5;
  max-width: 280px;
}

.form-note a {
  color: var(--g500);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Submit button */
.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--black);
  color: var(--white);
  padding: 4px 4px 4px 24px;
  border-radius: 100px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  border: none;
  cursor: none;
  transition: background .2s, transform .25s, box-shadow .25s;
  white-space: nowrap;
}

.submit-btn:hover { background: #1a1a1a; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0, 0, 0, .2); }
.submit-btn:active { transform: scale(.98); }

.submit-btn-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  flex-shrink: 0;
  transition: background .2s;
}

.submit-btn-icon svg {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.submit-btn:hover .submit-btn-icon { background: rgba(255, 255, 255, .2); }

/* Field error states */
.field input.error,
.field textarea.error { border-color: #ef4444; background: #fff5f5; }

.field-err { font-size: 11.5px; color: #ef4444; margin-top: 4px; display: none; }

.field input.error  ~ .field-err,
.field textarea.error ~ .field-err { display: block; }

/* ── SUCCESS STATE ── */
.success-msg {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 56px 32px;
  gap: 16px;
}

.success-msg.show { display: flex; }

.success-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  animation: popIn .5s cubic-bezier(.34, 1.56, .64, 1) forwards;
}

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.success-msg h3 { font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.success-msg p  { font-size: 14px; color: var(--g500); line-height: 1.6; max-width: 320px; }

.success-back {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1.5px solid var(--g200);
  padding-bottom: 2px;
  transition: border-color .2s;
  cursor: none;
}

.success-back:hover { border-color: var(--black); }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  .contact-left  { border-right: none; border-bottom: 1px solid var(--g200); padding: 48px var(--pad); }
  .contact-right { padding: 48px var(--pad); }
  .form-row      { grid-template-columns: 1fr; }
  .nav-center    { display: none; }
  .foot-inner    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .divider-strip { gap: 20px; }
  .strip-sep     { display: none; }
}