/*
Theme Name: LegalPro Landing
Theme URI: https://example.com/legalpro
Author: Your Firm
Description: A one-page landing theme for multidisciplinary firms offering Corporate Law, Legal Services, CA Audit & Tax and Company Secretarial services. Edit firm details under Appearance → Customize → Firm Details.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: legalpro
*/

:root {
	--navy: #0f2340;
	--navy-2: #183257;
	--gold: #c9a24b;
	--gold-dark: #a9852f;
	--ink: #1d2433;
	--muted: #5b6577;
	--line: #e3e6ec;
	--tint: #f5f3ee;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(15, 35, 64, .08);
	--serif: "Playfair Display", Georgia, serif;
	--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--serif); }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 1000; border-radius: 6px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 6px 18px rgba(201, 162, 75, .35); }
.btn--gold:hover { background: var(--gold-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--wa { background: #25d366; color: #fff; margin-top: 8px; }

/* Top bar & header */
.topbar { background: var(--navy); color: #c9d2e0; font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar a { color: #c9d2e0; text-decoration: none; margin-left: 18px; }
.topbar a:hover { color: var(--gold); }
.topbar .icon { color: var(--gold); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__logo { max-height: 56px; width: auto; }
.brand__mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: var(--gold); font-size: 1.4rem; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text strong { font-family: var(--serif); font-size: 1.2rem; }
.brand__text small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }

.primary-nav { display: flex; align-items: center; gap: 26px; }
.primary-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { white-space: nowrap; }
.primary-nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.primary-nav a:not(.btn):hover { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 1.4rem; color: var(--navy); cursor: pointer; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% -10%, rgba(201, 162, 75, .22), transparent 60%), linear-gradient(135deg, var(--navy) 0%, #0a1830 100%); color: #dfe5ef; padding: 90px 0 110px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.hero__lead { font-size: 1.12rem; max-width: 580px; color: #c3cddd; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 28px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; }
.hero__badges .icon { color: var(--gold); }
.hero__card { background: var(--white); color: var(--ink); border-radius: 20px; padding: 30px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.hero__card h2 { font-size: 1.45rem; margin-bottom: 18px; }
.hero__quick { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.hero__quick a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 500; transition: border-color .15s, background .15s; }
.hero__quick a:hover { border-color: var(--gold); background: #fbf8f1; }
.hero__quick .icon { width: 1.5em; height: 1.5em; color: var(--gold-dark); }
.hero__call { display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--tint); border-radius: 12px; padding: 13px; text-decoration: none; font-weight: 600; color: var(--navy); }

/* Stats */
.stats { margin-top: -50px; position: relative; z-index: 2; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat { padding: 28px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.2rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Sections */
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #c3cddd; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section__head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.section__head p { color: var(--muted); font-size: 1.05rem; }
.section__head--light h2 { color: var(--white); }
.section__head--light .eyebrow { color: var(--gold); }

/* Tabs */
.tabs__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tabs__tab { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font: 600 .95rem var(--sans); color: var(--navy); cursor: pointer; transition: all .15s; }
.tabs__tab:hover { border-color: var(--gold); }
.tabs__tab[aria-selected="true"] { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tabs__tab[aria-selected="true"] .icon { color: var(--gold); }
.tabs__panel { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 40px; box-shadow: var(--shadow); margin-bottom: 20px; }
.js .tabs__panel[data-inactive] { display: none; }
.panel__icon, .card__icon, .why__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: #fbf5e6; color: var(--gold-dark); font-size: 1.6rem; margin-bottom: 18px; }
.panel__intro h3 { font-family: var(--serif); font-size: 1.7rem; }
.panel__intro p { color: var(--muted); }
.panel__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; align-content: center; }
.panel__list li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--tint); border-radius: 10px; font-size: .95rem; }
.panel__list .icon { color: var(--gold-dark); margin-top: .2em; }

/* Team */
.team__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card { background: var(--white); border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.team-card { transition: transform .2s, border-color .2s; border-top: 4px solid var(--gold); }
.team-card:hover { transform: translateY(-6px); }
.team-card h3 { font-family: var(--serif); font-size: 1.45rem; }
.team-card p { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .78rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: #eef1f6; color: var(--navy); }

/* Why */
.why__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.why__intro { position: sticky; top: 110px; }
.why__intro h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.why__intro p { color: var(--muted); }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.why__item { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); }
.why__icon { width: 46px; height: 46px; font-size: 1.3rem; margin: 0; flex-shrink: 0; }
.why__item h3 { font-size: 1.05rem; margin-bottom: .3em; }
.why__item p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 30px 26px; position: relative; }
.step__num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; display: block; margin-bottom: 16px; }
.step h3 { color: var(--white); font-size: 1.12rem; }
.step p { margin: 0; font-size: .94rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq__item summary { cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--navy); list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--gold-dark); transition: transform .2s; }
.faq__item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__item p { padding: 0 24px 20px; margin: 0; color: var(--muted); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact__info h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.contact__list li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: var(--gold); flex-shrink: 0; }
.contact__list strong { display: block; color: var(--navy); }
.contact__list a { text-decoration: none; color: var(--muted); }
.contact__form { display: grid; gap: 16px; padding: 36px; }
.contact__form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact__form input, .contact__form select, .contact__form textarea { width: 100%; padding: 13px 14px; border: 1px solid #d4d9e2; border-radius: 10px; font: 400 1rem var(--sans); color: var(--ink); background: #fbfcfd; }
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, .2); background: var(--white); }
.form__note { margin: 0; font-size: .85rem; color: var(--muted); text-align: center; }
.notice { padding: 12px 16px; border-radius: 10px; margin: 0; font-weight: 500; }
.notice--ok { background: #e7f6ec; color: #1d6b39; }
.notice--err { background: #fdecec; color: #9b2222; }
.map { margin-top: 50px; }
.map iframe { width: 100%; height: 360px; border: 0; border-radius: var(--radius); }

/* Footer */
.site-footer { background: #0a1830; color: #9aa7bc; padding-top: 70px; font-size: .94rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.brand--footer { color: var(--white); margin-bottom: 18px; }
.brand--footer small { color: #8492a8; }
.footer__about { max-width: 340px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #9aa7bc; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact .icon { color: var(--gold); margin-top: .2em; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 24px; padding-bottom: 24px; font-size: .8rem; color: #73819a; }
.footer__legal p:last-child { margin: 0; }

/* WhatsApp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); z-index: 90; transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Disclaimer modal */
.disclaimer { position: fixed; inset: 0; background: rgba(8, 18, 36, .75); display: grid; place-items: center; padding: 20px; z-index: 999; }
.disclaimer[hidden] { display: none; }
.disclaimer__box { background: var(--white); border-radius: 18px; max-width: 620px; width: 100%; padding: 36px; max-height: 90vh; overflow-y: auto; border-top: 5px solid var(--gold); }
.disclaimer__box h2 { font-size: 1.7rem; }
.disclaimer__box p, .disclaimer__box li { color: var(--muted); font-size: .95rem; }
.disclaimer__box ul { padding-left: 20px; margin: 0 0 24px; }

/* Generic content (inner pages / posts) */
.content { padding: 70px 0; }
.content article { margin-bottom: 50px; }

/* Responsive */
@media (max-width: 1024px) {
	.hero__grid, .why__grid, .contact__grid { grid-template-columns: 1fr; }
	.why__intro { position: static; }
	.steps { grid-template-columns: 1fr 1fr; }
	.team__grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.tabs__panel { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
	.nav-toggle { display: inline-flex; }
	.primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--white); flex-direction: column; align-items: stretch; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; gap: 14px; }
	.primary-nav.is-open { display: flex; }
	.primary-nav ul { flex-direction: column; gap: 4px; }
	.primary-nav ul a { display: block; padding: 10px 0; }
	.topbar__inner > span:first-child { display: none; }
	.topbar__inner { justify-content: center; }
	.topbar a { margin: 0 8px; }
}
@media (max-width: 640px) {
	.hero { padding: 60px 0 90px; }
	.stats__grid { grid-template-columns: 1fr 1fr; }
	.stat:nth-child(2) { border-right: 0; }
	.stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
	.section { padding: 70px 0; }
	.team__grid, .why__list, .steps, .panel__list, .form__row, .footer__grid { grid-template-columns: 1fr; }
	.tabs__panel { padding: 26px 20px; }
	.tabs__tab { flex: 1 1 45%; justify-content: center; padding: 10px 12px; font-size: .85rem; }
	.contact__form, .card { padding: 24px; }
	.brand__text small { display: none; }
	.topbar a:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
