/*
Theme Name: Prince J. Myles Exact Landing
Theme URI: https://lawofficeofprincejmyles.com/
Author: OpenAI
Description: Responsive WordPress theme for the Law Office of Prince J. Myles with desktop and mobile layouts, DocuSign link support, and a built-in consultation form.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: pjm-exact
*/

:root {
  --pjm-bg: #04080d;
  --pjm-bg-soft: #07111a;
  --pjm-panel: rgba(6, 15, 24, 0.9);
  --pjm-panel-strong: rgba(5, 10, 16, 0.98);
  --pjm-border: rgba(200, 138, 42, 0.55);
  --pjm-gold: #c88a2a;
  --pjm-gold-light: #ebb35a;
  --pjm-text: #f6f2ea;
  --pjm-muted: #d2cabc;
  --pjm-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(31, 55, 84, 0.35), transparent 35%),
    linear-gradient(180deg, #05090d 0%, #07111a 45%, #04070b 100%);
  color: var(--pjm-text);
  font-family: Arial, Helvetica, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.pjm-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.pjm-site {
  min-height: 100vh;
  overflow: hidden;
}

.pjm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(2, 7, 12, 0.88);
  backdrop-filter: blur(12px);
}
.pjm-header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 88px;
}
.pjm-brand img {
  width: clamp(220px, 30vw, 360px);
}
.pjm-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
}
.pjm-nav a {
  position: relative;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--pjm-text);
  padding: 8px 0;
}
.pjm-nav a:hover,
.pjm-nav a:focus-visible,
.pjm-header-phone:hover,
.pjm-header-phone:focus-visible { color: var(--pjm-gold-light); }
.pjm-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pjm-gold), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .22s ease;
}
.pjm-nav a:hover::after,
.pjm-nav a:focus-visible::after { transform: scaleX(1); }
.pjm-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pjm-gold-light);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  white-space: nowrap;
}
.pjm-icon { line-height: 1; }
.pjm-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--pjm-border);
  border-radius: 10px;
  background: rgba(255,255,255,.03);
  cursor: pointer;
}
.pjm-menu-toggle span:not(.screen-reader-text) {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--pjm-gold-light);
  margin: 3px 0;
}

.pjm-hero {
  position: relative;
  padding: 54px 0 36px;
  background:
    linear-gradient(90deg, rgba(3, 8, 13, 0.92) 0%, rgba(3, 8, 13, 0.80) 35%, rgba(3, 8, 13, 0.45) 60%, rgba(3, 8, 13, 0.72) 100%),
    var(--pjm-hero-bg) center/cover no-repeat;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pjm-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.16) 100%);
  pointer-events: none;
}
.pjm-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: end;
  gap: 28px;
}
.pjm-hero-copy {
  max-width: 620px;
  padding: 24px 0;
}
.pjm-kicker {
  margin: 0 0 12px;
  color: var(--pjm-gold-light);
  font: 700 clamp(14px, 1.7vw, 18px)/1.2 Georgia, 'Times New Roman', serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.pjm-kicker-small {
  font-size: 13px;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.pjm-hero h1 {
  margin: 0;
  font: 500 clamp(3rem, 7vw, 5.4rem)/0.94 Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.pjm-divider {
  width: 260px;
  max-width: 90%;
  height: 14px;
  margin: 18px 0 22px;
  background: linear-gradient(90deg, var(--pjm-gold) 0%, rgba(200,138,42,0.15) 100%);
  clip-path: polygon(0 45%, 42% 45%, 45% 20%, 48% 45%, 52% 45%, 55% 20%, 58% 45%, 100% 45%, 100% 56%, 58% 56%, 55% 80%, 52% 56%, 48% 56%, 45% 80%, 42% 56%, 0 56%);
}
.pjm-divider-small {
  width: 180px;
  margin: 12px auto 0;
}
.pjm-lead {
  margin: 0;
  max-width: 580px;
  color: var(--pjm-muted);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.72;
  text-shadow: 0 1px 3px rgba(0,0,0,.28);
}
.pjm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
}
.pjm-btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 62px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, filter .18s ease;
}
.pjm-btn:hover,
.pjm-btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.pjm-btn-primary {
  background: linear-gradient(180deg, #d79a35 0%, #b17218 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: .03em;
  box-shadow: 0 10px 28px rgba(200,138,42,.18);
}
.pjm-btn-secondary {
  min-width: min(100%, 330px);
  background: rgba(4, 9, 14, 0.9);
  color: #fff;
  border-color: var(--pjm-border);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 0 18px rgba(200,138,42,.25);
}
.pjm-btn-secondary strong {
  font-size: 1.65rem;
  line-height: 1;
}
.pjm-btn-secondary span {
  display: block;
  color: var(--pjm-gold-light);
  font-size: 0.92rem;
  line-height: 1.35;
  margin-top: 4px;
}
.pjm-hero-media {
  display: flex;
  justify-content: center;
  align-items: end;
}
.pjm-hero-media img {
  width: min(100%, 470px);
  filter: drop-shadow(0 0 24px rgba(235, 179, 90, 0.25));
}

.pjm-section {
  padding: 34px 0;
}
.pjm-section-tight { padding-top: 8px; }
.pjm-section-title-wrap { text-align: center; margin-bottom: 24px; }
.pjm-section-title {
  margin: 0;
  color: var(--pjm-gold-light);
  font: 500 clamp(1.65rem, 3vw, 2.2rem)/1.1 Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.pjm-practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.pjm-card {
  background: linear-gradient(180deg, rgba(9,19,29,.96) 0%, rgba(5,11,18,.98) 100%);
  border: 1px solid rgba(200,138,42,.30);
  border-radius: 18px;
  box-shadow: var(--pjm-shadow);
}
.pjm-practice-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
}
.pjm-practice-icon,
.pjm-feature-icon {
  display: grid;
  place-items: center;
  color: var(--pjm-gold-light);
  font-family: Georgia, 'Times New Roman', serif;
}
.pjm-practice-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(200,138,42,.7);
  font-size: 2rem;
}
.pjm-practice-card h3,
.pjm-feature-card h3,
.pjm-contact-card h2,
.pjm-attorney-card h2 {
  margin: 0 0 10px;
  font-family: Georgia, 'Times New Roman', serif;
}
.pjm-practice-card h3 { font-size: 1.7rem; text-transform: uppercase; }
.pjm-practice-card p,
.pjm-feature-card p,
.pjm-attorney-card p,
.pjm-contact-meta a,
.pjm-privacy {
  color: var(--pjm-muted);
  line-height: 1.65;
}

.pjm-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.pjm-feature-card {
  padding: 24px 18px 22px;
  text-align: center;
}
.pjm-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid rgba(200,138,42,.55);
  font-size: 1.8rem;
}
.pjm-feature-card h3 {
  font-size: 1.22rem;
  color: var(--pjm-gold-light);
}

.pjm-about-grid {
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}
.pjm-attorney-card,
.pjm-contact-card { padding: 26px; }
.pjm-attorney-card h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--pjm-gold-light);
}
.pjm-attorney-card p:last-child { margin-bottom: 0; }
.pjm-contact-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.pjm-contact-card h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: #fff;
}
.pjm-contact-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
}
.pjm-contact-meta a:hover,
.pjm-footer-address:hover { color: var(--pjm-gold-light); }
.pjm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.pjm-field { margin-bottom: 14px; }
.pjm-field label {
  display: block;
  margin: 0 0 7px;
  color: var(--pjm-gold-light);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pjm-field input,
.pjm-field textarea {
  width: 100%;
  border: 1px solid rgba(200,138,42,.35);
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  color: #fff;
  padding: 13px 14px;
  outline: none;
}
.pjm-field input:focus,
.pjm-field textarea:focus {
  border-color: var(--pjm-gold-light);
  box-shadow: 0 0 0 3px rgba(200,138,42,.10);
}
.pjm-field textarea { min-height: 150px; resize: vertical; }
.pjm-submit { width: 100%; margin-top: 4px; }
.pjm-privacy { margin: 12px 0 0; font-size: .9rem; }
.pjm-status {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(200,138,42,.45);
  background: rgba(200,138,42,.08);
}
.pjm-status.success {
  border-color: rgba(98, 196, 123, .7);
  background: rgba(98, 196, 123, .10);
}
.pjm-status.error {
  border-color: rgba(220, 92, 92, .7);
  background: rgba(220, 92, 92, .10);
}
.pjm-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.pjm-footer {
  padding: 0 0 28px;
}
.pjm-footer-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid rgba(200,138,42,.28);
  border-radius: 14px;
  background: rgba(5,10,16,.75);
  color: var(--pjm-text);
  text-align: center;
}

@media (max-width: 1024px) {
  .pjm-header-inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }
  .pjm-nav { gap: 18px; }
  .pjm-header-phone { font-size: 1rem; }
  .pjm-hero-grid,
  .pjm-about-grid,
  .pjm-feature-grid,
  .pjm-practice-grid {
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .pjm-shell { width: min(100% - 24px, 1200px); }
  .pjm-header-inner {
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    min-height: 78px;
  }
  .pjm-menu-toggle { display: inline-flex; }
  .pjm-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(200,138,42,.30);
    background: rgba(5, 10, 16, 0.98);
    box-shadow: var(--pjm-shadow);
  }
  .pjm-nav.is-open { display: flex; }
  .pjm-nav a { padding: 10px 6px; }
  .pjm-header-phone span:not(.pjm-icon):not(:last-child) { display: inline; }
  .pjm-header-phone { font-size: .95rem; }

  .pjm-hero {
    padding: 24px 0 28px;
    background:
      linear-gradient(180deg, rgba(4, 8, 12, 0.65) 0%, rgba(4, 8, 12, 0.88) 46%, rgba(4, 8, 12, 0.98) 100%),
      var(--pjm-hero-bg-mobile) center top/cover no-repeat;
  }
  .pjm-hero-grid,
  .pjm-about-grid,
  .pjm-practice-grid,
  .pjm-feature-grid,
  .pjm-form-grid {
    grid-template-columns: 1fr;
  }
  .pjm-hero-grid {
    align-items: start;
  }
  .pjm-hero-copy {
    order: 2;
    max-width: 100%;
    padding: 4px 0 0;
  }
  .pjm-hero-media {
    order: 1;
    margin-bottom: 4px;
  }
  .pjm-hero-media img {
    width: min(100%, 280px);
    margin: 0 auto;
  }
  .pjm-hero h1 { font-size: clamp(2.35rem, 10vw, 3.8rem); }
  .pjm-lead { font-size: 1rem; line-height: 1.65; }
  .pjm-cta-row { flex-direction: column; }
  .pjm-btn,
  .pjm-btn-secondary { width: 100%; min-width: 0; }
  .pjm-practice-card { grid-template-columns: 74px 1fr; padding: 20px; }
  .pjm-practice-icon { width: 64px; height: 64px; font-size: 1.6rem; }
  .pjm-contact-head { flex-direction: column; }
  .pjm-contact-meta { text-align: left; }
  .pjm-attorney-card,
  .pjm-contact-card { padding: 22px 18px; }
}

@media (max-width: 560px) {
  .pjm-brand img { width: min(72vw, 265px); }
  .pjm-header-phone {
    justify-self: end;
    font-size: .9rem;
  }
  .pjm-header-phone span:last-child { display: none; }
  .pjm-header-phone .pjm-icon { font-size: 1.2rem; }
  .pjm-section { padding: 28px 0; }
  .pjm-practice-card h3 { font-size: 1.35rem; }
  .pjm-feature-card h3 { font-size: 1.08rem; }
  .pjm-footer-address { font-size: .96rem; }
}
