/*
 * MDYD WordPress Overrides
 * Small adjustments for WordPress-generated markup (menus, pagination, etc.)
 * Loaded after the main styles.css
 */

/* ── Navigation menu items injected by wp_nav_menu() ─────────────────────── */
.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
/* Mobile: stacked */
@media (max-width: 1050px) {
  .nav-links ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .nav-links li a {
    display: block;
    padding: 10px 6px;
  }
}

/* ── Footer navigation ─────────────────────────────────────────────────────── */
.footer-nav {
  margin: 18px 0 10px;
}
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 24px;
}
.footer-nav a {
  font-size: .84rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-nav a:hover {
  color: var(--yellow);
}

/* ── Footer copyright line ─────────────────────────────────────────────────── */
.footer-copy {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 10px;
}

/* ── Ed Deeb Legacy section ───────────────────────────────────────────────────
   styles.css already contains comprehensive #ed-legacy rules that handle the
   grid layout. This block only provides the figcaption typography that those
   rules reference but don't fully define.                                     */
#ed-legacy .legacy-primary-photo figcaption strong {
  font-family: var(--body) !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  color: #fff !important;
  letter-spacing: 0 !important;
}

/* ── Pagination ─────────────────────────────────────────────────────────────── */
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  margin: 0 3px;
  transition: .18s;
}
.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: #050507;
}

/* ── Gutenberg block alignment ──────────────────────────────────────────────── */
.entry-content .wp-block-image {
  margin-bottom: 24px;
}
.entry-content p {
  margin-bottom: 18px;
}
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin-top: 32px;
  margin-bottom: 12px;
}
.entry-content ul,
.entry-content ol {
  padding-left: 22px;
  line-height: 1.8;
  color: var(--muted);
}
.entry-content a {
  color: var(--yellow);
  text-decoration: underline;
}
.entry-content a:hover {
  color: var(--cyan);
}

/* ══════════════════════════════════════════════════════════════════════════════
   FORM PAGE  (page-form.php)
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Hero band ───────────────────────────────────────────────────────────────── */
.form-hero {
  position: relative;
  padding: 72px 0 64px;
  overflow: hidden;
}
.form-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(233,0,138,.28) 0%, transparent 46%),
    linear-gradient(255deg, rgba(0,139,210,.22) 0%, transparent 46%),
    linear-gradient(180deg, #050507, #090b14);
}
.form-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(#000, transparent 100%);
  pointer-events: none;
}
.form-hero__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 48px;
}
.form-hero__brand img {
  width: 160px;
  height: auto;
  filter: drop-shadow(0 0 14px rgba(0,0,0,.5));
}
.form-hero__copy h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  margin-bottom: 14px;
  color: #fff;
}
.form-hero__copy .lead {
  max-width: 640px;
}

/* Eyebrow accent variants for form pages */
.form-eyebrow--yellow { color: var(--yellow); }
.form-eyebrow--cyan   { color: var(--cyan); }
.form-eyebrow--pink   { color: var(--pink); }
.form-eyebrow--blue   { color: var(--blue); }

/* ── Body layout: form well + sidebar ────────────────────────────────────────── */
.form-page__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto auto;
  grid-template-areas:
    "well   sidebar"
    "back   sidebar";
  gap: 28px;
  padding-top: 52px;
  padding-bottom: 80px;
  align-items: start;
}

/* ── Form well ───────────────────────────────────────────────────────────────── */
.form-well {
  grid-area: well;
  position: relative;
  background: rgba(255,255,255,.045);
  border: 1px solid var(--line);
  padding: 48px 44px;
  box-shadow: 0 24px 72px rgba(0,0,0,.38);
}

/* Decorative corner accents */
.form-well__corner {
  position: absolute;
  width: 36px;
  height: 36px;
  pointer-events: none;
}
.form-well__corner--tl {
  top: -1px;
  left: -1px;
  border-top: 3px solid var(--yellow);
  border-left: 3px solid var(--yellow);
}
.form-well__corner--br {
  bottom: -1px;
  right: -1px;
  border-bottom: 3px solid var(--pink);
  border-right: 3px solid var(--pink);
}

/* ── Embedded form (shortcode output) ───────────────────────────────────────── */
.form-embed {
  /* Let the embedded form breathe */
  min-height: 320px;
}

/* Gravity Forms / WPForms / Fluent Forms normalisation */
.form-embed .gform_wrapper,
.form-embed .wpforms-container,
.form-embed .ff-el-group,
.form-embed form {
  max-width: 100% !important;
}

/* Labels */
.form-embed label,
.form-embed .gfield_label,
.form-embed .wpforms-field-label,
.form-embed .ff-el-form-control label {
  display: block;
  font-family: var(--body);
  font-weight: 700;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 6px;
}

/* Inputs, selects, textareas */
.form-embed input[type="text"],
.form-embed input[type="email"],
.form-embed input[type="tel"],
.form-embed input[type="number"],
.form-embed input[type="url"],
.form-embed input[type="date"],
.form-embed select,
.form-embed textarea {
  width: 100%;
  background: rgba(0,0,0,.45) !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-family: var(--body);
  font-size: .96rem;
  padding: 13px 14px;
  transition: border-color .18s;
  outline: none;
  box-shadow: none !important;
  -webkit-appearance: none;
}
.form-embed input:focus,
.form-embed select:focus,
.form-embed textarea:focus {
  border-color: var(--cyan) !important;
}
.form-embed textarea {
  min-height: 120px;
  resize: vertical;
}
.form-embed select option {
  background: #08070c;
}

/* Radio / checkbox */
.form-embed input[type="radio"],
.form-embed input[type="checkbox"] {
  accent-color: var(--yellow);
  width: 16px;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
}

/* Submit buttons */
.form-embed input[type="submit"],
.form-embed button[type="submit"],
.form-embed .gform_button,
.form-embed .wpforms-submit,
.form-embed .ff-btn-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 32px !important;
  border: 2px solid var(--yellow) !important;
  background: var(--yellow) !important;
  color: #050507 !important;
  font-family: var(--display) !important;
  font-size: 1.1rem !important;
  text-transform: uppercase;
  letter-spacing: .05em;
  box-shadow: 6px 6px 0 var(--pink) !important;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease !important;
  border-radius: 0 !important;
  width: auto !important;
}
.form-embed input[type="submit"]:hover,
.form-embed button[type="submit"]:hover,
.form-embed .gform_button:hover,
.form-embed .wpforms-submit:hover,
.form-embed .ff-btn-submit:hover {
  transform: translate(-3px, -3px) !important;
  box-shadow: 9px 9px 0 var(--pink) !important;
}

/* Field rows / spacing */
.form-embed .gfield,
.form-embed .wpforms-field,
.form-embed .ff-el-group {
  margin-bottom: 22px !important;
}

/* Validation error colours */
.form-embed .gfield_error input,
.form-embed .wpforms-error input,
.form-embed .ff-el-is-error input {
  border-color: var(--pink) !important;
}
.form-embed .validation_message,
.form-embed .wpforms-error-container p,
.form-embed .ff-el-form-error {
  color: var(--pink) !important;
  font-size: .82rem;
  margin-top: 4px;
}

/* Success / confirmation messages */
.form-embed .gform_confirmation_message,
.form-embed .wpforms-confirmation-container,
.form-embed .ff-message-success {
  background: rgba(0, 216, 255, .1) !important;
  border: 1px solid var(--cyan) !important;
  color: #fff !important;
  padding: 24px !important;
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Placeholder state (before shortcode is added) ──────────────────────────── */
.form-placeholder {
  text-align: center;
  padding: 60px 24px;
}
.form-placeholder__icon {
  width: 72px;
  height: 72px;
  border: 2px solid var(--line);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--muted);
}
.form-placeholder p {
  max-width: 440px;
  margin-inline: auto;
}
.form-placeholder .eyebrow {
  justify-content: center;
  margin-bottom: 10px;
}

/* ── Back link ───────────────────────────────────────────────────────────────── */
.form-page__back {
  grid-area: back;
}
.form-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted);
  transition: color .18s;
}
.form-back-link:hover {
  color: var(--yellow);
}

/* ── Sidebar ─────────────────────────────────────────────────────────────────── */
.form-sidebar {
  grid-area: sidebar;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 100px; /* clears the sticky nav */
}

.form-info-card {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.045);
  padding: 22px 20px;
}
.form-info-card .eyebrow {
  font-size: .8rem;
  margin-bottom: 10px;
}
.form-info-card p {
  font-size: .9rem;
  margin: 0 0 4px;
}
.form-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.form-info-card ul li {
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.6;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.form-info-card ul li:last-child {
  border-bottom: none;
}
.form-info-card--lockup {
  border-color: rgba(255,255,255,.1);
  background: transparent;
  padding: 18px 0 0;
}
.form-info-card--lockup img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.4));
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 1050px) {
  .form-page__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "well"
      "sidebar"
      "back";
  }
  .form-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .form-info-card--lockup {
    grid-column: span 2;
    padding-top: 12px;
  }
  .form-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .form-hero__brand img {
    width: 130px;
  }
}

@media (max-width: 650px) {
  .form-hero {
    padding: 52px 0 44px;
  }
  .form-well {
    padding: 28px 20px;
  }
  .form-sidebar {
    grid-template-columns: 1fr;
  }
  .form-info-card--lockup {
    grid-column: span 1;
  }
  .form-well__corner {
    width: 24px;
    height: 24px;
  }
}

/* ── Screen reader / accessibility ─────────────────────────────────────────── */
.screen-reader-text {
  position: absolute;
  left: -999px;
  top: auto;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
  background: var(--yellow);
  color: #000;
  padding: 10px 14px;
  clip: auto;
}
