/*
Theme Name: TSN Legal Professional
Theme URI: https://tsnlegal.in/
Author: TSN Legal
Description: The original approved charcoal, yellow and orange TSN Legal website design, built for local business-compliance SEO in Lucknow.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: tsn-legal-pro
License: GNU General Public License v2 or later
*/

:root {
  --ink: #242424;
  --charcoal: #333333;
  --muted: #686868;
  --line: #dedede;
  --soft: #f7f7f2;
  --yellow: #f3d100;
  --orange: #ff9c00;
  --orange-dark: #e87b00;
  --white: #ffffff;
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.65; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.035em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.65rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.65rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.shell, .container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.narrow { max-width: 900px; }
.section { padding-block: 100px; }
.eyebrow { color: var(--orange-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.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; }
.skip-link:focus { background: #fff; clip: auto; clip-path: none; height: auto; left: 12px; padding: 12px 16px; position: fixed; top: 12px; width: auto; z-index: 10000; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.topbar { background: #262626; color: #fff; font-size: .78rem; }
.topbar-inner { align-items: center; display: flex; justify-content: space-between; min-height: 34px; }
.topbar-inner div { display: flex; gap: 24px; }
.topbar a:hover { color: var(--yellow); }
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid #ececec; position: sticky; top: 0; z-index: 50; }
body.admin-bar .site-header { top: 32px; }
.header-inner { align-items: center; display: flex; gap: 28px; min-height: 82px; }
.brand { flex: 0 0 auto; margin-right: auto; width: 244px; }
.brand img { height: 58px; object-fit: contain; object-position: left center; width: 100%; }
.site-header nav { align-items: center; display: flex; gap: 26px; }
.site-header nav ul { align-items: center; display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-header nav a { color: #3d3d3d; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.site-header nav a:hover, .site-header nav .current-menu-item > a { color: var(--orange-dark); }
.header-cta { background: var(--yellow); border-radius: 4px; color: #111; flex: 0 0 auto; font-size: .86rem; font-weight: 800; padding: 12px 18px; }
.header-cta:hover { background: var(--orange); }

.hero { background: linear-gradient(120deg, #fff 0%, #fff 58%, #f5f2e7 58%, #f7d922 100%); border-bottom: 1px solid #e8e1c1; overflow: hidden; padding: 94px 0 88px; position: relative; }
.hero::before { border: 1px solid rgba(51,51,51,.15); border-radius: 50%; content: ""; height: 360px; position: absolute; right: -140px; top: -100px; width: 360px; }
.hero-grid { align-items: center; display: grid; gap: 70px; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .6fr); }
.hero-copy h1 { max-width: 850px; margin-top: 14px; }
.hero-lead { color: #505050; font-size: 1.17rem; line-height: 1.75; margin-top: 26px; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { align-items: center; background: linear-gradient(100deg, var(--yellow), var(--orange)); border: 1px solid transparent; border-radius: 4px; color: #111; display: inline-flex; font-size: .9rem; font-weight: 800; justify-content: center; min-height: 50px; padding: 0 22px; }
.button-primary { background: linear-gradient(100deg, var(--yellow), var(--orange)); color: #111; }
.button-primary:hover, .button:hover { filter: brightness(.95); }
.button-dark { background: var(--charcoal); color: #fff; }
.button-light { background: #fff; color: #222; }
.button-outline { background: transparent; border-color: #999; color: #333; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 30px 0 0; padding: 0; }
.trust-line li { color: #555; font-size: .84rem; font-weight: 700; }
.trust-line li::before { color: var(--orange-dark); content: "✓"; margin-right: 8px; }
.hero-panel { background: #2d2d2d; border: 1px solid rgba(255,255,255,.3); box-shadow: 18px 18px 0 rgba(255,156,0,.22); color: #fff; padding: 34px; position: relative; }
.hero-panel h2 { color: #fff; font-size: 2.2rem; margin-top: 10px; }
.hero-panel > p { color: #d2d2d2; margin-top: 16px; }
.panel-kicker { color: var(--yellow); font-size: .72rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.deadline-list { display: grid; gap: 0; margin: 22px 0; }
.deadline-list span { border-top: 1px solid #535353; font-size: .9rem; padding: 10px 0; }
.deadline-list span:last-child { border-bottom: 1px solid #535353; }
.text-link { color: var(--orange-dark); font-size: .9rem; font-weight: 800; }
.hero-panel .text-link { color: var(--yellow); }

.metric-strip { background: #303030; color: #fff; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics div { border-left: 1px solid #555; padding: 25px 28px; }
.metrics div:last-child { border-right: 1px solid #555; }
.metrics strong { color: var(--yellow); display: block; font-size: 1.2rem; }
.metrics span { color: #c8c8c8; display: block; font-size: .77rem; margin-top: 2px; }

.section-heading { margin-bottom: 48px; max-width: 930px; }
.section-heading h2 { margin-top: 12px; }
.split-heading { align-items: end; display: grid; gap: 60px; grid-template-columns: 1.3fr .7fr; max-width: none; }
.split-heading > p { color: var(--muted); font-size: 1.02rem; }
.service-grid { background: var(--line); border: 1px solid var(--line); display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); }
.service-card { background: #fff; min-height: 300px; padding: 32px; transition: background .2s, transform .2s; }
.service-card:hover { background: #fffceb; transform: translateY(-3px); }
.card-number { color: #a0a0a0; display: block; font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.service-card h3 { font-size: 1.45rem; margin-top: 36px; }
.service-card p { color: var(--muted); margin-top: 15px; }
.service-card a { color: var(--orange-dark); display: inline-block; font-size: .85rem; font-weight: 800; margin-top: 26px; }

.dark-section { background: #292929; color: #fff; }
.light-heading h2 { color: #fff; }
.light-heading > p { color: #c7c7c7; }
.problem-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.problem-grid article { background: #353535; border-top: 3px solid var(--yellow); min-height: 235px; padding: 24px; }
.problem-grid span { color: var(--orange); font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.problem-grid h3 { color: #fff; font-size: 1.18rem; margin-top: 14px; }
.problem-grid p { color: #c7c7c7; font-size: .88rem; margin-top: 14px; }
.center-action { margin-top: 34px; text-align: center; }

.process-grid { display: grid; gap: 0; grid-template-columns: repeat(5, 1fr); list-style: none; margin: 0; padding: 0; }
.process-grid li { border-left: 1px solid var(--line); min-height: 240px; padding: 0 25px; }
.process-grid li:last-child { border-right: 1px solid var(--line); }
.process-grid span { color: var(--orange-dark); font-size: .8rem; font-weight: 900; }
.process-grid h3 { font-size: 1.15rem; margin-top: 55px; }
.process-grid p { color: var(--muted); font-size: .88rem; margin-top: 13px; }

.soft-section { background: var(--soft); }
.two-column { align-items: center; display: grid; gap: 90px; grid-template-columns: .8fr 1.2fr; }
.two-column h2 { margin: 12px 0 20px; }
.large-copy { color: var(--muted); font-size: 1.04rem; margin-bottom: 22px; }
.industry-list { display: grid; grid-template-columns: 1fr 1fr; }
.industry-list span { background: #fff; border: 1px solid #e4e1d8; font-weight: 700; margin: -1px 0 0 -1px; padding: 22px; }
.industry-list span::before { color: var(--orange); content: "/"; margin-right: 12px; }

.principle-grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.principle-grid article { border: 1px solid var(--line); border-top: 4px solid var(--yellow); padding: 30px; }
.principle-grid p { color: var(--muted); margin-top: 14px; }
.faq-section { background: #f6f6f6; }
.faq-layout { display: grid; gap: 80px; grid-template-columns: .65fr 1.35fr; }
.faq-layout h2 { margin: 12px 0 18px; }
.faq-layout > div:first-child > p:last-child { color: var(--muted); }
.faq-list details { border-bottom: 1px solid #d8d8d8; }
.faq-list summary { cursor: pointer; font-size: 1.02rem; font-weight: 800; list-style: none; padding: 20px 34px 20px 0; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { color: var(--orange-dark); content: "+"; font-size: 1.4rem; position: absolute; right: 4px; top: 14px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); padding: 0 32px 20px 0; }
.final-cta { background: #2e2e2e; color: #fff; padding: 72px 0; }
.final-cta-inner { align-items: center; display: grid; gap: 50px; grid-template-columns: 1fr auto; }
.final-cta h2 { color: #fff; font-size: clamp(2rem, 4vw, 3.25rem); margin-top: 10px; max-width: 840px; }
.final-cta .hero-actions { margin: 0; }

.site-footer { background: #1f1f1f; color: #bbb; padding: 72px 0 30px; }
.footer-grid { display: grid; gap: 50px; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h2 { font-size: 1.8rem; }
.site-footer h3 { font-size: .87rem; letter-spacing: .08em; margin-bottom: 20px; text-transform: uppercase; }
.site-footer p, .site-footer a { display: block; font-size: .82rem; margin-top: 10px; }
.site-footer a:hover { color: var(--yellow); }
.footer-brand > p:nth-child(2) { color: var(--yellow); font-weight: 800; }
.footer-bottom { border-top: 1px solid #3e3e3e; display: flex; font-size: .75rem; justify-content: space-between; margin-top: 54px; padding-top: 22px; }
.footer-bottom div { display: flex; gap: 20px; }
.footer-bottom a { margin: 0; }
.footer-disclaimer { color: #777; font-size: .7rem !important; line-height: 1.55; margin-top: 24px !important; }

/* Service, article and information pages share the approved brand system. */
.page-hero, .inner-hero { background: linear-gradient(110deg, #f8f7f1, #fff3a8); border-bottom: 1px solid #e8e0ba; padding: 78px 0; }
.page-hero h1, .inner-hero h1 { font-size: clamp(2.55rem, 5vw, 4.8rem); margin-top: 14px; max-width: 1000px; }
.page-intro, .inner-hero p:last-child { color: #555; font-size: 1.1rem; margin-top: 20px; max-width: 780px; }
.breadcrumbs { align-items: center; color: #777; display: flex; flex-wrap: wrap; font-size: .75rem; gap: 8px; margin-bottom: 25px; }
.breadcrumbs a:hover { color: var(--orange-dark); }
.page-layout { align-items: start; display: grid; gap: 72px; grid-template-columns: minmax(0,1fr) 320px; padding-block: 82px 100px; }
.page-content { min-width: 0; }
.page-content h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 44px 0 17px; }
.page-content h3 { margin: 30px 0 12px; }
.page-content p, .page-content li { color: #555; line-height: 1.8; }
.page-content p + p { margin-top: 16px; }
.page-content ul, .page-content ol { padding-left: 21px; }
.page-content li { margin-block: 8px; }
.page-content a { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 3px; }
.page-content .button { color: #111; text-decoration: none; }
.page-content blockquote { background: #fffceb; border-left: 3px solid var(--yellow); margin: 26px 0; padding: 19px 21px; }
.sidebar-card { border: 1px solid #d9d9d9; box-shadow: 12px 12px 0 var(--yellow); padding: 28px; position: sticky; top: 115px; }
.sidebar-card h2 { font-size: 1.8rem; }
.sidebar-card p { color: var(--muted); font-size: .91rem; margin-top: 13px; }
.sidebar-card .button { margin-top: 15px; width: 100%; }
.sidebar-meta { border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; margin-top: 20px; padding-top: 17px; }
.article-list { display: grid; gap: 18px; }
.article-card { border: 1px solid var(--line); padding: 28px; }
.article-card h2 { font-size: 1.55rem; }
.article-card p { color: var(--muted); margin-top: 12px; }
.article-card .text-link { display: inline-block; margin-top: 15px; }

.enquiry-form { display: grid; gap: 16px; margin-top: 26px; }
.form-row { display: grid; gap: 15px; grid-template-columns: 1fr 1fr; }
.form-field label { display: block; font-size: .87rem; font-weight: 700; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea { background: #fff; border: 1px solid #d3d3d3; border-radius: 3px; color: var(--ink); font: inherit; padding: 12px 13px; width: 100%; }
.form-field textarea { min-height: 135px; resize: vertical; }
.form-consent { align-items: flex-start; color: var(--muted); display: flex; font-size: .83rem; gap: 9px; }
.form-consent input { margin-top: 5px; }
.form-honeypot { height: 1px; left: -10000px; overflow: hidden; position: absolute; width: 1px; }
.form-message { padding: 13px 15px; }
.form-message-success { background: #e6f7ee; color: #0a6b41; }
.form-message-error { background: #fff0ed; color: #a13224; }
.mobile-contact-bar { display: none; }

@media (max-width: 1050px) {
  .site-header nav { display: none; }
  .hero-grid, .page-layout { grid-template-columns: 1fr; }
  .hero { background: linear-gradient(145deg, #fff 0%, #fff 68%, #fff1a0 68%, #f3d100 100%); }
  .hero-panel { max-width: 600px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(3, 1fr); row-gap: 38px; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

@media (max-width: 740px) {
  body { font-size: 15px; }
  .shell, .container { width: min(var(--max), calc(100% - 28px)); }
  .section { padding-block: 68px; }
  .topbar-inner > span { display: none; }
  .topbar-inner { justify-content: flex-end; }
  .topbar-inner div { gap: 14px; }
  .header-inner { flex-wrap: wrap; gap: 10px; min-height: 70px; padding-bottom: 10px; }
  .brand { width: 190px; }
  .brand img { height: 48px; }
  .header-cta { padding: 9px 12px; }
  .site-header nav { display: flex; order: 3; overflow-x: auto; padding: 2px 0 6px; width: 100%; }
  .site-header nav ul { gap: 18px; }
  .site-header nav a { font-size: .78rem; white-space: nowrap; }
  .hero { padding: 62px 0; }
  .hero-grid { gap: 44px; }
  .hero-panel { box-shadow: 8px 8px 0 rgba(255,156,0,.22); padding: 25px; }
  .hero-panel h2 { font-size: 1.8rem; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics div, .metrics div:last-child { border: 1px solid #555; margin: -1px 0 0 -1px; padding: 18px; }
  .split-heading, .two-column, .faq-layout, .final-cta-inner, .page-layout { gap: 28px; grid-template-columns: 1fr; }
  .service-grid, .problem-grid, .principle-grid, .footer-grid { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li, .process-grid li:last-child { border: 0; border-top: 1px solid var(--line); min-height: auto; padding: 22px 0; }
  .process-grid h3 { margin-top: 12px; }
  .industry-list { grid-template-columns: 1fr; }
  .final-cta .hero-actions { margin-top: 10px; }
  .footer-bottom { flex-direction: column; gap: 20px; }
  .page-hero { padding: 55px 0; }
  .page-layout { padding-block: 60px 78px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body.has-mobile-actions { padding-bottom: 61px; }
  .mobile-contact-bar { background: #fff; border-top: 1px solid var(--line); bottom: 0; display: grid; gap: 8px; grid-auto-columns: 1fr; grid-auto-flow: column; left: 0; padding: 8px 10px; position: fixed; right: 0; z-index: 60; }
  .mobile-contact-bar .button { font-size: .8rem; min-height: 42px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
