/* ============================================================
   DENALI WordPress Theme — contact.css
   Contact page specific styles only.
   Global header, footer, back-to-top are in global.css.
   Design tokens are in global-variables.css.
   NOTE: .footer*, #back-to-top, .topnav* classes are removed
   — replaced by the unified footer.php / global.css.
   ============================================================ */

/* ══════════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════════ */
.hero-desktop {
  display: none;
  position: relative; height: 716px;
  align-items: center; overflow: hidden;
}
.hero-desktop__bg {
  position: absolute; inset: 0; z-index: 0;
  background: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=2400&q=85") center/cover no-repeat;
}
.hero-desktop__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-desktop__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.95) 35%, rgba(255,255,255,0) 100%);
}
.hero-desktop__content {
  position: relative; z-index: 10;
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 var(--gutter); width: 100%;
}
.hero-desktop__inner { max-width: 640px; }
.hero-label {
  display: inline-block; padding: 4px 12px;
  background: rgba(36,76,13,0.1); color: var(--primary);
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase;
  border-radius: var(--radius-full); margin-bottom: 16px;
}
.hero-desktop__title {
  font-size: clamp(2rem,4vw,3rem); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.01em;
  color: var(--on-surface); margin-bottom: 16px;
}
.hero-desktop__body {
  font-size: var(--fs-lg); line-height: 1.6;
  color: var(--on-surface-variant); max-width: 480px;
}

/* Mobile hero */
.hero-mobile { padding: 32px 16px; text-align: center; }
.hero-mobile__title {
  font-size: clamp(1.75rem,6vw,2.25rem); font-weight: 700;
  line-height: 1.2; color: var(--on-surface);
  max-width: 300px; margin: 12px auto;
}
.hero-mobile__img-wrap {
  width: 100%; max-width: 384px; margin: 0 auto;
  aspect-ratio: 16/9; border-radius: 24px; overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.hero-mobile__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════════════════════════════════════════════════
   QUICK ACTIONS (mobile)
══════════════════════════════════════════════════════════════ */
.quick-actions {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; padding: 0 16px; margin-top: 8px;
}
.quick-action-btn {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 12px; padding: 24px;
  background: var(--surface-white); border-radius: 24px;
  border: 1px solid rgba(194,201,185,0.1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform 0.15s; font-family: inherit; cursor: pointer;
}
.quick-action-btn:active { transform: scale(0.95); }
.quick-action-icon { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.quick-action-icon--primary   { background: rgba(36,76,13,0.1);  color: var(--primary); }
.quick-action-icon--secondary { background: rgba(0,98,157,0.1);  color: var(--secondary); }
.quick-action-label { font-weight: 700; color: var(--on-surface); font-size: var(--fs-base); }

/* ══════════════════════════════════════════════════════════════
   MOBILE HQ INFO
══════════════════════════════════════════════════════════════ */
.mobile-hq { padding: 0 16px; margin-top: 40px; }
.mobile-hq__title { font-size: var(--fs-xl); font-weight: 600; margin-bottom: 16px; padding: 0 8px; }
.mobile-info-card {
  background: var(--surface-white); padding: 24px; border-radius: 24px;
  border: 1px solid rgba(194,201,185,0.1);
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px;
}
.mobile-info-card__icon { color: var(--primary); margin-top: 2px; flex-shrink: 0; }
.mobile-info-card__title { font-weight: 700; color: var(--on-surface); margin-bottom: 4px; }
.mobile-info-card__body  { color: var(--on-surface-variant); font-size: var(--fs-base); line-height: 1.6; }

/* ══════════════════════════════════════════════════════════════
   CONTACT GRID (desktop)
══════════════════════════════════════════════════════════════ */
.contact-grid {
  display: none;
  padding: var(--space-section) var(--gutter);
  max-width: var(--container-max); margin: 0 auto;
}
.contact-grid__inner { display: grid; grid-template-columns: repeat(12,1fr); gap: var(--gutter); }
.contact-grid__map   { grid-column: span 7; }
.contact-grid__cards { grid-column: span 5; display: flex; flex-direction: column; gap: 24px; }

.map-card {
  background: #fff; padding: 40px; border-radius: 32px;
  border: 1px solid rgba(194,201,185,0.1);
  box-shadow: 0 10px 40px rgba(0,0,0,0.04);
}
.map-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.map-card__header-icon { color: var(--primary); }
.map-card__title  { font-size: var(--fs-xl); font-weight: 600; color: var(--on-surface); }
.map-card__body   { color: var(--on-surface-variant); margin-bottom: 32px; max-width: 380px; }
.map-card__img-wrap {
  height: 300px; width: 100%; border-radius: 16px; overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
  transition: opacity 0.5s; opacity: 0.9; position: relative;
}
.map-card__img-wrap:hover { opacity: 1; }
.map-card__img-wrap iframe { width: 100%; height: 100%; border: none; display: block; border-radius: 16px; }

.glass-card {
  background: rgba(255,255,255,0.75); backdrop-filter: blur(20px);
  border: 1px solid rgba(241,245,249,1); padding: 32px; border-radius: 32px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s;
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 1px rgba(36,76,13,0.15);
  border-color: rgba(36,76,13,0.2);
}
.glass-card__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; display: block; }
.glass-card__email { font-size: 24px; font-weight: 600; color: var(--on-surface); margin-bottom: 8px; }
.glass-card__phone { color: var(--on-surface-variant); }

/* ══════════════════════════════════════════════════════════════
   INQUIRY FORM
══════════════════════════════════════════════════════════════ */
.form-section { background: var(--surface-container-low); padding: var(--space-section) var(--gutter); }
.form-section__inner  { max-width: 896px; margin: 0 auto; }
.form-section__header { text-align: center; margin-bottom: 64px; }
.form-section__label  { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.form-section__title-lg { font-size: clamp(2rem,4vw,3rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 16px; }
.form-section__title-sm { font-size: var(--fs-xl); font-weight: 600; margin-bottom: 16px; }
.form-section__subtitle { color: var(--on-surface-variant); font-size: var(--fs-lg); max-width: 480px; margin: 0 auto; }

.form-card { background: #fff; padding: 48px; border-radius: 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.06); }

/* Tabs */
.form-tabs {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 8px; padding: 8px;
  background: var(--surface-container); border-radius: 16px; margin-bottom: 32px;
}
.tab-btn {
  padding: 12px 16px; border-radius: 12px; font-weight: 700; font-size: var(--fs-sm);
  color: var(--on-surface-variant); background: none;
  transition: all 0.25s var(--ease-out); font-family: inherit; cursor: pointer; border: none;
}
.tab-btn:hover  { background: rgba(255,255,255,0.5); }
.tab-btn.active { background: #fff; color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.form-row   { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-surface-variant); margin-left: 4px; }
.denali-input {
  width: 100%; background: var(--surface-bright);
  border: 1.5px solid rgba(194,201,185,0.35); border-radius: 12px;
  padding: 16px; font-size: var(--fs-base); font-family: var(--font-family);
  color: var(--on-surface); outline: none;
  transition: border-color 0.3s var(--ease-out), background 0.3s;
}
.denali-input:focus   { border-color: var(--primary); background: #fff; }
.denali-input::placeholder { color: #9ca3af; }
.denali-textarea { resize: none; }
select.denali-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2342493d' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
  padding-right: 44px; cursor: pointer;
}

.form-submit-wrap { display: flex; justify-content: center; margin-top: 8px; }
.btn-submit {
  position: relative; overflow: hidden;
  background: var(--primary); color: var(--on-primary);
  padding: 20px 48px; border-radius: 16px; font-weight: 700; font-size: var(--fs-base);
  box-shadow: 0 8px 30px rgba(36,76,13,0.2);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; transition: background 0.2s, transform 0.15s;
  font-family: inherit; cursor: pointer; border: none;
}
.btn-submit:hover  { background: var(--primary-container); }
.btn-submit:active { transform: scale(0.96); }

/* Partner type selector */
.partner-type-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-top: 4px; }
.partner-type-option { cursor: pointer; }
.partner-type-option input[type="radio"] { display: none; }
.partner-type-label {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  border: 1.5px solid rgba(194,201,185,0.35); border-radius: 12px;
  background: var(--surface-bright); font-weight: 600; font-size: var(--fs-base);
  color: var(--on-surface-variant);
  transition: border-color 0.25s, background 0.25s, color 0.25s; user-select: none;
}
.partner-type-label .material-symbols-outlined { font-size: 20px; }
.partner-type-option input[type="radio"]:checked + .partner-type-label { border-color: var(--primary); background: rgba(36,76,13,0.06); color: var(--primary); }
.partner-type-label:hover { border-color: rgba(36,76,13,0.35); background: rgba(36,76,13,0.03); }

.tab-panel { animation: fadeSlideIn 0.35s cubic-bezier(0.4,0,0.2,1); }
@keyframes fadeSlideIn { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* Mobile form */
.mobile-form-section { padding: 0 16px; margin-top: 40px; }
.mobile-form-card  { background: var(--surface-container-low); padding: 32px; border-radius: 32px; }
.mobile-form-title { font-size: var(--fs-xl); font-weight: 600; margin-bottom: 24px; }
.mobile-form-space { display: flex; flex-direction: column; gap: 20px; }
.btn-submit-mobile {
  width: 100%; height: 56px; background: var(--primary); color: var(--on-primary);
  border-radius: 16px; font-weight: 700; font-size: var(--fs-base);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 16px; box-shadow: 0 8px 20px rgba(36,76,13,0.2);
  transition: background 0.2s, transform 0.15s; font-family: inherit; cursor: pointer; border: none;
}
.btn-submit-mobile:hover  { background: var(--primary-container); }
.btn-submit-mobile:active { transform: scale(0.97); }

/* ══════════════════════════════════════════════════════════════
   MOBILE SUPPORT LINKS
══════════════════════════════════════════════════════════════ */
.mobile-support { padding: 0 16px; margin-top: 32px; padding-bottom: 16px; }
.mobile-support__label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--on-surface-variant); margin-bottom: 16px; padding: 0 8px; display: block; }
.mobile-support__list  { background: var(--surface-white); border-radius: 24px; overflow: hidden; }
.support-row { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid rgba(194,201,185,0.1); transition: background 0.2s; }
.support-row:last-child { border-bottom: none; }
.support-row:hover { background: var(--surface-container-low); }
.support-row__left  { display: flex; align-items: center; gap: 12px; }
.support-row__icon  { color: var(--secondary); }
.support-row__label { font-size: var(--fs-base); color: var(--on-surface); font-weight: 500; }
.support-row__chevron { color: var(--on-surface-variant); }

/* ══════════════════════════════════════════════════════════════
   SUPPORT CARDS (desktop)
══════════════════════════════════════════════════════════════ */
.support-section {
  display: none; padding: var(--space-section) var(--gutter);
  max-width: var(--container-max); margin: 0 auto;
}
.support-section__header { text-align: center; margin-bottom: 64px; }
.support-section__label { display: block; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); margin-bottom: 16px; }
.support-section__title { font-size: clamp(2rem,4vw,3rem); font-weight: 700; letter-spacing: -0.01em; }
.support-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gutter); }
.support-card {
  padding: 40px; background: #fff; border-radius: 32px;
  border: 1px solid rgba(194,201,185,0.2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: border-color 0.5s, box-shadow 0.5s, transform 0.3s;
}
.support-card:hover { border-color: rgba(36,76,13,0.2); box-shadow: 0 20px 50px rgba(0,0,0,0.08); transform: translateY(-4px); }
.support-card__icon-wrap { width: 56px; height: 56px; background: var(--surface-highest); border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 2rem; transition: background 0.2s; }
.support-card:hover .support-card__icon-wrap { background: rgba(36,76,13,0.1); }
.support-card__icon  { color: var(--primary); font-size: 28px; }
.support-card__title { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.support-card__body  { color: var(--on-surface-variant); margin-bottom: 24px; }
.support-card__link  { position: relative; display: inline-flex; align-items: center; color: var(--primary); font-weight: 700; gap: 4px; }
.support-card__link::after { content:''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: currentColor; transition: width 0.3s var(--ease-out); }
.support-card__link:hover::after { width: 100%; }

/* Mobile bottom nav — hidden on desktop */
.mobile-bottom-nav {
  display: flex; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid rgba(194,201,185,0.15);
  z-index: 50; padding: 12px 16px;
  justify-content: space-between; align-items: center;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}
.mobile-nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--on-surface-variant); background: none; cursor: pointer; padding: 0; font-family: inherit; transition: color 0.2s; }
.mobile-nav-item--active { color: var(--primary); }
.mobile-nav-item span:last-child { font-size: 10px; font-weight: 700; }

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .hero-desktop             { display: flex; }
  .hero-mobile              { display: none; }
  .quick-actions, .mobile-hq, .mobile-support, .mobile-form-section { display: none; }
  .contact-grid             { display: block; }
  .support-section          { display: block; }
  .form-section__title-lg   { display: block; }
  .form-section__title-sm   { display: none; }
  .form-card                { padding: 48px; }
  .form-row                 { grid-template-columns: 1fr 1fr; }
  .btn-submit               { width: auto; min-width: 240px; }
  .mobile-bottom-nav        { display: none; }
  .partner-type-grid        { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 479px) {
  .form-section  { padding: 48px 16px; }
  .hero-mobile__title { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .tab-panel, .glass-card, .btn-submit, .support-card { transition: none !important; animation: none !important; transform: none !important; }
}
