/* ==========================================================
   style.css - modern & clean theme. Change colors in :root.
   ========================================================== */
:root {
  --brand: #10234d;
  --brand-dark: #091733;
  --accent: #2f86c9;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #eaf3fb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(16, 35, 77, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
.container { width: min(1120px, 92%); margin-inline: auto; }
.narrow { width: min(760px, 92%); }
.center { text-align: center; }
.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
section { padding: 4.5rem 0; }
section.tight { padding: 2.5rem 0; }
.soft { background: var(--bg-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: .5rem 1rem; z-index: 100; }

/* header */
#site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; text-decoration: none; color: var(--brand); display: flex; flex-direction: column; line-height: 1.15; }
.brand small { font-family: var(--font); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--brand); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; font-size: 1.3rem; padding: .25rem .65rem; cursor: pointer; }

/* buttons */
.btn { display: inline-block; background: var(--brand); color: #fff !important; padding: .8rem 1.5rem; border-radius: 999px; text-decoration: none; font-weight: 600; border: 2px solid var(--brand); cursor: pointer; font-size: 1rem; font-family: inherit; transition: transform .15s, background .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-sm { padding: .5rem 1.1rem; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--brand) !important; }
.btn-ghost:hover { background: var(--brand); color: #fff !important; }
.btn-danger { background: #dc2626; border-color: #dc2626; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(120deg, #091733 0%, #10234d 55%, #1b3f7a 100%); color: #fff; padding: 5rem 0 4.5rem; border-bottom: 4px solid var(--accent); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.5vw, 4rem); }
.hero p { font-size: 1.15rem; color: #cfe0f3; margin-bottom: 1.6rem; }
.badge { display: inline-block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #cfe6f7; border: 1px solid rgba(207,230,247,.45); border-radius: 999px; padding: .3rem .9rem; margin-bottom: 1.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero .btn { background: #fff; border-color: #fff; color: var(--brand) !important; }
.hero .btn:hover { background: #cfe6f7; border-color: #cfe6f7; }
.hero .btn-ghost { background: transparent; border-color: #fff; color: #fff !important; }
.hero .btn-ghost:hover { background: #fff; color: var(--brand) !important; }
.hero-pillars { font-size: .85rem !important; letter-spacing: .12em; text-transform: uppercase; color: #8fb8e0 !important; margin: 0 !important; }
.hero-art { min-height: 440px; border-radius: 18px; background: #10234d url("../images/hero-building.jpg") center / cover no-repeat; box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.page-head { background: linear-gradient(120deg, #091733, #10234d 60%, #1b3f7a); color: #fff; padding: 3.5rem 0; border-bottom: 4px solid var(--accent); }
.page-head h1 { color: #fff; }
.page-head p { color: #cbd5e1; margin: 0; font-size: 1.1rem; }

/* stats */
[hidden] { display: none !important; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; text-align: center; }
.stat { color: var(--muted); }
.stat span { display: block; font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--accent); }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; }
.icon { font-size: 2rem; margin-bottom: .6rem; }
.quote blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.quote figcaption { color: var(--muted); font-size: .92rem; }
.team { text-align: center; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; font-weight: 800; font-size: 1.6rem; display: grid; place-items: center; margin: 0 auto 1rem; }

/* cta, faq */
.cta { text-align: center; background: linear-gradient(120deg, #091733, #10234d 60%, #1b3f7a); color: #fff; border-radius: 24px; padding: 3.5rem 1.5rem; }
.cta p { opacity: .9; }
.cta h2 { color: #fff; }
.cta .btn { background: #fff; color: var(--brand) !important; border-color: #fff; }
details { border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: .8rem; background: #fff; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: .7rem 0 0; }

/* forms */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; }
label { display: block; font-weight: 600; margin-bottom: .3rem; }
input, textarea, select { width: 100%; padding: .75rem .9rem; border: 1px solid #cbd5e1; border-radius: 10px; font: inherit; margin-bottom: 1rem; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid rgba(47,134,201,.55); outline-offset: 2px; }
textarea { min-height: 150px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.status { margin-top: 1rem; font-weight: 600; }
.status.ok { color: #15803d; }
.status.error { color: #b91c1c; }

/* footer */
#site-footer { background: #0f172a; color: #cbd5e1; padding: 3rem 0 1.5rem; }
#site-footer a { color: #9ccbf0; }
#site-footer p { margin: .4rem 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.disclaimer { font-size: .85rem; color: #94a3b8; margin: 0 0 1rem; }
.copy { border-top: 1px solid #1e293b; margin-top: 2rem; padding-top: 1.2rem; font-size: .9rem; }
#site-footer strong { color: #fff; }

/* admin */
.admin-wrap { max-width: 900px; margin: 2rem auto 4rem; }
.admin-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 1.5rem; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.4rem; background: #fff; }
.panel h2 { font-size: 1.25rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.list-item { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 1rem; margin-bottom: .8rem; }
.note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: .9rem 1rem; font-size: .95rem; }

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 1.2rem 4%; border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .contact-layout { grid-template-columns: 1fr; }
  section { padding: 3rem 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { #site-header, .hero-actions, .cta { display: none; } }

/* ---- additions for the full firm profile ---- */
.pillars-line { letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; color: #9ccbf0; }
.pillar { border-top: 4px solid var(--accent); }
.pillar h3 { color: var(--brand); }
.alliance { max-width: 880px; text-align: center; }
.alliance p { color: var(--muted); font-size: 1.05rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
ul.ticks { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.ticks li { position: relative; padding: .45rem 0 .45rem 1.7rem; border-bottom: 1px solid var(--line); }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.team-grid { margin-bottom: 3rem; }
.team .role { color: var(--brand); font-weight: 600; margin: 0 0 .2rem; }
.team .loc { color: var(--muted); font-size: .9rem; margin: 0 0 .6rem; }
.team details { text-align: left; margin: .8rem 0 0; padding: .6rem .9rem; }
.team details p { font-size: .95rem; }
.avatar.photo { width: 128px; height: 128px; object-fit: cover; background: none; border: 4px solid var(--bg-soft); box-shadow: 0 4px 14px rgba(16,35,77,.18); }
.office .tag { display: inline-block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--accent); margin-bottom: .3rem; }
.office .loc { font-size: .9rem; margin-bottom: .6rem; }
.office p + p { margin-top: .6rem; }
.nav-links { gap: 1.2rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 260px; order: -1; }
  .two-col { grid-template-columns: 1fr; }
}

.hint { color: var(--muted); font-size: .92rem; margin: -.2rem 0 1rem; }

/* ---- Justified text: every paragraph ---- */
p, blockquote {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
/* In centred blocks, justify the body lines but keep the last line centred */
p.center, .cta p, .alliance p, .team p, .quote blockquote {
  text-align: justify;
  text-align-last: center;
}
.quote blockquote { text-align-last: left; }


/* ---- WordPress specifics ---- */
.admin-bar #site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-header { top: 46px; } }
.nav-links ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.2rem; }
.nav-links li a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links li a:hover, .nav-links li.current-menu-item a, .nav-links li.current_page_item a { color: var(--brand); }
@media (max-width: 800px) { .nav-links ul { flex-direction: column; align-items: flex-start; gap: .8rem; } }
.wsl-notice { border-radius: 10px; padding: .9rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.wsl-notice.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.wsl-notice.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.entry { max-width: 760px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* ---- Mobile app (PWA) ---- */
.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.search-box { margin-bottom: 1.5rem; }
.search-box input { margin: 0; font-size: 1rem; }
.card[hidden] { display: none !important; }

.install-banner { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 90; background: var(--brand); color: #fff; border-radius: 14px; padding: .9rem 1rem; box-shadow: 0 12px 32px rgba(0,0,0,.35); display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; justify-content: space-between; }
.install-banner .install-msg { margin: 0; flex: 1 1 200px; text-align: left; font-size: .95rem; color: #fff; }
.install-actions { display: flex; gap: .5rem; }
.install-banner .btn { background: #fff; border-color: #fff; color: var(--brand) !important; }
.install-banner .btn-ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff !important; }

.tabbar { display: none; }
@media (display-mode: standalone) { .tabbar { display: grid; } }
html.is-app .tabbar { display: grid; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(16,35,77,.08); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .3rem .1rem; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.tabbar a[aria-current="page"] { color: var(--brand); }
.tabbar a:active { background: var(--bg-soft); border-radius: 10px; }
html.is-app body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
html.is-app #site-header { padding-top: env(safe-area-inset-top); }
html.is-app .nav-toggle, html.is-app .nav-links { display: none !important; }
html.is-app #site-footer { padding-bottom: 1.5rem; }
html.is-app .hero { padding: 3rem 0 2.5rem; }
html.is-app section { padding: 2.5rem 0; }
@media (display-mode: standalone) {
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .nav-toggle, .nav-links { display: none !important; }
}
body.offline-page { background: var(--bg-soft); }
@media print { .tabbar, .install-banner { display: none !important; } }
