/* Cohen, Cohen & Cohen — Link in Bio (/links). Tokens from the CCC design system. */
:root {
	--lapis-blue: #1c355e;
	--black-lacquer: #101e33;
	--brass: #b2a77e;
	--burgundy: #8a2332;
	--burgundy-hover: #701c28;
	--burgundy-active: #621823;
	--text-color: #323944;
	--medium-gray: #5e6671;
	--page: #f4f5f3;
	--white: #fff;
	--rule: #dcdcd6;
	--font-sans: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body.ccc-links-body {
	margin: 0;
	min-height: 100vh;
	background: var(--page);
	color: var(--text-color);
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	/* lapis top edge with brass rule — echoes the consult tab */
	border-top: 6px solid var(--lapis-blue);
	box-shadow: inset 0 3px 0 var(--brass);
}

.ccc-links {
	max-width: 480px;
	margin: 0 auto;
	padding: 36px 20px 40px;
}

.ccc-links a { color: inherit; }
.ccc-icon { flex: none; }

/* ---------- Header ---------- */
.ccc-links__head { text-align: center; }

.ccc-links__logo { display: inline-block; }
.ccc-links__logo img { display: block; width: 220px; height: auto; margin: 0 auto; }

.ccc-links__title {
	margin: 26px 0 8px;
	color: var(--lapis-blue);
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}
.ccc-links__title span { color: var(--burgundy); }

.ccc-links__sub {
	margin: 0;
	color: var(--medium-gray);
	font-size: .9rem;
	text-wrap: balance;
}
.ccc-links__es {
	margin: 4px 0 0;
	color: var(--lapis-blue);
	font-size: .9rem;
	font-weight: 600;
}
.ccc-links__head::after {
	content: "";
	display: block;
	width: 64px;
	height: 3px;
	margin: 22px auto 26px;
	background: var(--brass);
}

/* ---------- Instagram post grid ---------- */
.ccc-ig { margin: 24px 0 26px; }
.ccc-ig__title {
	margin: 0 0 12px;
	color: var(--lapis-blue);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-align: center;
	text-transform: uppercase;
}
.ccc-ig__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}
/* 1px hairlines centered in the 20px gutters */
.ccc-ig__grid li { position: relative; }
.ccc-ig__grid li::before,
.ccc-ig__grid li::after {
	content: "";
	position: absolute;
	background: var(--hairline, #c9c9c1);
	pointer-events: none;
}
/* vertical: right of every tile except the last in a row / the last tile */
.ccc-ig__grid li:not(:nth-child(3n)):not(:last-child)::before {
	top: 0;
	bottom: 0;
	right: -10.5px;
	width: 1px;
}
/* bridge the vertical line across the row gutter when a row follows */
.ccc-ig__grid li:not(:nth-child(3n)):not(:last-child):nth-last-child(n+4)::before { bottom: -20px; }
/* horizontal: under every tile that has a tile below it */
.ccc-ig__grid li:nth-last-child(n+4)::after {
	left: 0;
	right: 0;
	bottom: -10.5px;
	height: 1px;
}
/* bridge the horizontal line across the column gutter */
.ccc-ig__grid li:not(:nth-child(3n)):nth-last-child(n+4)::after { right: -20px; }
.ccc-ig__tile {
	display: block;
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 5;
	background: var(--rule);
}
.ccc-ig__tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .2s ease-in-out, opacity .2s ease-in-out;
}
.ccc-ig__tile:hover img { transform: scale(1.03); opacity: .92; }
.ccc-ig__tile:focus-visible { outline-offset: -3px; }

/* ---------- Featured (latest post) ---------- */
.ccc-feature {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 14px;
	padding: 14px 16px;
	background: var(--white);
	border: 1px solid var(--rule);
	border-left: 3px solid var(--brass);
	border-radius: 4px;
	color: var(--lapis-blue);
	text-decoration: none;
	transition: border-color .14s ease-in-out, background-color .14s ease-in-out;
}
.ccc-feature:hover { border-color: var(--lapis-blue); border-left-color: var(--brass); }
.ccc-feature__thumb {
	width: 64px;
	height: 64px;
	flex: none;
	object-fit: cover;
	border-radius: 2px;
}
.ccc-feature__body { flex: 1; min-width: 0; }
.ccc-feature__kicker {
	display: block;
	color: var(--burgundy);
	font-size: .7rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-transform: uppercase;
}
.ccc-feature__title {
	display: block;
	margin-top: 2px;
	color: var(--lapis-blue);
	font-size: .98rem;
	font-weight: 700;
	line-height: 1.3;
	text-wrap: pretty;
}

/* ---------- Buttons ---------- */
.ccc-links__list { display: grid; gap: 10px; }

.ccc-btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 56px;
	padding: 10px 20px 10px 24px;
	background: var(--lapis-blue);
	border-radius: 4px;
	color: var(--white) !important;
	font-size: .9rem;
	font-weight: 600;
	letter-spacing: 1px;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .14s ease-in-out;
}
.ccc-btn:hover { background: var(--black-lacquer); }
.ccc-btn .ccc-icon { opacity: .75; transition: transform .14s ease-in-out; }
.ccc-btn:hover .ccc-icon { transform: translateX(3px); }

.ccc-btn--cta {
	background: var(--burgundy);
	box-shadow: inset 0 -3px 0 var(--brass);
}
.ccc-btn--cta:hover { background: var(--burgundy-hover); }
.ccc-btn--cta:active { background: var(--burgundy-active); }

/* ---------- Offices ---------- */
.ccc-offices {
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--brass);
}
.ccc-offices__label {
	margin: 0 0 14px;
	color: var(--lapis-blue);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .1em;
	text-align: center;
	text-transform: uppercase;
}
.ccc-offices__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
.ccc-office {
	display: flex;
	flex-direction: column;
	background: var(--white);
	border: 1px solid var(--rule);
	border-radius: 4px;
}
.ccc-office__call {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 14px 12px 12px;
	color: var(--lapis-blue) !important;
	text-decoration: none;
	transition: background-color .14s ease-in-out;
	border-radius: 4px 4px 0 0;
}
.ccc-office__call:hover { background: #eef1f5; }
.ccc-office__call .ccc-icon { color: var(--burgundy); }
.ccc-office__name {
	display: block;
	color: var(--medium-gray);
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .04em;
	line-height: 1.25;
}
.ccc-office__phone {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	white-space: nowrap;
}
.ccc-office__map {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	margin-top: auto;
	padding: 10px 12px 12px;
	border-top: 1px solid var(--rule);
	color: var(--medium-gray) !important;
	font-size: .72rem;
	line-height: 1.35;
	text-decoration: none;
}
.ccc-office__map .ccc-icon { width: 14px; height: 14px; margin-top: 1px; }
.ccc-office__map:hover span { text-decoration: underline; }

.ccc-email {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
	padding: 8px;
	color: var(--lapis-blue) !important;
	font-size: .9rem;
	font-weight: 600;
	text-decoration: none;
}
.ccc-email:hover span { text-decoration: underline; }

/* ---------- Footer ---------- */
.ccc-links__foot {
	margin-top: 24px;
	text-align: center;
}
.ccc-links__more {
	margin: 0 0 14px;
	font-size: .85rem;
	font-weight: 600;
}
.ccc-links__more a { color: var(--lapis-blue); }
.ccc-links__more a:hover { color: var(--burgundy); }
.ccc-links__more span { margin: 0 8px; color: var(--brass); }

.ccc-links__legal {
	margin: 0 0 8px;
	color: var(--medium-gray);
	font-size: .7rem;
	line-height: 1.5;
	text-wrap: pretty;
}
.ccc-links__legal a { color: inherit; }

/* ---------- Focus + motion ---------- */
.ccc-links a:focus-visible {
	outline: 3px solid var(--brass);
	outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* very narrow phones: stack offices */
@media (max-width: 340px) {
	.ccc-offices__grid { grid-template-columns: 1fr; }
}
