/* ============================================================
   Tierney Law Group, PC — Site Stylesheet
   ============================================================ */

:root {
  --navy: #0f2942;
  --navy-dark: #081a2c;
  --gold: #b8965f;
  --gold-light: #d8c39a;
  --cream: #f8f6f2;
  --white: #ffffff;
  --text: #232323;
  --text-light: #5a6470;
  --border: #e3e0d9;
  --shadow: 0 10px 30px rgba(15, 41, 66, 0.08);
  --radius: 6px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block; padding: 14px 30px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em;
  transition: all 0.2s ease; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); }
.btn-primary:hover { background: var(--gold-light); color: var(--navy-dark); }
.btn-outline { background: transparent; border: 2px solid var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { background: transparent; border: 2px solid var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

/* Top bar */
.topbar { background: var(--navy-dark); color: #cdd7e0; font-size: 0.85rem; padding: 8px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #cdd7e0; }
.topbar a:hover { color: var(--gold-light); }
.topbar .phone { font-weight: 600; color: var(--gold-light); }
.topbar .social a { margin-left: 12px; }

/* Header / Nav */
header.site-header { background: var(--white); box-shadow: 0 1px 0 var(--border); position: sticky; top: 0; z-index: 100; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 20px; }
.logo img { height: 52px; width: auto; }
nav.main-nav ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
nav.main-nav a { color: var(--navy); font-weight: 500; font-size: 0.92rem; white-space: nowrap; }
nav.main-nav .dropdown { position: relative; }
nav.main-nav .dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; background: var(--white);
  box-shadow: var(--shadow); border-radius: var(--radius); padding: 10px 0;
  min-width: 260px; border: 1px solid var(--border); max-height: 70vh; overflow-y: auto;
}
nav.main-nav .dropdown:hover .dropdown-menu { display: block; }
nav.main-nav .dropdown-menu li a { display: block; padding: 8px 20px; font-size: 0.88rem; white-space: nowrap; }
nav.main-nav .dropdown-menu li a:hover { background: var(--cream); }
nav.main-nav .dropdown-menu .dropdown-menu { left: 100%; top: 0; }
.nav-cta { margin-left: 6px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: var(--white); padding: 90px 0; }
.hero .container { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-eyebrow { color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; font-weight: 600; margin-bottom: 14px; }
.hero h1 { color: var(--white); }
.hero p.lead { color: #d3dbe4; font-size: 1.15rem; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-panel { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 30px; }
.hero-panel h3 { color: var(--white); font-size: 1.15rem; }
.hero-panel ul { padding-left: 20px; color: #d3dbe4; margin: 0; }
.hero-panel li { margin-bottom: 10px; }

.hero-founder { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 28px; display: flex; gap: 22px; align-items: flex-start; }
.hero-founder img { width: 160px; height: 200px; object-fit: cover; object-position: center 15%; border-radius: var(--radius); border: 1px solid rgba(216,195,154,0.4); flex-shrink: 0; }
.hero-founder-quote p { color: #d3dbe4; font-style: italic; font-size: 0.95rem; line-height: 1.55; margin-bottom: 14px; }
.hero-founder-name { color: var(--white); font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; }
.hero-founder-role { color: var(--gold-light); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 600; margin-top: 2px; }

@media (max-width: 640px) {
  .hero-founder { flex-direction: column; align-items: center; text-align: center; }
  .hero-founder img { width: 180px; height: 225px; }
}

/* Trust bar */
.trust-bar { background: var(--cream); padding: 26px 0; border-bottom: 1px solid var(--border); }
.trust-bar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; text-align: center; }
.trust-item { flex: 1; min-width: 140px; }
.trust-item strong { display: block; color: var(--navy); font-size: 1.5rem; font-family: 'Playfair Display', serif; }
.trust-item span { color: var(--text-light); font-size: 0.85rem; }

section { padding: 72px 0; }
.section-alt { background: var(--cream); }
.section-header { max-width: 680px; margin: 0 auto 46px; text-align: center; }
.section-header .eyebrow { color: var(--gold); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 10px; display: block; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4-photo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon { width: 46px; height: 46px; background: var(--cream); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 1.3rem; margin-bottom: 16px; border: 1px solid var(--border); }
.card a.learn { font-weight: 600; font-size: 0.9rem; color: var(--gold); }
.card a.learn:hover { color: var(--navy); }

.practice-card-img { border-radius: var(--radius); margin-bottom: 14px; aspect-ratio: 4/5; object-fit: cover; width: 100%; }

.attorney-card { text-align: center; }
.attorney-card img { border-radius: var(--radius); margin-bottom: 14px; aspect-ratio: 4/5; object-fit: cover; object-position: center 20%; width: 100%; }
.attorney-card h4 { margin-bottom: 2px; font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.05rem; }
.attorney-card .role { color: var(--gold); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; margin-bottom: 6px; }

.testimonial { background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: 26px 30px; }
.testimonial .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 8px; font-size: 0.95rem; }
.testimonial p { font-style: italic; color: var(--text); }
.testimonial .name { font-weight: 700; color: var(--navy); font-style: normal; margin-top: 12px; }

.cta-band { background: var(--navy); color: var(--white); text-align: center; padding: 60px 0; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d3dbe4; max-width: 560px; margin: 0 auto 26px; }

.page-header { background: var(--navy); color: var(--white); padding: 56px 0 46px; }
.page-header h1 { color: var(--white); margin-bottom: 8px; }
.breadcrumb { font-size: 0.85rem; color: #b9c3cf; margin-bottom: 14px; }
.breadcrumb a { color: #b9c3cf; }
.breadcrumb a:hover { color: var(--gold-light); }
.page-header .sub { color: #d3dbe4; max-width: 640px; }

.content-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: 50px; align-items: start; }
.content-main h2 { margin-top: 1.4em; }
.content-main h2:first-child { margin-top: 0; }
.content-main ul, .content-main ol { padding-left: 22px; }
.content-main li { margin-bottom: 8px; }
.content-main .hero-img { border-radius: var(--radius); margin: 20px 0; }
.toc { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 30px; font-size: 0.92rem; }
.toc h4 { margin-bottom: 10px; font-size: 1rem; }
.toc ul { margin: 0; padding-left: 18px; }

/* Blog post byline (author / category / date) */
.post-desc.blog-author-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0 0 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.post-desc.blog-author-link .author-name { color: var(--text); }
.post-desc.blog-author-link .author-name span { color: var(--text-light); }
.post-desc.blog-author-link .author-name a { color: var(--navy); font-weight: 600; }
.post-desc.blog-author-link .pst-category a {
  display: inline-block;
  background: var(--cream);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 4px;
}
.post-desc.blog-author-link .post-dt { color: var(--text-light); }

/* Author bio box at end of post */
.single-post-author-blk { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.custom-author-box { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.author-info { flex: 1; min-width: 240px; }
.author-info .authr-nm { margin-bottom: 2px; font-size: 1.05rem; color: var(--navy); }
.author-info .fundr-nm { color: var(--text-light); font-size: 0.9rem; margin-bottom: 10px; }
.single-post-author-btns { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.single-post-author-btns .cmn-btn { display: inline-block; padding: 10px 22px; border-radius: var(--radius); border: 2px solid var(--navy); color: var(--navy); font-weight: 600; font-size: 0.9rem; }
.single-post-author-btns .cmn-btn:hover { background: var(--navy); color: var(--white); }
.atrny-socil a { margin-right: 12px; font-size: 0.85rem; text-transform: capitalize; color: var(--text-light); }
.atrny-socil a:hover { color: var(--gold); }

.sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 22px; }
.sidebar-box { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.sidebar-box h3 { font-size: 1.05rem; margin-bottom: 14px; }
.sidebar-box ul { list-style: none; margin: 0; padding: 0; }
.sidebar-box ul li { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.sidebar-box ul li:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-box.contact-box { background: var(--navy); color: var(--white); }
.sidebar-box.contact-box h3 { color: var(--white); }
.sidebar-box.contact-box p { color: #d3dbe4; font-size: 0.94rem; }
.sidebar-box.contact-box .btn { width: 100%; text-align: center; }
.sidebar-box .testimonial { background: transparent; border: none; padding: 0 0 16px; }
.sidebar-box .testimonial:last-child { padding-bottom: 0; }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.blog-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.blog-card .tag { display: inline-block; background: var(--cream); color: var(--navy); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; width: fit-content; }
.blog-card .blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card p { color: var(--text-light); font-size: 0.95rem; flex: 1; }
.blog-card .meta { font-size: 0.82rem; color: var(--text-light); margin-top: 14px; }
.blog-card .thumb { height: 150px; background: linear-gradient(135deg, var(--navy), var(--navy-dark)); }

.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); }

form.contact-form { display: grid; gap: 16px; }
form.contact-form label { font-weight: 600; font-size: 0.9rem; color: var(--navy); display: block; margin-bottom: 6px; }
form.contact-form input, form.contact-form textarea, form.contact-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-family: inherit; font-size: 0.95rem; }
form.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form .disclaimer-text { font-size: 0.8rem; color: var(--text-light); }
form.contact-form .checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-light); }
form.contact-form .checkbox-row input { width: auto; }
form.contact-form .hidden-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.thankyou-box { text-align: center; padding: 60px 0; }
.thankyou-box .icon-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--cream); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-size: 2rem; color: var(--gold); }

.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 1.1rem; }

.awards-strip { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: center; }
.awards-strip img { height: 70px; width: auto; }

footer.site-footer { background: var(--navy-dark); color: #b9c3cf; padding: 60px 0 24px; font-size: 0.92rem; }
footer.site-footer .grid-4 { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 34px; margin-bottom: 40px; }
footer.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; font-family: 'Inter', sans-serif; }
footer.site-footer a { color: #b9c3cf; }
footer.site-footer a:hover { color: var(--gold-light); }
footer.site-footer ul { list-style: none; padding: 0; margin: 0; }
footer.site-footer ul li { margin-bottom: 10px; }
footer.site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
footer.site-footer .footer-logo img { height: 40px; margin-bottom: 16px; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .testimonials-grid { grid-template-columns: 1fr; }
  .grid-4-photo { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .content-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  footer.site-footer .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  nav.main-nav { display: none; }
  .topbar .container { justify-content: center; text-align: center; }
  footer.site-footer .grid-4 { grid-template-columns: 1fr; }
}
