/*
Theme Name: Hall Law
Theme URI: https://thehalllawoffice.com/
Author: Millennium Group
Description: Clean law-firm theme rebuilt for The Hall Law Office. Matches the original Attorney v3 look: Source Sans Pro, navy/blue/orange palette, two-row header, hero, services, testimonials.
Version: 1.0.2
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hall-law
Tags: business, custom-menu, custom-logo, featured-images
*/

/* =========================================================================
   Hall Law theme — style.css
   Palette + type scale derived from the original Attorney v3 (CSS only;
   the original PHP was a webshell farm and is NOT reused).
   ========================================================================= */

:root {
  --brand-blue: #0073e5;
  --brand-blue-dark: #005bb5;
  --navy: #0c2a3a;
  --navy-darker: #08202c;
  --accent: #da6009;
  --accent-dark: #b9540a;
  --brand-red: #b4262d;
  --text: #212529;
  --muted: #5c6b73;
  --line: #e3e8ec;
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --max: 1180px;
  --radius: 4px;
  --shadow: 0 6px 20px rgba(12, 42, 58, .08);
  --font: "Source Sans Pro", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-blue); text-decoration: none; }
a:hover { color: var(--brand-blue-dark); }
h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 0 0 .6em; font-weight: 600; color: var(--navy); }
h1 { font-size: 2.3rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.alignright { float: right; margin: 0 0 1.2em 1.5em; }
.alignleft { float: left; margin: 0 1.5em 1.2em 0; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .8em 1.6em;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
  font-size: 1rem;
}
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn-outline:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---- Header (two-row) ---- */
.site-header { background: var(--navy); color: #fff; }
.site-header .topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 14px 0; }
.site-logo img { max-height: 52px; width: auto; }
.site-logo .fallback-logo { font-size: 1.5rem; font-weight: 700; letter-spacing: .5px; }
.site-logo a { color: #fff; }
.topbar .contact { text-align: right; font-size: .95rem; }
.topbar .contact .label { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.topbar .contact a { color: #fff; font-weight: 600; font-size: 1.05rem; }
.topbar .contact a:hover { color: var(--accent); }

.primary-nav { border-top: 1px solid rgba(255,255,255,.12); background: var(--navy-darker); }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 15px 18px; color: #fff; font-weight: 500; font-size: .98rem; transition: background .2s, color .2s; }
.primary-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { color: var(--accent); }
.primary-nav .sub-menu { list-style: none; margin: 0; padding: 0; display: none; position: absolute; left: 0; top: 100%; min-width: 230px; background: var(--navy-darker); box-shadow: var(--shadow); z-index: 20; }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { padding: 12px 18px; border-left: 3px solid transparent; font-size: .94rem; }
.primary-nav .sub-menu a:hover { border-left-color: var(--accent); }

/* Mobile nav toggle */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .topbar { flex-direction: column; align-items: center; text-align: center; gap: .4rem; }
  .primary-nav ul { flex-direction: column; }
  .nav-ready .primary-nav > .container > ul { display: none; }
  .nav-ready .nav-toggle { display: inline-flex; align-items: center; min-height: 44px; margin: 8px 0; padding: 8px 16px; background: transparent; color: white; border: 1px solid currentColor; border-radius: 4px; font: inherit; cursor: pointer; }
  .nav-ready.nav-open .primary-nav > .container > ul { display: flex; }
  .primary-nav .sub-menu { position: static; display: block; box-shadow: none; border-top: 1px solid rgba(255,255,255,.08); }
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0a3550 100%);
  color: #fff;
  padding: 84px 0;
  text-align: center;
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .82rem; color: var(--accent); font-weight: 600; margin-bottom: .6em; }
.hero h1 { color: #fff; font-size: 2.7rem; margin-bottom: .4em; }
.hero p.lead { font-size: 1.25rem; max-width: 720px; margin: 0 auto 1.8em; color: rgba(255,255,255,.85); }
.hero .cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5em; border-top: 5px solid var(--brand-red); padding-top: 1.6em; }
.section-head .eyebrow { text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; color: var(--brand-blue); font-weight: 600; }
.section-head h2 { margin-bottom: .3em; }
.section-head p { color: var(--muted); }

/* ---- Services grid ---- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.service-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--brand-blue); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; display: flex; flex-direction: column; }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(12,42,58,.12); }
.service-card h3 { font-size: 1.2rem; margin-bottom: .5em; }
.service-card p { color: var(--muted); font-size: .97rem; flex: 1; }
.service-card .more { font-weight: 600; font-size: .9rem; }

/* ---- About ---- */
.about-grid { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
.about-grid .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-grid .photo img { width: 100%; }
.about-grid .body h2 { margin-bottom: .4em; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; } .about-grid .photo { max-width: 320px; } }

/* ---- Testimonials ---- */
.testimonials { background: var(--navy); color: #fff; }
.testimonials .section-head h2 { color: #fff; }
.testimonials .section-head .eyebrow { color: var(--accent); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.testi-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; }
.testi-card .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: .8em; }
.testi-card blockquote { margin: 0 0 1em; font-size: .98rem; color: rgba(255,255,255,.9); font-style: italic; }
.testi-card .who { font-weight: 600; color: #fff; }

/* ---- Book / CTA band ---- */
.band { background: linear-gradient(135deg, var(--brand-blue) 0%, #005bb5 100%); color: #fff; }
.band .inner { display: grid; grid-template-columns: 1fr 220px; gap: 40px; align-items: center; }
.band h2 { color: #fff; }
.band p { color: rgba(255,255,255,.9); }
.band .book-cover { text-align: center; }
.band .book-cover a { display: inline-block; }
.band .book-cover img { max-width: 180px; margin: 0 auto; border-radius: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.band .btn { background: #fff; color: var(--brand-blue); border-color: #fff; }
.band .btn:hover { background: rgba(255,255,255,.9); }
@media (max-width: 700px) { .band .inner { grid-template-columns: 1fr; text-align: center; } }

/* ---- Page header (interior pages) ---- */
.page-hero { background: var(--navy); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .crumbs { font-size: .9rem; color: rgba(255,255,255,.6); margin-bottom: .5em; }
.page-hero .crumbs a { color: rgba(255,255,255,.8); }

/* ---- Content ---- */
.content { padding: 50px 0; }
.content .entry-content { max-width: 820px; }
.content .entry-content h1 { font-size: 2rem; }
.content .entry-content h2 { font-size: 1.6rem; margin-top: 1.4em; }
.content .entry-content a { text-decoration: underline; text-decoration-color: var(--accent); }
.content .entry-thumb { float: right; width: 300px; max-width: 45%; margin: 0 0 1.4em 1.6em; }
.content .entry-thumb img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info h2 { margin-bottom: .6em; }
.contact-info .line { margin-bottom: 1em; }
.contact-info .line .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.contact-info a { color: var(--brand-blue); font-weight: 600; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---- Forms ---- */
.wpcf7-form p { margin-bottom: 1em; }
.wpcf7-form label { display: block; font-weight: 600; margin-bottom: .3em; }
.wpcf7-form input[type=text], .wpcf7-form input[type=email], .wpcf7-form textarea {
  width: 100%; padding: .7em .9em; border: 1px solid var(--line); border-radius: var(--radius); font: inherit;
}
.wpcf7-form input[type=submit], .wpcf7-submit {
  background: var(--accent); color: #fff; border: none; padding: .8em 1.8em; font-weight: 600; border-radius: var(--radius); cursor: pointer; font-size: 1rem;
}
.wpcf7-form input[type=submit]:hover { background: var(--accent-dark); }
.wpcf7-not-valid { color: #c0392b; font-size: .85rem; }
.wpcf7-response-output { margin: 1em 0; padding: .8em 1em; border-radius: var(--radius); }
.wpcf7-mail-sent-ok { background: #e7f6ec; color: #1e7e34; }
.wpcf7-mail-sent-ng, .wpcf7-verification-high, .wpcf7-verification-fail { background: #fdecea; color: #c0392b; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-darker); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1em; }
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--accent); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .6em; }
.site-footer .about-firm p { font-size: .95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .85rem; color: rgba(255,255,255,.5); }
.footer-bottom a { color: rgba(255,255,255,.6); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- 404 ---- */
.error-404 { text-align: center; padding: 80px 0; }
.error-404 h1 { font-size: 4rem; color: var(--brand-blue); }

/* ---- Accessibility ---- */
a:focus-visible, .btn:focus-visible, .wpcf7-form input:focus, .wpcf7-form textarea:focus {
  outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Readiness review: keyboard access, small screens, and readable controls. */
.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; padding: 12px 18px; background: #fff; color: var(--navy); z-index: 1000; }
.nav-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.entry-content { display: flow-root; overflow-wrap: anywhere; }
.btn-primary, .wpcf7-form input[type=submit], .wpcf7-submit { background: var(--accent-dark); border-color: var(--accent-dark); }
.wpcf7-not-valid { color: var(--text); font-size: inherit; }
.wpcf7-not-valid-tip { color: #a8281c; font-size: .9rem; }
@media (max-width: 860px) { .site-header .topbar, .topbar .contact { text-align: center; } }
@media (max-width: 400px) { .hero h1 { font-size: 2.15rem; } .hero { padding: 56px 0; } }

/* ---- Glossary accordions (Criminal Law Terms) ---- */
.entry-content details { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; background: var(--bg); }
.entry-content details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); background: var(--bg-soft); border-radius: var(--radius); }
.entry-content details[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.entry-content details > summary::-webkit-details-marker { display: none; }
.entry-content details > summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.entry-content details[open] > summary::after { content: "\2013"; }
.entry-content details > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.entry-content details > *:not(summary) { padding-left: 18px; padding-right: 18px; }
.entry-content details > p { margin: 1em 18px; }
.entry-content details > table { margin: 1em 18px; }
.entry-content table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.entry-content table td, .entry-content table th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.entry-content table tr:first-child td { background: var(--navy); color: #fff; font-weight: 600; }
