/*
Theme Name: Common Law Paralegals Pro
Theme URI: https://commonlawparalegals.com/
Author: Common Law Paralegals
Description: A polished, fast, easy-to-edit WordPress theme for Common Law Paralegals. Includes Customizer controls for the hero, contact details, calls to action, homepage messaging, and colors.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
Text Domain: common-law-paralegals-pro
*/

:root {
  --clp-navy: #0a1b2f;
  --clp-navy-2: #112942;
  --clp-gold: #d8a23a;
  --clp-gold-light: #efc76a;
  --clp-ink: #172033;
  --clp-muted: #687181;
  --clp-paper: #f8f6f1;
  --clp-white: #ffffff;
  --clp-line: #e6e2d9;
  --clp-shadow: 0 18px 60px rgba(8, 22, 39, .12);
  --clp-radius: 18px;
  --clp-serif: Georgia, 'Times New Roman', serif;
  --clp-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--clp-ink);
  background: #fff;
  font-family: var(--clp-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--clp-gold); }
img { max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }

.clp-container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.clp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--clp-gold); font-size: .78rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.clp-eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.clp-heading { font-family: var(--clp-serif); line-height: 1.08; letter-spacing: -.025em; margin: 0; }
.clp-section { padding: 88px 0; }
.clp-section-title { font-size: clamp(2.25rem, 4vw, 4rem); max-width: 760px; }
.clp-lead { font-size: 1.12rem; color: var(--clp-muted); max-width: 720px; }

/* Top bar */
.clp-topbar { background: #071525; color: #dce4ed; font-size: .82rem; }
.clp-topbar-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.clp-topbar-group { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.clp-topbar a { color: #e8edf3; }
.clp-topbar a:hover { color: var(--clp-gold-light); }
.clp-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--clp-gold); display: inline-block; }

/* Header */
.site-header { background: rgba(255,255,255,.97); position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(8,22,39,.08); backdrop-filter: blur(12px); }
.admin-bar .site-header { top: 32px; }
.clp-header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.clp-brand { display: flex; align-items: center; gap: 14px; min-width: 240px; }
.clp-brand-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--clp-gold-light), var(--clp-gold));
  color: #0a1b2f; box-shadow: 0 8px 22px rgba(216,162,58,.28);
}
.custom-logo { max-height: 58px; width: auto; }
.clp-brand-title { font-family: var(--clp-serif); font-weight: 800; font-size: 1.35rem; letter-spacing: .02em; }
.clp-brand-tagline { color: var(--clp-muted); font-family: var(--clp-serif); font-style: italic; font-size: .78rem; display: block; margin-top: 1px; }
.clp-nav { margin-left: auto; }
.clp-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.clp-menu a { font-size: .92rem; font-weight: 650; position: relative; padding: 30px 0; display: block; }
.clp-menu a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 18px; height: 2px; background: var(--clp-gold); transition: right .2s ease; }
.clp-menu a:hover::after, .clp-menu .current-menu-item > a::after { right: 0; }
.clp-menu-toggle { display: none; border: 0; background: var(--clp-navy); color: #fff; width: 44px; height: 44px; border-radius: 10px; cursor: pointer; }

/* Buttons */
.clp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 6px; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.clp-btn:hover { transform: translateY(-2px); }
.clp-btn-primary { background: linear-gradient(135deg, var(--clp-gold-light), var(--clp-gold)); color: #101820; box-shadow: 0 10px 28px rgba(216,162,58,.25); }
.clp-btn-primary:hover { color: #101820; box-shadow: 0 14px 34px rgba(216,162,58,.34); }
.clp-btn-outline { border-color: rgba(255,255,255,.65); color: #fff; }
.clp-btn-outline:hover { background: #fff; color: var(--clp-navy); }
.clp-btn-dark { background: var(--clp-navy); color: #fff; }
.clp-header-cta { white-space: nowrap; }

/* Hero */
.clp-hero { position: relative; overflow: hidden; background: radial-gradient(circle at 82% 18%, #263f5c 0, #0e233b 31%, #08182a 68%, #06111d 100%); color: #fff; }
.clp-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: linear-gradient(90deg, rgba(5,17,29,.98) 0%, rgba(5,17,29,.91) 42%, rgba(5,17,29,.45) 67%, rgba(5,17,29,.28) 100%),
                    radial-gradient(circle at 75% 35%, rgba(239,199,106,.13), transparent 28%);
  z-index: 1;
}
.clp-hero::after {
  content: ''; position: absolute; right: -6vw; top: 7%; width: min(48vw, 620px); aspect-ratio: 1;
  background: url('assets/images/scales-seal.svg') center/contain no-repeat;
  opacity: .88; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); z-index: 1;
}
.clp-hero-grid { position: relative; z-index: 2; min-height: 590px; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); align-items: center; }
.clp-hero-copy { max-width: 650px; padding: 84px 0 90px; }
.clp-hero h1 { font-size: clamp(3.1rem, 6.2vw, 6rem); max-width: 740px; }
.clp-hero h1 span { color: var(--clp-gold-light); }
.clp-hero-text { margin: 24px 0 30px; max-width: 640px; font-size: 1.09rem; color: #dce4ec; }
.clp-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.clp-hero-quote { align-self: end; justify-self: end; width: min(100%, 430px); margin-bottom: 40px; padding: 26px 28px; border-top: 1px solid rgba(255,255,255,.25); background: rgba(6,17,29,.55); backdrop-filter: blur(8px); }
.clp-hero-quote blockquote { margin: 0; font-family: var(--clp-serif); font-style: italic; font-size: 1.2rem; }
.clp-hero-quote cite { display: block; color: var(--clp-gold-light); text-align: right; margin-top: 10px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }

/* Services */
.clp-services { background: #fff; border-bottom: 1px solid var(--clp-line); }
.clp-service-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.clp-service-card { padding: 30px 28px 34px; text-align: center; position: relative; }
.clp-service-card + .clp-service-card::before { content: ''; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: var(--clp-line); }
.clp-service-icon { width: 48px; height: 48px; display: grid; place-items: center; margin: 0 auto 15px; color: var(--clp-gold); }
.clp-service-card h3 { font-family: var(--clp-serif); margin: 0 0 7px; font-size: 1.18rem; }
.clp-service-card p { margin: 0; color: var(--clp-muted); font-size: .9rem; }

/* About */
.clp-about { background: linear-gradient(180deg, #fbfaf7 0%, #fff 100%); overflow: hidden; }
.clp-about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 58px; align-items: center; }
.clp-about-copy p { color: var(--clp-muted); }
.clp-about-visual { position: relative; min-height: 500px; }
.clp-constitution {
  position: absolute; inset: 0 90px 0 0; border-radius: var(--clp-radius);
  background: linear-gradient(135deg, rgba(239,199,106,.08), rgba(10,27,47,.18)), url('assets/images/constitution.svg') center/cover no-repeat;
  box-shadow: var(--clp-shadow);
}
.clp-values { position: absolute; right: 0; top: 36px; bottom: 36px; width: 300px; background: linear-gradient(160deg, #102b46, #081829); color: #fff; border-radius: 12px; box-shadow: var(--clp-shadow); padding: 28px; display: grid; align-content: center; gap: 22px; }
.clp-value { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: start; }
.clp-value strong { font-family: var(--clp-serif); display: block; font-size: 1.08rem; }
.clp-value span { display: block; color: #cbd5df; font-size: .84rem; margin-top: 2px; }
.clp-value-icon { color: var(--clp-gold-light); }

/* CTA */
.clp-cta { position: relative; overflow: hidden; color: #fff; background: linear-gradient(rgba(8,24,42,.73), rgba(8,24,42,.9)), url('assets/images/mountains.svg') center/cover no-repeat; padding: 76px 0; text-align: center; }
.clp-cta h2 { font-size: clamp(2rem, 4vw, 3.6rem); margin-bottom: 10px; }
.clp-cta p { color: #d9e1e9; margin: 0 auto 25px; max-width: 760px; }

/* Blog */
.clp-blog { background: #fff; }
.clp-blog-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.clp-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.clp-post-card { border: 1px solid var(--clp-line); border-radius: 14px; overflow: hidden; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.clp-post-card:hover { transform: translateY(-5px); box-shadow: var(--clp-shadow); }
.clp-post-thumb { display: block; aspect-ratio: 16/9; background: linear-gradient(135deg, #dfc792, #72542d); overflow: hidden; }
.clp-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.clp-post-card:hover .clp-post-thumb img { transform: scale(1.04); }
.clp-post-placeholder { width: 100%; height: 100%; background: url('assets/images/constitution.svg') center/cover no-repeat; }
.clp-post-body { padding: 22px; }
.clp-post-meta { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 800; color: var(--clp-gold); }
.clp-post-card h3 { font-family: var(--clp-serif); font-size: 1.4rem; margin: 8px 0 8px; line-height: 1.22; }
.clp-post-card p { color: var(--clp-muted); font-size: .93rem; }
.clp-readmore { color: #b77c0b; font-weight: 750; font-size: .9rem; }

/* Footer */
.site-footer { background: #071728; color: #d9e1e8; }
.clp-footer-main { padding: 56px 0 42px; display: grid; grid-template-columns: 1.3fr .8fr .9fr; gap: 50px; }
.clp-footer-brand .clp-brand-title { color: #fff; }
.clp-footer-brand p { color: #aebac6; max-width: 420px; }
.clp-footer-title { color: #fff; font-family: var(--clp-serif); font-size: 1.05rem; margin: 0 0 14px; }
.clp-footer-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.clp-footer-menu a { color: #cbd5df; }
.clp-footer-contact { display: grid; gap: 10px; }
.clp-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .8rem; color: #aebac6; }
.clp-footer-bottom-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.clp-disclaimer { margin-top: 13px; font-size: .76rem; color: #8797a8; }

/* Inner pages */
.clp-page-hero { background: linear-gradient(135deg, #071728, #173a5a); color: #fff; padding: 78px 0; }
.clp-page-hero h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.clp-content-wrap { padding: 70px 0 90px; }
.clp-content-wrap .entry-content { max-width: 860px; font-size: 1.04rem; }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--clp-serif); color: var(--clp-navy); line-height: 1.2; }
.entry-content a { color: #a36e0c; text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote { border-left: 4px solid var(--clp-gold); margin: 30px 0; padding: 12px 24px; background: var(--clp-paper); font-family: var(--clp-serif); font-size: 1.25rem; }

/* WordPress alignment */
.alignwide { max-width: 1180px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }

/* Accessibility */
.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; width: 1px; word-wrap: normal !important; }
.screen-reader-text:focus { background: #fff; clip: auto !important; clip-path: none; color: #111; display: block; font-size: 14px; height: auto; left: 8px; padding: 14px 18px; top: 8px; width: auto; z-index: 100000; box-shadow: var(--clp-shadow); }

@media (max-width: 1020px) {
  .clp-header-cta { display: none; }
  .clp-menu-toggle { display: grid; place-items: center; }
  .clp-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--clp-line); display: none; box-shadow: 0 16px 30px rgba(0,0,0,.08); }
  .clp-nav.is-open { display: block; }
  .clp-menu { display: block; padding: 12px 20px 24px; }
  .clp-menu a { padding: 14px 0; }
  .clp-menu a::after { bottom: 8px; }
  .clp-hero-grid { grid-template-columns: 1fr; }
  .clp-hero::after { opacity: .34; right: -16vw; width: 74vw; }
  .clp-hero-quote { justify-self: start; margin-bottom: 45px; }
  .clp-service-grid { grid-template-columns: repeat(2, 1fr); }
  .clp-service-card:nth-child(3)::before { display: none; }
  .clp-about-grid { grid-template-columns: 1fr; }
  .clp-about-visual { min-height: 460px; }
  .clp-blog-grid { grid-template-columns: 1fr 1fr; }
  .clp-footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .clp-container { width: min(100% - 28px, 1180px); }
  .clp-topbar-inner { padding: 8px 0; align-items: flex-start; }
  .clp-topbar-group:last-child { display: none; }
  .clp-brand-tagline { display: none; }
  .clp-brand-title { font-size: 1.08rem; }
  .clp-brand { min-width: 0; }
  .clp-hero-grid { min-height: auto; }
  .clp-hero-copy { padding: 72px 0 32px; }
  .clp-hero h1 { font-size: clamp(2.7rem, 14vw, 4.2rem); }
  .clp-hero-quote { margin-bottom: 36px; }
  .clp-service-grid { grid-template-columns: 1fr; }
  .clp-service-card + .clp-service-card::before { top: 0; left: 28px; right: 28px; width: auto; height: 1px; bottom: auto; }
  .clp-about-visual { min-height: 570px; }
  .clp-constitution { inset: 0 0 190px 0; }
  .clp-values { left: 18px; right: 18px; top: auto; bottom: 0; width: auto; grid-template-columns: 1fr 1fr; gap: 16px; }
  .clp-value { grid-template-columns: 30px 1fr; }
  .clp-blog-grid { grid-template-columns: 1fr; }
  .clp-blog-head { display: block; }
  .clp-footer-main { grid-template-columns: 1fr; gap: 28px; }
  .clp-section { padding: 68px 0; }
}
