/* ==========================================================
   contact.min.css — Pegasi Defense
   ========================================================== */

/* --- Base reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-color:   #0f172a;
  --secondary-color: #1e293b;
  --text-color:      #0f172a;
  --text-light:      #64748b;
  --bg-color:        #ffffff;
  --bg-alt:          #f8fafc;
  --border-color:    #cbd5e1;
  --shadow:          0 2px 8px rgba(15, 23, 42, 0.15);
  --shadow-hover:    0 8px 24px rgba(15, 23, 42, 0.22);
  --max-width:       1200px;
  --gold-color:      #b8860b;
  --gold-hover:      #9a7209;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--primary-color);
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  top: -40px; left: 0;
  background: var(--primary-color);
  color: #fff;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}
.skip-link:focus { top: 0; }

/* -----------------------------------------------------------
   Header (base values — overridden by header.css)
   ----------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(10, 12, 20, 0.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.header.scrolled {
  background: rgba(10, 12, 20, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
}
.nav-list { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0; border: none;
  background: transparent;
  cursor: pointer;
  color: #fff;
  border-radius: 4px;
  transition: background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:hover { background: rgba(255, 255, 255, 0.1); }
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}
.nav-link:hover { color: #fff; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold-color);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 1px;
}
.nav-link:hover::after { width: 100%; }
.nav-cta {
  color: #fff;
  background: var(--gold-color);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.3s ease, transform 0.2s ease;
}
.nav-cta:hover { background: var(--gold-hover); transform: translateY(-1px); color: #fff; }
.nav-cta::after { display: none; }
.nav-dropdown { position: relative; }
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  background: rgba(15, 18, 28, 0.95);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 0.5rem 0;
  margin-top: 0.5rem;
  opacity: 0; visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 1000;
}
.dropdown-link {
  display: block;
  padding: 0.75rem 1.25rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.25s ease;
}
.dropdown-link:hover { background-color: rgba(255, 255, 255, 0.06); color: #fff; }

/* ==========================================================
   Contact Hero
   ========================================================== */
.contact-hero {
  padding: 8rem 0 3.5rem;
  background-color: var(--primary-color);
  text-align: center;
}
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.contact-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.contact-description {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ==========================================================
   Contact Section
   ========================================================== */
.contact-section {
  padding: 3.5rem 0 7rem;
  background-color: var(--primary-color);
}

/* ==========================================================
   Contact Card — entrance animation + hover lift
   ========================================================== */
@keyframes contactFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.contact-box {
  background-color: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 8px 32px rgba(0, 0, 0, 0.32),
    0 2px 8px rgba(0, 0, 0, 0.16);
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  max-width: 980px;
  margin: 0 auto;
  animation: contactFadeUp var(--dur-slow, 260ms) var(--ease, cubic-bezier(0.22, 1, 0.36, 1)) 60ms both;
  transition:
    box-shadow var(--dur-slow, 260ms) var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform  var(--dur-slow, 260ms) var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}

/* Hover lift — desktop/mouse only */
@media (hover: hover) and (pointer: fine) {
  .contact-box:hover {
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.06),
      0 20px 60px rgba(0, 0, 0, 0.4),
      0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
  }
}

/* ==========================================================
   Info Panel
   ========================================================== */
.contact-info-panel {
  background-color: var(--primary-color);
  color: #fff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.25rem;
}
.info-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.detail-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-color);
}
.detail-text {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}
.detail-link {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--dur, 180ms) var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.detail-link:hover { color: #fff; }
.detail-link:focus-visible {
  outline: 2px solid var(--gold-color);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ==========================================================
   Form Panel
   ========================================================== */
.contact-form-panel {
  background-color: #fff;
  padding: 3rem 3.5rem;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.375rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}
.form-input {
  padding: 0.8125rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1.5px solid #dde3ec;
  border-radius: 8px;
  background-color: #fff;
  color: var(--text-color);
  -webkit-appearance: none;
  transition:
    border-color var(--dur, 180ms) var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow   var(--dur, 180ms) var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.form-input:hover:not(:focus) { border-color: #94a3b8; }
.form-input:focus {
  outline: none;
  border-color: var(--gold-color);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.16);
}
.form-textarea {
  resize: vertical;
  min-height: 128px;
}
.char-count {
  text-align: right;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.375rem;
}

/* ==========================================================
   Submit Button
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 2.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  text-align: center;
  transition:
    background-color var(--dur, 180ms)      var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    color            var(--dur, 180ms)      var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    box-shadow       var(--dur, 180ms)      var(--ease, cubic-bezier(0.22, 1, 0.36, 1)),
    transform        var(--dur-fast, 120ms) var(--ease, cubic-bezier(0.22, 1, 0.36, 1));
}
.btn-primary {
  background-color: var(--gold-color);
  color: #fff;
  width: 100%;
  box-shadow: 0 1px 4px rgba(184, 134, 11, 0.22);
}
.btn-primary:hover:not(:disabled) {
  background-color: var(--gold-hover);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.35);
  transform: translateY(-1px);
}
.btn-primary:active:not(:disabled) {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 1px 4px rgba(184, 134, 11, 0.18);
}
.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.btn-primary:focus-visible {
  outline: 2px solid var(--gold-color);
  outline-offset: 3px;
}

/* ==========================================================
   Trust signal
   ========================================================== */
.form-trust {
  font-size: 0.8125rem;
  color: var(--text-light);
  text-align: center;
  margin-top: -0.25rem;
}

/* ==========================================================
   Form feedback
   ========================================================== */
.form-feedback {
  padding: 0.875rem 1.125rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}
.form-feedback[hidden] { display: none; }
.form-feedback--success {
  background: rgba(22, 163, 74, 0.08);
  border: 1.5px solid rgba(22, 163, 74, 0.28);
  color: #15803d;
}
.form-feedback--error {
  background: rgba(220, 38, 38, 0.07);
  border: 1.5px solid rgba(220, 38, 38, 0.22);
  color: #b91c1c;
}

/* ==========================================================
   Reduced motion
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  .contact-box { animation: none; }
  .contact-box,
  .form-input,
  .btn,
  .detail-link { transition: none; }
}

/* ==========================================================
   Responsive — 768px
   ========================================================== */
@media (max-width: 768px) {
  .header-container {
    padding: 0 1.25rem;
    height: 60px;
    justify-content: space-between;
  }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 12, 20, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    width: 100%;
  }
  .header.nav-open .nav { max-height: 85vh; overflow-y: auto; }
  .nav-list { flex-direction: column; gap: 0; padding: 0.5rem 0 1rem; width: 100%; }
  .nav-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
  .nav-list li:last-child { border-bottom: none; }
  .nav-link {
    padding: 0.875rem 1.25rem;
    min-height: 48px;
    display: flex; align-items: center;
    font-size: 0.9rem; width: 100%;
  }
  .nav-link::after { display: none; }
  .nav-cta {
    display: inline-flex;
    margin: 0.75rem 1.25rem;
    padding: 0.5rem 1.25rem;
    justify-content: center;
  }
  .dropdown-menu {
    position: static;
    max-height: 0; overflow: hidden;
    transform: none; box-shadow: none;
    border: none; border-radius: 0;
    margin: 0; padding: 0 0 0 1rem;
    background: rgba(255, 255, 255, 0.04);
    min-width: auto;
    transition: max-height 0.25s ease;
  }
  .header.nav-open .nav-dropdown .dropdown-menu { max-height: 120px; }
  .nav-dropdown:hover .dropdown-menu { transform: none; }
  .dropdown-link {
    padding: 0.75rem 1.25rem;
    min-height: 44px;
    display: flex; align-items: center;
  }

  .contact-hero { padding: 6rem 0 2.5rem; }
  .contact-section { padding: 2rem 0 5rem; }
  .contact-box { grid-template-columns: 1fr; }
  .contact-info-panel {
    padding: 2.5rem 2rem;
    justify-content: flex-start;
    gap: 1.75rem;
  }
  .contact-form-panel { padding: 2.5rem 2rem; }
  .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
  .contact-info-panel,
  .contact-form-panel { padding: 2rem 1.25rem; }
  .contact-form { gap: 1.125rem; }
  .btn-primary { padding: 0.875rem 2rem; }
}
