/*
Theme Name: Lindsey Law
Theme URI: https://lindseylawtx.com
Author: Lindsey Law
Description: A custom WordPress theme for Lindsey Law in Fort Worth and Granbury, Texas.
Version: 1.3.4
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: lindsey-law
*/

:root {
  --ll-navy: #0a1d35;
  --ll-navy-2: #102a49;
  --ll-orange: #c65a08;
  --ll-orange-dark: #9f4603;
  --ll-cream: #faf9f7;
  --ll-blue-gray: #f3f6f8;
  --ll-charcoal: #202b36;
  --ll-muted: #5d6874;
  --ll-white: #ffffff;
  --ll-line: #d9e0e5;
  --ll-serif: "Libre Baskerville", "Iowan Old Style", "Baskerville", Georgia, serif;
  --ll-sans: "Source Sans 3", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --ll-shadow: 0 18px 50px rgba(10, 29, 53, 0.12);
  --ll-radius: 3px;
  --ll-max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ll-charcoal);
  background: var(--ll-cream);
  font-family: var(--ll-sans);
  font-size: 18px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

a { color: var(--ll-navy); text-underline-offset: 0.18em; }
a:hover { color: var(--ll-orange-dark); }

:focus-visible {
  outline: 3px solid var(--ll-orange);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  color: var(--ll-navy);
  font-family: var(--ll-serif);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.65em;
}

h1 { font-size: clamp(2.55rem, 5.8vw, 5.2rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.45rem); letter-spacing: -0.025em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }

p, ul, ol { margin: 0 0 1.25em; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background: var(--ll-white);
  clip: auto !important;
  clip-path: none;
  color: var(--ll-navy);
  display: block;
  height: auto;
  left: 12px;
  padding: 12px 18px;
  top: 12px;
  width: auto;
  z-index: 100000;
}

.ll-container {
  width: min(calc(100% - 40px), var(--ll-max));
  margin-inline: auto;
}

.ll-narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }

.ll-announcement {
  background: var(--ll-navy);
  color: var(--ll-white);
  font-size: 0.82rem;
  letter-spacing: 0.035em;
  padding: 8px 20px;
  text-align: center;
}

.ll-site-header {
  background: rgba(250, 249, 247, 0.97);
  border-bottom: 1px solid rgba(10, 29, 53, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.admin-bar .ll-site-header { top: 32px; }

.ll-header-inner {
  align-items: center;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(190px, 310px) 1fr auto;
  min-height: 104px;
}

.ll-header-actions { align-items: center; display: flex; gap: 18px; justify-content: flex-end; }
.ll-header-phone { color: var(--ll-navy); font-size: 0.92rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ll-header-phone:hover { color: var(--ll-orange-dark); }

.ll-brand img { display: block; max-height: 76px; width: auto; }

.ll-nav ul { list-style: none; margin: 0; padding: 0; }
.ll-nav > div > ul { align-items: center; display: flex; gap: 28px; justify-content: flex-end; }
.ll-nav li { position: relative; }
.ll-nav a {
  color: var(--ll-navy);
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  padding: 14px 0;
  text-decoration: none;
  text-transform: uppercase;
}
.ll-nav a:hover, .ll-nav .current-menu-item > a, .ll-nav .current-menu-ancestor > a { color: var(--ll-orange-dark); }
.ll-nav .sub-menu {
  background: var(--ll-white);
  border-top: 3px solid var(--ll-orange);
  box-shadow: var(--ll-shadow);
  display: none;
  left: -20px;
  min-width: 270px;
  padding: 10px 0;
  position: absolute;
  top: calc(100% - 2px);
}
.ll-nav .sub-menu a { font-size: 0.8rem; padding: 10px 20px; }
.ll-nav li:hover > .sub-menu,
.ll-nav li:focus-within > .sub-menu { display: block; }

.ll-menu-toggle {
  align-items: center;
  background: transparent;
  border: 1px solid var(--ll-navy);
  color: var(--ll-navy);
  cursor: pointer;
  display: none;
  font: 700 0.82rem/1 var(--ll-sans);
  gap: 8px;
  letter-spacing: 0.04em;
  padding: 12px;
  text-transform: uppercase;
}

.ll-menu-icon, .ll-menu-icon::before, .ll-menu-icon::after {
  background: currentColor;
  display: block;
  height: 2px;
  position: relative;
  width: 20px;
}
.ll-menu-icon::before, .ll-menu-icon::after { content: ""; position: absolute; }
.ll-menu-icon::before { top: -6px; }
.ll-menu-icon::after { top: 6px; }

.ll-button, button.ll-button, input.ll-button {
  align-items: center;
  background: var(--ll-orange-dark);
  border: 2px solid var(--ll-orange-dark);
  border-radius: var(--ll-radius);
  color: var(--ll-white);
  cursor: pointer;
  display: inline-flex;
  font: 700 0.88rem/1.2 var(--ll-sans);
  justify-content: center;
  letter-spacing: 0.055em;
  min-height: 50px;
  padding: 14px 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.ll-button:hover { background: var(--ll-navy); border-color: var(--ll-navy); color: var(--ll-white); transform: translateY(-1px); }
.ll-button--outline { background: transparent; border-color: var(--ll-navy); color: var(--ll-navy); }
.ll-button--outline:hover { background: var(--ll-navy); border-color: var(--ll-navy); color: var(--ll-white); }
.ll-button--light { background: transparent; border-color: var(--ll-white); color: var(--ll-white); }
.ll-button--light:hover { background: var(--ll-white); border-color: var(--ll-white); color: var(--ll-navy); }

.wp-block-button.ll-primary-button .wp-block-button__link,
.wp-block-button.ll-outline-button .wp-block-button__link,
.wp-block-button.ll-light-button .wp-block-button__link {
  align-items: center;
  border-radius: var(--ll-radius);
  display: inline-flex;
  font: 700 0.88rem/1.2 var(--ll-sans);
  justify-content: center;
  letter-spacing: 0.055em;
  min-height: 50px;
  padding: 14px 22px;
  text-transform: uppercase;
}
.wp-block-button.ll-primary-button .wp-block-button__link { background: var(--ll-orange-dark); color: var(--ll-white); }
.wp-block-button.ll-primary-button .wp-block-button__link:hover { background: var(--ll-navy); }
.wp-block-button.ll-outline-button .wp-block-button__link { background: transparent; border: 2px solid var(--ll-navy); color: var(--ll-navy); }
.wp-block-button.ll-outline-button .wp-block-button__link:hover { background: var(--ll-navy); color: var(--ll-white); }
.wp-block-button.ll-light-button .wp-block-button__link { background: transparent; border: 2px solid var(--ll-white); color: var(--ll-white); }
.wp-block-button.ll-light-button .wp-block-button__link:hover { background: var(--ll-white); color: var(--ll-navy); }

.ll-hero {
  background:
    linear-gradient(110deg, rgba(10, 29, 53, 0.97), rgba(10, 29, 53, 0.90)),
    radial-gradient(circle at 86% 20%, rgba(198, 90, 8, 0.28), transparent 34%);
  color: var(--ll-white);
  overflow: hidden;
  padding: clamp(84px, 11vw, 150px) 0;
  position: relative;
}
.ll-hero::after {
  border: 2px solid rgba(198, 90, 8, 0.55);
  content: "";
  height: 440px;
  position: absolute;
  right: -210px;
  top: -100px;
  transform: rotate(20deg);
  width: 330px;
}
.ll-hero-grid { align-items: center; display: grid; gap: 70px; grid-template-columns: 1.25fr 0.75fr; }
.ll-eyebrow {
  color: var(--ll-orange);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  text-transform: uppercase;
}
.ll-hero h1 { color: var(--ll-white); max-width: 820px; }
.ll-hero-copy { font-size: 1.18rem; max-width: 760px; }
.ll-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.ll-hero-mark { opacity: 0.15; transform: rotate(-4deg); }

.ll-section { padding: clamp(72px, 9vw, 118px) 0; }
.ll-section--white { background: var(--ll-white); }
.ll-section--blue { background: var(--ll-blue-gray); }
.ll-section--navy { background: var(--ll-navy); color: var(--ll-white); }
.ll-section--navy h2, .ll-section--navy h3 { color: var(--ll-white); }

.ll-kicker { color: var(--ll-orange-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.ll-lead { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; }
.ll-section-head { margin-bottom: 42px; max-width: 790px; }
.ll-section-head p:last-child { margin-bottom: 0; }

.ll-two-col { align-items: center; display: grid; gap: clamp(40px, 7vw, 90px); grid-template-columns: 1fr 1fr; }
.ll-two-col--wide { grid-template-columns: 0.8fr 1.2fr; }

.ll-cards { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.wp-block-columns.ll-cards--four,
.wp-block-columns.ll-cards--two {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
.wp-block-columns.ll-cards--four > .wp-block-column,
.wp-block-columns.ll-cards--two > .wp-block-column {
  flex-basis: auto !important;
  min-width: 0 !important;
  width: 100% !important;
}
.ll-card {
  background: var(--ll-white);
  border-top: 4px solid var(--ll-orange);
  box-shadow: 0 12px 32px rgba(10, 29, 53, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  padding: 34px;
}
.ll-card h2,
.ll-card h3,
.ll-card p,
.ll-card a {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}
.ll-card p { color: var(--ll-muted); }
.ll-card .ll-text-link { margin-top: auto; }
.ll-text-link { color: var(--ll-navy); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.065em; text-decoration: none; text-transform: uppercase; }
.ll-text-link::after { color: var(--ll-orange); content: "  \2192"; }
.ll-text-link a { color: inherit; text-decoration: none; }

.ll-credentials { background: var(--ll-navy); color: var(--ll-white); padding: 40px 0; }
.ll-credential-grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.ll-credential { border-left: 2px solid var(--ll-orange); padding-left: 22px; }
.ll-credential strong { display: block; font-family: var(--ll-serif); font-size: 1.18rem; line-height: 1.35; }
.ll-credential span { color: #ccd6df; font-size: 0.9rem; }
.ll-credential p { margin-bottom: 0; }
.ll-credential p:last-child { color: #ccd6df; font-size: 0.9rem; }

.ll-home-content > * { margin-block-start: 0; }
.ll-home-content .wp-block-columns { margin-bottom: 0; }
.ll-home-content .wp-block-columns.ll-cards--four,
.ll-home-content .wp-block-columns.ll-cards--two {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
}
.ll-home-content .wp-block-columns.ll-cards--four > .wp-block-column,
.ll-home-content .wp-block-columns.ll-cards--two > .wp-block-column {
  flex-basis: auto !important;
  min-width: 0 !important;
  width: 100% !important;
}
.ll-home-content .wp-block-buttons { margin-bottom: 0; }
.ll-home-content .wp-block-image { margin-bottom: 0; }

.ll-portrait-frame { position: relative; }
.ll-portrait-frame::before { border: 3px solid var(--ll-orange); content: ""; inset: 24px -18px -18px 24px; position: absolute; }
.ll-portrait-frame img { box-shadow: var(--ll-shadow); display: block; position: relative; width: 100%; }

.ll-about-intro { align-items: start; margin: clamp(56px, 7vw, 88px) 0; }
.ll-about-intro h2 { margin-top: 0; }
.ll-recognition-grid {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 60px;
}
.wp-block-gallery.ll-recognition-grid { display: grid !important; }
.ll-recognition-grid figure {
  align-items: center;
  background: var(--ll-white);
  border: 1px solid var(--ll-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  min-height: 190px;
  padding: 24px;
}
.wp-block-gallery.ll-recognition-grid > figure.wp-block-image { width: auto !important; }
.ll-recognition-grid img { height: auto; max-height: 120px; max-width: 100%; object-fit: contain; width: auto; }
.ll-recognition-grid figcaption { color: var(--ll-muted); font-size: 0.82rem; margin-top: 14px; text-align: center; }

.ll-location-grid { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.ll-location {
  background: var(--ll-white);
  border: 1px solid var(--ll-line);
  padding: 38px;
  position: relative;
}
.ll-location::before { color: var(--ll-orange); content: "\2605"; font-size: 0.72rem; left: 16px; position: absolute; top: 16px; }

.ll-page-hero { background: var(--ll-navy); color: var(--ll-white); padding: clamp(64px, 8vw, 104px) 0; }
.ll-page-hero h1 { color: var(--ll-white); font-size: clamp(2.4rem, 5vw, 4.4rem); max-width: 940px; }
.ll-page-hero p { font-size: 1.18rem; max-width: 760px; }

.ll-content { background: var(--ll-white); padding: clamp(64px, 8vw, 104px) 0; }
.ll-content .entry-content { max-width: 860px; }
.ll-content .entry-content.ll-wide-content { max-width: var(--ll-max); }
.ll-content .entry-content > h2 { margin-top: 1.8em; }
.ll-content .entry-content > h3 { margin-top: 1.6em; }
.ll-content .entry-content ul { padding-left: 1.2em; }
.ll-content .entry-content li { margin-bottom: 0.55em; padding-left: 0.35em; }
.ll-content .entry-content li::marker { color: var(--ll-orange); }

.ll-inline-cta {
  background: var(--ll-blue-gray);
  border-left: 5px solid var(--ll-orange);
  margin: 48px 0 0;
  padding: 30px;
}

.ll-form { background: var(--ll-blue-gray); padding: clamp(28px, 5vw, 48px); }
.ll-form-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.ll-field--full { grid-column: 1 / -1; }
.ll-field label, .ll-field legend { color: var(--ll-navy); display: block; font-size: 0.92rem; font-weight: 800; margin-bottom: 7px; }
.ll-required { color: var(--ll-orange-dark); }
.ll-field input[type="text"], .ll-field input[type="email"], .ll-field input[type="tel"], .ll-field select, .ll-field textarea {
  background: var(--ll-white);
  border: 1px solid #aeb8c1;
  border-radius: 2px;
  color: var(--ll-charcoal);
  font: inherit;
  min-height: 50px;
  padding: 12px 14px;
  width: 100%;
}
.ll-field textarea { min-height: 160px; resize: vertical; }
.ll-check { align-items: flex-start; display: flex; gap: 10px; }
.ll-check input { margin-top: 7px; }
.ll-notice { border-left: 5px solid var(--ll-orange); margin-bottom: 28px; padding: 16px 20px; }
.ll-notice--success { background: #edf7f0; }
.ll-notice--error { background: #fff2ea; }
.ll-hp { left: -9999px !important; position: absolute !important; }

.ll-site-footer { background: #071527; color: #d5dde5; padding: 70px 0 30px; }
.ll-footer-grid { display: grid; gap: 42px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.ll-site-footer h2, .ll-site-footer h3 { color: var(--ll-white); font-size: 1rem; letter-spacing: 0.045em; text-transform: uppercase; }
.ll-site-footer a { color: #e1e7ed; text-decoration: none; }
.ll-site-footer a:hover { color: var(--ll-orange); }
.ll-footer-logo { filter: brightness(0) invert(1); max-width: 250px; opacity: 0.96; }
.ll-footer-list { list-style: none; margin: 0; padding: 0; }
.ll-footer-list li { margin-bottom: 8px; }
.ll-footer-note { border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.78rem; margin-top: 48px; padding-top: 24px; }
.ll-footer-note p { margin-bottom: 0.55em; }

.ll-404 { min-height: 62vh; padding: 120px 0; text-align: center; }

@media (max-width: 1020px) {
  .ll-header-inner { grid-template-columns: minmax(190px, 280px) auto; min-height: 88px; }
  .ll-header-cta { display: none; }
  .ll-header-actions { display: none; }
  .ll-menu-toggle { display: inline-flex; justify-self: end; }
  .ll-nav { background: var(--ll-white); display: none; grid-column: 1 / -1; margin-inline: -20px; padding: 12px 20px 22px; }
  .ll-nav.is-open { display: block; }
  .ll-nav > div > ul { align-items: stretch; display: block; }
  .ll-nav a { border-bottom: 1px solid var(--ll-line); padding: 13px 4px; }
  .ll-nav .sub-menu { border-top: 0; box-shadow: none; display: block; left: auto; min-width: 0; padding: 0 0 0 18px; position: static; }
  .ll-nav .sub-menu a { font-size: 0.78rem; padding: 10px 4px; }
  .ll-hero-grid { grid-template-columns: 1fr; }
  .ll-hero-mark { display: none; }
  .ll-cards--four { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .admin-bar .ll-site-header { top: 46px; }
  .ll-two-col, .ll-two-col--wide, .ll-cards, .ll-cards--four, .ll-cards--two, .ll-footer-grid, .ll-recognition-grid { grid-template-columns: 1fr; }
  .ll-cards { gap: 18px; }
  .ll-credential-grid { grid-template-columns: 1fr; }
  .ll-location-grid { grid-template-columns: 1fr; }
  .ll-form-grid { grid-template-columns: 1fr; }
  .ll-field--full { grid-column: auto; }
  .ll-portrait-frame { margin: 0 18px 18px 0; }
}

@media (max-width: 520px) {
  body { font-size: 17px; }
  .ll-container, .ll-narrow { width: min(calc(100% - 28px), var(--ll-max)); }
  .ll-announcement { font-size: 0.72rem; }
  .ll-brand img { max-height: 62px; }
  .ll-actions .ll-button { width: 100%; }
  .ll-card, .ll-location { padding: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

@media print {
  .ll-announcement, .ll-site-header, .ll-site-footer, .ll-actions { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .ll-page-hero, .ll-hero { background: #fff; color: #000; padding: 24px 0; }
  .ll-page-hero h1, .ll-hero h1 { color: #000; }
}
