/* AKAR AND ASSOCIATES — main stylesheet */

:root {
	--navy: #13284a;
	--navy-deep: #0b1a33;
	--orange: #e0781f;
	--orange-dark: #b85f12; /* orange used for text on light backgrounds (contrast) */
	--paper: #f5f7fa;
	--ink: #1d2738;
	--slate: #4a5568;
	--rule: #d9dee6;
	--white: #ffffff;

	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

	--step--1: 0.875rem;
	--step-0: 1.0625rem;
	--step-1: 1.25rem;
	--step-2: 1.625rem;
	--step-3: 2.125rem;
	--step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

	--wrap: 72rem;
	--gutter: clamp(1.25rem, 4vw, 2.5rem);
	--section: clamp(3.5rem, 7vw, 6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
	margin: 0;
	font-family: var(--sans);
	font-size: var(--step-0);
	line-height: 1.6;
	color: var(--ink);
	background: var(--white);
	text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--orange-dark); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--navy); margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
address { font-style: normal; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; z-index: 100; background: var(--navy); color: var(--white); padding: 0.6rem 1rem; }
.skip-link:focus { left: 0.5rem; }

/* Buttons and links */
.btn {
	display: inline-block;
	font: 600 var(--step--1)/1 var(--sans);
	letter-spacing: 0.01em;
	padding: 0.95rem 1.4rem;
	border: 1px solid transparent;
	border-radius: 2px;
	text-decoration: none;
	cursor: pointer;
}
.btn--primary { background: var(--orange); color: var(--navy-deep); }
.btn--primary:hover { background: #f08a33; color: var(--navy-deep); }
.btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn--ghost:hover { color: var(--white); border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn--quiet { color: var(--slate); background: none; border-color: var(--rule); }
.btn--quiet:hover { color: var(--navy); border-color: var(--navy); }
.text-link { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }

/* Header */
.site-header {
	position: sticky; top: 0; z-index: 20;
	background: var(--white);
	border-bottom: 1px solid var(--rule);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.75rem; gap: 1rem; }
.wordmark { text-decoration: none; display: flex; align-items: center; gap: 0.85rem; }
.wordmark__logo { height: 3rem; width: auto; flex: 0 0 auto; }
.wordmark__text { display: flex; flex-direction: column; line-height: 1.1; border-left: 1px solid var(--rule); padding-left: 0.85rem; }
.wordmark__name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: 0.04em; color: var(--navy); }
.wordmark__sub { font-size: var(--step--1); color: var(--slate); margin-top: 0.2rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.25rem; }
.site-nav a {
	display: block; padding: 0.6rem 0.9rem;
	font-weight: 500; font-size: 0.95rem; color: var(--ink); text-decoration: none;
	border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--rule); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--orange); }
.nav-toggle { display: none; background: none; border: 0; padding: 0.6rem; cursor: pointer; color: var(--navy); line-height: 0; }
.nav-toggle__icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon--close { display: block; }

@media (max-width: 52rem) {
	.nav-toggle { display: block; }
	.site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--rule); display: none; }
	.site-nav.is-open { display: block; }
	.site-nav ul { flex-direction: column; padding: 0.5rem var(--gutter) 1rem; }
	.site-nav a { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
	.site-nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--orange-dark); }
}

/* Hero */
.hero {
	position: relative;
	color: var(--white);
	background-color: var(--navy-deep);
	background-size: cover;
	background-position: center 60%;
}
.hero__inner { padding-top: clamp(5rem, 12vw, 9rem); padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.hero__title {
	color: var(--white);
	font-size: var(--step-4);
	font-weight: 400;
	line-height: 1.12;
	max-width: 22ch;
	padding-left: clamp(1rem, 2.5vw, 1.75rem);
	border-left: 4px solid var(--orange);
	margin-bottom: 1.5rem;
}
.hero__lede { font-size: var(--step-1); max-width: 40ch; color: rgba(255,255,255,0.88); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0; }

/* Sections */
.section { padding: var(--section) 0; }
.section--tint { background: var(--paper); }
.section__title { font-size: var(--step-3); margin-bottom: 2rem; max-width: 26ch; }

/* Intro */
.intro__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.intro__statement { font-size: var(--step-3); font-weight: 400; line-height: 1.25; margin: 0; }
.intro__body { color: var(--slate); max-width: 60ch; }
@media (max-width: 52rem) { .intro__grid { grid-template-columns: 1fr; } }

/* Featured services */
.featured { background: var(--paper); }
.featured__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.feature { background: var(--white); border-top: 4px solid var(--navy); display: flex; flex-direction: column; }
.feature__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.feature__body { padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; flex: 1; }
.feature__body > p { color: var(--slate); }
.feature__body .text-link { margin-top: auto; padding-top: 0.5rem; }
.feature__name { font-size: var(--step-2); }
.feature .ticks li { font-size: 0.95rem; }
@media (max-width: 64rem) { .featured__grid { grid-template-columns: 1fr; max-width: 40rem; } }

/* Tick lists */
.ticks { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: 0.55rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 0.6rem; height: 2px; background: var(--orange); }
.ticks--cols { columns: 2 18rem; column-gap: 2.5rem; }
.ticks--cols li { break-inside: avoid; }

/* Practice index */
.index__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(2rem, 5vw, 4rem); border-top: 1px solid var(--rule); }
.index__list a { display: grid; grid-template-columns: minmax(10rem, 0.9fr) 1.4fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); height: 100%; }
.index__list a:hover .index__name { color: var(--orange-dark); }
.index__name { font-family: var(--serif); font-weight: 600; font-size: var(--step-1); color: var(--navy); line-height: 1.3; }
.index__short { color: var(--slate); font-size: 0.95rem; }
@media (max-width: 60rem) { .index__list { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .index__list a { grid-template-columns: 1fr; gap: 0.25rem; } }

/* Team strip (home) */
.team-strip { background: var(--navy); color: var(--white); }
.team-strip .section__title { color: var(--white); }
.team-strip__list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; }
.team-strip__list li { border-top: 2px solid var(--orange); padding-top: 0.9rem; }
.team-strip__name { display: block; font-family: var(--serif); font-size: var(--step-1); color: var(--white); text-decoration: none; }
.team-strip__name:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--orange); }
.team-strip__title { display: block; color: rgba(255,255,255,0.72); font-size: var(--step--1); }
.team-strip .text-link { color: var(--white); }
@media (max-width: 60rem) { .team-strip__list { grid-template-columns: repeat(2, 1fr); } }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2rem); }
.office { background: var(--white); border: 1px solid var(--rule); border-top: 4px solid var(--navy); padding: 1.75rem; display: flex; flex-direction: column; }
.office__label { font-size: var(--step--1); color: var(--orange-dark); font-weight: 600; margin-bottom: 0.25rem; }
.office__locality { font-size: var(--step-2); margin-bottom: 0.75rem; }
.office__address { color: var(--slate); margin-bottom: 1.25rem; }
.office__people { list-style: none; margin: 0; padding: 0; }
.office__people li { border-top: 1px solid var(--rule); padding: 1rem 0 0.25rem; display: flex; flex-direction: column; gap: 0.15rem; }
.office__people li + li { margin-top: 0.75rem; }
.office__people a.office__person { font-weight: 600; color: var(--navy); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; font-size: 1rem; }
.office__people a.office__person:hover { color: var(--orange-dark); }
.office__people a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; font-size: 0.95rem; }
.office__people a:hover { color: var(--orange-dark); text-decoration: underline; }
@media (max-width: 60rem) { .offices { grid-template-columns: 1fr; max-width: 34rem; } }

/* Inner page head */
.page-head { background: var(--navy); color: var(--white); padding: clamp(3rem, 7vw, 5rem) 0; }
.page-head--photo { background-color: var(--navy-deep); background-size: cover; background-position: center; padding: clamp(4rem, 9vw, 6.5rem) 0; }
.page-head__title { color: var(--white); font-size: var(--step-4); font-weight: 400; padding-left: 1.25rem; border-left: 4px solid var(--orange); margin-bottom: 1rem; }
.page-head__lede { font-size: var(--step-1); max-width: 52ch; color: rgba(255,255,255,0.86); margin: 0; }
.page-head__lede a { color: var(--white); }

/* Prose */
.prose { max-width: 66ch; }
.prose--narrow { max-width: 60ch; }
.prose--wide { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.5em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.5em; }

/* About split */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.split__media { margin: 0; position: sticky; top: 7rem; }
.split__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-bottom: 4px solid var(--orange); }
.split__media figcaption { font-size: var(--step--1); color: var(--slate); margin-top: 0.6rem; }
.split__media figcaption a { color: var(--slate); }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } .split__media { position: static; max-width: 30rem; } }

/* Services tabs */
.services__layout { display: grid; grid-template-columns: 17rem 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.services__tabs { display: flex; flex-direction: column; border-left: 1px solid var(--rule); position: sticky; top: 7rem; }
.services__tab {
	text-align: left; background: none; border: 0; border-left: 3px solid transparent; margin-left: -2px;
	padding: 0.75rem 1rem; font: 500 0.98rem/1.35 var(--sans); color: var(--slate); cursor: pointer;
}
.services__tab:hover { color: var(--navy); }
.services__tab.is-featured { color: var(--ink); font-weight: 600; }
.services__tab[aria-selected="true"] { color: var(--navy); border-left-color: var(--orange); background: var(--paper); font-weight: 600; }
.services__panel:focus, .services__panel:focus-visible { outline: none; }
.services__name { font-size: var(--step-3); }
.points { list-style: none; margin: 0; padding: 0; max-width: 68ch; }
.points li { position: relative; padding: 0.9rem 0 0.9rem 1.5rem; border-bottom: 1px solid var(--rule); }
.points li:last-child { border-bottom: 0; }
.points li::before { content: ""; position: absolute; left: 0; top: 1.55em; width: 0.7rem; height: 2px; background: var(--orange); }
.points strong { color: var(--navy); font-weight: 600; }
@media (max-width: 52rem) {
	.services__layout { grid-template-columns: 1fr; }
	.services__tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--rule); position: static; scrollbar-width: thin; }
	.services__tab { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; margin: 0 0 -1px; }
	.services__tab[aria-selected="true"] { border-bottom-color: var(--orange); }
}
.note p { margin: 0; font-size: var(--step-1); }

/* People */
.people { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.person { display: grid; grid-template-columns: minmax(17rem, 25rem) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.5rem); border-bottom: 1px solid var(--rule); padding: 2.5rem 0; scroll-margin-top: 6rem; }
.person__head { display: flex; gap: 1.25rem; align-items: flex-start; }
.person__monogram, .person__photo {
	flex: 0 0 auto; width: 6rem; height: 6rem; border-radius: 50%;
	box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--orange);
}
.person__monogram { display: grid; place-items: center; background: var(--navy); color: var(--white); font-family: var(--serif); font-size: 1.85rem; letter-spacing: 0.04em; }
.person__photo { object-fit: cover; object-position: center 25%; }
.person__name { font-size: var(--step-2); margin: 0.35rem 0 0.15rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.person__linkedin { display: inline-flex; color: #0a66c2; line-height: 0; padding: 2px; border-radius: 2px; }
.person__linkedin:hover { color: var(--orange-dark); }
.person__title { margin: 0; color: var(--orange-dark); font-weight: 600; }
.person__quals { margin: 0.15rem 0 0; color: var(--slate); font-size: 0.95rem; }
.person__contact { list-style: none; margin: 0.6rem 0 0; padding: 0; font-size: 0.92rem; }
.person__contact li { margin-top: 0.15rem; }
.person__contact a { color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.person__contact a:hover { color: var(--orange-dark); text-decoration: underline; }
.person__bio { max-width: 66ch; }
.person__bio p:last-child { margin-bottom: 0; }
.person__meta { color: var(--slate); font-size: var(--step--1); white-space: pre-wrap; }
@media (max-width: 52rem) { .person { grid-template-columns: 1fr; } }
@media (max-width: 40rem) { .person__monogram, .person__photo { width: 4.75rem; height: 4.75rem; font-size: 1.45rem; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.78); font-size: 0.95rem; }
.site-footer a { color: rgba(255,255,255,0.85); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr; gap: 2.5rem; padding-top: 4rem; padding-bottom: 3rem; }
.site-footer__name { font-family: var(--serif); font-size: var(--step-1); color: var(--white); letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.site-footer__heading { font-family: var(--sans); font-size: var(--step--1); font-weight: 600; color: var(--orange); margin-bottom: 1rem; }
.site-footer__list { list-style: none; margin: 0; padding: 0; }
.site-footer__list li { margin-bottom: 0.45rem; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,0.14); padding-top: 1.5rem; padding-bottom: 2rem; font-size: var(--step--1); }
.site-footer__base p { margin: 0; }
.site-footer__base p:last-child a + a { margin-left: 1.25rem; }
@media (max-width: 52rem) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Disclaimer gate */
.disclaimer { position: fixed; inset: 0; z-index: 1000; background: rgba(11,26,51,0.86); display: grid; place-items: center; padding: 1rem; overflow-y: auto; }
.disclaimer[hidden] { display: none; }
.disclaimer__panel { background: var(--white); max-width: 40rem; padding: clamp(1.5rem, 4vw, 2.75rem); border-top: 5px solid var(--orange); }
.disclaimer__panel h2 { font-size: var(--step-2); }
.disclaimer__panel ul { padding-left: 1.2rem; color: var(--slate); }
.disclaimer__panel li { margin-bottom: 0.6rem; }
.disclaimer__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
body.has-gate { overflow: hidden; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .disclaimer, .site-footer__grid { display: none; } }

@media (max-width: 34rem) {
	.wordmark { gap: 0.6rem; }
	.wordmark__logo { height: 2.4rem; }
	.wordmark__text { padding-left: 0.6rem; }
	.wordmark__name { font-size: 1.02rem; }
	.wordmark__sub { font-size: 0.8rem; }
}
