/* Melinda Owens Law Firm — headless site styles */
:root {
  --black: #000000;
  --plum-band: #150E26;
  --plum-surface: #1C1230;
  --amber: #B8873C;
  --amber-hover: #D4A24E;
  --amber-deep: #8F6A2C;
  --purple-600: #5A2E8C;
  --purple-400: #8E63BE;
  --purple-300: #B79AD6;
  --white: #FFFFFF;
  --grey: #B7ADA0;
  --grey-light: #D7D0C6;
  --muted: #847A6F;
  --awards-date: #5E564E;
  --hairline: rgba(255, 255, 255, 0.13);

  --font-serif: "Lora", "Playfair Display", Georgia, serif;
  --font-sans: "Quicksand", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-script: "Oooh Baby", "Dancing Script", cursive;

  --gutter: clamp(24px, 5vw, 64px);
  --container: 1200px;
  --section-y: 96px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --header-h: 100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; margin: 0; color: var(--white); }
h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 16px; }
h3 { font-size: 26px; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 16px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--amber); color: #000; padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
main:focus { outline: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; }

.overline {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--purple-300); margin-bottom: 14px;
}
.lede { color: var(--grey); font-size: 17px; }
.script { font-family: var(--font-script); font-weight: 400; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  padding: 16px 36px; border-radius: var(--radius-sm); border: 2px solid transparent;
  cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .1s;
  min-height: 48px; line-height: 1.2; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: #000; }
.btn-primary:hover { background: var(--amber-hover); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.26); }
.btn-outline:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
.btn-sm { padding: 12px 22px; font-size: 12.5px; min-height: 44px; }
.btn-lg { padding: 17px 36px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }

/* ---------- Tags ---------- */
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; padding: 7px 14px; border-radius: var(--radius-sm); line-height: 1.3;
}
.tag-accent { color: var(--amber); border: 1px solid var(--amber); }
.tag-outline { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.4); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background-color .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  padding: 20px 0;
}
.site-header.scrolled {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
  padding: 12px 0;
}
.header-inner {
  max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand-badge { width: 60px; height: 60px; border-radius: 50%; transition: width .35s var(--ease), height .35s var(--ease); }
.site-header.scrolled .brand-badge { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { color: var(--white); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap; }
.brand-sub { color: var(--muted); font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--grey); text-decoration: none; font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; transition: color .2s;
  padding: 8px 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--amber); }
.nav-phone { display: none; }

.menu-toggle {
  display: none; width: 48px; height: 48px; background: transparent; border: 0; cursor: pointer;
  position: relative; padding: 0;
}
.menu-toggle span {
  position: absolute; left: 12px; width: 24px; height: 2px; background: var(--white);
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 23px; }
.menu-toggle span:nth-child(3) { top: 30px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 640px; min-height: max(640px, 88vh);
  display: flex; align-items: center; overflow: hidden; background: var(--black);
  padding: calc(var(--header-h) + 32px) 0 72px;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 30%; opacity: 0.9;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #000000 0%, rgba(20, 8, 36, 0.86) 34%, rgba(32, 7, 46, 0.12) 72%, rgba(58, 15, 85, 0.30) 100%);
}
.hero-fade { position: absolute; inset: 0; background: linear-gradient(0deg, #000000 0%, rgba(0, 0, 0, 0) 32%); }
.hero-content {
  position: relative; width: 100%; max-width: 1100px; margin: 0 auto 0 0;
  padding: 0 var(--gutter);
}
@media (min-width: 1440px) {
  .hero-content { margin-left: calc((100vw - 1440px) / 2); }
}
.hero .tag { margin-bottom: 22px; }
.hero-quote {
  font-size: clamp(40px, 6.4vw, 80px); line-height: 1.04; letter-spacing: -0.02em;
  max-width: 14ch; margin-bottom: 16px;
}
.hero-sub { font-size: clamp(18px, 2vw, 22px); font-weight: 500; color: var(--white); margin-bottom: 22px; letter-spacing: 0.01em; }
.hero-body { color: var(--grey-light); font-size: 18px; line-height: 1.6; max-width: 620px; margin-bottom: 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Practice ---------- */
.practice {
  background:
    radial-gradient(130% 90% at 100% 0%, rgba(90, 46, 140, 0.32), transparent 55%),
    var(--plum-band);
}
.section-head { max-width: 620px; margin-bottom: 48px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--plum-surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 32px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.card-accent { border-top: 3px solid var(--amber); }
.card:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.28); border-top-color: var(--amber-hover); }
.card-num { font-family: var(--font-serif); font-size: 40px; font-weight: 700; color: var(--purple-400); line-height: 1; margin-bottom: 14px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--grey); font-size: 15px; line-height: 1.6; flex: 1; }
.card-link {
  color: var(--amber); text-decoration: none; font-size: 13px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; align-self: flex-start; padding: 6px 0;
}
.card-link:hover { color: var(--amber-hover); }

/* ---------- About ---------- */
.about { background: radial-gradient(90% 80% at 0% 100%, rgba(90, 46, 140, 0.26), transparent 55%), var(--black); }
.about-grid { display: grid; grid-template-columns: 55fr 45fr; gap: 64px; align-items: start; }
.about-copy > p:not(.overline) { color: var(--grey); font-size: 17px; line-height: 1.65; }
.about-copy strong { color: var(--white); }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.seal-chip {
  display: inline-block; background: var(--white); border-radius: var(--radius-md);
  padding: 14px 20px; margin-top: 26px;
}
.seal-chip img { width: 220px; height: auto; }
.seal-block { margin: 26px 0 0; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.seal-block .seal-chip { margin-top: 0; }
.seal-caption { color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.5; max-width: 260px; }
.cert { color: var(--white); }
.seal-chip-sm { padding: 12px 16px; margin-top: 0; }
.seal-chip-sm img { width: 168px; }

.portrait {
  position: relative; margin: 0; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--purple-400);
  box-shadow: 0 0 0 1px rgba(142, 99, 190, 0.25), 0 20px 60px rgba(90, 46, 140, 0.35);
}
.portrait img { width: 100%; height: 520px; object-fit: cover; object-position: 50% 15%; }
.portrait::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0));
}
.portrait figcaption { position: absolute; left: 20px; bottom: 16px; z-index: 1; }
.portrait-name { display: block; font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--white); }
.portrait-role { display: block; color: var(--purple-300); font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin: 56px 0 0; padding-top: 40px; border-top: 1px solid var(--hairline);
}
.stat dt { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--white); }
.stat dd { margin: 4px 0 0; color: var(--muted); font-size: 13px; letter-spacing: 0.06em; }

/* ---------- Awards (light) ---------- */
.awards { background: #FFFFFF; color: #000; padding: 88px 0; text-align: center; }
.awards-thanks { font-size: clamp(34px, 4vw, 44px); color: #000; margin: 0 0 6px; line-height: 1.2; }
.voted {
  display: inline-flex; align-items: center; gap: 16px; margin: 10px auto 22px;
  color: var(--amber-deep); font-size: 13px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase;
}
.voted .rule { width: 40px; height: 2px; background: var(--amber-deep); display: inline-block; }
.awards h2 { color: #000; font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -0.01em; margin: 0; }
.awards-date { margin: 14px 0 0; color: var(--awards-date); font-size: 13px; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.awards-motto { margin: 26px 0 0; font-size: clamp(28px, 3vw, 34px); color: var(--amber-deep); line-height: 1.2; }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(120% 90% at 100% 100%, rgba(90, 46, 140, 0.30), transparent 55%), var(--plum-band); }
.contact-grid {
  max-width: calc(980px + 2 * var(--gutter));
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start;
}
.details { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 14px; }
.details li { color: var(--white); font-size: 15px; }
.details .label { color: var(--amber); font-weight: 700; margin-right: 8px; }
.details a { color: var(--white); text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.details a:hover { color: var(--amber); border-bottom-color: var(--amber); }

.form-card {
  background: var(--plum-surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 32px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
}
#consultForm { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  display: block; color: var(--grey); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.req { color: var(--amber); }
.field input, .field textarea {
  width: 100%; background: rgba(255, 255, 255, 0.04); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--radius-sm);
  padding: 13px 14px; font: 500 16px/1.4 var(--font-sans);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #958B80; opacity: 1; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(184, 135, 60, 0.28);
}
.field.invalid input, .field.invalid textarea { border-color: #E08A7A; }
.field-error, .form-error { color: #F0A898; font-size: 13px; margin: 6px 0 0; min-height: 0; }
.field-error:empty, .form-error:empty { display: none; }
.disclaimer { color: #958B80; font-size: 12.5px; margin: 0; }
.form-note { color: var(--grey); font-size: 13px; margin: 0; }
.form-note span { color: var(--amber); }
.form-success { text-align: center; padding: 30px 4px; }
.form-success:focus { outline: none; }
.success-title { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.form-success p { color: var(--grey); }
.form-success .btn { margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); border-top: 1px solid var(--hairline); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand img { width: 72px; height: 72px; border-radius: 50%; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,0.18); }
.footer-name { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--white); margin: 0; }
.footer-motto { color: var(--amber); font-size: 24px; margin: 2px 0 4px; line-height: 1.2; }
.footer-address { color: var(--grey); font-size: 13px; letter-spacing: 0.04em; margin: 0; }
.footer-address a { color: var(--grey); text-decoration: none; }
.footer-address a:hover { color: var(--amber); }
.footer-cols { display: flex; gap: 44px; flex-wrap: wrap; align-items: flex-start; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--grey); text-decoration: none; font-size: 14px; transition: color .2s; }
.footer-links a:hover { color: var(--amber); }
.footer-legal { margin: 40px 0 0; color: var(--grey); font-size: 13px; line-height: 1.6; max-width: 900px; }
.footer-bottom {
  margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--muted); font-size: 12.5px; letter-spacing: 0.04em;
}

/* ---------- Motion: slow, cinematic fade-in ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero .reveal { transition-duration: 1.4s; }
.js .hero .reveal:nth-child(2) { transition-delay: .12s; }
.js .hero .reveal:nth-child(3) { transition-delay: .24s; }
.js .hero .reveal:nth-child(4) { transition-delay: .36s; }
.js .hero .reveal:nth-child(5) { transition-delay: .48s; }
.js .card-grid .reveal:nth-child(2) { transition-delay: .12s; }
.js .card-grid .reveal:nth-child(3) { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav-links { gap: 20px; }
  .site-nav { gap: 20px; }
}
@media (max-width: 960px) {
  :root { --header-h: 84px; }
  .menu-toggle { display: block; z-index: 2; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; align-items: flex-start; gap: 28px;
    padding: 96px var(--gutter) 48px;
    background: rgba(0, 0, 0, 0.96);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .menu-open .site-nav { opacity: 1; visibility: visible; }
  .nav-links { flex-direction: column; gap: 6px; }
  .nav-links a { font-family: var(--font-serif); font-size: 30px; letter-spacing: 0; text-transform: none; color: var(--white); padding: 8px 0; display: block; font-weight: 700; }
  .nav-phone { display: block; color: var(--grey); text-decoration: none; font-weight: 700; letter-spacing: 0.08em; }
  .brand { position: relative; z-index: 2; }
}
@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .portrait { order: -1; }
  .portrait img { height: 440px; }
  .stat-row { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 640px) {
  :root { --section-y: 56px; }
  .site-header { padding: 14px 0; }
  .brand-badge { width: 48px; height: 48px; }
  .hero { min-height: 600px; padding-bottom: 56px; }
  .hero-scrim { background: linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(20, 8, 36, 0.84) 55%, rgba(32, 7, 46, 0.5) 100%); }
  .hero-body { font-size: 16.5px; }
  .cta-row .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .awards { padding: 64px 0; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Designer credit ---------- */
.site-credit { margin: 16px 0 0; color: #958B80; font-size: 12px; letter-spacing: 0.04em; }
.site-credit a { color: #958B80; text-decoration: underline; text-underline-offset: 2px; transition: color .2s; }
.site-credit a:hover { color: var(--amber); }
